From venuslock, 2 Weeks ago, written in Plain Text.
Embed
  1. -- Power Slap Simulator Script with Modern UI
  2. -- UI adapted for Power Slap
  3.  
  4. local Players = game:GetService("Players")
  5. local UserInputService = game:GetService("UserInputService")
  6. local TweenService = game:GetService("TweenService")
  7. local LocalPlayer = Players.LocalPlayer
  8.  
  9. -- Color Theme (Dark theme with blue accents)
  10. local COLORS = {
  11.     background = Color3.fromRGB(30, 30, 35),
  12.     titleBar = Color3.fromRGB(20, 20, 25),
  13.     buttonIdle = Color3.fromRGB(45, 45, 55),
  14.     buttonHover = Color3.fromRGB(55, 55, 65),
  15.     tabActive = Color3.fromRGB(65, 65, 75),
  16.     tabInactive = Color3.fromRGB(45, 45, 55),
  17.     textPrimary = Color3.fromRGB(255, 255, 255),
  18.     textSecondary = Color3.fromRGB(200, 200, 200),
  19.     accent = Color3.fromRGB(0, 165, 255),
  20.     toggleOn = Color3.fromRGB(0, 200, 100),
  21.     toggleOff = Color3.fromRGB(200, 50, 50)
  22. }
  23.  
  24. -- Create ScreenGui
  25. local ScreenGui = Instance.new("ScreenGui")
  26. ScreenGui.Name = "PowerSlapGUI"
  27. ScreenGui.ResetOnSpawn = false
  28. ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
  29.  
  30. -- Create Main Frame
  31. local MainFrame = Instance.new("Frame")
  32. MainFrame.Name = "MainFrame"
  33. MainFrame.Size = UDim2.new(0, 280, 0, 350)
  34. MainFrame.Position = UDim2.new(0.75, 0, 0.5, -175)
  35. MainFrame.BackgroundColor3 = COLORS.background
  36. MainFrame.BorderSizePixel = 0
  37. MainFrame.Active = true
  38. MainFrame.Draggable = true
  39. MainFrame.Parent = ScreenGui
  40.  
  41. -- Add smooth corners and shadow effect
  42. local UICorner = Instance.new("UICorner")
  43. UICorner.CornerRadius = UDim.new(0, 10)
  44. UICorner.Parent = MainFrame
  45.  
  46. local Shadow = Instance.new("ImageLabel")
  47. Shadow.Name = "Shadow"
  48. Shadow.AnchorPoint = Vector2.new(0.5, 0.5)
  49. Shadow.Position = UDim2.new(0.5, 0, 0.5, 0)
  50. Shadow.Size = UDim2.new(1, 20, 1, 20)
  51. Shadow.BackgroundTransparency = 1
  52. Shadow.Image = "rbxassetid://6014261993"
  53. Shadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
  54. Shadow.ImageTransparency = 0.5
  55. Shadow.ScaleType = Enum.ScaleType.Slice
  56. Shadow.SliceCenter = Rect.new(49, 49, 450, 450)
  57. Shadow.ZIndex = 0
  58. Shadow.Parent = MainFrame
  59.  
  60. -- Create Title Bar
  61. local TitleBar = Instance.new("Frame")
  62. TitleBar.Name = "TitleBar"
  63. TitleBar.Size = UDim2.new(1, 0, 0, 40)
  64. TitleBar.BackgroundColor3 = COLORS.titleBar
  65. TitleBar.BorderSizePixel = 0
  66. TitleBar.ZIndex = 2
  67. TitleBar.Parent = MainFrame
  68.  
  69. local TitleBarCorner = Instance.new("UICorner")
  70. TitleBarCorner.CornerRadius = UDim.new(0, 10)
  71. TitleBarCorner.Parent = TitleBar
  72.  
  73. -- Fix corner overlap
  74. local CornerFixFrame = Instance.new("Frame")
  75. CornerFixFrame.Name = "CornerFix"
  76. CornerFixFrame.Size = UDim2.new(1, 0, 0, 15)
  77. CornerFixFrame.Position = UDim2.new(0, 0, 1, -10)
  78. CornerFixFrame.BackgroundColor3 = COLORS.titleBar
  79. CornerFixFrame.BorderSizePixel = 0
  80. CornerFixFrame.ZIndex = 1
  81. CornerFixFrame.Parent = TitleBar
  82.  
  83. -- Logo and Title
  84. local TitleIcon = Instance.new("ImageLabel")
  85. TitleIcon.Name = "Logo"
  86. TitleIcon.Size = UDim2.new(0, 24, 0, 24)
  87. TitleIcon.Position = UDim2.new(0, 15, 0.5, -12)
  88. TitleIcon.BackgroundTransparency = 1
  89. TitleIcon.Image = "rbxassetid://7059346373" -- Hand/Slap icon
  90. TitleIcon.ImageColor3 = COLORS.accent
  91. TitleIcon.ZIndex = 3
  92. TitleIcon.Parent = TitleBar
  93.  
  94. local Title = Instance.new("TextLabel")
  95. Title.Name = "Title"
  96. Title.Size = UDim2.new(1, -100, 1, 0)
  97. Title.Position = UDim2.new(0, 50, 0, 0)
  98. Title.BackgroundTransparency = 1
  99. Title.Font = Enum.Font.GothamBold
  100. Title.Text = "Power Slap Simulator"
  101. Title.TextColor3 = COLORS.textPrimary
  102. Title.TextSize = 18
  103. Title.TextXAlignment = Enum.TextXAlignment.Left
  104. Title.ZIndex = 3
  105. Title.Parent = TitleBar
  106.  
  107. -- Close Button
  108. local CloseButton = Instance.new("TextButton")
  109. CloseButton.Name = "CloseButton"
  110. CloseButton.Size = UDim2.new(0, 30, 0, 30)
  111. CloseButton.Position = UDim2.new(1, -40, 0.5, -15)
  112. CloseButton.BackgroundColor3 = Color3.fromRGB(220, 50, 50)
  113. CloseButton.Text = "×"
  114. CloseButton.TextColor3 = COLORS.textPrimary
  115. CloseButton.TextSize = 22
  116. CloseButton.Font = Enum.Font.GothamBold
  117. CloseButton.ZIndex = 3
  118. CloseButton.Parent = TitleBar
  119.  
  120. local CloseButtonCorner = Instance.new("UICorner")
  121. CloseButtonCorner.CornerRadius = UDim.new(0, 6)
  122. CloseButtonCorner.Parent = CloseButton
  123.  
  124. -- Create Tab Container
  125. local TabContainer = Instance.new("Frame")
  126. TabContainer.Name = "TabContainer"
  127. TabContainer.Size = UDim2.new(1, 0, 0, 36)
  128. TabContainer.Position = UDim2.new(0, 0, 0, 40)
  129. TabContainer.BackgroundColor3 = COLORS.background
  130. TabContainer.BorderSizePixel = 0
  131. TabContainer.ZIndex = 2
  132. TabContainer.Parent = MainFrame
  133.  
  134. -- Create Tabs
  135. local MainTab = Instance.new("TextButton")
  136. MainTab.Name = "MainTab"
  137. MainTab.Size = UDim2.new(0.5, 0, 1, 0)
  138. MainTab.Position = UDim2.new(0, 0, 0, 0)
  139. MainTab.BackgroundColor3 = COLORS.tabActive
  140. MainTab.Text = "Main"
  141. MainTab.TextColor3 = COLORS.textPrimary
  142. MainTab.Font = Enum.Font.GothamSemibold
  143. MainTab.TextSize = 14
  144. MainTab.BorderSizePixel = 0
  145. MainTab.ZIndex = 3
  146. MainTab.Parent = TabContainer
  147.  
  148. local TeleportTab = Instance.new("TextButton")
  149. TeleportTab.Name = "TeleportTab"
  150. TeleportTab.Size = UDim2.new(0.5, 0, 1, 0)
  151. TeleportTab.Position = UDim2.new(0.5, 0, 0, 0)
  152. TeleportTab.BackgroundColor3 = COLORS.tabInactive
  153. TeleportTab.Text = "Teleport"
  154. TeleportTab.TextColor3 = COLORS.textSecondary
  155. TeleportTab.Font = Enum.Font.GothamSemibold
  156. TeleportTab.TextSize = 14
  157. TeleportTab.BorderSizePixel = 0
  158. TeleportTab.ZIndex = 3
  159. TeleportTab.Parent = TabContainer
  160.  
  161. -- Create Content Frame
  162. local ContentFrame = Instance.new("Frame")
  163. ContentFrame.Name = "ContentFrame"
  164. ContentFrame.Size = UDim2.new(1, -20, 1, -145)
  165. ContentFrame.Position = UDim2.new(0, 10, 0, 85)
  166. ContentFrame.BackgroundColor3 = COLORS.buttonIdle
  167. ContentFrame.BorderSizePixel = 0
  168. ContentFrame.ZIndex = 2
  169. ContentFrame.Parent = MainFrame
  170.  
  171. local ContentFrameCorner = Instance.new("UICorner")
  172. ContentFrameCorner.CornerRadius = UDim.new(0, 8)
  173. ContentFrameCorner.Parent = ContentFrame
  174.  
  175. -- Create Main Frame (Tab Content)
  176. local MainFrame_Content = Instance.new("Frame")
  177. MainFrame_Content.Name = "MainFrame_Content"
  178. MainFrame_Content.Size = UDim2.new(1, 0, 1, 0)
  179. MainFrame_Content.BackgroundTransparency = 1
  180. MainFrame_Content.ZIndex = 3
  181. MainFrame_Content.Visible = true
  182. MainFrame_Content.Parent = ContentFrame
  183.  
  184. -- Create Teleport Frame (Tab Content)
  185. local TeleportFrame = Instance.new("Frame")
  186. TeleportFrame.Name = "TeleportFrame"
  187. TeleportFrame.Size = UDim2.new(1, 0, 1, 0)
  188. TeleportFrame.BackgroundTransparency = 1
  189. TeleportFrame.ZIndex = 3
  190. TeleportFrame.Visible = false
  191. TeleportFrame.Parent = ContentFrame
  192.  
  193. -- Create Main Tab Buttons
  194. local AutoFarmBtn = Instance.new("TextButton")
  195. AutoFarmBtn.Name = "AutoFarmBtn"
  196. AutoFarmBtn.Size = UDim2.new(1, -20, 0, 45)
  197. AutoFarmBtn.Position = UDim2.new(0, 10, 0, 10)
  198. AutoFarmBtn.BackgroundColor3 = COLORS.toggleOff
  199. AutoFarmBtn.Text = "Auto Farm Wins (Off)"
  200. AutoFarmBtn.TextColor3 = COLORS.textPrimary
  201. AutoFarmBtn.Font = Enum.Font.GothamSemibold
  202. AutoFarmBtn.TextSize = 16
  203. AutoFarmBtn.ZIndex = 4
  204. AutoFarmBtn.Parent = MainFrame_Content
  205.  
  206. local AutoFarmBtnCorner = Instance.new("UICorner")
  207. AutoFarmBtnCorner.CornerRadius = UDim.new(0, 6)
  208. AutoFarmBtnCorner.Parent = AutoFarmBtn
  209.  
  210. local GiveClickStat = Instance.new("TextButton")
  211. GiveClickStat.Name = "GiveClickStat"
  212. GiveClickStat.Size = UDim2.new(1, -20, 0, 45)
  213. GiveClickStat.Position = UDim2.new(0, 10, 0, 65)
  214. GiveClickStat.BackgroundColor3 = COLORS.buttonIdle
  215. GiveClickStat.Text = "Boost Click Stats"
  216. GiveClickStat.TextColor3 = COLORS.textPrimary
  217. GiveClickStat.Font = Enum.Font.GothamSemibold
  218. GiveClickStat.TextSize = 16
  219. GiveClickStat.ZIndex = 4
  220. GiveClickStat.Parent = MainFrame_Content
  221.  
  222. local GiveClickStatCorner = Instance.new("UICorner")
  223. GiveClickStatCorner.CornerRadius = UDim.new(0, 6)
  224. GiveClickStatCorner.Parent = GiveClickStat
  225.  
  226. local RefreshBtn = Instance.new("TextButton")
  227. RefreshBtn.Name = "RefreshBtn"
  228. RefreshBtn.Size = UDim2.new(1, -20, 0, 45)
  229. RefreshBtn.Position = UDim2.new(0, 10, 0, 120)
  230. RefreshBtn.BackgroundColor3 = COLORS.buttonIdle
  231. RefreshBtn.Text = "Refresh Character"
  232. RefreshBtn.TextColor3 = COLORS.textPrimary
  233. RefreshBtn.Font = Enum.Font.GothamSemibold
  234. RefreshBtn.TextSize = 16
  235. RefreshBtn.ZIndex = 4
  236. RefreshBtn.Parent = MainFrame_Content
  237.  
  238. local RefreshBtnCorner = Instance.new("UICorner")
  239. RefreshBtnCorner.CornerRadius = UDim.new(0, 6)
  240. RefreshBtnCorner.Parent = RefreshBtn
  241.  
  242. -- Create Teleport Tab Buttons (You would need actual teleport locations for Power Slap game)
  243. local AreaOneBtn = Instance.new("TextButton")
  244. AreaOneBtn.Name = "AreaOneBtn"
  245. AreaOneBtn.Size = UDim2.new(1, -20, 0, 45)
  246. AreaOneBtn.Position = UDim2.new(0, 10, 0, 10)
  247. AreaOneBtn.BackgroundColor3 = COLORS.buttonIdle
  248. AreaOneBtn.Text = "VIP Area"
  249. AreaOneBtn.TextColor3 = COLORS.textPrimary
  250. AreaOneBtn.Font = Enum.Font.GothamSemibold
  251. AreaOneBtn.TextSize = 16
  252. AreaOneBtn.ZIndex = 4
  253. AreaOneBtn.Parent = TeleportFrame
  254.  
  255. local AreaOneBtnCorner = Instance.new("UICorner")
  256. AreaOneBtnCorner.CornerRadius = UDim.new(0, 6)
  257. AreaOneBtnCorner.Parent = AreaOneBtn
  258.  
  259. local SpawnBtn = Instance.new("TextButton")
  260. SpawnBtn.Name = "SpawnBtn"
  261. SpawnBtn.Size = UDim2.new(1, -20, 0, 45)
  262. SpawnBtn.Position = UDim2.new(0, 10, 0, 65)
  263. SpawnBtn.BackgroundColor3 = COLORS.buttonIdle
  264. SpawnBtn.Text = "Spawn"
  265. SpawnBtn.TextColor3 = COLORS.textPrimary
  266. SpawnBtn.Font = Enum.Font.GothamSemibold
  267. SpawnBtn.TextSize = 16
  268. SpawnBtn.ZIndex = 4
  269. SpawnBtn.Parent = TeleportFrame
  270.  
  271. local SpawnBtnCorner = Instance.new("UICorner")
  272. SpawnBtnCorner.CornerRadius = UDim.new(0, 6)
  273. SpawnBtnCorner.Parent = SpawnBtn
  274.  
  275. local ShopBtn = Instance.new("TextButton")
  276. ShopBtn.Name = "ShopBtn"
  277. ShopBtn.Size = UDim2.new(1, -20, 0, 45)
  278. ShopBtn.Position = UDim2.new(0, 10, 0, 120)
  279. ShopBtn.BackgroundColor3 = COLORS.buttonIdle
  280. ShopBtn.Text = "Training Area"
  281. ShopBtn.TextColor3 = COLORS.textPrimary
  282. ShopBtn.Font = Enum.Font.GothamSemibold
  283. ShopBtn.TextSize = 16
  284. ShopBtn.ZIndex = 4
  285. ShopBtn.Parent = TeleportFrame
  286.  
  287. local ShopBtnCorner = Instance.new("UICorner")
  288. ShopBtnCorner.CornerRadius = UDim.new(0, 6)
  289. ShopBtnCorner.Parent = ShopBtn
  290.  
  291. -- Create Footer
  292. local Footer = Instance.new("Frame")
  293. Footer.Name = "Footer"
  294. Footer.Size = UDim2.new(1, 0, 0, 40)
  295. Footer.Position = UDim2.new(0, 0, 1, -40)
  296. Footer.BackgroundColor3 = COLORS.titleBar
  297. Footer.BorderSizePixel = 0
  298. Footer.ZIndex = 2
  299. Footer.Parent = MainFrame
  300.  
  301. local FooterCorner = Instance.new("UICorner")
  302. FooterCorner.CornerRadius = UDim.new(0, 10)
  303. FooterCorner.Parent = Footer
  304.  
  305. -- Fix corner overlap for footer
  306. local FooterCornerFix = Instance.new("Frame")
  307. FooterCornerFix.Name = "CornerFix"
  308. FooterCornerFix.Size = UDim2.new(1, 0, 0, 15)
  309. FooterCornerFix.Position = UDim2.new(0, 0, 0, -5)
  310. FooterCornerFix.BackgroundColor3 = COLORS.titleBar
  311. FooterCornerFix.BorderSizePixel = 0
  312. FooterCornerFix.ZIndex = 1
  313. FooterCornerFix.Parent = Footer
  314.  
  315. local AuthorLabel = Instance.new("TextLabel")
  316. AuthorLabel.Name = "AuthorLabel"
  317. AuthorLabel.Size = UDim2.new(0.6, 0, 1, 0)
  318. AuthorLabel.Position = UDim2.new(0, 15, 0, 0)
  319. AuthorLabel.BackgroundTransparency = 1
  320. AuthorLabel.Font = Enum.Font.GothamSemibold
  321. AuthorLabel.Text = "Power Slap Script"
  322. AuthorLabel.TextColor3 = COLORS.accent
  323. AuthorLabel.TextSize = 14
  324. AuthorLabel.TextXAlignment = Enum.TextXAlignment.Left
  325. AuthorLabel.ZIndex = 3
  326. AuthorLabel.Parent = Footer
  327.  
  328. local KeybindLabel = Instance.new("TextLabel")
  329. KeybindLabel.Name = "KeybindLabel"
  330. KeybindLabel.Size = UDim2.new(0.4, -15, 1, 0)
  331. KeybindLabel.Position = UDim2.new(0.6, 0, 0, 0)
  332. KeybindLabel.BackgroundTransparency = 1
  333. KeybindLabel.Font = Enum.Font.Gotham
  334. KeybindLabel.Text = "Toggle: P"
  335. KeybindLabel.TextColor3 = COLORS.textSecondary
  336. KeybindLabel.TextSize = 12
  337. KeybindLabel.TextXAlignment = Enum.TextXAlignment.Right
  338. KeybindLabel.ZIndex = 3
  339. KeybindLabel.Parent = Footer
  340.  
  341. -- Add initial appear animation
  342. MainFrame.Position = UDim2.new(0.75, 0, 1.5, 0)
  343. MainFrame.Visible = true
  344.  
  345. local tweenInfo = TweenInfo.new(0.6, Enum.EasingStyle.Quart, Enum.EasingDirection.Out)
  346. local targetPosition = UDim2.new(0.75, 0, 0.5, -175)
  347.  
  348. local appearTween = TweenService:Create(MainFrame, tweenInfo, {Position = targetPosition})
  349. appearTween:Play()
  350.  
  351. -- Add button hover effects
  352. local function createHoverEffect(button)
  353.     local originalColor = button.BackgroundColor3
  354.    
  355.     button.MouseEnter:Connect(function()
  356.         if button.Name == "AutoFarmBtn" and _G.autoFarm then return end
  357.         TweenService:Create(button, TweenInfo.new(0.3), {BackgroundColor3 = COLORS.buttonHover}):Play()
  358.     end)
  359.    
  360.     button.MouseLeave:Connect(function()
  361.         if button.Name == "AutoFarmBtn" and _G.autoFarm then return end
  362.         TweenService:Create(button, TweenInfo.new(0.3), {BackgroundColor3 = originalColor}):Play()
  363.     end)
  364. end
  365.  
  366. -- Apply hover effects to all buttons
  367. for _, btn in pairs({GiveClickStat, RefreshBtn, AreaOneBtn, SpawnBtn, ShopBtn}) do
  368.     createHoverEffect(btn)
  369. end
  370.  
  371. -- Script Logic
  372. -- Show notification
  373. game.StarterGui:SetCore('SendNotification', {
  374.     Title = 'Power Slap Simulator',
  375.     Text = 'Script loaded successfully',
  376.     Duration = 5,
  377. })
  378.  
  379. -- Initialize auto farm toggle
  380. _G.autoFarm = false
  381.  
  382. -- Auto Farm Wins Function
  383. local function startAutoFarm()
  384.     spawn(function()
  385.         while _G.autoFarm do
  386.             local args = {
  387.                 [1] = "Wins"
  388.             }
  389.             pcall(function()
  390.                 game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Client"):InvokeServer(unpack(args))
  391.             end)
  392.             task.wait() -- minimal delay to prevent game lag
  393.         end
  394.     end)
  395. end
  396.  
  397. -- Button Event Handlers
  398. AutoFarmBtn.MouseButton1Click:Connect(function()
  399.     if _G.autoFarm then
  400.         -- Turn off
  401.         _G.autoFarm = false
  402.         AutoFarmBtn.Text = "Auto Farm Wins (Off)"
  403.         AutoFarmBtn.BackgroundColor3 = COLORS.toggleOff
  404.     else
  405.         -- Turn on
  406.         _G.autoFarm = true
  407.         AutoFarmBtn.Text = "Auto Farm Wins (On)"
  408.         AutoFarmBtn.BackgroundColor3 = COLORS.toggleOn
  409.         startAutoFarm() -- Start the auto farm loop
  410.     end
  411. end)
  412.  
  413. GiveClickStat.MouseButton1Click:Connect(function()
  414.     local args = {
  415.         [1] = "ClickStat",
  416.         [2] = 9e210
  417.     }
  418.     pcall(function()
  419.         game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Client"):InvokeServer(unpack(args))
  420.     end)
  421.     game.StarterGui:SetCore('SendNotification', {
  422.         Title = 'Power Slap Simulator',
  423.         Text = 'Click stats boosted!',
  424.         Duration = 3,
  425.     })
  426. end)
  427.  
  428. RefreshBtn.MouseButton1Click:Connect(function()
  429.     local character = LocalPlayer.Character
  430.     if character then
  431.         character:BreakJoints()
  432.     end
  433.     game.StarterGui:SetCore('SendNotification', {
  434.         Title = 'Power Slap Simulator',
  435.         Text = 'Character refreshed',
  436.         Duration = 2,
  437.     })
  438. end)
  439.  
  440. -- Teleport functions would need to be adjusted for actual game locations
  441. AreaOneBtn.MouseButton1Click:Connect(function()
  442.     -- These coordinates need to be replaced with actual locations in Power Slap game
  443.     pcall(function()
  444.         local character = LocalPlayer.Character
  445.         if character and character:FindFirstChild("HumanoidRootPart") then
  446.             character.HumanoidRootPart.CFrame = CFrame.new(100, 10, 100)
  447.         end
  448.     end)
  449. end)
  450.  
  451. SpawnBtn.MouseButton1Click:Connect(function()
  452.     pcall(function()
  453.         local character = LocalPlayer.Character
  454.         if character and character:FindFirstChild("HumanoidRootPart") then
  455.             character.HumanoidRootPart.CFrame = CFrame.new(0, 10, 0)
  456.         end
  457.     end)
  458. end)
  459.  
  460. ShopBtn.MouseButton1Click:Connect(function()
  461.     pcall(function()
  462.         local character = LocalPlayer.Character
  463.         if character and character:FindFirstChild("HumanoidRootPart") then
  464.             character.HumanoidRootPart.CFrame = CFrame.new(50, 10, 50)
  465.         end
  466.     end)
  467. end)
  468.  
  469. -- Tab switching logic
  470. MainTab.MouseButton1Click:Connect(function()
  471.     MainFrame_Content.Visible = true
  472.     TeleportFrame.Visible = false
  473.    
  474.     MainTab.BackgroundColor3 = COLORS.tabActive
  475.     MainTab.TextColor3 = COLORS.textPrimary
  476.    
  477.     TeleportTab.BackgroundColor3 = COLORS.tabInactive
  478.     TeleportTab.TextColor3 = COLORS.textSecondary
  479. end)
  480.  
  481. TeleportTab.MouseButton1Click:Connect(function()
  482.     MainFrame_Content.Visible = false
  483.     TeleportFrame.Visible = true
  484.    
  485.     MainTab.BackgroundColor3 = COLORS.tabInactive
  486.     MainTab.TextColor3 = COLORS.textSecondary
  487.    
  488.     TeleportTab.BackgroundColor3 = COLORS.tabActive
  489.     TeleportTab.TextColor3 = COLORS.textPrimary
  490. end)
  491.  
  492. -- Close button logic (hide GUI)
  493. CloseButton.MouseButton1Click:Connect(function()
  494.     MainFrame:TweenPosition(UDim2.new(0.75, 0, 1.5, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.6, false, function()
  495.         ScreenGui.Enabled = false
  496.     end)
  497. end)
  498.  
  499. -- Toggle key (changed to 'P' for Power Slap)
  500. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  501.     if not gameProcessed and input.KeyCode == Enum.KeyCode.P then
  502.         if ScreenGui.Enabled then
  503.             MainFrame:TweenPosition(UDim2.new(0.75, 0, 1.5, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.6, false, function()
  504.                 ScreenGui.Enabled = false
  505.             end)
  506.         else
  507.             ScreenGui.Enabled = true
  508.             MainFrame.Position = UDim2.new(0.75, 0, 1.5, 0)
  509.             MainFrame:TweenPosition(targetPosition, Enum.EasingDirection.Out, Enum.EasingStyle.Quart, 0.6, false)
  510.         end
  511.     end
  512. end)

captcha