[HALLOWEEN] The Strongest Battlegrounds
8.1k Views
18 Executions

TSB RUN ON LCTRL

The Strongest Battlegrounds
Rain5200
Rain520010K executions
2 years ago
Please login to perform these actions:

TSB RUN ON LCTRL is a The Strongest Battlegrounds script for Roblox, uploaded to ScriptBlox on Jan 28, 2025.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

i dont know owner of the script!

View Raw
local moving = false
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
local runService = game:GetService("RunService")
local userInputService = game:GetService("UserInputService")
local movementSpeed = 125

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://18897115785"
local animator = humanoid:FindFirstChildOfClass("Animator") or humanoid:WaitForChild("Animator")
local animationTrack

local function moveForward()
    while moving do
        local forwardDirection = humanoidRootPart.CFrame.LookVector
        humanoidRootPart.Velocity = forwardDirection * movementSpeed
        runService.Stepped:Wait()
    end
end

local function onInputBegan(input, gameProcessed)
    if input.KeyCode == Enum.KeyCode.LeftControl and not gameProcessed then
        moving = true
        animationTrack = animator:LoadAnimation(animation)
        animationTrack:Play()
        moveForward()
    end
end

local function onInputEnded(input, gameProcessed)
    if input.KeyCode == Enum.KeyCode.LeftControl and not gameProcessed then
        moving = false
        if animationTrack then
            animationTrack:Stop()
        end
    end
end



Comments

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