I have this script in server script service that changes the walk speed of my zombie team. I want my zombie team to have its own idle and walk animations specific to that team. How can I do this? I want to make it so if the zombie isn't moving, it plays the idle animation. When the zombie moves, it plays the walk animation. Please help!
Here's the script: local Players = game:GetService("Players") local Team = game:GetService("Teams")["Zombie"]
local function onCharacterAdded(character) local plr = Players:GetPlayerFromCharacter(character)
if plr.Team == Team then
character:WaitForChild("Humanoid").WalkSpeed = 11
end
end
local function onPlayerAdded(player)
if player.Character then
onCharacterAdded(player.Character)
end
player.CharacterAdded:Connect(onCharacterAdded)
end
Players.PlayerAdded:Connect(onPlayerAdded)

4 comments
This does nothing.
Is this a local script and does it go in serverscriptservice, or startercharacterscripts or maybe starterplayerscripts?
it's a normal script in serverscriptservice
if it still doesn't work i put a link below the code check it out