Universal Script 📌
974 Views
1.7k Executions

Auto Move

Universal Script 📌
bobbybob22
bobbybob22First script
6 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

- Lets you walk automatically

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

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

local minHoldTime = 0.3 -- minimum amount of time holding the key
local maxHoldTime = 3.0 -- maximum amount of time holding the key
local minInterval = 5.0 -- miminum amount of time inbetween key presses
local maxInterval = 10.0 -- maximum amount of time inbetween key presses
local walkSpeed = 16 

local function getRandom(min, max)
    return math.random() * (max - min) + min
end

local function stopMovement()
    if rootPart and rootPart.Parent then
        rootPart.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
    end
end

player.CharacterAdded:Connect(function(newChar)
    stopMovement()
    character = newChar
    rootPart = character:WaitForChild("HumanoidRootPart")
    humanoid = character:WaitForChild("Humanoid")
end)

local cardinalDirections = {
    Vector3.new(0, 0, 1), -- w
    Vector3.new(-1, 0, 0), -- a
    Vector3.new(0, 0, -1), -- s
    Vector3.new(1, 0, 0) -- d
}

while true do
    if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then


Comments

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