
308 Views
159 Executions
walkspeed
Universal Script 📌
ramazan1337Published 5
9 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
walkspeed
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)






nice
w скрипт, теперь я очень быстрый
prees e to work