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: Simple tweening script wont work

Previous Thread :: Next Thread 
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 12:42 AM
Im trying to tween 'GUI', but this wont work, tried changing positioning, nope, and the variables are perfect.

Script:
local StarterGui = game:WaitForChild("StarterGui")
local ScreenGui1 = StarterGui:WaitForChild("Youtube")
local GUI = ScreenGui1:WaitForChild("Background")
local ScreenGui2 = StarterGui:WaitForChild("ScreenGuia")
local OpenorClose = ScreenGui2:WaitForChild("OpenandClose")

OpenorClose.MouseButton1Click:connect(function()
GUI:Tweenposition(UDim2.new(0.5, -200,0.5, -150), 'Out', 'Bounce', 1)
end)


23,822
Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 12:44 AM
bumpppppppppppp
Also the script is a local script.


23,822
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
30 Jun 2016 12:45 AM
OpenorClose.MouseButton1Click:connect(function()
GUI:TweenPosition(UDim2.new(0.5, -200,0.5, -150), 'Out', 'Bounce', 1, true)
end)


Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 12:46 AM
bumpetybump


23,822
Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 12:47 AM
Tried both of the changes, adding true and making P uppercase

Still didnt work


23,823
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
30 Jun 2016 12:47 AM
OpenorClose.MouseButton1Click:connect(function()
GUI:TweenPosition(UDim2.new(0.5, -200,0.5, -150), 'Out', 'Bounce', 1, true)
end)

[2]


Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
30 Jun 2016 12:48 AM
local StarterGui = game:WaitForChild("StarterGui")
local ScreenGui1 = StarterGui:WaitForChild("Youtube")
local GUI = ScreenGui1:WaitForChild("Background")
local ScreenGui2 = StarterGui:WaitForChild("ScreenGuia")
local OpenorClose = ScreenGui2:WaitForChild("OpenandClose")

One of these variables isn't loading for workspace. I'd suggest not waiting for StarterGui.


Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 12:50 AM
theres no difference m8


23,822
Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 12:51 AM
Oh okay lemme try that


23,822
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
30 Jun 2016 12:52 AM
Try printing something before the function then. If the print don't show, then it's not the function that is incorrect.


Report Abuse
HeIIoISteaIUsernames is not online. HeIIoISteaIUsernames
Joined: 26 Oct 2012
Total Posts: 2906
30 Jun 2016 12:53 AM
@Lem0n

i dont think you need to add in true at the end of TweenPosition

i just do the thing without the true in it




i steal usernames, any user who talks to me is the username i stole
Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 12:57 AM
Didn't work, and the printing didn't show
So it's in the variables
I don't see any possible fixes now though


23,824
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
30 Jun 2016 12:58 AM
@Hello, I didn't claim that it was the answer to the problem. I fixed his error, by typing 'TweenPosition', and I believe since it's a function call, it would be incorrect mistyping it to tweenposition, or Tweenposition. Correct me if I'm wrong.

Also, I think his problem is his arrogance over his variables. The :WaitForChild() if nothing shows, then it will constantly wait til it happens causing it to never end.


Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 12:59 AM
i changed startergui to FindFirstChild


23,824
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
30 Jun 2016 12:59 AM
local StarterGui = game.StarterGui
local ScreenGui1 = StarterGui.Youtube
local GUI = ScreenGui1.Background
local ScreenGui2 = StarterGui.ScreenGuia
local OpenorClose = ScreenGui2.OpenandClose

Done.


Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 01:00 AM
Pic of the script plus explorer:
https://www.dropbox.com/home?preview=scriptwontwork.PNG


23,825
Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 01:01 AM
Crap, i gave a link
Please dont ban me mods ;-;


23,825
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
30 Jun 2016 01:02 AM
repeat wait() until game.Players.LocalPlayer.Character
local StarterGui = game.StarterGui
local ScreenGui1 = StarterGui.Youtube
local GUI = ScreenGui1.Background
local ScreenGui2 = StarterGui.ScreenGuia
local OpenorClose = ScreenGui2.OpenandClose


Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 01:03 AM
Still didn't work
Gonna check the explorer again
sorry


23,825
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
30 Jun 2016 01:04 AM
repeat wait() until game.Players.LocalPlayer.Character
local StarterGui = game.StarterGui
local ScreenGui1 = StarterGui.Youtube
local GUI = ScreenGui1.Background
local ScreenGui2 = StarterGui.ScreenGuia
local OpenorClose = ScreenGui2.OpenandClose


If that didn't work, the problem is that your variables aren't correct. Check the OutPut ingame, by pressing shift f9.


Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 01:10 AM
only error is there's no end at 11

And there is an end


23,827
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
30 Jun 2016 01:12 AM
OpenorClose.MouseButton1Click:connect(function()
GUI:TweenPosition(UDim2.new(0.5, -200,0.5, -150), 'Out', 'Bounce', 1, true))
end)

forgot to add a ')'


Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
30 Jun 2016 01:13 AM
Wait never mind, I don't get what your problem is.


Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 01:13 AM
still wont work
;-;


23,827
Report Abuse
Clubberoni is not online. Clubberoni
Joined: 30 Jul 2013
Total Posts: 1406
30 Jun 2016 01:15 AM
Great, right after im pretty sure i fixed it, studio CRASHED.
Perfect


23,827
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