|
| 01 Mar 2014 12:57 PM |
startscript = Game.StarterGui.ScreenGui.TextButton
startscript.MouseButton1Click:connect(function() print("Button1 click.") g = 1 speed = 0.01 while true do g = g - speed TextButton.Position = UDim2.new(g,0,0.6,0) if g < -0.1 then g = 2 end wait() end element.MouseButton1Click:connect(onClick) end)
----- When a player clicks the TextButton, it should move off the screen |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 12:59 PM |
| Well whats element.MouseButton1Click:connect(onClick) for?, Is that all the script or is there more? |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 01:00 PM |
I saw that on the wiki I guess it has no point then |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2014 01:03 PM |
| Even if I remove that line, I can't get it to work. There is no output |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 02 Mar 2014 04:30 PM |
nvm.. just made another that works |
|
|
| Report Abuse |
|
|