Universal Script 📌
566 Views
3.4k Executions

speed undectected

Universal Script 📌
elchapo101019
elchapo10101910K executions
8 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

undetected in games omd

View Raw
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")

local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local humanoid = char:WaitForChild("Humanoid")

-- speed
local walkSpeed = 5
local runSpeed = 20 
local currentSpeed = walkSpeed


local running = false

UserInputService.InputBegan:Connect(function(input, gpe)
    if gpe then return end
    if input.KeyCode == Enum.KeyCode.LeftShift then
        running = true
        currentSpeed = runSpeed
    end
end)

UserInputService.InputEnded:Connect(function(input, gpe)
    if input.KeyCode == Enum.KeyCode.LeftShift then
        running = false
        currentSpeed = walkSpeed
    end
end)


RunService.RenderStepped:Connect(function(dt)
    local moveDir = humanoid.MoveDirection
    if moveDir.Magnitude > 0 then
        
        hrp.CFrame = hrp.CFrame + (moveDir * currentSpeed * dt)
    end
end)


Comments

1
Log in to join the conversation. Login
XYunsi's profile picture
XYunsi8 months ago

detected

1

More universal scripts

See all
Universal Script 📌
13
1
Approved 9 minutes ago
Universal Script 📌
22
4
Approved 24 minutes ago
Universal Script 📌
33
6
Approved 35 minutes ago
Script hub
85.7k
341.3k
Bumped 2 hours ago
Key System
Script hub
53.6k
14.5k
Bumped 3 hours ago
Key System
Paid