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
|
  |
| Joined: 20 Mar 2012 |
| Total Posts: 9305 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 20 Mar 2012 |
| Total Posts: 9305 |
|
| |
|
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
|
  |
| 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 |
|
|