Universal Script 📌
304 Views
9 Executions

Timluasprint

Universal Script 📌
fantimur49
fantimur49First script
11 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

a sprint, if anything, is a primitive script.

View Raw
local Player = game:GetService("Players").LocalPlayer
local Speed = 50
local SprintSpeed = 100

local screenGui = Instance.new("ScreenGui")
screenGui.Parent = Player:WaitForChild("PlayerGui")

local sprintButton = Instance.new("TextButton")
sprintButton.Size = UDim2.new(0, 120, 0, 60)
sprintButton.Position = UDim2.new(0.8, 0, 0.7, 0)
sprintButton.Text = "🏃‍♂️ SPRINT"
sprintButton.TextScaled = true
sprintButton.BackgroundColor3 = Color3.fromRGB(0, 200, 0)
sprintButton.TextColor3 = Color3.fromRGB(255, 255, 255)
sprintButton.Parent = screenGui

-- Переменные для перемещения
local dragging = false
local dragInput, dragStart, startPos

local function applySpeed(speed)
    local char = Player.Character
    if char and char:FindFirstChild("Humanoid") then
        char.Humanoid.WalkSpeed = speed
    end
end

-- Функция для начала перемещения
local function beginDrag(input)
    dragging = true
    dragStart = input.Position
    startPos = sprintButton.Position
    
    input.Changed:Connect(function()
        if input.UserInputState == Enum.UserInputState.End then
            dragging = false
        end
    end)
end



Comments

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

More universal scripts

See all
Universal Script 📌
1.3k
5.1k
Bumped 46 minutes ago
Script hub
160.6k
1.5M
Bumped 7 hours ago
Key System

Script hub

#14 this week

Verified script badgeAirflow HUB

Universal Script 📌
2.5k
996
Bumped 7 hours ago
Script hub
1.6M
1.9M
Bumped 8 hours ago
Key System

Script hub

#10 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script 📌
40.9k
817.7k
Bumped 10 hours ago
Universal Script 📌
134.2k
24.2k
Bumped 10 hours ago
Key System