|
| 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 |
|
|
|
| 12 Jul 2015 10:10 PM |
for i, v in pairs(game.Players:GetPlayers())do v:Kick() end |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 12 Jul 2015 10:12 PM |
| cody can you just not post on my threads overall? :) |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2015 10:13 PM |
@vacha i dont think humanoid is in player isnt that in workspace? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 12 Jul 2015 10:17 PM |
@vacha uh... where do i edit that in the script xd |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 12 Jul 2015 10:23 PM |
| thats a nice counter argument :) |
|
|
| Report Abuse |
|
|
|
| 12 Jul 2015 10:23 PM |
@vacha ill just remove the baseplate |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 12 Jul 2015 10:32 PM |
its called learning :) pls change your profile, as it is an absolute lie |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|