-- ===================================================== -- DODGE OR SLAP GUI -- Slap: max power (high value) -- Dodge: toggleable (continuous) -- ===================================================== local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local LocalPlayer = Players.LocalPlayer -- Remote references local SlappEvents = game:GetService("ReplicatedStorage"):WaitForChild("SlappEvents") local SliderHitRemote = SlappEvents:WaitForChild("SliderHit") local DodgeAttemptRemote = SlappEvents:WaitForChild("DodgeAttempt") -- Slap (max power) local function slap() pcall(function() SliderHitRemote:FireServer(999999) -- large value = max power end) end -- Dodge toggle local isDodging = false local dodgeThread = nil local function startDodgeLoop() if dodgeThread then return end dodgeThread = task.spawn(function() while isDodging do pcall(function() DodgeAttemptRemote:FireServer(true) end) task.wait(0.1) -- rapid dodge attempts end end) end local function stopDodgeLoop() if dodgeThread then task.cancel(dodgeThread) dodgeThread = nil end end -- ========== GUI ========== local screenGui = Instance.new("ScreenGui") screenGui.Name = "DodgeOrSlap" screenGui.ResetOnSpawn = false screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 200, 0, 120) mainFrame.Position = UDim2.new(0.5, -100, 0.5, -60) mainFrame.BackgroundColor3 = Color3.fromRGB(25,25,25) mainFrame.BackgroundTransparency = 0.1 mainFrame.BorderSizePixel = 1 mainFrame.BorderColor3 = Color3.fromRGB(200,100,50) mainFrame.Parent = screenGui -- Drag local dragging, dragStart, startPos mainFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = mainFrame.Position end end) mainFrame.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - dragStart mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) mainFrame.InputEnded:Connect(function() dragging = false end) -- Title bar local titleBar = Instance.new("Frame") titleBar.Size = UDim2.new(1,0,0,22) titleBar.BackgroundColor3 = Color3.fromRGB(20,20,20) titleBar.BackgroundTransparency = 0.5 titleBar.Parent = mainFrame local title = Instance.new("TextLabel") title.Size = UDim2.new(1,-55,1,0) title.Position = UDim2.new(0,4,0,0) title.Text = "🤚 Dodge or Slap" title.TextColor3 = Color3.fromRGB(255,255,255) title.TextScaled = true title.BackgroundTransparency = 1 title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = titleBar local lockBtn = Instance.new("TextButton") lockBtn.Size = UDim2.new(0,18,1,0) lockBtn.Position = UDim2.new(1,-42,0,0) lockBtn.Text = "🔓" lockBtn.TextScaled = true lockBtn.BackgroundColor3 = Color3.fromRGB(60,60,60) lockBtn.Parent = titleBar local miniBtn = Instance.new("TextButton") miniBtn.Size = UDim2.new(0,18,1,0) miniBtn.Position = UDim2.new(1,-23,0,0) miniBtn.Text = "−" miniBtn.TextScaled = true miniBtn.BackgroundColor3 = Color3.fromRGB(60,60,60) miniBtn.Parent = titleBar local content = Instance.new("Frame") content.Size = UDim2.new(1,0,1,-22) content.Position = UDim2.new(0,0,0,22) content.BackgroundTransparency = 1 content.Parent = mainFrame local layout = Instance.new("UIListLayout", content) layout.Padding = UDim.new(0, 6) layout.HorizontalAlignment = Enum.HorizontalAlignment.Center -- Slap button local slapBtn = Instance.new("TextButton") slapBtn.Size = UDim2.new(1,-12,0,35) slapBtn.Text = "💥 SLAP (MAX POWER)" slapBtn.TextScaled = true slapBtn.BackgroundColor3 = Color3.fromRGB(150,50,0) slapBtn.Parent = content slapBtn.MouseButton1Click:Connect(function() slap() slapBtn.Text = "✅ SLAPPED" task.wait(0.6) slapBtn.Text = "💥 SLAP (MAX POWER)" end) -- Dodge toggle local dodgeToggle = Instance.new("TextButton") dodgeToggle.Size = UDim2.new(1,-12,0,35) dodgeToggle.Text = "🌀 DODGE: OFF" dodgeToggle.TextScaled = true dodgeToggle.BackgroundColor3 = Color3.fromRGB(100,0,0) dodgeToggle.Parent = content dodgeToggle.MouseButton1Click:Connect(function() if isDodging then isDodging = false stopDodgeLoop() dodgeToggle.Text = "🌀 DODGE: OFF" dodgeToggle.BackgroundColor3 = Color3.fromRGB(100,0,0) else isDodging = true startDodgeLoop() dodgeToggle.Text = "🌀 DODGE: ON" dodgeToggle.BackgroundColor3 = Color3.fromRGB(0,150,0) end end) local info = Instance.new("TextLabel") info.Size = UDim2.new(1,-12,0,25) info.Text = "Slap with maximum force\nDodge toggles continuous evasion" info.TextColor3 = Color3.fromRGB(180,180,180) info.TextScaled = true info.BackgroundTransparency = 1 info.Parent = content -- Minimize / lock local minimized = false local openBtn = Instance.new("TextButton") openBtn.Size = UDim2.new(0, 70, 0, 25) openBtn.Position = UDim2.new(0, 10, 0.5, -12.5) openBtn.Text = "OPEN" openBtn.TextScaled = true openBtn.BackgroundColor3 = Color3.fromRGB(60,60,60) openBtn.Visible = false openBtn.Parent = screenGui miniBtn.MouseButton1Click:Connect(function() minimized = not minimized if minimized then content.Visible = false mainFrame.Size = UDim2.new(0, 90, 0, 22) miniBtn.Text = "+" title.Text = "🤚" openBtn.Visible = true else content.Visible = true mainFrame.Size = UDim2.new(0, 200, 0, 120) miniBtn.Text = "−" title.Text = "🤚 Dodge or Slap" openBtn.Visible = false end end) openBtn.MouseButton1Click:Connect(function() minimized = false content.Visible = true mainFrame.Size = UDim2.new(0, 200, 0, 120) miniBtn.Text = "−" title.Text = "🤚 Dodge or Slap" openBtn.Visible = false end) local locked = false lockBtn.MouseButton1Click:Connect(function() locked = not locked dragEnabled = not locked lockBtn.Text = locked and "🔒" or "🔓" lockBtn.BackgroundColor3 = locked and Color3.fromRGB(100,50,50) or Color3.fromRGB(60,60,60) end) -- Stop dodge on death LocalPlayer.CharacterAdded:Connect(function() if isDodging then isDodging = false stopDodgeLoop() dodgeToggle.Text = "🌀 DODGE: OFF" dodgeToggle.BackgroundColor3 = Color3.fromRGB(100,0,0) end end) print("🤚 Dodge or Slap GUI loaded – Slap max power, Dodge toggleable.")