I need help with a script I made. The script I made makes a part welded to the people in the killer team. Its working but I want it to work for people who change from another team to killer team. If you dont understand what im saying, just check the script
local kb = game.ReplicatedStorage.KillBrick:Clone()
local killerteam = game:GetService(“Teams”)[“Killer”]
wait(3)
game.Players.PlayerAdded:Connect(function(player)
if (player.TeamColor == killerteam.TeamColor) then
local character = player.Character or player.CharacterAdded:Wait()
kb.Parent = character
local weld = Instance.new("WeldConstraint")
weld.Parent = character
weld.Part0 = kb
weld.Part1 = character.HumanoidRootPart
kb.Position = character.HumanoidRootPart.Position
kb.IsInUse.Value = true
elseif player.TeamColor ~= killerteam.TeamColor then print(“Not in Killer Team”)
end
end)