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: where do i get

Previous Thread :: Next Thread 
GeneralJavert is not online. GeneralJavert
Joined: 04 Aug 2013
Total Posts: 338
05 Jan 2014 10:16 AM
when a zombie kills you, you get kicked fromt the game?
Report Abuse
c00l43v3r is not online. 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
Aerospaceman is not online. Aerospaceman
Joined: 05 Mar 2011
Total Posts: 9881
05 Jan 2014 10:17 AM
You script it.
Report Abuse
GeneralJavert is not online. GeneralJavert
Joined: 04 Aug 2013
Total Posts: 338
05 Jan 2014 10:18 AM
cuz i ned it
Report Abuse
Aerospaceman is not online. Aerospaceman
Joined: 05 Mar 2011
Total Posts: 9881
05 Jan 2014 10:22 AM
Then script it.
Report Abuse
XxminijokerXx is not online. XxminijokerXx
Joined: 13 Nov 2011
Total Posts: 10321
05 Jan 2014 10:23 AM
[ Content Deleted ]
Report Abuse
duckwit is not online. 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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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
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