Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

i want to make a linked life :c help?

Asked by 3 years ago

I want that if one player dies the other also at the same time , what some one help me

0
Died event, when it fires, kill the other player. kepiblop 124 — 3y
0
ImDragon, keep in mind this isn't a request site. This is a "help improve or fix my script" site. So you're supposed to at least try and solve the problem yourself. NGC4637 602 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
local player1 = -- insert player1
local player2 = -- insert player2
-- local player3 = player3 optional
player1.Humanoid.Died:Connect(function()
    player2.Humanoid.Health = 0
    -- player3.Humanoid.Health = 0
end)
player2.Humanoid.Died:Connect(function()
    player1.Humanoid.Health = 0
    -- player3.Humanoid.Health = 0
end)
--[[ player3.Humanoid.Died:Connect(function()
    player1.Humanoid.Health = 0
    player2.Humanoid.Health = 0
end) ]]

hope that helps

Ad

Answer this question