|
| 19 Jun 2014 12:32 PM |
It broke with some update, I think. It's probably really stupid, but someone please enlighten me. It's supposed to just move the GUI's when the player jumps.
------------------------------------------------------- game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(prop) if (prop=="Jump") then if game.Players.LocalPlayer.Character.Humanoid.Jump==true then script.Parent["topGUI"]:TweenPosition(UDim2.new(0,0,0,-15), "Out", "Sine", .4, true) script.Parent["bottomGUI"]:TweenPosition(UDim2.new(0,0,0,15), "Out", "Sine", .4, true) else script.Parent["topGUI"]:TweenPosition(UDim2.new(0,0,0,0), "Out", "Quad", .6, true) script.Parent["bottomGUI"]:TweenPosition(UDim2.new(0,0,0,0), "Out", "Quad", .6, true) end end end)
|
|
|
| Report Abuse |
|
Sprinted
|
  |
| Joined: 17 Apr 2013 |
| Total Posts: 89 |
|
|
| 19 Jun 2014 12:35 PM |
where are you putting the LocalScript? put it in the character/backpack |
|
|
| Report Abuse |
|
|
| 19 Jun 2014 12:37 PM |
The character doesn't load instantly
Workspace:WaitForChild(game.Players.LocalPlayer.Name):WaitForChild("Humanoid")
Put that at the top |
|
|
| Report Abuse |
|
|
| 19 Jun 2014 12:37 PM |
| I have it inside a main GUI, and it moves some frames. And that GUI happens to be in "StarterGui". Is that a no-no? :c |
|
|
| Report Abuse |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 19 Jun 2014 12:37 PM |
| This does have to be a Local Script. |
|
|
| Report Abuse |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 19 Jun 2014 12:38 PM |
| That sounds fine as long as the script is local. Objects in the StarterGui get cloned and put into each player's backpack once they join. |
|
|
| Report Abuse |
|
|
| 19 Jun 2014 12:41 PM |
| That wait for Character helped out a ton. Thank you all very much for taking the time to respond. I've got a few others I have to use that on now as well. |
|
|
| Report Abuse |
|