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
 

Setting players' character

Previous Thread :: Next Thread 
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
19 Mar 2015 09:00 AM
I want to set the players' character to a model. The model has limbs (head, torso, arms, legs), a Humanoid, and a HumanoidRootPart.

When I try to set the players' character to this model, it kinda-sorta works. However, instead of being able to control it, the character just floats in the air, the falling animation playing and all. After a few seconds, the character disappears and the player respawns.

All this is done from a localScript with filteringEnabled.
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
19 Mar 2015 10:02 AM
Alright. It didn't work because I tried to set properties of the player/character from a localscript with filteringEnabled. It now works in servers too, but only the first time the player spawns. Do you have any idea why this is?
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
19 Mar 2015 10:05 AM
Needs to be done from the server

also make sure to disable players.CharacterAutoLoads

⬡
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
19 Mar 2015 10:09 AM
Why should I set characerautoloads to false?
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
19 Mar 2015 10:09 AM
If the character autoloads, then the player will respawn every time the character changes

⬡
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
19 Mar 2015 10:15 AM
Oh, ok. That's not a problem at the moment, since I've found a workaround where I don't change the character. Also, I've "solved" the problem.

Every time a player spawns, a localscript is put in their playergui.

I put a wait(1) before adding that localscript to the playergui. That solved it. If you want to help me further, I've already made a post regarding this. Here it is:

http://www.roblox.com/Forum/ShowPost.aspx?PostID=158189124
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