|
| 16 Jul 2012 09:29 PM |
Im trying to make it slide out of the top left cornor using a for loop. I fell I almost got it. Can someone help me make it slide of the screen using this script? -------------- for i = 0,-51,-1 do wait(0.01) print(i) end
function onButtonClicked() script.Parent.Position = UDim2.new(0,i,0,0) end
script.Parent.MouseButton1Click:connect(onButtonClicked) |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 09:31 PM |
script.Parent.MouseButton1Down:connect(function() for i = 0,-51,-1 do script.Paremt.Position = script.Parent.Position(0,i,0,0) wait(0.01) end end) |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 09:33 PM |
script.Parent.MouseButton1Down:connect(function() for i = 0,-51,-1 do script.Parent.Position = script.Parent.Position(0,i,0,0) wait(0.01) end end)
Sorry, I did a typo, XD. Also you can do :TweenPosition() |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 09:33 PM |
| Can you go into detail about that script you just said? |
|
|
| Report Abuse |
|
|