How to make a Player Increase Speed Every Second in Roblox Studio | Tutorial

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 1

  • @exoxrs
    @exoxrs  2 месяца назад +1

    ~Scripts~
    game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
    Character.Humanoid.WalkSpeed = 0 -- This sets the players walkspeed to 0 when the player first joins the game
    end)
    end)
    while true do
    wait(1) -- This makes it be every second
    for _, player in pairs(game.Players:GetPlayers()) do
    if player.Character then
    player.Character.Humanoid.WalkSpeed += 1 -- This is how much the Walkspeed will increase every second
    end
    end
    end