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
 

Gui Tween Is Not Working

Previous Thread :: Next Thread 
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
27 Nov 2013 01:32 PM
I have this script as a child of a frame:
script.Parent:TweenPosition(UDim2.new(0, 550, 0, 175)), "Out", "Linear", 1, true)

But when I press play the script does nothing no error output either.

However when I put the script into the command bar and change it to this it works:
game.StarterGui.ScreenGui.Frame:TweenPosition(UDim2.new(0, 550, 0, 400), "Out", "Linear", 1, true)

So I tried replacing the first script with the second and it doesn't work.
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
27 Nov 2013 01:33 PM
Oops typo the first script looks like this(Still doesn't work)
script.Parent:TweenPosition(UDim2.new(0, 550, 0, 175), "Out", "Linear", 1, true)
Report Abuse
Quorum is not online. Quorum
Joined: 25 Oct 2013
Total Posts: 4680
27 Nov 2013 01:36 PM
You do realise that scripts don't run in the 'StarterGui' service, right? Meaning that, no matter how many times you pressed play, you wouldn't see any visible change from studio.
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
27 Nov 2013 01:40 PM
So I have to be ingame to see it?
Report Abuse
Quorum is not online. Quorum
Joined: 25 Oct 2013
Total Posts: 4680
27 Nov 2013 01:40 PM
Tools -> Test -> Play Solo
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
27 Nov 2013 01:42 PM
Yep tried it and it is now working thanks
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