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: Is CharacterAutoLoads (when set to false) broken?

Previous Thread :: Next Thread 
UndeleteTool is not online. UndeleteTool
Joined: 15 Mar 2012
Total Posts: 1851
26 Dec 2014 01:33 PM
So I keep trying to set my character to a morph, but whenever I do this it reloads after five seconds even with characterautoloads set to false. If I join a server with CAL disabled, it doesn't load me then, but if I change my Player's character property is resets. Does anyone know why it might not be working and whether there is a way to work around it?
Report Abuse
devTools is not online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
26 Dec 2014 01:34 PM
What's the script?


|| devTools | get out me mooms car | broom broom ||
Report Abuse
UndeleteTool is not online. UndeleteTool
Joined: 15 Mar 2012
Total Posts: 1851
26 Dec 2014 01:42 PM
--when a button in the gui is clicked
player=game.Players.LocalPlayer
morph=game.Lighting.Morph:Clone()
morph.Parent=Workspace morph:MakeJoints()
wait()
player.Character=morph
Report Abuse
Everment is not online. Everment
Joined: 08 Oct 2009
Total Posts: 6020
26 Dec 2014 01:45 PM
If CharacterAutoLoads is set to false then the game won't automatically spawn the player, _ever_. This includes when they join.

To fix this, you'll need to make use of PlayerAdded and call the player's `LoadPlayer` method once your PlayerAdded event fires.

You should also consider what happens when their character dies, as with CharacterAutoLoads set to false they won't respawn.
Report Abuse
UndeleteTool is not online. UndeleteTool
Joined: 15 Mar 2012
Total Posts: 1851
26 Dec 2014 01:51 PM
Ah thanks, the playeradded problem is now fixed. My other problem is, whenever I change the player's character it respawns again and the gui reloads.
Report Abuse
Everment is not online. Everment
Joined: 08 Oct 2009
Total Posts: 6020
26 Dec 2014 01:53 PM
StarterGui has this nice property named "ResetPlayerGuiOnSpawn" (or was it Respawn? it's a long property name, check the wiki if that property name doesn't work) which defaults to true. If you set it to false _on the client_ then their PlayerGui won't reset when the player respawns.
Report Abuse
UndeleteTool is not online. UndeleteTool
Joined: 15 Mar 2012
Total Posts: 1851
26 Dec 2014 02:13 PM
That was the right property, unfortunately disabling it (and I made a script to check) didn't work, but thanks anyway.
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