Advertisement
GhosterX

King Script v2

Jun 2nd, 2025 (edited)
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.98 KB | None | 0 0
  1. -- KING SCRIPT MENU by Ghostrider_ZS (RGB em tudo, definições corrigidas)
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local TweenService = game:GetService("TweenService")
  5. local UserInputService = game:GetService("UserInputService")
  6. local Camera = workspace.CurrentCamera
  7. local player = Players.LocalPlayer
  8.  
  9. local driftLerp = 0.01
  10. local driftSpeed = 30
  11.  
  12. local driftAndroidAtivo = false
  13. local DriftAtivo = false
  14. local isAndroid = false
  15. local ESPAtivo = false
  16. local AdminCarregado = false
  17. local DexCarregado = false
  18. local AimbotAtivo = false
  19. local isMono = false
  20. local h = 0
  21.  
  22. _G.DriftAtivo = false
  23.  
  24. -- Tema fixo RGB
  25. local skin = {bg = Color3.fromRGB(25,25,35), border = true}
  26.  
  27. -- GUI
  28. local playerGui = player:WaitForChild("PlayerGui")
  29. local menuGui = Instance.new("ScreenGui", playerGui)
  30. menuGui.Name = "MenuScriptsGui"
  31. menuGui.ResetOnSpawn = false
  32. menuGui.DisplayOrder = 10
  33. menuGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
  34.  
  35. -- Tween de visibilidade suave
  36. local function tweenVisibilidade(obj, vis)
  37. if vis then
  38. obj.Visible = true
  39. obj.BackgroundTransparency = 1
  40. TweenService:Create(obj, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 0}):Play()
  41. else
  42. TweenService:Create(obj, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundTransparency = 1}):Play()
  43. delay(0.26, function() obj.Visible = false end)
  44. end
  45. end
  46.  
  47. local menuFrame = Instance.new("Frame", menuGui)
  48. menuFrame.Size = UDim2.new(0, 190, 0, 220)
  49. menuFrame.Position = UDim2.new(0, 20, 0, 60)
  50. menuFrame.BackgroundColor3 = skin.bg
  51. menuFrame.BorderColor3 = Color3.fromRGB(0,255,128)
  52. menuFrame.BorderSizePixel = 2
  53. menuFrame.Visible = false
  54. menuFrame.Active = true
  55. menuFrame.ZIndex = 10
  56.  
  57. local function criarTexto(parent, props)
  58. local t = Instance.new("TextLabel", parent)
  59. t.BackgroundTransparency = 1
  60. t.TextColor3 = Color3.new(1,1,1)
  61. t.TextStrokeTransparency = 0.4
  62. t.TextStrokeColor3 = Color3.new(0,0,0)
  63. t.Font = Enum.Font.SourceSansBold
  64. t.TextSize = 17
  65. t.TextXAlignment = Enum.TextXAlignment.Left
  66. t.TextYAlignment = Enum.TextYAlignment.Center
  67. t.Visible = true
  68. t.ZIndex = 20
  69. for k,v in pairs(props) do t[k]=v end
  70. return t
  71. end
  72.  
  73. local title = criarTexto(menuFrame, {
  74. Size = UDim2.new(1, 0, 0, 32),
  75. Position = UDim2.new(0, 0, 0, 0),
  76. Text = "KING SCRIPT v2",
  77. TextSize = 20,
  78. TextXAlignment = Enum.TextXAlignment.Center
  79. })
  80.  
  81. -- MENU PRINCIPAL COM SCROLL
  82. local scrollMenu = Instance.new("ScrollingFrame", menuFrame)
  83. scrollMenu.Size = UDim2.new(1, -16, 1, -40)
  84. scrollMenu.Position = UDim2.new(0, 8, 0, 40)
  85. scrollMenu.BackgroundTransparency = 1
  86. scrollMenu.BorderSizePixel = 0
  87. scrollMenu.CanvasSize = UDim2.new(0, 0, 0, 300)
  88. scrollMenu.ScrollBarThickness = 8
  89. scrollMenu.ZIndex = 11
  90. scrollMenu.AutomaticCanvasSize = Enum.AutomaticSize.Y
  91.  
  92. -- RGB para botões
  93. local rgbBtns = {}
  94.  
  95. local function addMenuBtn(text, y)
  96. local btn = Instance.new("TextButton", scrollMenu)
  97. btn.Size = UDim2.new(1, 0, 0, 26)
  98. btn.Position = UDim2.new(0, 0, 0, y)
  99. btn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  100. btn.TextColor3 = Color3.new(1, 1, 1)
  101. btn.TextStrokeTransparency = 0.4
  102. btn.TextStrokeColor3 = Color3.new(0,0,0)
  103. btn.Text = text
  104. btn.Font = Enum.Font.SourceSansBold
  105. btn.TextSize = 16
  106. btn.ZIndex = 12
  107. btn.AutoButtonColor = true
  108. btn.Active = true
  109. btn.BorderSizePixel = 2
  110. btn.BorderColor3 = Color3.fromRGB(0,255,128)
  111. table.insert(rgbBtns, btn)
  112. return btn
  113. end
  114.  
  115. local btnAimbot = addMenuBtn("Aimbot: OFF", 0)
  116. local btnESP = addMenuBtn("ESP: OFF", 30)
  117. local btnDrift = addMenuBtn("Drift: OFF", 60)
  118. local btnAdmin = addMenuBtn("Admin: NÃO CARREGADO", 90)
  119. local btnDex = addMenuBtn("Dex: NÃO CARREGADO", 120)
  120.  
  121. local function atualizarBotoesMenu()
  122. local y = 0
  123. if not isAndroid then
  124. btnAimbot.Visible = true
  125. btnAimbot.Position = UDim2.new(0, 0, 0, y)
  126. y = y + 30
  127. else
  128. btnAimbot.Visible = false
  129. end
  130. btnESP.Position = UDim2.new(0, 0, 0, y)
  131. y = y + 30
  132. btnDrift.Position = UDim2.new(0, 0, 0, y)
  133. y = y + 30
  134. btnAdmin.Position = UDim2.new(0, 0, 0, y)
  135. y = y + 30
  136. btnDex.Position = UDim2.new(0, 0, 0, y)
  137. end
  138.  
  139. -- ESP funcional (Highlight)
  140. local espConns = {}
  141. local function setESP(state)
  142. for _,conn in ipairs(espConns) do pcall(function() conn:Disconnect() end) end
  143. espConns = {}
  144. for _,plr in ipairs(Players:GetPlayers()) do
  145. if plr ~= player then
  146. local function handleChar(char)
  147. if char and state then
  148. if not char:FindFirstChild("Highlight") then
  149. local h = Instance.new("Highlight")
  150. h.Name = "Highlight"
  151. h.FillColor = Color3.fromRGB(255,255,0)
  152. h.OutlineColor = Color3.fromRGB(255,80,0)
  153. h.FillTransparency = 0.7
  154. h.OutlineTransparency = 0
  155. h.Parent = char
  156. end
  157. end
  158. if char and not state and char:FindFirstChild("Highlight") then
  159. char.Highlight:Destroy()
  160. end
  161. end
  162. handleChar(plr.Character)
  163. table.insert(espConns, plr.CharacterAdded:Connect(function(char)
  164. wait(1)
  165. handleChar(char)
  166. end))
  167. end
  168. end
  169. table.insert(espConns, Players.PlayerAdded:Connect(function(plr)
  170. table.insert(espConns, plr.CharacterAdded:Connect(function(char)
  171. wait(1)
  172. if state then
  173. if not char:FindFirstChild("Highlight") then
  174. local h = Instance.new("Highlight")
  175. h.Name = "Highlight"
  176. h.FillColor = Color3.fromRGB(255,255,0)
  177. h.OutlineColor = Color3.fromRGB(255,80,0)
  178. h.FillTransparency = 0.7
  179. h.OutlineTransparency = 0
  180. h.Parent = char
  181. end
  182. end
  183. end))
  184. end))
  185. end
  186.  
  187. btnESP.MouseButton1Click:Connect(function()
  188. ESPAtivo = not ESPAtivo
  189. btnESP.Text = ESPAtivo and "ESP: ON" or "ESP: OFF"
  190. btnESP.BackgroundColor3 = ESPAtivo and Color3.fromRGB(60,150,60) or Color3.fromRGB(50,50,50)
  191. setESP(ESPAtivo)
  192. end)
  193.  
  194. -- DRIFT DO SEU EXEMPLO (sem campo de velocidade)
  195. local function isShiftLockActive()
  196. return UserInputService.MouseBehavior == Enum.MouseBehavior.LockCenter
  197. end
  198. local function sentarR6(humanoid)
  199. if humanoid and not humanoid.Sit then
  200. humanoid.Sit = true
  201. end
  202. end
  203. local function pararSentar(humanoid)
  204. if humanoid and humanoid.Sit then
  205. humanoid.Sit = false
  206. end
  207. end
  208. local function driftLoop(char)
  209. local humanoid = char:WaitForChild("Humanoid")
  210. local hrp = char:WaitForChild("HumanoidRootPart")
  211. local vel = Vector3.new()
  212. RunService.RenderStepped:Connect(function()
  213. if _G.DriftAtivo and humanoid.Health > 0 then
  214. sentarR6(humanoid)
  215. humanoid.WalkSpeed = driftSpeed
  216. local moveDir = humanoid.MoveDirection
  217. if moveDir.Magnitude > 0 then
  218. local targetVel = moveDir.Unit * driftSpeed
  219. vel = vel:Lerp(targetVel, driftLerp)
  220. else
  221. vel = vel:Lerp(Vector3.new(), driftLerp)
  222. end
  223. hrp.AssemblyLinearVelocity = Vector3.new(vel.X, hrp.AssemblyLinearVelocity.Y, vel.Z)
  224. if isShiftLockActive() then
  225. local cam = workspace.CurrentCamera
  226. local camLook = cam.CFrame.LookVector
  227. local lookVec = Vector3.new(camLook.X, 0, camLook.Z).Unit
  228. hrp.CFrame = CFrame.new(hrp.Position, hrp.Position + lookVec)
  229. else
  230. if vel.Magnitude > 0.1 then
  231. local lookVec = Vector3.new(vel.X, 0, vel.Z).Unit
  232. hrp.CFrame = CFrame.new(hrp.Position, hrp.Position + lookVec)
  233. end
  234. end
  235. else
  236. pararSentar(humanoid)
  237. humanoid.WalkSpeed = 16
  238. end
  239. end)
  240. end
  241.  
  242. btnDrift.MouseButton1Click:Connect(function()
  243. _G.DriftAtivo = not _G.DriftAtivo
  244. DriftAtivo = _G.DriftAtivo
  245. btnDrift.Text = _G.DriftAtivo and "Drift: ON" or "Drift: OFF"
  246. btnDrift.BackgroundColor3 = _G.DriftAtivo and Color3.fromRGB(60,150,60) or Color3.fromRGB(50,50,50)
  247. end)
  248.  
  249. player.CharacterAdded:Connect(function(char)
  250. driftLoop(char)
  251. end)
  252. if player.Character then
  253. driftLoop(player.Character)
  254. end
  255.  
  256. -- Admin e Dex
  257. btnAdmin.MouseButton1Click:Connect(function()
  258. if not AdminCarregado then
  259. btnAdmin.Text = "Admin: CARREGADO"
  260. btnAdmin.BackgroundColor3 = Color3.fromRGB(60,150,60)
  261. AdminCarregado = true
  262. spawn(function()
  263. loadstring(game:HttpGet("https://raw.githubusercontent.com/ltseverydayyou/Nameless-Admin/main/NA%20testing.lua"))()
  264. end)
  265. end
  266. end)
  267.  
  268. btnDex.MouseButton1Click:Connect(function()
  269. if not DexCarregado then
  270. btnDex.Text = "Dex: CARREGADO"
  271. btnDex.BackgroundColor3 = Color3.fromRGB(60,150,60)
  272. DexCarregado = true
  273. spawn(function()
  274. loadstring(game:HttpGet("https://raw.githubusercontent.com/peyton2465/Dex/master/out.lua"))()
  275. end)
  276. end
  277. end)
  278.  
  279. -- Aimbot (PC)
  280. local aimCircle
  281. local aimbotConn
  282. local aimH = 0
  283.  
  284. local function isFirstPerson()
  285. return (Camera.Focus.p - Camera.CFrame.p).Magnitude < 1.5
  286. end
  287.  
  288. local function isVisible(targetPart)
  289. local origin = Camera.CFrame.Position
  290. local direction = (targetPart.Position - origin)
  291. local ray = Ray.new(origin, direction)
  292. local hit = workspace:FindPartOnRayWithIgnoreList(ray, {player.Character})
  293. return (not hit) or hit:IsDescendantOf(targetPart.Parent)
  294. end
  295.  
  296. local function getClosestPlayerInFOV()
  297. local closest, dist = nil, 120
  298. for _,plr in ipairs(Players:GetPlayers()) do
  299. if plr~=player and plr.Character and plr.Character:FindFirstChild("Head") and plr.Character:FindFirstChildOfClass("Humanoid") and plr.Character:FindFirstChildOfClass("Humanoid").Health>0 then
  300. local pos, onScreen = Camera:WorldToViewportPoint(plr.Character.Head.Position)
  301. if onScreen and isVisible(plr.Character.Head) then
  302. local screenPos = Vector2.new(pos.X, pos.Y)
  303. local center = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
  304. local d = (screenPos - center).Magnitude
  305. if d < dist then
  306. closest = plr.Character.Head
  307. dist = d
  308. end
  309. end
  310. end
  311. end
  312. return closest
  313. end
  314.  
  315. local function drawAimbotFOV()
  316. if aimCircle then aimCircle:Remove() end
  317. aimCircle = Drawing.new("Circle")
  318. aimCircle.Position = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
  319. aimCircle.Radius = 120
  320. aimCircle.Color = Color3.fromHSV(aimH, 1, 1)
  321. aimCircle.Thickness = 1
  322. aimCircle.Filled = false
  323. aimCircle.Transparency = 1
  324. aimCircle.Visible = false
  325. end
  326.  
  327. local function removeAimbotFOV()
  328. if aimCircle then aimCircle:Remove() aimCircle = nil end
  329. end
  330.  
  331. btnAimbot.MouseButton1Click:Connect(function()
  332. AimbotAtivo = not AimbotAtivo
  333. btnAimbot.Text = AimbotAtivo and "Aimbot: ON" or "Aimbot: OFF"
  334. btnAimbot.BackgroundColor3 = AimbotAtivo and Color3.fromRGB(60,150,60) or Color3.fromRGB(50,50,50)
  335. if aimbotConn then aimbotConn:Disconnect() aimbotConn = nil end
  336. removeAimbotFOV()
  337. if AimbotAtivo then
  338. drawAimbotFOV()
  339. aimbotConn = RunService.RenderStepped:Connect(function()
  340. aimH = (aimH + 0.002) % 1
  341. if aimCircle then
  342. aimCircle.Position = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
  343. aimCircle.Color = Color3.fromHSV(aimH, 1, 1)
  344. aimCircle.Visible = AimbotAtivo and isFirstPerson()
  345. end
  346. if AimbotAtivo and isFirstPerson() and UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
  347. local target = getClosestPlayerInFOV()
  348. if target then
  349. Camera.CFrame = CFrame.new(Camera.CFrame.Position, target.Position)
  350. end
  351. end
  352. end)
  353. end
  354. end)
  355.  
  356. -- PAINEL DE DEFINIÇÕES
  357. local defFrame = Instance.new("Frame", menuGui)
  358. defFrame.Size = UDim2.new(0, 170, 0, 200)
  359. defFrame.Position = UDim2.new(0, 130, 0, 48)
  360. defFrame.BackgroundColor3 = skin.bg
  361. defFrame.BorderColor3 = menuFrame.BorderColor3
  362. defFrame.BorderSizePixel = 2
  363. defFrame.Visible = false
  364. defFrame.ZIndex = 22
  365.  
  366. local defTitle = criarTexto(defFrame, {
  367. Size = UDim2.new(1, 0, 0, 26),
  368. Position = UDim2.new(0, 0, 0, 0),
  369. Text = "Definições",
  370. TextSize = 18,
  371. TextXAlignment = Enum.TextXAlignment.Center,
  372. ZIndex = 100
  373. })
  374.  
  375. local scroll = Instance.new("ScrollingFrame", defFrame)
  376. scroll.Size = UDim2.new(1, 0, 1, -26)
  377. scroll.Position = UDim2.new(0, 0, 0, 26)
  378. scroll.BackgroundTransparency = 1
  379. scroll.BorderSizePixel = 0
  380. scroll.CanvasSize = UDim2.new(0,0,0,160)
  381. scroll.ScrollBarThickness = 8
  382. scroll.ZIndex = 23
  383.  
  384. -- Botões das definições com RGB
  385. local rgbDefBtns = {}
  386.  
  387. local yDef = 0
  388. local function addDefBtn(txt, callback, isActive)
  389. local btn = Instance.new("TextButton", scroll)
  390. btn.Size = UDim2.new(1, -12, 0, 22)
  391. btn.Position = UDim2.new(0, 6, 0, yDef)
  392. btn.BackgroundColor3 = Color3.fromRGB(60, 60, 90)
  393. btn.TextColor3 = Color3.new(1,1,1)
  394. btn.Text = txt
  395. btn.Font = Enum.Font.SourceSansBold
  396. btn.TextSize = 14
  397. btn.ZIndex = 24
  398. btn.AutoButtonColor = true
  399. btn.BorderSizePixel = 2
  400. btn.BorderColor3 = Color3.fromRGB(0,255,128)
  401. table.insert(rgbDefBtns, btn)
  402. btn.MouseButton1Click:Connect(function()
  403. local active = callback()
  404. btn.BackgroundColor3 = active and Color3.fromRGB(60,150,60) or Color3.fromRGB(60, 60, 90)
  405. end)
  406. yDef = yDef + 26
  407. scroll.CanvasSize = UDim2.new(0,0,0,math.max(yDef+30,scroll.Size.Y.Offset))
  408. return btn
  409. end
  410.  
  411. -- Tema fixo (apenas label)
  412. local temaLabel = criarTexto(scroll, {
  413. Size = UDim2.new(1, -12, 0, 18),
  414. Position = UDim2.new(0, 6, 0, yDef),
  415. Text = "Tema do menu: Dark RGB",
  416. TextSize = 14,
  417. ZIndex = 24
  418. })
  419. yDef = yDef + 26
  420.  
  421. -- Alternar Fonte
  422. addDefBtn("Alternar Fonte", function()
  423. isMono = not isMono
  424. local fonte = isMono and Enum.Font.Code or Enum.Font.SourceSans
  425. title.Font = fonte
  426. defTitle.Font = fonte
  427. btnESP.Font = fonte
  428. btnDrift.Font = fonte
  429. btnAdmin.Font = fonte
  430. btnDex.Font = fonte
  431. btnAimbot.Font = fonte
  432. return isMono
  433. end, isMono)
  434.  
  435. -- Frase "Coming soon"
  436. local comingSoon = criarTexto(scroll, {
  437. Size = UDim2.new(1, -12, 0, 18),
  438. Position = UDim2.new(0, 6, 0, yDef+10),
  439. Text = "Coming soon",
  440. TextSize = 13,
  441. TextXAlignment = Enum.TextXAlignment.Center,
  442. ZIndex = 24
  443. })
  444.  
  445. -- Botão fechar definições
  446. local closeDefBtn = Instance.new("TextButton", defFrame)
  447. closeDefBtn.Size = UDim2.new(0, 24, 0, 24)
  448. closeDefBtn.Position = UDim2.new(1, -28, 0, 2)
  449. closeDefBtn.BackgroundColor3 = Color3.fromRGB(60, 30, 30)
  450. closeDefBtn.TextColor3 = Color3.new(1, 1, 1)
  451. closeDefBtn.Text = "X"
  452. closeDefBtn.Font = Enum.Font.SourceSansBold
  453. closeDefBtn.TextSize = 14
  454. closeDefBtn.ZIndex = 24
  455. closeDefBtn.MouseButton1Click:Connect(function()
  456. tweenVisibilidade(defFrame, false)
  457. end)
  458.  
  459. -- Botão de definições (⚙)
  460. local btnDef = Instance.new("TextButton", menuGui)
  461. btnDef.Size = UDim2.new(0, 32, 0, 32)
  462. btnDef.Position = UDim2.new(0, 100, 0, 10)
  463. btnDef.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  464. btnDef.TextColor3 = Color3.new(1, 1, 1)
  465. btnDef.Text = "⚙"
  466. btnDef.Font = Enum.Font.SourceSansBold
  467. btnDef.TextSize = 22
  468. btnDef.ZIndex = 21
  469. btnDef.Active = true
  470. btnDef.Visible = false
  471. btnDef.MouseButton1Click:Connect(function()
  472. if defFrame.Visible then
  473. tweenVisibilidade(defFrame, false)
  474. else
  475. tweenVisibilidade(defFrame, true)
  476. end
  477. end)
  478.  
  479. -- Botão de menu (sempre visível após seleção)
  480. local toggleMenuBtn = Instance.new("TextButton", menuGui)
  481. toggleMenuBtn.Size = UDim2.new(0, 70, 0, 24)
  482. toggleMenuBtn.Position = UDim2.new(0, 20, 0, 10)
  483. toggleMenuBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  484. toggleMenuBtn.TextColor3 = Color3.new(1, 1, 1)
  485. toggleMenuBtn.Text = "Menu"
  486. toggleMenuBtn.Font = Enum.Font.SourceSansBold
  487. toggleMenuBtn.TextSize = 15
  488. toggleMenuBtn.ZIndex = 20
  489. toggleMenuBtn.Active = true
  490. toggleMenuBtn.Visible = false
  491. toggleMenuBtn.MouseButton1Click:Connect(function()
  492. if menuFrame.Visible then
  493. tweenVisibilidade(menuFrame, false)
  494. btnDef.Visible = false
  495. tweenVisibilidade(defFrame, false)
  496. toggleMenuBtn.Text = "Menu"
  497. else
  498. tweenVisibilidade(menuFrame, true)
  499. btnDef.Visible = true
  500. toggleMenuBtn.Text = "Fechar"
  501. end
  502. end)
  503.  
  504. -- Créditos sempre visíveis
  505. local cred = criarTexto(menuFrame, {
  506. Size = UDim2.new(1, 0, 0, 18),
  507. Position = UDim2.new(0, 0, 1, -18),
  508. Text = "by Ghostrider_ZS",
  509. TextSize = 14,
  510. TextXAlignment = Enum.TextXAlignment.Center
  511. })
  512.  
  513. -- MENU DE SELEÇÃO INICIAL COM RGB E ANIMAÇÃO
  514. local abaGui = Instance.new("ScreenGui", playerGui)
  515. abaGui.Name = "AbaInicialGui"
  516. abaGui.ResetOnSpawn = false
  517. abaGui.DisplayOrder = 9
  518.  
  519. local abaFrame = Instance.new("Frame", abaGui)
  520. abaFrame.Size = UDim2.new(0, 200, 0, 120)
  521. abaFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  522. abaFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  523. abaFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
  524. abaFrame.BorderSizePixel = 2
  525. abaFrame.BorderColor3 = Color3.fromRGB(0,255,128)
  526. abaFrame.Active = true
  527.  
  528. local abaTitulo = criarTexto(abaFrame, {
  529. Size = UDim2.new(1, 0, 0, 32),
  530. Position = UDim2.new(0, 0, 0, 0),
  531. Text = "Selecione seu dispositivo",
  532. TextSize = 16,
  533. TextXAlignment = Enum.TextXAlignment.Center
  534. })
  535.  
  536. local btnAndroid = Instance.new("TextButton", abaFrame)
  537. btnAndroid.Size = UDim2.new(0.9, 0, 0, 28)
  538. btnAndroid.Position = UDim2.new(0.05, 0, 0, 38)
  539. btnAndroid.BackgroundColor3 = Color3.fromRGB(60, 180, 60)
  540. btnAndroid.TextColor3 = Color3.new(1, 1, 1)
  541. btnAndroid.Text = "Android"
  542. btnAndroid.Font = Enum.Font.SourceSansBold
  543. btnAndroid.TextSize = 15
  544. btnAndroid.AutoButtonColor = true
  545. btnAndroid.BorderSizePixel = 2
  546. btnAndroid.BorderColor3 = Color3.fromRGB(0,255,128)
  547. table.insert(rgbBtns, btnAndroid)
  548.  
  549. local btnPC = Instance.new("TextButton", abaFrame)
  550. btnPC.Size = UDim2.new(0.9, 0, 0, 28)
  551. btnPC.Position = UDim2.new(0.05, 0, 0, 74)
  552. btnPC.BackgroundColor3 = Color3.fromRGB(60, 60, 180)
  553. btnPC.TextColor3 = Color3.new(1, 1, 1)
  554. btnPC.Text = "PC"
  555. btnPC.Font = Enum.Font.SourceSansBold
  556. btnPC.TextSize = 15
  557. btnPC.AutoButtonColor = true
  558. btnPC.BorderSizePixel = 2
  559. btnPC.BorderColor3 = Color3.fromRGB(0,255,128)
  560. table.insert(rgbBtns, btnPC)
  561.  
  562. local function mostrarMenuCompleto()
  563. tweenVisibilidade(menuFrame, true)
  564. btnDef.Visible = true
  565. toggleMenuBtn.Visible = true
  566. toggleMenuBtn.Text = "Fechar"
  567. atualizarBotoesMenu()
  568. end
  569.  
  570. btnAndroid.MouseButton1Click:Connect(function()
  571. isAndroid = true
  572. abaGui.Enabled = false
  573. mostrarMenuCompleto()
  574. end)
  575.  
  576. btnPC.MouseButton1Click:Connect(function()
  577. isAndroid = false
  578. abaGui.Enabled = false
  579. mostrarMenuCompleto()
  580. end)
  581.  
  582. -- RGB animado em todos os menus e botões
  583. spawn(function()
  584. while true do
  585. h = (h + 0.004) % 1
  586. local color = Color3.fromHSV(h, 1, 1)
  587. menuFrame.BorderColor3 = color
  588. title.TextColor3 = color
  589. defFrame.BorderColor3 = color
  590. defTitle.TextColor3 = color
  591. abaFrame.BorderColor3 = color
  592. abaTitulo.TextColor3 = color
  593. for _,btn in ipairs(rgbBtns) do
  594. btn.BorderColor3 = color
  595. end
  596. for _,btn in ipairs(rgbDefBtns) do
  597. btn.BorderColor3 = color
  598. end
  599. wait()
  600. end
  601. end)
  602.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement