Universal Script 📌
1.2k Views
15.3k Executions

speed script

10K executions
Universal Script 📌
mattpatt
mattpattChart topper
7 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

idk

View Raw
-- LocalScript inside StarterPlayerScripts
-- Get the local player and their character
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
-- Movement settings
local speed = 16 -- studs per second
local run = true -- toggle movement
-- Move forward every frame
game:GetService("RunService").RenderStepped:Connect(function(deltaTime)
    if run and humanoidRootPart then
        -- Move forward relative to the character's facing direction
        humanoidRootPart.CFrame = humanoidRootPart.CFrame * CFrame.new(0, 0, -speed * deltaTime)
    end
end)
-- Example: toggle movement with the "C" key
local userInputService = game:GetService("UserInputService")
userInputService.InputBegan:Connect(function(input, gameProcessed)
    if not gameProcessed and input.KeyCode == Enum.KeyCode.C then
        run = not run
    end
end)


Comments

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

More universal scripts

See all
Script hub
178.8k
1.7M
Bumped 3 hours ago
Key System
Universal Script 📌
9.1k
31.7k
Bumped 4 hours ago
Script hub
49.8k
12.4k
Bumped 5 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 10 hours ago
Key System
Script hub
20.6k
4.0k
Bumped 10 hours ago
Key System
Paid
Universal Script 📌
744
221
Approved 16 hours ago
Universal Script 📌
647
2.7k
Approved 16 hours ago