|
| 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 |
|
|
|
| 30 Jun 2016 12:44 AM |
bumpppppppppppp Also the script is a local script.
23,822 |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 30 Jun 2016 12:50 AM |
theres no difference m8
23,822 |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2016 12:51 AM |
Oh okay lemme try that
23,822 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 30 Jun 2016 12:59 AM |
i changed startergui to FindFirstChild
23,824 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 30 Jun 2016 01:00 AM |
Pic of the script plus explorer: https://www.dropbox.com/home?preview=scriptwontwork.PNG
23,825 |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2016 01:01 AM |
Crap, i gave a link Please dont ban me mods ;-;
23,825 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 30 Jun 2016 01:03 AM |
Still didn't work Gonna check the explorer again sorry
23,825 |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|
|
| 30 Jun 2016 01:15 AM |
Great, right after im pretty sure i fixed it, studio CRASHED. Perfect
23,827 |
|
|
| Report Abuse |
|
|