0% found this document useful (0 votes)
129 views3 pages

Roblox GUI Script for Tigro's Hub

This document contains a Lua script for creating a graphical user interface (GUI) in a Roblox game. The GUI includes features such as infinite jump and god mode buttons, as well as minimize and close functionalities. It also manages user interactions and updates the GUI based on the player's actions.

Uploaded by

marioking011514
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
129 views3 pages

Roblox GUI Script for Tigro's Hub

This document contains a Lua script for creating a graphical user interface (GUI) in a Roblox game. The GUI includes features such as infinite jump and god mode buttons, as well as minimize and close functionalities. It also manages user interactions and updates the GUI based on the player's actions.

Uploaded by

marioking011514
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

-- Criar GUI principal

local player = [Link]


local ScreenGui = [Link]("ScreenGui")
[Link] = "TigrosHub"
[Link] = player:WaitForChild("PlayerGui")
[Link] = false

-- Barra vermelha
local TopBar = [Link]("Frame")
[Link] = [Link](0, 300, 0, 30)
[Link] = [Link](0.5, -150, 0.1, 0)
TopBar.BackgroundColor3 = [Link](200, 0, 0)
[Link] = ScreenGui

-- Texto Tigro's Hub


local Title = [Link]("TextLabel")
[Link] = [Link](1, 0, 1, 0)
[Link] = 1
[Link] = "Tigro's Hub"
[Link] = [Link]
Title.TextColor3 = [Link](255, 255, 255)
[Link] = 20
[Link] = TopBar

-- Botão minimizar
local MinButton = [Link]("TextButton")
[Link] = [Link](0, 30, 1, 0)
[Link] = [Link](1, -60, 0, 0)
[Link] = "-"
[Link] = [Link]
[Link] = 20
MinButton.BackgroundColor3 = [Link](150, 0, 0)
MinButton.TextColor3 = [Link](1, 1, 1)
[Link] = TopBar

-- Botão fechar
local CloseButton = [Link]("TextButton")
[Link] = [Link](0, 30, 1, 0)
[Link] = [Link](1, -30, 0, 0)
[Link] = "X"
[Link] = [Link]
[Link] = 20
CloseButton.BackgroundColor3 = [Link](150, 0, 0)
CloseButton.TextColor3 = [Link](1, 1, 1)
[Link] = TopBar

-- Botão Inf Jump


local InfJumpButton = [Link]("TextButton")
[Link] = [Link](0, 280, 0, 40)
[Link] = [Link](0.5, -140, 0.1, 40)
[Link] = "Inf Jump: OFF"
[Link] = [Link]
[Link] = 18
InfJumpButton.BackgroundColor3 = [Link](60, 60, 60)
InfJumpButton.TextColor3 = [Link](1, 1, 1)
[Link] = ScreenGui

-- Botão Invencibilidade Absoluta


local GodModeButton = [Link]("TextButton")
[Link] = [Link](0, 280, 0, 40)
[Link] = [Link](0.5, -140, 0.1, 90)
[Link] = "Invencibilidade: OFF"
[Link] = [Link]
[Link] = 18
GodModeButton.BackgroundColor3 = [Link](60, 60, 60)
GodModeButton.TextColor3 = [Link](1, 1, 1)
[Link] = ScreenGui

-- Ícone para reabrir


local OpenIcon = [Link]("ImageButton")
[Link] = [Link](0, 50, 0, 50)
[Link] = [Link](0, 10, 0.9, 0)
[Link] = "rbxassetid://3926305904" -- ícone redondo padrão Roblox
[Link] = [Link](4, 4)
[Link] = [Link](36, 36)
[Link] = false
[Link] = 1
[Link] = ScreenGui

-- Variáveis de controle
local UIS = game:GetService("UserInputService")
local infJump = false
local godMode = false

-- Função Inf Jump


InfJumpButton.MouseButton1Click:Connect(function()
infJump = not infJump
[Link] = infJump and "Inf Jump: ON" or "Inf Jump: OFF"
end)

[Link]:Connect(function()
if infJump then
local char = [Link] or [Link]:Wait()
local hum = char:FindFirstChildOfClass("Humanoid")
if hum then
hum:ChangeState([Link])
end
end
end)

-- Invencibilidade Absoluta
GodModeButton.MouseButton1Click:Connect(function()
godMode = not godMode
[Link] = godMode and "Invencibilidade: ON" or "Invencibilidade:
OFF"

if godMode then
[Link](function()
while godMode do
local char = [Link] or [Link]:Wait()
local hum = char:FindFirstChildOfClass("Humanoid")
if hum then
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
hum:SetStateEnabled([Link], false)
end
[Link](0.05)
end
end)
end
end)

-- Minimizar GUI
MinButton.MouseButton1Click:Connect(function()
[Link] = false
[Link] = false
[Link] = false
[Link] = true
end)

-- Reabrir GUI
OpenIcon.MouseButton1Click:Connect(function()
[Link] = true
[Link] = true
[Link] = true
[Link] = false
end)

-- Fechar GUI e ícone


CloseButton.MouseButton1Click:Connect(function()
ScreenGui:Destroy()
end)

You might also like