|
| 23 Aug 2013 01:07 PM |
for j, v in pairs(game.Players:GetPlayers()) do pcall(function() v.Character.Torso:remove() end) end script.Parent:remove()
Basically it removes your Torso once on entering. Problem is that it only works in test mode. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
sycips
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1368 |
|
|
| 24 Aug 2013 06:21 AM |
You already said it yourself:'On Entered'. That means that you'll need the event .PlayerAdded! I will give you the script, if you want to make upgrades to the script, you can do that yourself:
Game.Players.PlayerAdded:connect(function(player) --keep in mind that the event .PlayerAdded doesn't work in solo mode! Try using it by starting a server or putting it online! player.CharacterAdded:wait() --waits for the character to be loaded local torso = player.Character:WaitForChild("Torso")--waits for the torso to be a member of the character (just to make sure that the script won't crash) torso:remove() -- parents the torso to nil, you could also use :Destroy() if you like that better... end)
btw, I don't really understand why you remove the torso... Do you want to kill the player when it joins? because then you could also make it's health 0 or break all it's joints... |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 08:20 AM |
It's just so that the player loads a little better. Plus, there's a glitch sometimes when they move off the spawn. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 08:32 AM |
Is this better..? (I'm not very good with this kind of scripting)
Game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:wait() local Humanoid = player.Character:WaitForChild("Humanoid") Humanoid.Health = 0 end) script.Parent:Destroy()
|
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 08:37 AM |
Well that's interesting. I got it to work better than I wanted it to. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 08:39 AM |
| Nevermind... It's crashing... |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2013 08:46 AM |
| Nevermind, fixed. Closed. Done. :P |
|
|
| Report Abuse |
|
|
sycips
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1368 |
|
|
| 24 Aug 2013 09:44 AM |
| Haha, good that you fixed it yourself :) |
|
|
| Report Abuse |
|
|
| |
|