Advertisement
arwaawfwa

Untitled

Jan 8th, 2024 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.31 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3.  
  4. -- Function to create the Gr3g Gui
  5. local function createGr3gGui()
  6. -- Verifica se a GUI já existe e a destroi
  7. local gui = player.PlayerGui:FindFirstChild("Gr3gGui")
  8. if gui then
  9. gui:Destroy()
  10. end
  11.  
  12. -- Cria uma nova GUI
  13. gui = Instance.new("ScreenGui")
  14. gui.Name = "Gr3gGui"
  15. gui.Parent = player.PlayerGui
  16.  
  17. -- Criação do frame principal
  18. local frame = Instance.new("Frame")
  19. frame.Size = UDim2.new(0, 200, 0, 200)
  20. frame.Position = UDim2.new(0, 10, 0, 10)
  21. frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Cor preta
  22. frame.BorderSizePixel = 2
  23. frame.BorderColor3 = Color3.new(1, 0, 0) -- Contorno vermelho
  24. frame.Parent = gui
  25.  
  26. -- Adiciona cantos arredondados ao frame
  27. local corner = Instance.new("UICorner")
  28. corner.CornerRadius = UDim.new(0, 5)
  29. corner.Parent = frame
  30.  
  31. -- Título da GUI
  32. local titleLabel = Instance.new("TextLabel")
  33. titleLabel.Text = "Gr3g Gui"
  34. titleLabel.Size = UDim2.new(1, 0, 0.2, 0)
  35. titleLabel.Position = UDim2.new(0, 0, 0, 0)
  36. titleLabel.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  37. titleLabel.TextColor3 = Color3.new(1, 0, 0) -- Texto vermelho
  38. titleLabel.Parent = frame
  39.  
  40. -- Botão de velocidade
  41. local speedButton = Instance.new("TextButton")
  42. speedButton.Text = "Speed 100"
  43. speedButton.Size = UDim2.new(1, 0, 0.2, 0)
  44. speedButton.Position = UDim2.new(0, 0, 0.3, 0)
  45. speedButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Cor preta
  46. speedButton.BorderColor3 = Color3.new(1, 0, 0) -- Contorno vermelho
  47. speedButton.TextColor3 = Color3.new(1, 1, 1) -- Texto branco
  48. speedButton.Parent = frame
  49.  
  50. -- Botão de alternar avatar (R15/R6)
  51. local toggleAvatarButton = Instance.new("TextButton")
  52. toggleAvatarButton.Text = "Toggle Avatar"
  53. toggleAvatarButton.Size = UDim2.new(1, 0, 0.2, 0)
  54. toggleAvatarButton.Position = UDim2.new(0, 0, 0.6, 0)
  55. toggleAvatarButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Cor preta
  56. toggleAvatarButton.BorderColor3 = Color3.new(1, 0, 0) -- Contorno vermelho
  57. toggleAvatarButton.TextColor3 = Color3.new(1, 1, 1) -- Texto branco
  58. toggleAvatarButton.Parent = frame
  59.  
  60. -- Botão de chat
  61. local chatButton = Instance.new("TextButton")
  62. chatButton.Text = "Chat"
  63. chatButton.Size = UDim2.new(1, 0, 0.2, 0)
  64. chatButton.Position = UDim2.new(0, 0, 0.75, 0)
  65. chatButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Cor preta
  66. chatButton.BorderColor3 = Color3.new(1, 0, 0) -- Contorno vermelho
  67. chatButton.TextColor3 = Color3.new(1, 1, 1) -- Texto branco
  68. chatButton.Parent = frame
  69.  
  70. -- Botão Anti-Sit
  71. local antiSitButton = Instance.new("TextButton")
  72. antiSitButton.Text = "Anti-Sit"
  73. antiSitButton.Size = UDim2.new(1, 0, 0.2, 0)
  74. antiSitButton.Position = UDim2.new(0, 0, 0.9, 0)
  75. antiSitButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Cor preta
  76. antiSitButton.BorderColor3 = Color3.new(1, 0, 0) -- Contorno vermelho
  77. antiSitButton.TextColor3 = Color3.new(1, 1, 1) -- Texto branco
  78. antiSitButton.Parent = frame
  79.  
  80. -- Function to customize GUI colors
  81. local function customizeGuiColors(bgColor, borderColor, textColor)
  82. frame.BackgroundColor3 = bgColor
  83. frame.BorderColor3 = borderColor
  84. titleLabel.BackgroundColor3 = bgColor
  85. titleLabel.TextColor3 = textColor
  86. speedButton.BackgroundColor3 = bgColor
  87. speedButton.BorderColor3 = borderColor
  88. speedButton.TextColor3 = textColor
  89. toggleAvatarButton.BackgroundColor3 = bgColor
  90. toggleAvatarButton.BorderColor3 = borderColor
  91. toggleAvatarButton.TextColor3 = textColor
  92. chatButton.BackgroundColor3 = bgColor
  93. chatButton.BorderColor3 = borderColor
  94. chatButton.TextColor3 = textColor
  95. antiSitButton.BackgroundColor3 = bgColor
  96. antiSitButton.BorderColor3 = borderColor
  97. antiSitButton.TextColor3 = textColor
  98. end
  99.  
  100. -- Toggle functionality for speed button
  101. local isSpeedEnabled = false
  102.  
  103. local function toggleSpeed()
  104. isSpeedEnabled = not isSpeedEnabled
  105. player.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = isSpeedEnabled and 100 or 16
  106. end
  107.  
  108. -- Toggle functionality for avatar button
  109. local isR6Avatar = false
  110.  
  111. local function toggleAvatar()
  112. isR6Avatar = not isR6Avatar
  113. player.CharacterAppearance = isR6Avatar and Enum.AvatarAppearanceType.R6 or Enum.AvatarAppearanceType.R15
  114. end
  115.  
  116. -- Evento de clique duplo para o botão de velocidade
  117. local function addButtonDoubleClickEvent(button, action)
  118. local lastClickTime = 0
  119.  
  120. button.MouseButton1Click:Connect(function()
  121. local currentTime = tick()
  122.  
  123. if currentTime - lastClickTime <= 0.5 then
  124. action()
  125. end
  126.  
  127. lastClickTime = currentTime
  128. end)
  129. end
  130.  
  131. -- Evento de clique duplo para o botão de velocidade
  132. addButtonDoubleClickEvent(speedButton, toggleSpeed)
  133.  
  134. -- Evento de clique duplo para o botão de alternar avatar
  135. addButtonDoubleClickEvent(toggleAvatarButton, toggleAvatar)
  136.  
  137. -- Evento de clique duplo para o botão da ferramenta de teleporte
  138. addButtonDoubleClickEvent(teleportToolButton, function()
  139. local character = player.Character
  140. local humanoid = character and character:FindFirstChildOfClass("Humanoid")
  141.  
  142. if humanoid then
  143. local backpack = player.Backpack
  144. local teleportTool = backpack:FindFirstChild("TeleportTool")
  145.  
  146. if not teleportTool then
  147. teleportTool = Instance.new("Tool")
  148. teleportTool.Name = "TeleportTool"
  149. teleportTool.RequiresHandle = true
  150.  
  151. local handle = Instance.new("Part")
  152. handle.Name = "Handle"
  153. handle.Size = Vector3.new(1, 1, 1)
  154. handle.TopSurface = Enum.SurfaceType.Smooth
  155. handle.BottomSurface = Enum.SurfaceType.Smooth
  156. handle.Parent = teleportTool
  157.  
  158. teleportTool.Parent = backpack
  159. end
  160.  
  161. teleportTool.Activated:Connect(function()
  162. local targetPosition = mouse.Hit.p
  163. character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
  164. end)
  165. end
  166. end)
  167.  
  168. -- Evento de clique duplo para o botão de chat
  169. addButtonDoubleClickEvent(chatButton, function()
  170. local args = {
  171. [1] = "Gr3g is here",
  172. [2] = "All"
  173. }
  174.  
  175. game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest"):FireServer(unpack(args))
  176. end)
  177.  
  178. -- Evento para o botão Anti-Sit
  179. addButtonDoubleClickEvent(antiSitButton, function()
  180. local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  181. if humanoid then
  182. humanoid.Sit = false
  183. end
  184. end)
  185.  
  186. -- Customize GUI colors
  187. customizeGuiColors(Color3.fromRGB(0, 0, 0), Color3.new(1, 0, 0), Color3.new(1, 1, 1))
  188. end
  189.  
  190. -- Evento de criação da GUI quando o personagem é adicionado
  191. player.CharacterAdded:Connect(function()
  192. createGr3gGui()
  193. end)
  194.  
  195. -- Inicialmente, cria a GUI
  196. createGr3gGui()
  197.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement