--========================================================-- -- MODERN GUI (added only) --========================================================-- local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local gui = Instance.new("ScreenGui") gui.Name = "ParryHelperUI" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0,240,0,140) frame.Position = UDim2.new(0,20,0,200) frame.BackgroundColor3 = Color3.fromRGB(20,20,20) frame.BorderSizePixel = 0 frame.Active = true frame.Draggable = true frame.Parent = gui Instance.new("UICorner",frame).CornerRadius = UDim.new(0,10) local accent = Instance.new("Frame") accent.Size = UDim2.new(1,0,0,3) accent.BackgroundColor3 = Color3.fromRGB(255,0,0) accent.BorderSizePixel = 0 accent.Parent = frame local title = Instance.new("TextLabel") title.Size = UDim2.new(1,-40,0,30) title.Position = UDim2.new(0,10,0,5) title.BackgroundTransparency = 1 title.Text = "Parry Helper" title.Font = Enum.Font.GothamBold title.TextSize = 16 title.TextColor3 = Color3.new(1,1,1) title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = frame local minimize = Instance.new("TextButton") minimize.Size = UDim2.new(0,24,0,24) minimize.Position = UDim2.new(1,-28,0,6) minimize.Text = "-" minimize.Font = Enum.Font.GothamBold minimize.TextSize = 18 minimize.TextColor3 = Color3.new(1,1,1) minimize.BackgroundTransparency = 1 minimize.Parent = frame local button = Instance.new("TextButton") button.Size = UDim2.new(0.8,0,0,40) button.Position = UDim2.new(0.1,0,0.45,0) button.BackgroundColor3 = Color3.fromRGB(35,35,35) button.TextColor3 = Color3.new(1,1,1) button.Font = Enum.Font.Gotham button.TextSize = 16 button.Parent = frame Instance.new("UICorner",button).CornerRadius = UDim.new(0,8) local status = Instance.new("Frame") status.Size = UDim2.new(0,10,0,10) status.Position = UDim2.new(1,-18,0,10) status.BackgroundColor3 = Color3.fromRGB(0,255,0) status.Parent = frame Instance.new("UICorner",status).CornerRadius = UDim.new(1,0) local keybind = Instance.new("TextLabel") keybind.Size = UDim2.new(1,0,0,20) keybind.Position = UDim2.new(0,0,1,-22) keybind.BackgroundTransparency = 1 keybind.Text = "Toggle Key: G" keybind.TextColor3 = Color3.fromRGB(170,170,170) keybind.Font = Enum.Font.Gotham keybind.TextSize = 13 keybind.Parent = frame -- rainbow accent animation task.spawn(function() while true do for i = 0,1,0.01 do accent.BackgroundColor3 = Color3.fromHSV(i,1,1) task.wait() end end end) --========================================================-- -- Handles the G-key toggle --========================================================-- local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local player = Players.LocalPlayer local toggle = Instance.new("BoolValue") toggle.Name = "ParryHelperToggle" toggle.Value = true toggle.Parent = player local function updateUI() if toggle.Value then button.Text = "Enabled" status.BackgroundColor3 = Color3.fromRGB(0,255,0) TweenService:Create(button,TweenInfo.new(.15),{ BackgroundColor3 = Color3.fromRGB(40,120,40) }):Play() else button.Text = "Disabled" status.BackgroundColor3 = Color3.fromRGB(255,60,60) TweenService:Create(button,TweenInfo.new(.15),{ BackgroundColor3 = Color3.fromRGB(120,40,40) }):Play() end end updateUI() button.MouseButton1Click:Connect(function() toggle.Value = not toggle.Value updateUI() end) local minimized = false minimize.MouseButton1Click:Connect(function() minimized = not minimized if minimized then TweenService:Create(frame,TweenInfo.new(.2),{Size = UDim2.new(0,240,0,40)}):Play() else TweenService:Create(frame,TweenInfo.new(.2),{Size = UDim2.new(0,240,0,140)}):Play() end end) UserInputService.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.G then toggle.Value = not toggle.Value updateUI() print("Parry Script:", toggle.Value and "ON" or "OFF") end end) --========================================================-- --========================================================-- local Players = game:GetService("Players") -- Chance to auto-parry (0.0 = 0%, 1.0 = 100%) local AUTO_PARRY_CHANCE = 1 Players.PlayerAdded:Connect(function(p) p:SetAttribute("ParryActiveTime", 10) end) for _, p in ipairs(Players:GetPlayers()) do p:SetAttribute("ParryActiveTime", 10) end task.spawn(function() while true do for _, p in ipairs(Players:GetPlayers()) do local toggle = p:FindFirstChild("ParryHelperToggle") if toggle and toggle.Value == true then if math.random() <= AUTO_PARRY_CHANCE then p:SetAttribute("ParryActiveTime", 10) else p:SetAttribute("ParryActiveTime", 0) end end end task.wait(0.001) end end)