-- Create the main GUI frame
local ScreenGui = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local Tabs = Instance.new("Frame")
local ExplorerTab = Instance.new("TextButton")
local ExploitsTab = Instance.new("TextButton")
ScreenGui.Name = "funni gui"
ScreenGui.Parent = owner.PlayerGui
MainFrame.Name = "MainFrame"
MainFrame.Parent = ScreenGui
MainFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
MainFrame.Position = UDim2.new(0.2, 0, 0.2, 0)
MainFrame.Size = UDim2.new(0.6, 0, 0.6, 0)
Tabs.Name = "Tabs"
Tabs.Parent = MainFrame
Tabs.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
Tabs.Size = UDim2.new(1, 0, 0.1, 0)
ExplorerTab.Name = "ExplorerTab"
ExplorerTab.Parent = Tabs
ExplorerTab.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
ExplorerTab.Size = UDim2.new(0.5, 0, 1, 0)
ExplorerTab.Text = "Explorer"
ExploitsTab.Name = "ExploitsTab"
ExploitsTab.Parent = Tabs
ExploitsTab.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
ExploitsTab.Size = UDim2.new(0.5, 0, 1, 0)
ExploitsTab.Position = UDim2.new(0.5, 0, 0, 0)
ExploitsTab.Text = "Exploits"
-- Create the Explorer tab contents
local ExplorerFrame = Instance.new("Frame")
ExplorerFrame.Name = "ExplorerFrame"
ExplorerFrame.Parent = MainFrame
ExplorerFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
ExplorerFrame.Size = UDim2.new(1, 0, 0.9, 0)
ExplorerFrame.Position = UDim2.new(0, 0, 0.1, 0)
ExplorerFrame.Visible = true
-- Create the Exploits tab contents
local ExploitsFrame = Instance.new("Frame")
ExploitsFrame.Name = "ExploitsFrame"
ExploitsFrame.Parent = MainFrame
ExploitsFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
ExploitsFrame.Size = UDim2.new(1, 0, 0.9, 0)
ExploitsFrame.Position = UDim2.new(0, 0, 0.1, 0)
ExploitsFrame.Visible = false
-- Create buttons for Exploits
local ESPButton = Instance.new("TextButton")
ESPButton.Name = "ESPButton"
ESPButton.Parent = ExploitsFrame
ESPButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
ESPButton.Size = UDim2.new(0.3, 0, 0.1, 0)
ESPButton.Position = UDim2.new(0.1, 0, 0.1, 0)
ESPButton.Text = "ESP"
local TracersButton = Instance.new("TextButton")
TracersButton.Name = "TracersButton"
TracersButton.Parent = ExploitsFrame
TracersButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
TracersButton.Size = UDim2.new(0.3, 0, 0.1, 0)
TracersButton.Position = UDim2.new(0.1, 0, 0.25, 0)
TracersButton.Text = "Tracers"
local FlightButton = Instance.new("TextButton")
FlightButton.Name = "FlightButton"
FlightButton.Parent = ExploitsFrame
FlightButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
FlightButton.Size = UDim2.new(0.3, 0, 0.1, 0)
FlightButton.Position = UDim2.new(0.1, 0, 0.4, 0)
FlightButton.Text = "Flight"
local NoclipButton = Instance.new("TextButton")
NoclipButton.Name = "NoclipButton"
NoclipButton.Parent = ExploitsFrame
NoclipButton.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
NoclipButton.Size = UDim2.new(0.3, 0, 0.1, 0)
NoclipButton.Position = UDim2.new(0.1, 0, 0.55, 0)
NoclipButton.Text = "Noclip"
-- Switch between tabs
ExplorerTab.MouseButton1Click:Connect(function()
ExplorerFrame.Visible = true
ExploitsFrame.Visible = false
end)
ExploitsTab.MouseButton1Click:Connect(function()
ExplorerFrame.Visible = false
ExploitsFrame.Visible = true
end)
-- ESP Function
ESPButton.MouseButton1Click:Connect(function()
for i, player in pairs(game.Players:GetChildren()) do
if player ~= Owner then
local BillboardGui = Instance.new("BillboardGui")
local TextLabel = Instance.new("TextLabel")
BillboardGui.Name = "ESP"
BillboardGui.Parent = player.Character.Head
BillboardGui.AlwaysOnTop = true
BillboardGui.Size = UDim2.new(1, 0, 1, 0)
BillboardGui.StudsOffset = Vector3.new(0, 3, 0)
TextLabel.Parent = BillboardGui
TextLabel.Size = UDim2.new(1, 0, 1, 0)
TextLabel.BackgroundTransparency = 1
TextLabel.Text = player.Name
TextLabel.TextColor3 = Color3.new(1, 0, 0)
end
end
end)
-- Tracers Function
TracersButton.MouseButton1Click:Connect(function()
for i, player in pairs(game.Players:GetChildren()) do
if player ~= Owner then
local Line = Drawing.new("Line")
Line.From = Owner.Character.Head.Position
Line.To = player.Character.Head.Position
Line.Color = Color3.new(1, 0, 0)
Line.Thickness = 2
Line.Transparency = 1
Line.Visible = true
end
end
end)
-- Flight Function
FlightButton.MouseButton1Click:Connect(function()
local Player = Owner
local Mouse = Player:GetMouse()
local flying = false
local speed = 50
Mouse.KeyDown:Connect(function(key)
if key == "f" then
flying = not flying
while flying do
Player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Physics)
Player.Character.HumanoidRootPart.Velocity = Mouse.UnitRay.Direction * speed
wait()
end
end
end)
end)
-- Noclip Function
NoclipButton.MouseButton1Click:Connect(function()
local Player = Owner
local noclip = false
game:GetService('RunService').Stepped:Connect(function()
if noclip then
for i, v in pairs(Player.Character:GetDescendants()) do
if v:IsA("BasePart") then
v.CanCollide = false
end
end
end
end)
Mouse.KeyDown:Connect(function(key)
if key == "n" then
noclip = not noclip
end
end)
end)