|
| 05 Jan 2014 10:16 AM |
| when a zombie kills you, you get kicked fromt the game? |
|
|
| Report Abuse |
|
|
c00l43v3r
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 4968 |
|
|
| 05 Jan 2014 10:17 AM |
Why do you want this?
-Guests r luv. Guests r lief- |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
duckwit
|
  |
| Joined: 08 Aug 2008 |
| Total Posts: 1310 |
|
|
| 05 Jan 2014 10:31 AM |
Look into the "Kick()" function on the Roblox Wiki. The following code is pseudo code and should be checked for typos and or syntactical mistakes before use.
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) repeat wait() until character:FindFirstChild("Humanoid") character.Humanoid.Died:connect(function() --Kick function here end) end) end) |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2014 10:49 AM |
function OnTouched (hit) h = hit.Parent:findFirstChild ("Humanoid") if h~=nil then char = hit.Parent P = GetPlayerFromCharacter (char) P:Destroy () end script.Parent.Touched:connect (OnTouched)
Should work :D |
|
|
| Report Abuse |
|
|