Hi! I’m a really new scripter and I was wondering how to make it so you could make a kill brick that kills one team, but not another team.
1 Like
Make a regular script and put this inside it.
local brick = script.Parent
brick.Touched:Connect(function(part)
local hum = part.Parent:FindFirstChild("Humanoid")
if hum then
local character = part.Parent
local player= game.Players:GetPlayerFromCharacter(character)
if player and player.Team == game:GetService("Teams")["YOUR TEAM NAME"] then
hum.Health = 0
end
end
end)
Hope this helps
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.