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 ------------------------------------------------ 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) ------------------------------------------------ -- GUI ------------------------------------------------ local gui = Instance.new("ScreenGui") gui.Name = "ReLaxedUI" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") ------------------------------------------------ -- BACKGROUND ------------------------------------------------ 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 ------------------------------------------------ -- 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 / CLOSE ------------------------------------------------ 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.Parent = frame Instance.new("UICorner", mini).CornerRadius = UDim.new(1,0) 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.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.Parent = gui Instance.new("UICorner", ball).CornerRadius = UDim.new(1,0) 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) ------------------------------------------------ -- ANTI MELEE / KNOCKBACK SYSTEM ------------------------------------------------ local lastPush = {} 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 <= 5 then if not lastPush[plr] or tick() - lastPush[plr] > 1 then lastPush[plr] = tick() local dir = (enemyRoot.Position - root.Position).Unit local bv = Instance.new("BodyVelocity") bv.MaxForce = Vector3.new(1e8, 1e8, 1e8) bv.Velocity = (dir * 80) + Vector3.new(0, 50, 0) bv.Parent = enemyRoot Debris:AddItem(bv, 0.2) end end end end end)