Universal Script 📌
3.2k Views
357 Executions

Fe universal okarun

Universal Script 📌
kjteo3484
kjteo348410K executions
1 year 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
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local backpack = player:WaitForChild("Backpack")

local tool = Instance.new("Tool")
tool.Name = "Run tool"
tool.RequiresHandle = false
tool.CanBeDropped = false

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://252557606"

local animTrack
local isRunning = false
local defaultSpeed = 16 -- Default humanoid WalkSpeed

tool.Activated:Connect(function()
    local character = player.Character
    if not character then return end
    local humanoid = character:FindFirstChildOfClass("Humanoid")
    if not humanoid then return end

    if isRunning then
        -- Turn OFF running
        if animTrack then
            animTrack:Stop()
            animTrack = nil
        end
        humanoid.WalkSpeed = defaultSpeed
        isRunning = false
        print("Run OFF")
    else
        -- Turn ON running
        animTrack = humanoid:LoadAnimation(animation)
        animTrack:Play()
        humanoid.WalkSpeed = 40
        isRunning = true
        print("Run ON")
    end
end)


Comments

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

More universal scripts

See all
Script hub
3.8k
4.7k
Bumped 1 hour ago
Key System

Script hub

#16 this month

TWLtime Hub | 7+ games | Updated

Script hub
5.5M
1.1M
Bumped 2 hours ago
Key System
Script hub
451.0k
920.7k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 71 Supported Games + OP!

Script hub
28.5k
16.0k
Bumped 3 hours ago
Key System

Script hub

Plak New

Script hub
7.5k
37.1k
Bumped 3 hours ago
Key System
Script hub
44.3k
194.8k
Bumped 3 hours ago

Script hub

Sp3arParvus

Script hub
1.6k
6.9k
Bumped 5 hours ago