|
| 14 Jul 2014 06:45 AM |
GUI = script.Parent script.Parent:FindFirstChild("Framee").MouseEnter:connect(function() GUI:TweenPosition(UDim2.new(0, 0,0, 290), "Out", "Bounce", 1, true) end)
script.Parent:FindFirstChild("Framee").MouseLeave:connect(function() GUI:TweenPosition(UDim2.new(0, -157,0, 290), "Out", "Bounce", 1, true) end)
GUI.MouseEnter:connect(function() GUI:TweenPosition(UDim2.new(0, 0,0, 290), "Out", "Bounce", 1, true) end)
GUI.MouseLeave:connect(function() GUI:TweenPosition(UDim2.new(0, -157,0, 290), "Out", "Bounce", 1, true) end)
Thing is i get an error of "attempt to index nil value" online, works perfectly test solo.
~I'm an Angry Llama~ |
|
|
| Report Abuse |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 14 Jul 2014 06:46 AM |
| Tweening can only be done via local scripts. |
|
|
| Report Abuse |
|
|
| 14 Jul 2014 06:50 AM |
It is in local script.
~I'm an Angry Llama~ |
|
|
| Report Abuse |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 14 Jul 2014 06:59 AM |
What's the full error (line number too)?
And you should be using scale not offset |
|
|
| Report Abuse |
|
|
| 14 Jul 2014 07:07 AM |
"Out", "Bounce", true, 1) Try that. |
|
|
| Report Abuse |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 14 Jul 2014 07:11 AM |
| No time is before override |
|
|
| Report Abuse |
|
|
| 14 Jul 2014 07:19 AM |
Line number 2, yes.
when i hade remove find first child (script.Parent.Framee.MouseLeave)
I had an error saying Framee is not a valid member of image button. I'll try wait for child first, and see if anything happens.
~I'm an Angry Llama~ |
|
|
| Report Abuse |
|
|
| 14 Jul 2014 07:23 AM |
Sweet :waitforchild fixed it. Thanks for the help anyway! I will be having scale in the future
~I'm an Angry Llama~ |
|
|
| Report Abuse |
|