Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variáveis globais
- local player = game.Players.LocalPlayer
- local ESPs = {}
- -- Criação da UI
- local ScreenGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local CloseButton = Instance.new("TextButton")
- local TeleportButton = Instance.new("TextButton")
- local ESPButton = Instance.new("TextButton")
- local ESPDisableButton = Instance.new("TextButton")
- local CreditsButton = Instance.new("TextButton")
- local IAGLButton = Instance.new("TextButton") -- Botão para IA GL
- local VersionLabel = Instance.new("TextLabel")
- local CreditsFrame = Instance.new("Frame")
- local CreditsCloseButton = Instance.new("TextButton")
- local CreditsText = Instance.new("TextLabel")
- -- Configurações da UI principal
- ScreenGui.Parent = player:WaitForChild("PlayerGui")
- MainFrame.Parent = ScreenGui
- MainFrame.Size = UDim2.new(0, 200, 0, 300)
- MainFrame.Position = UDim2.new(0, 10, 0, 10)
- MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- MainFrame.Active = true
- MainFrame.Draggable = true
- Title.Parent = MainFrame
- Title.Size = UDim2.new(1, 0, 0, 30)
- Title.Text = "Teleporte e ESP"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1
- Title.TextScaled = true
- CloseButton.Parent = MainFrame
- CloseButton.Size = UDim2.new(0, 20, 0, 20)
- CloseButton.Position = UDim2.new(1, -25, 0, 5)
- CloseButton.Text = "X"
- CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- TeleportButton.Parent = MainFrame
- TeleportButton.Size = UDim2.new(1, 0, 0, 40)
- TeleportButton.Position = UDim2.new(0, 0, 0, 40)
- TeleportButton.Text = "Ativar Teleporte"
- TeleportButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
- ESPButton.Parent = MainFrame
- ESPButton.Size = UDim2.new(1, 0, 0, 40)
- ESPButton.Position = UDim2.new(0, 0, 0, 80)
- ESPButton.Text = "Ativar ESP"
- ESPButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
- ESPDisableButton.Parent = MainFrame
- ESPDisableButton.Size = UDim2.new(1, 0, 0, 40)
- ESPDisableButton.Position = UDim2.new(0, 0, 0, 120)
- ESPDisableButton.Text = "Desativar ESP"
- ESPDisableButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
- CreditsButton.Parent = MainFrame
- CreditsButton.Size = UDim2.new(1, 0, 0, 40)
- CreditsButton.Position = UDim2.new(0, 0, 0, 160)
- CreditsButton.Text = "Créditos"
- CreditsButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
- IAGLButton.Parent = MainFrame
- IAGLButton.Size = UDim2.new(1, 0, 0, 40)
- IAGLButton.Position = UDim2.new(0, 0, 0, 200)
- IAGLButton.Text = "IA GL"
- IAGLButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
- VersionLabel.Parent = MainFrame
- VersionLabel.Size = UDim2.new(1, 0, 0, 30)
- VersionLabel.Position = UDim2.new(0, 0, 0, 240)
- VersionLabel.Text = "Versão 1.0"
- VersionLabel.BackgroundTransparency = 1
- VersionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- -- Criação da aba de Créditos
- CreditsFrame.Parent = ScreenGui
- CreditsFrame.Size = UDim2.new(0, 200, 0, 150)
- CreditsFrame.Position = UDim2.new(0.5, -100, 0.5, -75)
- CreditsFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- CreditsFrame.Visible = false
- CreditsCloseButton.Parent = CreditsFrame
- CreditsCloseButton.Size = UDim2.new(0, 20, 0, 20)
- CreditsCloseButton.Position = UDim2.new(1, -25, 0, 5)
- CreditsCloseButton.Text = "X"
- CreditsCloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- CreditsText.Parent = CreditsFrame
- CreditsText.Size = UDim2.new(1, 0, 1, 0)
- CreditsText.Text = "Desenvolvedor: @Gabriel13cassiano\nVersão: 1.0\nEm Desenvolvimento"
- CreditsText.TextColor3 = Color3.fromRGB(255, 255, 255)
- CreditsText.BackgroundTransparency = 1
- CreditsText.TextScaled = true
- -- Função para criar o ESP
- local function createESP(targetPlayer)
- if targetPlayer.Character and targetPlayer.Character:FindFirstChild("Head") then
- local BillboardGui = Instance.new("BillboardGui")
- BillboardGui.Name = "ESP"
- BillboardGui.Parent = targetPlayer.Character.Head
- BillboardGui.AlwaysOnTop = true
- BillboardGui.Size = UDim2.new(0, 100, 0, 40)
- BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
- local NameTag = Instance.new("TextLabel")
- NameTag.Parent = BillboardGui
- NameTag.BackgroundTransparency = 1
- NameTag.Size = UDim2.new(1, 0, 0.5, 0)
- NameTag.Text = targetPlayer.Name
- NameTag.TextColor3 = Color3.fromRGB(255, 255, 255)
- NameTag.TextStrokeTransparency = 0.5
- NameTag.TextScaled = true
- local HealthTag = Instance.new("TextLabel")
- HealthTag.Parent = BillboardGui
- HealthTag.BackgroundTransparency = 1
- HealthTag.Position = UDim2.new(0, 0, 0.5, 0)
- HealthTag.Size = UDim2.new(1, 0, 0.5, 0)
- HealthTag.TextColor3 = Color3.fromRGB(255, 0, 0)
- HealthTag.TextStrokeTransparency = 0.5
- HealthTag.TextScaled = true
- game:GetService("RunService").RenderStepped:Connect(function()
- if targetPlayer.Character and targetPlayer.Character:FindFirstChild("Humanoid") then
- HealthTag.Text = "HP: " .. math.floor(targetPlayer.Character.Humanoid.Health)
- local distance = (player.Character.HumanoidRootPart.Position - targetPlayer.Character.HumanoidRootPart.Position).magnitude
- NameTag.Text = targetPlayer.Name .. " (" .. math.floor(distance) .. "m)"
- end
- end)
- table.insert(ESPs, BillboardGui)
- end
- end
- -- Aplica ESP a todos os jogadores
- ESPButton.MouseButton1Click:Connect(function()
- for _, targetPlayer in pairs(game.Players:GetPlayers()) do
- if targetPlayer ~= player then
- createESP(targetPlayer)
- end
- end
- game.Players.PlayerAdded:Connect(function(targetPlayer)
- targetPlayer.CharacterAdded:Connect(function()
- wait(1)
- createESP(targetPlayer)
- end)
- end)
- end)
- -- Desativa ESP
- ESPDisableButton.MouseButton1Click:Connect(function()
- for _, esp in pairs(ESPs) do
- esp:Destroy()
- end
- ESPs = {}
- end)
- -- Teleporte
- local TeleportEnabled = false
- local TeleportItem = Instance.new("Tool")
- TeleportItem.Name = "Teleporte"
- TeleportItem.RequiresHandle = false
- TeleportItem.Parent = player.Backpack
- local previousPosition -- Para guardar a posição anterior
- -- Função para criar os efeitos visuais do teleporte
- local function createTeleportEffects(position)
- -- Efeito de bola de fogo
- local fireBall = Instance.new("Part")
- fireBall.Size = Vector3.new(2, 2, 2)
- fireBall.Position = position + Vector3.new(0, 10, 0)
- fireBall.BrickColor = BrickColor.new("Bright red")
- fireBall.Material = Enum.Material.Neon
- fireBall.Anchored = true
- fireBall.CanCollide = false
- fireBall.Parent = workspace
- local fireEffect = Instance.new("Fire", fireBall)
- fireEffect.Size = 10
- fireEffect.Heat = 10
- -- Efeito de fumaça
- local smoke = Instance.new("Smoke")
- smoke.Size = 5
- smoke.Color = Color3.fromRGB(255, 255, 255)
- smoke.Parent = fireBall
- -- Efeito de fogo --
- fireBall.Touched:Connect(function(hit)
- if hit:IsA("Player") then
- hit:TakeDamage(10) -- Dano ao jogador atingido
- end
- end)
- -- Destruir a bola de fogo após 2 segundos
- wait(2)
- fireBall:Destroy()
- end
- -- Ativar o teleporte
- TeleportButton.MouseButton1Click:Connect(function()
- if not TeleportEnabled then
- TeleportEnabled = true
- previousPosition = player.Character.HumanoidRootPart.Position -- Salvar a posição anterior
- -- Teleporte para a posição da arma do xerife em MM2
- if game.Workspace:FindFirstChild("SheriffWeapon") then
- player.Character.HumanoidRootPart.Position = game.Workspace.SheriffWeapon.Position
- createTeleportEffects(game.Workspace.SheriffWeapon.Position)
- wait(1) -- Esperar um segundo antes de retornar
- player.Character.HumanoidRootPart.Position = previousPosition -- Retornar à posição anterior
- end
- end
- end)
- -- Mostrar créditos
- CreditsButton.MouseButton1Click:Connect(function()
- CreditsFrame.Visible = true
- end)
- CreditsCloseButton.MouseButton1Click:Connect(function()
- CreditsFrame.Visible = false
- end)
- -- Funcionalidade "IA GL"
- IAGLButton.MouseButton1Click:Connect(function()
- local response = game:GetService("HttpService"):GetAsync("https://pastebin.com/raw/RwnKSEUa")
- local outputFrame = Instance.new("Frame")
- outputFrame.Size = UDim2.new(0, 400, 0, 200)
- outputFrame.Position = UDim2.new(0.5, -200, 0.5, -100)
- outputFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- outputFrame.Parent = ScreenGui
- local outputLabel = Instance.new("TextLabel")
- outputLabel.Size = UDim2.new(1, 0, 1, 0)
- outputLabel.Text = response
- outputLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- outputLabel.BackgroundTransparency = 1
- outputLabel.TextScaled = true
- outputLabel.Parent = outputFrame
- local closeButton = Instance.new("TextButton")
- closeButton.Size = UDim2.new(0, 50, 0, 30)
- closeButton.Position = UDim2.new(1, -60, 0, 5)
- closeButton.Text = "Fechar"
- closeButton.Parent = outputFrame
- closeButton.MouseButton1Click:Connect(function()
- outputFrame:Destroy()
- end)
- end)
- -- Fechar a UI principal
- CloseButton.MouseButton1Click:Connect(function()
- ScreenGui:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment