
1.1k Views
73.1k Executions
Speed Control
10K executions
Universal Script 📌
Ice_Elementar10K executions
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
Universal walkspeed By: Ice_TheElementar
Updates
Script edited: Update script
Script edited: Update script
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local Lighting = game:GetService("Lighting")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local defaultWalkSpeed = 16
local TWEEN_INFO = TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.Out)
local BLUR_SIZE = 24
local UI_HEIGHT = 155
local SpeedController = {}
SpeedController.__index = SpeedController
function SpeedController.new()
local self = setmetatable({}, SpeedController)
self.isEnabled = true
self.targetSpeed = defaultWalkSpeed
self.connection = nil
return self
end
function SpeedController:Start()
self.connection = RunService.RenderStepped:Connect(function()
if self.isEnabled and humanoid and humanoid.Parent then
if humanoid.WalkSpeed ~= self.targetSpeed then
humanoid.WalkSpeed = self.targetSpeed
end
end
end)
end
function SpeedController:SetSpeed(value)
self.targetSpeed = tonumber(value) or defaultWalkSpeed
end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!