Seeing as I have no idea what the team indexes are, you will have to fix the if conditions to suit your need.
hook.Add( “PlayerSpawn”, “CauseLookingThingsUpIsHard”, function( ply )
– First argument is the name of the thing you’re hooking into. When a player spawns.
– Second argument is the identifier, in case you want the hook during runtime.
– This (the function in which these comments are) is the function that gets called
if ( ply:Team() == TEAM_DEATH ) then -- If the player's team is death, then
ply:SetWalkSpeed( 500 ) -- Set their walk speed
elseif ( ply:Team() == TEAM_RUNNER ) then -- If not, if the player's team is runner, then
ply:SetWalkSpeed( 400 ) -- You get the idea
Your challenge is now to change the run speed.
Player:SetRunSpeed. Use the code above to guide you.