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
|
  |
| 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
|
  |
| Joined: 21 May 2011 |
| Total Posts: 3222 |
|
| |
|
fartyburp
|
  |
| Joined: 21 May 2011 |
| Total Posts: 3222 |
|
| |
|
fartyburp
|
  |
| Joined: 21 May 2011 |
| Total Posts: 3222 |
|
| |
|
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 |
|
|