generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: GUI movement script isn't working

Previous Thread :: Next Thread 
PuNiShEr5665 is not online. PuNiShEr5665
Joined: 12 Aug 2009
Total Posts: 33713
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
SuperSniper222 is not online. SuperSniper222
Joined: 09 Jul 2010
Total Posts: 426
01 Mar 2014 12:59 PM
Well whats element.MouseButton1Click:connect(onClick) for?, Is that all the script or is there more?
Report Abuse
PuNiShEr5665 is not online. PuNiShEr5665
Joined: 12 Aug 2009
Total Posts: 33713
01 Mar 2014 01:00 PM
I saw that on the wiki
I guess it has no point then
Report Abuse
PuNiShEr5665 is not online. PuNiShEr5665
Joined: 12 Aug 2009
Total Posts: 33713
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
PuNiShEr5665 is not online. PuNiShEr5665
Joined: 12 Aug 2009
Total Posts: 33713
01 Mar 2014 01:46 PM
bump
Report Abuse
PuNiShEr5665 is not online. PuNiShEr5665
Joined: 12 Aug 2009
Total Posts: 33713
02 Mar 2014 01:05 PM
bump
Report Abuse
PuNiShEr5665 is not online. PuNiShEr5665
Joined: 12 Aug 2009
Total Posts: 33713
02 Mar 2014 04:10 PM
any help pls
Report Abuse
PuNiShEr5665 is not online. PuNiShEr5665
Joined: 12 Aug 2009
Total Posts: 33713
02 Mar 2014 04:30 PM
nvm..
just made another that works
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image