of     1   

AshRPG12
#183736463Tuesday, February 16, 2016 4:28 AM GMT

script.Parent.MouseButton1Click:connect(function(buttonmash) if script.Parent.Text == "Open" then script.Parent.Text = "Cooling..." for i = 40, 360 do script.Parent.Parent.Parent.InvFrame.Position = UDim2.new(0, i, 0, 325) wait(1/1000) if i == 360 then script.Parent.Parent.Parent.InvFrame.Desc.Visible = true script.Parent.Parent.Parent.InvFrame.DesignedLabel.Visible = true script.Parent.Text = "Close" elseif script.Parent.Text == "Close" then script.Parent.Parent.Parent.InvFrame.Desc.Visible = false script.Parent.Parent.Parent.InvFrame.DesignedLabel.Visible = false script.Parent.Text = "Cooling..." for i = 360, 0, -40 do print(i) script.Parent.Parent.Parent.InvFrame.Position = UDim2.new(0, i, 0, 325) wait(1/1000) if i == 0 then script.Parent.Text = "Open" end end end end end end) script works and it will open, but ive spent too long to know why it wouldn't close. i've created another script doing for i = 360, 0, -40 do print(i) end and it is supposed to work perfectly so i dont think it has to do with the loop starting. xloadinq is fat
ReallyExpensive
#183736546Tuesday, February 16, 2016 4:29 AM GMT

anything in output? #print("ExpensiveGaming is awesome")
tapuzi
#183737865Tuesday, February 16, 2016 4:52 AM GMT

your loops and if statements are not ending in the right places you need to end the first for loop and if i==360 immediately before the first elseif as in snippet ; script.Parent.Text = "Close" end -- if end -- for elseif script.Parent.Text == "Close" then ... also wait() and wait(1/1000) probably achieve much the same thing. print(i) might work but print(tostring(i)) is how i might write it. hope this helps
AshRPG12
#183737867Tuesday, February 16, 2016 4:52 AM GMT

nope xloadinq is fat
AshRPG12
#183737907Tuesday, February 16, 2016 4:53 AM GMT

wait() is actually (1/30) :P xloadinq is fat
AshRPG12
#183738446Tuesday, February 16, 2016 5:03 AM GMT

meh before I fml ill try it later too late now xloadinq is fat
tapuzi
#183738772Tuesday, February 16, 2016 5:09 AM GMT

for i = 360, 0, -40 do minus 40 is the step size? And camera ten was placed in the parking lot to catch any action outside.
AshRPG12
#183760290Tuesday, February 16, 2016 5:07 PM GMT

this was done wrong in the for i loops I already fixed it by redoing the script. borrow my script if you need it (: script.Parent.MouseButton1Click:connect(function(buttonmash) if script.Parent.Text == "Open" then script.Parent.Text = "Cooling..." for i = 0, 360, 4 do script.Parent.Parent.Parent.InvFrame.Position = UDim2.new(0, i, 0, 325) wait(0.001) if i == 360 then script.Parent.Parent.Parent.InvFrame.Desc.Visible = true script.Parent.Parent.Parent.InvFrame.DesignedLabel.Visible = true script.Parent.Text = "Close" end end elseif script.Parent.Text == "Close" then script.Parent.Text = "Cooling..." script.Parent.Parent.Parent.InvFrame.Desc.Visible = false script.Parent.Parent.Parent.InvFrame.DesignedLabel.Visible = false for i = 360, 0, -4 do script.Parent.Parent.Parent.InvFrame.Position = UDim2.new(0, i, 0, 325) wait(0.001) --copyrite of ashrpg12 kk if i == 0 then script.Parent.Text = "Open" end end end end) no errors-- xloadinq is fat

    of     1