#different teams different abilities

13 messages · Page 1 of 1 (latest)

harsh venture
#

how do i make different teams have different walkspeed and hp

#

i cant

inner talon
#

This should work Script In ServerScriptService


local Players = game:GetService('Players')

local SpeedTable = {
  ['TeamA'] = {
    Health = 200,
    WalkSpeed = 50
  },
  ['TeamB'] = {
    Health = 1,
    WalkSpeed = 100
  },
}

Players.PlayerAdded:Connect(function(Player)
  Player.CharacterAdded:Connect(function(Character)
    local Humanoid = Character:WaitForChild('Humanoid')

    Humanoid.Health = SpeedTable[Player.Team.Name].Health
    Humanoid.WalkSpeed = SpeedTable[Player.Team.Name].WalkSpeed
  end)
end)
#

you can add more teams to SpeedTable

harsh venture
#

and health?

#

oh wait

#

im blind

#

@inner talon is "teama" and "teamb" the names of the teams?

inner talon
#

Yes

harsh venture
#

ok tysm

harsh venture
#

and/or have u got any like ability tools