Universal Script 📌
308 Views
159 Executions

walkspeed

Universal Script 📌
ramazan1337
ramazan1337Published 5
9 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

walkspeed

View Raw
local UserInputService = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local defaultSpeed = humanoid.WalkSpeed
local boostSpeed = 50 -- скорость при нажими клавиши
local speedChanged = false

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    
    if input.KeyCode == Enum.KeyCode.E then
        -- При нажатии клавиши E увеличиваем скорость
        humanoid.WalkSpeed = boostSpeed
        speedChanged = true
    end
end)

UserInputService.InputEnded:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    
    if input.KeyCode == Enum.KeyCode.E and speedChanged then
        -- При отпускании клавиши возвращаем стандартную скорость
        humanoid.WalkSpeed = defaultSpeed
        speedChanged = false
    end
end)


Comments

3
Log in to join the conversation. Login
Raikou's profile picture
Raikou9 months ago

nice

1
Bac0nH1ckOff's profile picture
Bac0nH1ckOffAdmin
Admin Badge
Admin
Verified Badge
Verified User
Hall of Fame9 months ago

w скрипт, теперь я очень быстрый

1
ramazan1337's profile picture
ramazan1337Uploader9 months ago

prees e to work

1