Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- -- Function to create the Gr3g Gui
- local function createGr3gGui()
- -- Verifica se a GUI já existe e a destroi
- local gui = player.PlayerGui:FindFirstChild("Gr3gGui")
- if gui then
- gui:Destroy()
- end
- -- Cria uma nova GUI
- gui = Instance.new("ScreenGui")
- gui.Name = "Gr3gGui"
- gui.Parent = player.PlayerGui
- -- Criação do frame principal
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 200, 0, 200)
- frame.Position = UDim2.new(0, 10, 0, 10)
- frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Cor preta
- frame.BorderSizePixel = 2
- frame.BorderColor3 = Color3.new(1, 0, 0) -- Contorno vermelho
- frame.Parent = gui
- -- Adiciona cantos arredondados ao frame
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, 5)
- corner.Parent = frame
- -- Título da GUI
- local titleLabel = Instance.new("TextLabel")
- titleLabel.Text = "Gr3g Gui"
- titleLabel.Size = UDim2.new(1, 0, 0.2, 0)
- titleLabel.Position = UDim2.new(0, 0, 0, 0)
- titleLabel.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- titleLabel.TextColor3 = Color3.new(1, 0, 0) -- Texto vermelho
- titleLabel.Parent = frame
- -- Botão de velocidade
- local speedButton = Instance.new("TextButton")
- speedButton.Text = "Speed 100"
- speedButton.Size = UDim2.new(1, 0, 0.2, 0)
- speedButton.Position = UDim2.new(0, 0, 0.3, 0)
- speedButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Cor preta
- speedButton.BorderColor3 = Color3.new(1, 0, 0) -- Contorno vermelho
- speedButton.TextColor3 = Color3.new(1, 1, 1) -- Texto branco
- speedButton.Parent = frame
- -- Botão de alternar avatar (R15/R6)
- local toggleAvatarButton = Instance.new("TextButton")
- toggleAvatarButton.Text = "Toggle Avatar"
- toggleAvatarButton.Size = UDim2.new(1, 0, 0.2, 0)
- toggleAvatarButton.Position = UDim2.new(0, 0, 0.6, 0)
- toggleAvatarButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Cor preta
- toggleAvatarButton.BorderColor3 = Color3.new(1, 0, 0) -- Contorno vermelho
- toggleAvatarButton.TextColor3 = Color3.new(1, 1, 1) -- Texto branco
- toggleAvatarButton.Parent = frame
- -- Botão de chat
- local chatButton = Instance.new("TextButton")
- chatButton.Text = "Chat"
- chatButton.Size = UDim2.new(1, 0, 0.2, 0)
- chatButton.Position = UDim2.new(0, 0, 0.75, 0)
- chatButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Cor preta
- chatButton.BorderColor3 = Color3.new(1, 0, 0) -- Contorno vermelho
- chatButton.TextColor3 = Color3.new(1, 1, 1) -- Texto branco
- chatButton.Parent = frame
- -- Botão Anti-Sit
- local antiSitButton = Instance.new("TextButton")
- antiSitButton.Text = "Anti-Sit"
- antiSitButton.Size = UDim2.new(1, 0, 0.2, 0)
- antiSitButton.Position = UDim2.new(0, 0, 0.9, 0)
- antiSitButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Cor preta
- antiSitButton.BorderColor3 = Color3.new(1, 0, 0) -- Contorno vermelho
- antiSitButton.TextColor3 = Color3.new(1, 1, 1) -- Texto branco
- antiSitButton.Parent = frame
- -- Function to customize GUI colors
- local function customizeGuiColors(bgColor, borderColor, textColor)
- frame.BackgroundColor3 = bgColor
- frame.BorderColor3 = borderColor
- titleLabel.BackgroundColor3 = bgColor
- titleLabel.TextColor3 = textColor
- speedButton.BackgroundColor3 = bgColor
- speedButton.BorderColor3 = borderColor
- speedButton.TextColor3 = textColor
- toggleAvatarButton.BackgroundColor3 = bgColor
- toggleAvatarButton.BorderColor3 = borderColor
- toggleAvatarButton.TextColor3 = textColor
- chatButton.BackgroundColor3 = bgColor
- chatButton.BorderColor3 = borderColor
- chatButton.TextColor3 = textColor
- antiSitButton.BackgroundColor3 = bgColor
- antiSitButton.BorderColor3 = borderColor
- antiSitButton.TextColor3 = textColor
- end
- -- Toggle functionality for speed button
- local isSpeedEnabled = false
- local function toggleSpeed()
- isSpeedEnabled = not isSpeedEnabled
- player.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = isSpeedEnabled and 100 or 16
- end
- -- Toggle functionality for avatar button
- local isR6Avatar = false
- local function toggleAvatar()
- isR6Avatar = not isR6Avatar
- player.CharacterAppearance = isR6Avatar and Enum.AvatarAppearanceType.R6 or Enum.AvatarAppearanceType.R15
- end
- -- Evento de clique duplo para o botão de velocidade
- local function addButtonDoubleClickEvent(button, action)
- local lastClickTime = 0
- button.MouseButton1Click:Connect(function()
- local currentTime = tick()
- if currentTime - lastClickTime <= 0.5 then
- action()
- end
- lastClickTime = currentTime
- end)
- end
- -- Evento de clique duplo para o botão de velocidade
- addButtonDoubleClickEvent(speedButton, toggleSpeed)
- -- Evento de clique duplo para o botão de alternar avatar
- addButtonDoubleClickEvent(toggleAvatarButton, toggleAvatar)
- -- Evento de clique duplo para o botão da ferramenta de teleporte
- addButtonDoubleClickEvent(teleportToolButton, function()
- local character = player.Character
- local humanoid = character and character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- local backpack = player.Backpack
- local teleportTool = backpack:FindFirstChild("TeleportTool")
- if not teleportTool then
- teleportTool = Instance.new("Tool")
- teleportTool.Name = "TeleportTool"
- teleportTool.RequiresHandle = true
- local handle = Instance.new("Part")
- handle.Name = "Handle"
- handle.Size = Vector3.new(1, 1, 1)
- handle.TopSurface = Enum.SurfaceType.Smooth
- handle.BottomSurface = Enum.SurfaceType.Smooth
- handle.Parent = teleportTool
- teleportTool.Parent = backpack
- end
- teleportTool.Activated:Connect(function()
- local targetPosition = mouse.Hit.p
- character:SetPrimaryPartCFrame(CFrame.new(targetPosition))
- end)
- end
- end)
- -- Evento de clique duplo para o botão de chat
- addButtonDoubleClickEvent(chatButton, function()
- local args = {
- [1] = "Gr3g is here",
- [2] = "All"
- }
- game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest"):FireServer(unpack(args))
- end)
- -- Evento para o botão Anti-Sit
- addButtonDoubleClickEvent(antiSitButton, function()
- local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.Sit = false
- end
- end)
- -- Customize GUI colors
- customizeGuiColors(Color3.fromRGB(0, 0, 0), Color3.new(1, 0, 0), Color3.new(1, 1, 1))
- end
- -- Evento de criação da GUI quando o personagem é adicionado
- player.CharacterAdded:Connect(function()
- createGr3gGui()
- end)
- -- Inicialmente, cria a GUI
- createGr3gGui()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement