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: Remove character

Previous Thread :: Next Thread 
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
25 Jul 2013 01:36 PM
How would I remove the character?




Players.Player.Character:remove()



Would that work?
Report Abuse
RoyStanford is not online. RoyStanford
Joined: 21 Oct 2008
Total Posts: 2222
25 Jul 2013 01:38 PM
I'm not sure, I suggest removing the parts inside the character
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
25 Jul 2013 01:40 PM
Don't do Roy's idea, because once you remove the head or torso your character dies.

Player.Character.Parent = nil

That's what I would do. Or set it to Lighting, which doesn't necessarily removes their character but makes them inactive
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
25 Jul 2013 01:40 PM
Use :Destroy() for best results.

Workspace.Character:Destroy()
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
25 Jul 2013 01:41 PM
What I want to do is make a 'play' gui that when you click it, it will spawn you. But without loading your character it can't load the gui, so I need a way to remove the character so that the gui comes up
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
25 Jul 2013 01:45 PM
@miz how would I make there character be in lighting? Cause if I use that idea when they click the gui button I want them to spawn
Report Abuse
HorrifyingInstance is not online. HorrifyingInstance
Joined: 10 Jul 2013
Total Posts: 568
25 Jul 2013 01:46 PM
game.Players.LocalPlayer.Character:destroy()
That's all there is to it.
Report Abuse
brandon58590 is not online. brandon58590
Joined: 08 Mar 2008
Total Posts: 996
25 Jul 2013 03:17 PM
All you have to do is set the character's parent to Lighting then set its parent back to workspace when you need it to spawn.

If you put the character into lighting though the animation script breaks so you'll need to make the script run again by toggling the disabled property to true then to false in order to reset the script.
Report Abuse
IAmReallyAwesome is not online. IAmReallyAwesome
Joined: 05 Mar 2010
Total Posts: 7371
25 Jul 2013 03:25 PM
game.Players.LocalPlayer.Character:LoadCharacter()

-That SHOULD work.

*Tell me about the rabbits, George*
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