local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer -------------------------------------------------- -- GUI -------------------------------------------------- local gui = Instance.new("ScreenGui") gui.Name = "SpeedGui" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 260, 0, 150) frame.Position = UDim2.new(0.5, -130, 0.5, -75) frame.BackgroundColor3 = Color3.fromRGB(35,35,35) frame.Active = true frame.Draggable = true frame.Parent = gui Instance.new("UICorner", frame) local title = Instance.new("TextLabel") title.Size = UDim2.new(1,0,0,35) title.BackgroundTransparency = 1 title.Text = "WalkSpeed Controller" title.TextColor3 = Color3.new(1,1,1) title.TextScaled = true title.Parent = frame local box = Instance.new("TextBox") box.Size = UDim2.new(0.8,0,0,35) box.Position = UDim2.new(0.1,0,0.4,0) box.PlaceholderText = "16 = normal" box.TextScaled = true box.Parent = frame Instance.new("UICorner", box) local button = Instance.new("TextButton") button.Size = UDim2.new(0.8,0,0,35) button.Position = UDim2.new(0.1,0,0.7,0) button.Text = "Aplicar" button.TextScaled = true button.BackgroundColor3 = Color3.fromRGB(0,170,255) button.TextColor3 = Color3.new(1,1,1) button.Parent = frame Instance.new("UICorner", button) -------------------------------------------------- -- SISTEMA DE VELOCIDAD ESTABLE -------------------------------------------------- local desiredSpeed = 16 local humanoidConnection local heartbeatConnection local function setupCharacter(character) local humanoid = character:WaitForChild("Humanoid") -- Aplicar inmediatamente humanoid.WalkSpeed = desiredSpeed -- Si algo intenta cambiar WalkSpeed, lo restauramos if humanoidConnection then humanoidConnection:Disconnect() end humanoidConnection = humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function() if humanoid.WalkSpeed ~= desiredSpeed then humanoid.WalkSpeed = desiredSpeed end end) -- Refuerzo extra (por si algún script lo fuerza constantemente) if heartbeatConnection then heartbeatConnection:Disconnect() end heartbeatConnection = RunService.Heartbeat:Connect(function() if humanoid and humanoid.Parent then if humanoid.WalkSpeed ~= desiredSpeed then humanoid.WalkSpeed = desiredSpeed end end end) end -------------------------------------------------- -- BOTÓN -------------------------------------------------- button.MouseButton1Click:Connect(function() local value = tonumber(box.Text) if value and value > 0 and value <= 200 then desiredSpeed = value if player.Character then local hum = player.Character:FindFirstChildOfClass("Humanoid") if hum then hum.WalkSpeed = desiredSpeed end end end end) -------------------------------------------------- -- EVENTOS -------------------------------------------------- player.CharacterAdded:Connect(setupCharacter) if player.Character then setupCharacter(player.Character) end