- -- Power Slap Simulator Script with Modern UI
- -- UI adapted for Power Slap
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local LocalPlayer = Players.LocalPlayer
- -- Color Theme (Dark theme with blue accents)
- local COLORS = {
- background = Color3.fromRGB(30, 30, 35),
- titleBar = Color3.fromRGB(20, 20, 25),
- buttonIdle = Color3.fromRGB(45, 45, 55),
- buttonHover = Color3.fromRGB(55, 55, 65),
- tabActive = Color3.fromRGB(65, 65, 75),
- tabInactive = Color3.fromRGB(45, 45, 55),
- textPrimary = Color3.fromRGB(255, 255, 255),
- textSecondary = Color3.fromRGB(200, 200, 200),
- accent = Color3.fromRGB(0, 165, 255),
- toggleOn = Color3.fromRGB(0, 200, 100),
- toggleOff = Color3.fromRGB(200, 50, 50)
- }
- -- Create ScreenGui
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Name = "PowerSlapGUI"
- ScreenGui.ResetOnSpawn = false
- ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
- -- Create Main Frame
- local MainFrame = Instance.new("Frame")
- MainFrame.Name = "MainFrame"
- MainFrame.Size = UDim2.new(0, 280, 0, 350)
- MainFrame.Position = UDim2.new(0.75, 0, 0.5, -175)
- MainFrame.BackgroundColor3 = COLORS.background
- MainFrame.BorderSizePixel = 0
- MainFrame.Active = true
- MainFrame.Draggable = true
- MainFrame.Parent = ScreenGui
- -- Add smooth corners and shadow effect
- local UICorner = Instance.new("UICorner")
- UICorner.CornerRadius = UDim.new(0, 10)
- UICorner.Parent = MainFrame
- local Shadow = Instance.new("ImageLabel")
- Shadow.Name = "Shadow"
- Shadow.AnchorPoint = Vector2.new(0.5, 0.5)
- Shadow.Position = UDim2.new(0.5, 0, 0.5, 0)
- Shadow.Size = UDim2.new(1, 20, 1, 20)
- Shadow.BackgroundTransparency = 1
- Shadow.Image = "rbxassetid://6014261993"
- Shadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
- Shadow.ImageTransparency = 0.5
- Shadow.ScaleType = Enum.ScaleType.Slice
- Shadow.SliceCenter = Rect.new(49, 49, 450, 450)
- Shadow.ZIndex = 0
- Shadow.Parent = MainFrame
- -- Create Title Bar
- local TitleBar = Instance.new("Frame")
- TitleBar.Name = "TitleBar"
- TitleBar.Size = UDim2.new(1, 0, 0, 40)
- TitleBar.BackgroundColor3 = COLORS.titleBar
- TitleBar.BorderSizePixel = 0
- TitleBar.ZIndex = 2
- TitleBar.Parent = MainFrame
- local TitleBarCorner = Instance.new("UICorner")
- TitleBarCorner.CornerRadius = UDim.new(0, 10)
- TitleBarCorner.Parent = TitleBar
- -- Fix corner overlap
- local CornerFixFrame = Instance.new("Frame")
- CornerFixFrame.Name = "CornerFix"
- CornerFixFrame.Size = UDim2.new(1, 0, 0, 15)
- CornerFixFrame.Position = UDim2.new(0, 0, 1, -10)
- CornerFixFrame.BackgroundColor3 = COLORS.titleBar
- CornerFixFrame.BorderSizePixel = 0
- CornerFixFrame.ZIndex = 1
- CornerFixFrame.Parent = TitleBar
- -- Logo and Title
- local TitleIcon = Instance.new("ImageLabel")
- TitleIcon.Name = "Logo"
- TitleIcon.Size = UDim2.new(0, 24, 0, 24)
- TitleIcon.Position = UDim2.new(0, 15, 0.5, -12)
- TitleIcon.BackgroundTransparency = 1
- TitleIcon.Image = "rbxassetid://7059346373" -- Hand/Slap icon
- TitleIcon.ImageColor3 = COLORS.accent
- TitleIcon.ZIndex = 3
- TitleIcon.Parent = TitleBar
- local Title = Instance.new("TextLabel")
- Title.Name = "Title"
- Title.Size = UDim2.new(1, -100, 1, 0)
- Title.Position = UDim2.new(0, 50, 0, 0)
- Title.BackgroundTransparency = 1
- Title.Font = Enum.Font.GothamBold
- Title.Text = "Power Slap Simulator"
- Title.TextColor3 = COLORS.textPrimary
- Title.TextSize = 18
- Title.TextXAlignment = Enum.TextXAlignment.Left
- Title.ZIndex = 3
- Title.Parent = TitleBar
- -- Close Button
- local CloseButton = Instance.new("TextButton")
- CloseButton.Name = "CloseButton"
- CloseButton.Size = UDim2.new(0, 30, 0, 30)
- CloseButton.Position = UDim2.new(1, -40, 0.5, -15)
- CloseButton.BackgroundColor3 = Color3.fromRGB(220, 50, 50)
- CloseButton.Text = "×"
- CloseButton.TextColor3 = COLORS.textPrimary
- CloseButton.TextSize = 22
- CloseButton.Font = Enum.Font.GothamBold
- CloseButton.ZIndex = 3
- CloseButton.Parent = TitleBar
- local CloseButtonCorner = Instance.new("UICorner")
- CloseButtonCorner.CornerRadius = UDim.new(0, 6)
- CloseButtonCorner.Parent = CloseButton
- -- Create Tab Container
- local TabContainer = Instance.new("Frame")
- TabContainer.Name = "TabContainer"
- TabContainer.Size = UDim2.new(1, 0, 0, 36)
- TabContainer.Position = UDim2.new(0, 0, 0, 40)
- TabContainer.BackgroundColor3 = COLORS.background
- TabContainer.BorderSizePixel = 0
- TabContainer.ZIndex = 2
- TabContainer.Parent = MainFrame
- -- Create Tabs
- local MainTab = Instance.new("TextButton")
- MainTab.Name = "MainTab"
- MainTab.Size = UDim2.new(0.5, 0, 1, 0)
- MainTab.Position = UDim2.new(0, 0, 0, 0)
- MainTab.BackgroundColor3 = COLORS.tabActive
- MainTab.Text = "Main"
- MainTab.TextColor3 = COLORS.textPrimary
- MainTab.Font = Enum.Font.GothamSemibold
- MainTab.TextSize = 14
- MainTab.BorderSizePixel = 0
- MainTab.ZIndex = 3
- MainTab.Parent = TabContainer
- local TeleportTab = Instance.new("TextButton")
- TeleportTab.Name = "TeleportTab"
- TeleportTab.Size = UDim2.new(0.5, 0, 1, 0)
- TeleportTab.Position = UDim2.new(0.5, 0, 0, 0)
- TeleportTab.BackgroundColor3 = COLORS.tabInactive
- TeleportTab.Text = "Teleport"
- TeleportTab.TextColor3 = COLORS.textSecondary
- TeleportTab.Font = Enum.Font.GothamSemibold
- TeleportTab.TextSize = 14
- TeleportTab.BorderSizePixel = 0
- TeleportTab.ZIndex = 3
- TeleportTab.Parent = TabContainer
- -- Create Content Frame
- local ContentFrame = Instance.new("Frame")
- ContentFrame.Name = "ContentFrame"
- ContentFrame.Size = UDim2.new(1, -20, 1, -145)
- ContentFrame.Position = UDim2.new(0, 10, 0, 85)
- ContentFrame.BackgroundColor3 = COLORS.buttonIdle
- ContentFrame.BorderSizePixel = 0
- ContentFrame.ZIndex = 2
- ContentFrame.Parent = MainFrame
- local ContentFrameCorner = Instance.new("UICorner")
- ContentFrameCorner.CornerRadius = UDim.new(0, 8)
- ContentFrameCorner.Parent = ContentFrame
- -- Create Main Frame (Tab Content)
- local MainFrame_Content = Instance.new("Frame")
- MainFrame_Content.Name = "MainFrame_Content"
- MainFrame_Content.Size = UDim2.new(1, 0, 1, 0)
- MainFrame_Content.BackgroundTransparency = 1
- MainFrame_Content.ZIndex = 3
- MainFrame_Content.Visible = true
- MainFrame_Content.Parent = ContentFrame
- -- Create Teleport Frame (Tab Content)
- local TeleportFrame = Instance.new("Frame")
- TeleportFrame.Name = "TeleportFrame"
- TeleportFrame.Size = UDim2.new(1, 0, 1, 0)
- TeleportFrame.BackgroundTransparency = 1
- TeleportFrame.ZIndex = 3
- TeleportFrame.Visible = false
- TeleportFrame.Parent = ContentFrame
- -- Create Main Tab Buttons
- local AutoFarmBtn = Instance.new("TextButton")
- AutoFarmBtn.Name = "AutoFarmBtn"
- AutoFarmBtn.Size = UDim2.new(1, -20, 0, 45)
- AutoFarmBtn.Position = UDim2.new(0, 10, 0, 10)
- AutoFarmBtn.BackgroundColor3 = COLORS.toggleOff
- AutoFarmBtn.Text = "Auto Farm Wins (Off)"
- AutoFarmBtn.TextColor3 = COLORS.textPrimary
- AutoFarmBtn.Font = Enum.Font.GothamSemibold
- AutoFarmBtn.TextSize = 16
- AutoFarmBtn.ZIndex = 4
- AutoFarmBtn.Parent = MainFrame_Content
- local AutoFarmBtnCorner = Instance.new("UICorner")
- AutoFarmBtnCorner.CornerRadius = UDim.new(0, 6)
- AutoFarmBtnCorner.Parent = AutoFarmBtn
- local GiveClickStat = Instance.new("TextButton")
- GiveClickStat.Name = "GiveClickStat"
- GiveClickStat.Size = UDim2.new(1, -20, 0, 45)
- GiveClickStat.Position = UDim2.new(0, 10, 0, 65)
- GiveClickStat.BackgroundColor3 = COLORS.buttonIdle
- GiveClickStat.Text = "Boost Click Stats"
- GiveClickStat.TextColor3 = COLORS.textPrimary
- GiveClickStat.Font = Enum.Font.GothamSemibold
- GiveClickStat.TextSize = 16
- GiveClickStat.ZIndex = 4
- GiveClickStat.Parent = MainFrame_Content
- local GiveClickStatCorner = Instance.new("UICorner")
- GiveClickStatCorner.CornerRadius = UDim.new(0, 6)
- GiveClickStatCorner.Parent = GiveClickStat
- local RefreshBtn = Instance.new("TextButton")
- RefreshBtn.Name = "RefreshBtn"
- RefreshBtn.Size = UDim2.new(1, -20, 0, 45)
- RefreshBtn.Position = UDim2.new(0, 10, 0, 120)
- RefreshBtn.BackgroundColor3 = COLORS.buttonIdle
- RefreshBtn.Text = "Refresh Character"
- RefreshBtn.TextColor3 = COLORS.textPrimary
- RefreshBtn.Font = Enum.Font.GothamSemibold
- RefreshBtn.TextSize = 16
- RefreshBtn.ZIndex = 4
- RefreshBtn.Parent = MainFrame_Content
- local RefreshBtnCorner = Instance.new("UICorner")
- RefreshBtnCorner.CornerRadius = UDim.new(0, 6)
- RefreshBtnCorner.Parent = RefreshBtn
- -- Create Teleport Tab Buttons (You would need actual teleport locations for Power Slap game)
- local AreaOneBtn = Instance.new("TextButton")
- AreaOneBtn.Name = "AreaOneBtn"
- AreaOneBtn.Size = UDim2.new(1, -20, 0, 45)
- AreaOneBtn.Position = UDim2.new(0, 10, 0, 10)
- AreaOneBtn.BackgroundColor3 = COLORS.buttonIdle
- AreaOneBtn.Text = "VIP Area"
- AreaOneBtn.TextColor3 = COLORS.textPrimary
- AreaOneBtn.Font = Enum.Font.GothamSemibold
- AreaOneBtn.TextSize = 16
- AreaOneBtn.ZIndex = 4
- AreaOneBtn.Parent = TeleportFrame
- local AreaOneBtnCorner = Instance.new("UICorner")
- AreaOneBtnCorner.CornerRadius = UDim.new(0, 6)
- AreaOneBtnCorner.Parent = AreaOneBtn
- local SpawnBtn = Instance.new("TextButton")
- SpawnBtn.Name = "SpawnBtn"
- SpawnBtn.Size = UDim2.new(1, -20, 0, 45)
- SpawnBtn.Position = UDim2.new(0, 10, 0, 65)
- SpawnBtn.BackgroundColor3 = COLORS.buttonIdle
- SpawnBtn.Text = "Spawn"
- SpawnBtn.TextColor3 = COLORS.textPrimary
- SpawnBtn.Font = Enum.Font.GothamSemibold
- SpawnBtn.TextSize = 16
- SpawnBtn.ZIndex = 4
- SpawnBtn.Parent = TeleportFrame
- local SpawnBtnCorner = Instance.new("UICorner")
- SpawnBtnCorner.CornerRadius = UDim.new(0, 6)
- SpawnBtnCorner.Parent = SpawnBtn
- local ShopBtn = Instance.new("TextButton")
- ShopBtn.Name = "ShopBtn"
- ShopBtn.Size = UDim2.new(1, -20, 0, 45)
- ShopBtn.Position = UDim2.new(0, 10, 0, 120)
- ShopBtn.BackgroundColor3 = COLORS.buttonIdle
- ShopBtn.Text = "Training Area"
- ShopBtn.TextColor3 = COLORS.textPrimary
- ShopBtn.Font = Enum.Font.GothamSemibold
- ShopBtn.TextSize = 16
- ShopBtn.ZIndex = 4
- ShopBtn.Parent = TeleportFrame
- local ShopBtnCorner = Instance.new("UICorner")
- ShopBtnCorner.CornerRadius = UDim.new(0, 6)
- ShopBtnCorner.Parent = ShopBtn
- -- Create Footer
- local Footer = Instance.new("Frame")
- Footer.Name = "Footer"
- Footer.Size = UDim2.new(1, 0, 0, 40)
- Footer.Position = UDim2.new(0, 0, 1, -40)
- Footer.BackgroundColor3 = COLORS.titleBar
- Footer.BorderSizePixel = 0
- Footer.ZIndex = 2
- Footer.Parent = MainFrame
- local FooterCorner = Instance.new("UICorner")
- FooterCorner.CornerRadius = UDim.new(0, 10)
- FooterCorner.Parent = Footer
- -- Fix corner overlap for footer
- local FooterCornerFix = Instance.new("Frame")
- FooterCornerFix.Name = "CornerFix"
- FooterCornerFix.Size = UDim2.new(1, 0, 0, 15)
- FooterCornerFix.Position = UDim2.new(0, 0, 0, -5)
- FooterCornerFix.BackgroundColor3 = COLORS.titleBar
- FooterCornerFix.BorderSizePixel = 0
- FooterCornerFix.ZIndex = 1
- FooterCornerFix.Parent = Footer
- local AuthorLabel = Instance.new("TextLabel")
- AuthorLabel.Name = "AuthorLabel"
- AuthorLabel.Size = UDim2.new(0.6, 0, 1, 0)
- AuthorLabel.Position = UDim2.new(0, 15, 0, 0)
- AuthorLabel.BackgroundTransparency = 1
- AuthorLabel.Font = Enum.Font.GothamSemibold
- AuthorLabel.Text = "Power Slap Script"
- AuthorLabel.TextColor3 = COLORS.accent
- AuthorLabel.TextSize = 14
- AuthorLabel.TextXAlignment = Enum.TextXAlignment.Left
- AuthorLabel.ZIndex = 3
- AuthorLabel.Parent = Footer
- local KeybindLabel = Instance.new("TextLabel")
- KeybindLabel.Name = "KeybindLabel"
- KeybindLabel.Size = UDim2.new(0.4, -15, 1, 0)
- KeybindLabel.Position = UDim2.new(0.6, 0, 0, 0)
- KeybindLabel.BackgroundTransparency = 1
- KeybindLabel.Font = Enum.Font.Gotham
- KeybindLabel.Text = "Toggle: P"
- KeybindLabel.TextColor3 = COLORS.textSecondary
- KeybindLabel.TextSize = 12
- KeybindLabel.TextXAlignment = Enum.TextXAlignment.Right
- KeybindLabel.ZIndex = 3
- KeybindLabel.Parent = Footer
- -- Add initial appear animation
- MainFrame.Position = UDim2.new(0.75, 0, 1.5, 0)
- MainFrame.Visible = true
- local tweenInfo = TweenInfo.new(0.6, Enum.EasingStyle.Quart, Enum.EasingDirection.Out)
- local targetPosition = UDim2.new(0.75, 0, 0.5, -175)
- local appearTween = TweenService:Create(MainFrame, tweenInfo, {Position = targetPosition})
- appearTween:Play()
- -- Add button hover effects
- local function createHoverEffect(button)
- local originalColor = button.BackgroundColor3
- button.MouseEnter:Connect(function()
- if button.Name == "AutoFarmBtn" and _G.autoFarm then return end
- TweenService:Create(button, TweenInfo.new(0.3), {BackgroundColor3 = COLORS.buttonHover}):Play()
- end)
- button.MouseLeave:Connect(function()
- if button.Name == "AutoFarmBtn" and _G.autoFarm then return end
- TweenService:Create(button, TweenInfo.new(0.3), {BackgroundColor3 = originalColor}):Play()
- end)
- end
- -- Apply hover effects to all buttons
- for _, btn in pairs({GiveClickStat, RefreshBtn, AreaOneBtn, SpawnBtn, ShopBtn}) do
- createHoverEffect(btn)
- end
- -- Script Logic
- -- Show notification
- game.StarterGui:SetCore('SendNotification', {
- Title = 'Power Slap Simulator',
- Text = 'Script loaded successfully',
- Duration = 5,
- })
- -- Initialize auto farm toggle
- _G.autoFarm = false
- -- Auto Farm Wins Function
- local function startAutoFarm()
- spawn(function()
- while _G.autoFarm do
- local args = {
- [1] = "Wins"
- }
- pcall(function()
- game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Client"):InvokeServer(unpack(args))
- end)
- task.wait() -- minimal delay to prevent game lag
- end
- end)
- end
- -- Button Event Handlers
- AutoFarmBtn.MouseButton1Click:Connect(function()
- if _G.autoFarm then
- -- Turn off
- _G.autoFarm = false
- AutoFarmBtn.Text = "Auto Farm Wins (Off)"
- AutoFarmBtn.BackgroundColor3 = COLORS.toggleOff
- else
- -- Turn on
- _G.autoFarm = true
- AutoFarmBtn.Text = "Auto Farm Wins (On)"
- AutoFarmBtn.BackgroundColor3 = COLORS.toggleOn
- startAutoFarm() -- Start the auto farm loop
- end
- end)
- GiveClickStat.MouseButton1Click:Connect(function()
- local args = {
- [1] = "ClickStat",
- [2] = 9e210
- }
- pcall(function()
- game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Client"):InvokeServer(unpack(args))
- end)
- game.StarterGui:SetCore('SendNotification', {
- Title = 'Power Slap Simulator',
- Text = 'Click stats boosted!',
- Duration = 3,
- })
- end)
- RefreshBtn.MouseButton1Click:Connect(function()
- local character = LocalPlayer.Character
- if character then
- character:BreakJoints()
- end
- game.StarterGui:SetCore('SendNotification', {
- Title = 'Power Slap Simulator',
- Text = 'Character refreshed',
- Duration = 2,
- })
- end)
- -- Teleport functions would need to be adjusted for actual game locations
- AreaOneBtn.MouseButton1Click:Connect(function()
- -- These coordinates need to be replaced with actual locations in Power Slap game
- pcall(function()
- local character = LocalPlayer.Character
- if character and character:FindFirstChild("HumanoidRootPart") then
- character.HumanoidRootPart.CFrame = CFrame.new(100, 10, 100)
- end
- end)
- end)
- SpawnBtn.MouseButton1Click:Connect(function()
- pcall(function()
- local character = LocalPlayer.Character
- if character and character:FindFirstChild("HumanoidRootPart") then
- character.HumanoidRootPart.CFrame = CFrame.new(0, 10, 0)
- end
- end)
- end)
- ShopBtn.MouseButton1Click:Connect(function()
- pcall(function()
- local character = LocalPlayer.Character
- if character and character:FindFirstChild("HumanoidRootPart") then
- character.HumanoidRootPart.CFrame = CFrame.new(50, 10, 50)
- end
- end)
- end)
- -- Tab switching logic
- MainTab.MouseButton1Click:Connect(function()
- MainFrame_Content.Visible = true
- TeleportFrame.Visible = false
- MainTab.BackgroundColor3 = COLORS.tabActive
- MainTab.TextColor3 = COLORS.textPrimary
- TeleportTab.BackgroundColor3 = COLORS.tabInactive
- TeleportTab.TextColor3 = COLORS.textSecondary
- end)
- TeleportTab.MouseButton1Click:Connect(function()
- MainFrame_Content.Visible = false
- TeleportFrame.Visible = true
- MainTab.BackgroundColor3 = COLORS.tabInactive
- MainTab.TextColor3 = COLORS.textSecondary
- TeleportTab.BackgroundColor3 = COLORS.tabActive
- TeleportTab.TextColor3 = COLORS.textPrimary
- end)
- -- Close button logic (hide GUI)
- CloseButton.MouseButton1Click:Connect(function()
- MainFrame:TweenPosition(UDim2.new(0.75, 0, 1.5, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.6, false, function()
- ScreenGui.Enabled = false
- end)
- end)
- -- Toggle key (changed to 'P' for Power Slap)
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if not gameProcessed and input.KeyCode == Enum.KeyCode.P then
- if ScreenGui.Enabled then
- MainFrame:TweenPosition(UDim2.new(0.75, 0, 1.5, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.6, false, function()
- ScreenGui.Enabled = false
- end)
- else
- ScreenGui.Enabled = true
- MainFrame.Position = UDim2.new(0.75, 0, 1.5, 0)
- MainFrame:TweenPosition(targetPosition, Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.6, false)
- end
- end
- end)