local Players = game:GetService("Players")
local humSpeed = 15
local zomSpeed = 20
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
Character:WaitForChild("Humanoid").Died:Connect(function()
print(Players.Team.Name)
if Players.Team.Name == "zombie" then
Character:WaitForChild("Humanoid").WalkSpeed = zomSpeed
else
Character:WaitForChild("Humanoid").WalkSpeed = humSpeed
end
end)
When a players dies it checks for the team if he goes to that team then his walkspeed is that team's walkspeed.
I have a script for when a player dies it changes to the opposite team.
The output didnt give any errors.
Please help! Thanks in advance!

2 comments
Try using the brickcolor thing
If the humanoid dies, It'll reset the local script lol