
304 Views
9 Executions
Timluasprint
Universal Script 📌
fantimur49First script
11 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
a sprint, if anything, is a primitive script.
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
0Log in to join the conversation. Login
No comments yet. Be the first!







