Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make kill brick that kill others team?

Im Try To Search but its Failed Can Someone Answer My Question?

script.Parent.Touched:Connect(function(hit)
    local user = game.Players:GetPlayerFromCharacter(hit.Parent)
    user.Team = game:GetService('Teams'):FindFirstChild('Team')
    user.Character.Humanoid.Health = 0
end)

1 comment

0

You’ll never find what you desire if you ask for it whole. Your work needs to be of your effort, so try to look up the necessities required to make this work piece by piece, and try to plug it all together.

2 answers

You would need to check a players team and if its not the right team kill them. As this site it supposed to be to help you fix scripts take a shot at it and if you can't figure out whats wrong with it post the script and we will be able to help you fix it.

This discussion is preserved as it was. New answers, comments, and votes are closed.