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: i need a kill script for every1 in server

Previous Thread :: Next Thread 
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:10 PM
so im making this game, and now i need a kill script
or a respawn script for everyone

can anyone quickly script that for me pls? :D
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
12 Jul 2015 10:10 PM

for i, v in pairs(game.Players:GetPlayers())do
v:Kick()
end
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:12 PM
^im not stupid k
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
12 Jul 2015 10:12 PM
local kill = function(PlayerTab) --define the function
for k,v in pairs(PlayerTab) do
local hum = v:FindFirstChild("Humanoid")
if hum then
hum.Health = 0
end
end
end
kill(game.Players:GetPlayers()) --call the function

That should do the trick
while true do the do
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:12 PM
cody can you just not post on my threads overall? :)
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:13 PM
@vacha
i dont think humanoid is in player
isnt that in workspace?
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
12 Jul 2015 10:13 PM
Could you leave the forum?

I'm surprised you are not being bombarded with "Get out no requests"
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
12 Jul 2015 10:14 PM
My bad, player.Character:FindFirstChild....

while true do the do
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:15 PM
"Helping others : ★★★★★ "
didnt know it was april fools

i honestly hate people like you
srsly a few things here and there i dont know how to do and you come in with your vulgar manner causing nothing but disgust

srsly, get out of my threads :)
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:17 PM
@vacha
uh...
where do i edit that in the script xd
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
12 Jul 2015 10:18 PM
You misunderstand what helping is.

Helping is not giving.

I help people learn and advance on the knowledge. I don't do freebies and I sure as hell am not in the wrong here.
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
12 Jul 2015 10:18 PM
whereever you figured
"i dont think humanoid is in player"

while true do the do
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:20 PM
>doesnt consider a simple script helping
k im done xd

besides, even if you dont do freebies then dont bother posting instead of putting illogical things that you know will only cause conflicts.

and ye, you are in the wrong here, your ego is just too big to let you think clearly
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:20 PM
kill(game.Players:GetPlayers())

that's where i noted it, and im positive i dont make the change there
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
12 Jul 2015 10:21 PM
"and ye, you are in the wrong here, your ego is just too big to let you think clearly"
You don't even know.

Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:23 PM
thats a nice counter argument :)
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:23 PM
@vacha
ill just remove the baseplate
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
12 Jul 2015 10:26 PM
What the little thing I posted above takes in a table of players and kills everyone passed in through the table.


while true do the do
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
12 Jul 2015 10:31 PM
@vacha
OP doesn't understand how to put calls in place. You have to do it for OP
Report Abuse
sharpblaze2 is not online. sharpblaze2
Joined: 22 Aug 2010
Total Posts: 19195
12 Jul 2015 10:32 PM
its called learning :)
pls change your profile, as it is an absolute lie
Report Abuse
AstroCode is not online. AstroCode
Joined: 09 Oct 2009
Total Posts: 1122
12 Jul 2015 10:32 PM
for i, v in pairs(game.Players:GetChildren()) do
v:LoadCharacter()
end
Report Abuse
FainteBlade is not online. FainteBlade
Joined: 26 Jun 2014
Total Posts: 10
12 Jul 2015 10:39 PM
swag
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
12 Jul 2015 11:39 PM
function kill()
numplayers = game.Players:GetChildren()
for x = 1, #numplayers do
local name = numplayers[x].Name
char = workspace:FindFirstChild(name)
char:Destroy()
end
end

function respawn()
numplayers = game.Players:GetChildren()
for x = 1, #numplayers do
local plr = numplayers[x]
plr:LoadCharacter()
end
end

Found this script helpful? If so then join JayChain Studios! if you are a skilled Builder or Scripter then Send a join request to the group and send me an example of your work whether its a script or a model if you meet or exceed my standards then you may join the group and assist in the development of our games! JayChain Studios: http://www.roblox.com/My/Groups.aspx?gid=2621123
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
12 Jul 2015 11:39 PM
v.Character


in the function add that
or just loadcharacter which is faster.
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