Universal Script 📌
309 Views
176 Executions

walkspeed

Universal Script 📌
ramazan1337
ramazan1337Published 5
10 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
Raikou10 months ago

nice

1
Bac0nH1ckOff's profile picture
Bac0nH1ckOffAdmin
Admin Badge
Admin
OG
OG: invite only, given by Thunder Mods
Verified Badge
Verified User
Hall of Fame10 months ago

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

1
ramazan1337's profile picture
ramazan1337Uploader10 months ago

prees e to work

1

More universal scripts

See all
Universal Script 📌
1.3M
591.3k
Bumped 59 minutes ago
Script hub
2.5k
19.4k
Bumped 2 hours ago
Universal Script 📌
250
104
Approved 3 hours ago
Universal Script 📌
60
268
Approved 4 hours ago
Universal Script 📌
81
50
Approved 4 hours ago
Script hub
98
226
Approved 5 hours ago
Key System