Universal Script πŸ“Œ
1.1k Views
77.6k Executions

Speed Control

10K executions
Universal Script πŸ“Œ
Ice_Elementar
Ice_Elementar10K executions
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

Universal walkspeed By: Ice_TheElementar

Updates

  1. Script edited: Update script

  2. Script edited: Update script

View Raw
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

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
130
978
Bumped 18 minutes ago

Script hub

Lunyx Hub

Script hub
120.8k
221.1k
Bumped 36 minutes ago
Key System
Script hub
10.5k
200.3k
Bumped 55 minutes ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.2k
298.5k
Bumped 4 hours ago
Script hub
23.7k
5.2k
Bumped 4 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
300
780
Bumped 4 hours ago