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: how do you remove a character again

Previous Thread :: Next Thread 
Skyman772 is not online. Skyman772
Joined: 20 Mar 2012
Total Posts: 9305
29 Jul 2015 05:06 PM
i feel really dumb but i just can't get it to work

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:wait()
player.Character = nil
end)
Report Abuse
Skyman772 is not online. Skyman772
Joined: 20 Mar 2012
Total Posts: 9305
29 Jul 2015 05:07 PM
b
Report Abuse
VineyardVine is not online. VineyardVine
Joined: 20 Nov 2010
Total Posts: 904
29 Jul 2015 05:09 PM
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
char.Parent = nil
end)
end)
Report Abuse
Skyman772 is not online. Skyman772
Joined: 20 Mar 2012
Total Posts: 9305
29 Jul 2015 05:14 PM
didn't work

game.Players.PlayerAdded:connect(function(player)
local IntroGui = script:WaitForChild("IntroGui")
IntroGui:Clone().Parent = player.PlayerGui
player.CharacterAdded:connect(function(character)
character.Parent = nil
end)
end)

that's my full code

IntroGui is 100% there, that isn't the issue
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
29 Jul 2015 05:16 PM
why won't you just set CharacterAutoLoads to false in players, and load the character with player:LoadCharacter() when the gui is done?
Report Abuse
Skyman772 is not online. Skyman772
Joined: 20 Mar 2012
Total Posts: 9305
29 Jul 2015 05:17 PM
that actually works now?
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
29 Jul 2015 05:18 PM
yeah, it has always worked (at least as far as i know).. you just can't call :LoadCharacter() from a local script, and you would have to probably make your own script that would handle when players die. but when used right, you can make a much more flexible respawning system.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
29 Jul 2015 05:18 PM
no no no no.

Handle the character client sided.

local player = game.Players.LocalPlayer
repeat wait() until player.Character
player.Character = nil


"Talk is cheap. Show me the code." - Linus Torvalds
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