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 -- Ѐункция для обновлСния ΠΏΠΎΠ·ΠΈΡ†ΠΈΠΈ local function updateDrag(input) if dragging then local delta = input.Position - dragStart sprintButton.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end -- ΠžΠ±Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠΈ пСрСмСщСния sprintButton.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then beginDrag(input) end end) sprintButton.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) game:GetService("UserInputService").InputChanged:Connect(function(input) if input == dragInput and dragging then updateDrag(input) end end) -- ΠžΠ±Ρ€Π°Π±ΠΎΡ‚Ρ‡ΠΈΠΊΠΈ спринта sprintButton.MouseButton1Down:Connect(function() applySpeed(SprintSpeed) sprintButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) sprintButton.Text = "πŸƒβ€β™‚οΈ SPRINTING" end) sprintButton.MouseButton1Up:Connect(function() applySpeed(Speed) sprintButton.BackgroundColor3 = Color3.fromRGB(0, 200, 0) sprintButton.Text = "πŸƒβ€β™‚οΈ SPRINT" end) applySpeed(Speed) print("Π‘ΠΊΡ€ΠΈΠΏΡ‚ Π°ΠΊΡ‚ΠΈΠ²ΠΈΡ€ΠΎΠ²Π°Π½! Π”Π΅Ρ€ΠΆΠΈ ΠΈ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Ρ‰Π°ΠΉ ΠΊΠ½ΠΎΠΏΠΊΡƒ")