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: TWEEN PROBLEM: Scripts work in test solo, not online

Previous Thread :: Next Thread 
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
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 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
14 Jul 2014 06:46 AM
Tweening can only be done via local scripts.
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
14 Jul 2014 06:50 AM
It is in local script.

~I'm an Angry Llama~
Report Abuse
smiley599 is not online. 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
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
14 Jul 2014 07:07 AM
"Out", "Bounce", true, 1)
Try that.
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
14 Jul 2014 07:11 AM
No time is before override
Report Abuse
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
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
KiwiTronik is not online. KiwiTronik
Joined: 18 Feb 2010
Total Posts: 3221
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
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