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 » Scripters
Home Search
 

Re: Easy GUI script not working! [Beginner!]

Previous Thread :: Next Thread 
fartyburp is not online. fartyburp
Joined: 21 May 2011
Total Posts: 3222
18 Jun 2015 03:43 PM
Im new to scripting & trying to make an intro GUI and then try different things off it.

>PROBLEM
Just teleports the GUI to the top left corner of the screen

>WHAT I WANT TO HAPPEN
the gui hovered over moves +10 up, so it looks smoother

>NOTES
The Gui I want moved is at {0, 210},{0, 100}


>SCRIPT...

script.Parent.MouseEnter:connect(function()
wait()
script.Parent.Position = UDim2.new{0, 210},{0, 100}
end)

script.Parent.MouseLeave:connect(function()
wait()
script.Parent.Position = UDim2.new{0, 210},{0, 100}
end)




Thanks in advance! :D
Report Abuse
fartyburp is not online. fartyburp
Joined: 21 May 2011
Total Posts: 3222
18 Jun 2015 03:44 PM
woops!
on the MouseEnter part, its supposed to read

{0, 220},{0, 100}
Report Abuse
fartyburp is not online. fartyburp
Joined: 21 May 2011
Total Posts: 3222
18 Jun 2015 03:50 PM
B1
Report Abuse
fartyburp is not online. fartyburp
Joined: 21 May 2011
Total Posts: 3222
18 Jun 2015 03:58 PM
B2
Report Abuse
fartyburp is not online. fartyburp
Joined: 21 May 2011
Total Posts: 3222
18 Jun 2015 04:16 PM
B3
Report Abuse
Skriptten is not online. Skriptten
Joined: 27 Sep 2010
Total Posts: 244
18 Jun 2015 04:25 PM
I'm a scripting amateur so take this with a grain of salt.

script.Parent.MouseEnter:connect(function()
script.Parent.Position = UDim2.new(0, 220, 0, 100)
end)

script.Parent.MouseLeave:connect(function()
script.Parent.Position = UDim2.new(0, 210, 0, 100)
end)

This should work, not quite sure if it matters whither it was {},{} or ()
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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