ScriptBlox is undergoing maintenance, so downtime is possible. Sorry for the inconvenience!
Universal Script 📌
638 Views

Speed Script Q Fast E slow

Universal Script 📌Uploaded by
4 months ago
Please login to perform these actions:

Description

local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local speed = 16 local minSpeed = 5 local maxSpeed = 300 local speedStep = 2 local holdingQ = false local holdingE = false local function updateSpeed() local char = player.Character if char and char:FindFirstChild("Humanoid") then char.Humanoid.WalkSpeed = speed end end player.CharacterAdded:Connect(function() task.wait(1) updateSpeed() end) UIS.InputBegan:Connect(function(input, gpe) if gpe then return end if input.KeyCode == Enum.KeyCode.Q then holdingQ = true elseif input.KeyCode == Enum.KeyCode.E then holdingE = true end end) UIS.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.Q then holdingQ = false elseif input.KeyCode == Enum.KeyCode.E then holdingE = false end end) RunService.RenderStepped:Connect(function() if holdingQ then speed = math.min(maxSpeed, speed + speedStep) updateSpeed() elseif holdingE then speed = math.max(minSpeed, speed - speedStep) updateSpeed() end end) -- İlk hız updateSpeed()

View Raw
Edited By: KnetixStudios Download


Comments
3
User profile picture
Joyful_PizzaPartyl 4 months ago
RunService.RenderStepped:Connect(function() if input.KeyCode == Enum.KeyCode.Q then speed = math.min(maxSpeed, speed + speedStep) updateSpeed() elseif input.KeyCode == Enum.KeyCode.Q then speed = math.max(minSpeed, speed - speedStep) updateSpeed() end end)
User profile picture
Joyful_PizzaPartyl 4 months ago
Wait You can reduce it so much
User profile picture
Please Login to add a comment.