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: LocalScript works in PlaySolo, won't work in a real server

Previous Thread :: Next Thread 
LordMaleden is not online. LordMaleden
Joined: 22 Dec 2010
Total Posts: 767
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 is not online. 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
islandmaker2012 is online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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
LordMaleden is not online. LordMaleden
Joined: 22 Dec 2010
Total Posts: 767
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 is not online. 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 is not online. 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
LordMaleden is not online. LordMaleden
Joined: 22 Dec 2010
Total Posts: 767
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
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