local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local RunService = game:GetService("RunService") local Debris = game:GetService("Debris") local player = Players.LocalPlayer ------------------------------------------------ -- CHARACTER SETUP (FOR PUSH SYSTEM) ------------------------------------------------ local character = player.Character or player.CharacterAdded:Wait() local root = character:WaitForChild("HumanoidRootPart") player.CharacterAdded:Connect(function(char) character = char root = char:WaitForChild("HumanoidRootPart") end) local PUSH_DISTANCE = 6 local PUSH_FORCE = 60 ------------------------------------------------ -- GUI ------------------------------------------------ local gui = Instance.new("ScreenGui") gui.Name = "ReLaxedUI" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") ------------------------------------------------ -- BACKGROUND + FADE OUT ------------------------------------------------ local bg = Instance.new("ImageLabel") bg.Size = UDim2.new(1, 0, 1, 0) bg.Position = UDim2.new(0, 0, 0, 0) bg.BackgroundTransparency = 1 bg.Image = "rbxassetid://123282651418196" bg.ScaleType = Enum.ScaleType.Crop bg.ImageTransparency = 0 bg.ZIndex = 0 bg.Parent = gui task.spawn(function() task.wait(0.5) TweenService:Create( bg, TweenInfo.new(2.2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {ImageTransparency = 1} ):Play() end) ------------------------------------------------ -- FRAME ------------------------------------------------ local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 320, 0, 200) frame.Position = UDim2.new(0.5, -160, 0.5, -100) frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) frame.BackgroundTransparency = 0.2 frame.BorderSizePixel = 0 frame.Parent = gui Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 12) local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(160, 90, 255) stroke.Thickness = 2 stroke.Parent = frame ------------------------------------------------ -- BG TEXT ------------------------------------------------ local bgText = Instance.new("TextLabel") bgText.Size = UDim2.new(1, 0, 1, 0) bgText.BackgroundTransparency = 1 bgText.Text = "ReLaxed on top" bgText.Font = Enum.Font.GothamBold bgText.TextScaled = true bgText.TextColor3 = Color3.fromRGB(70, 70, 70) bgText.TextTransparency = 0.6 bgText.ZIndex = 1 bgText.Parent = frame ------------------------------------------------ -- TITLE ------------------------------------------------ local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.Position = UDim2.new(0, 0, 0, 5) title.BackgroundTransparency = 1 title.Text = "ReLaxed" title.Font = Enum.Font.GothamBold title.TextSize = 22 title.TextColor3 = Color3.fromRGB(240, 235, 255) title.ZIndex = 3 title.Parent = frame ------------------------------------------------ -- TOGGLE ------------------------------------------------ local toggle = Instance.new("TextButton") toggle.Size = UDim2.new(0.8, 0, 0, 45) toggle.Position = UDim2.new(0.1, 0, 0.55, 0) toggle.Text = "Enabled" toggle.Font = Enum.Font.GothamBold toggle.TextSize = 18 toggle.BackgroundColor3 = Color3.fromRGB(160, 90, 255) toggle.TextColor3 = Color3.new(1,1,1) toggle.ZIndex = 3 toggle.Parent = frame Instance.new("UICorner", toggle).CornerRadius = UDim.new(0, 8) local enabled = true toggle.MouseButton1Click:Connect(function() enabled = not enabled if enabled then toggle.Text = "Enabled" toggle.BackgroundColor3 = Color3.fromRGB(160, 90, 255) else toggle.Text = "Disabled" toggle.BackgroundColor3 = Color3.fromRGB(80, 80, 80) end end) ------------------------------------------------ -- MINIMIZE ------------------------------------------------ local mini = Instance.new("TextButton") mini.Size = UDim2.new(0, 28, 0, 28) mini.Position = UDim2.new(1, -65, 0, 6) mini.Text = "-" mini.Font = Enum.Font.GothamBold mini.TextSize = 18 mini.BackgroundColor3 = Color3.fromRGB(40,40,40) mini.TextColor3 = Color3.new(1,1,1) mini.ZIndex = 3 mini.Parent = frame Instance.new("UICorner", mini).CornerRadius = UDim.new(1,0) ------------------------------------------------ -- CLOSE ------------------------------------------------ local close = Instance.new("TextButton") close.Size = UDim2.new(0, 28, 0, 28) close.Position = UDim2.new(1, -32, 0, 6) close.Text = "X" close.Font = Enum.Font.GothamBold close.TextSize = 16 close.BackgroundColor3 = Color3.fromRGB(160, 90, 255) close.TextColor3 = Color3.new(1,1,1) close.ZIndex = 3 close.Parent = frame Instance.new("UICorner", close).CornerRadius = UDim.new(1,0) close.MouseButton1Click:Connect(function() gui:Destroy() end) ------------------------------------------------ -- FLOATING BALL ------------------------------------------------ local ball = Instance.new("TextButton") ball.Size = UDim2.new(0, 55, 0, 55) ball.Position = UDim2.new(0.2, 0, 0.2, 0) ball.BackgroundColor3 = Color3.fromRGB(160, 90, 255) ball.Text = "R" ball.TextSize = 22 ball.TextColor3 = Color3.new(1,1,1) ball.Visible = false ball.ZIndex = 3 ball.Parent = gui Instance.new("UICorner", ball).CornerRadius = UDim.new(1,0) ------------------------------------------------ -- SHOW / HIDE ------------------------------------------------ mini.MouseButton1Click:Connect(function() frame.Visible = false ball.Visible = true end) ball.MouseButton1Click:Connect(function() frame.Visible = true ball.Visible = false end) ------------------------------------------------ -- DRAG FRAME ------------------------------------------------ local dragging, dragStart, startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = frame.Position end end) UIS.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) ------------------------------------------------ -- DRAG BALL ------------------------------------------------ local bdrag, bstart, bpos ball.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then bdrag = true bstart = input.Position bpos = ball.Position end end) UIS.InputChanged:Connect(function(input) if bdrag and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - bstart ball.Position = UDim2.new( bpos.X.Scale, bpos.X.Offset + delta.X, bpos.Y.Scale, bpos.Y.Offset + delta.Y ) end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then bdrag = false end end) ------------------------------------------------ -- PUSH BACK SYSTEM ------------------------------------------------ RunService.RenderStepped:Connect(function() if not enabled then return end if not root then return end for _, plr in ipairs(Players:GetPlayers()) do if plr ~= player and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then local enemyRoot = plr.Character.HumanoidRootPart local dist = (enemyRoot.Position - root.Position).Magnitude if dist <= PUSH_DISTANCE then local dir = (enemyRoot.Position - root.Position).Unit local attachment = enemyRoot:FindFirstChildOfClass("Attachment") if not attachment then attachment = Instance.new("Attachment") attachment.Parent = enemyRoot end local lv = Instance.new("LinearVelocity") lv.Attachment0 = attachment lv.MaxForce = math.huge lv.VectorVelocity = dir * PUSH_FORCE lv.Parent = enemyRoot Debris:AddItem(lv, 0.15) end end end end)