Lucasluz

Untitled

Oct 5th, 2024
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.28 KB | None | 0 0
  1. -- Variáveis globais
  2. local player = game.Players.LocalPlayer
  3. local ESPs = {}
  4.  
  5. -- Criação da UI
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local MainFrame = Instance.new("Frame")
  8. local Title = Instance.new("TextLabel")
  9. local CloseButton = Instance.new("TextButton")
  10. local TeleportButton = Instance.new("TextButton")
  11. local ESPButton = Instance.new("TextButton")
  12. local ESPDisableButton = Instance.new("TextButton")
  13. local CreditsButton = Instance.new("TextButton")
  14. local IAGLButton = Instance.new("TextButton") -- Botão para IA GL
  15. local VersionLabel = Instance.new("TextLabel")
  16. local CreditsFrame = Instance.new("Frame")
  17. local CreditsCloseButton = Instance.new("TextButton")
  18. local CreditsText = Instance.new("TextLabel")
  19.  
  20. -- Configurações da UI principal
  21. ScreenGui.Parent = player:WaitForChild("PlayerGui")
  22. MainFrame.Parent = ScreenGui
  23. MainFrame.Size = UDim2.new(0, 200, 0, 300)
  24. MainFrame.Position = UDim2.new(0, 10, 0, 10)
  25. MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  26. MainFrame.Active = true
  27. MainFrame.Draggable = true
  28.  
  29. Title.Parent = MainFrame
  30. Title.Size = UDim2.new(1, 0, 0, 30)
  31. Title.Text = "Teleporte e ESP"
  32. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  33. Title.BackgroundTransparency = 1
  34. Title.TextScaled = true
  35.  
  36. CloseButton.Parent = MainFrame
  37. CloseButton.Size = UDim2.new(0, 20, 0, 20)
  38. CloseButton.Position = UDim2.new(1, -25, 0, 5)
  39. CloseButton.Text = "X"
  40. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  41.  
  42. TeleportButton.Parent = MainFrame
  43. TeleportButton.Size = UDim2.new(1, 0, 0, 40)
  44. TeleportButton.Position = UDim2.new(0, 0, 0, 40)
  45. TeleportButton.Text = "Ativar Teleporte"
  46. TeleportButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  47.  
  48. ESPButton.Parent = MainFrame
  49. ESPButton.Size = UDim2.new(1, 0, 0, 40)
  50. ESPButton.Position = UDim2.new(0, 0, 0, 80)
  51. ESPButton.Text = "Ativar ESP"
  52. ESPButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  53.  
  54. ESPDisableButton.Parent = MainFrame
  55. ESPDisableButton.Size = UDim2.new(1, 0, 0, 40)
  56. ESPDisableButton.Position = UDim2.new(0, 0, 0, 120)
  57. ESPDisableButton.Text = "Desativar ESP"
  58. ESPDisableButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  59.  
  60. CreditsButton.Parent = MainFrame
  61. CreditsButton.Size = UDim2.new(1, 0, 0, 40)
  62. CreditsButton.Position = UDim2.new(0, 0, 0, 160)
  63. CreditsButton.Text = "Créditos"
  64. CreditsButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  65.  
  66. IAGLButton.Parent = MainFrame
  67. IAGLButton.Size = UDim2.new(1, 0, 0, 40)
  68. IAGLButton.Position = UDim2.new(0, 0, 0, 200)
  69. IAGLButton.Text = "IA GL"
  70. IAGLButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  71.  
  72. VersionLabel.Parent = MainFrame
  73. VersionLabel.Size = UDim2.new(1, 0, 0, 30)
  74. VersionLabel.Position = UDim2.new(0, 0, 0, 240)
  75. VersionLabel.Text = "Versão 1.0"
  76. VersionLabel.BackgroundTransparency = 1
  77. VersionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  78.  
  79. -- Criação da aba de Créditos
  80. CreditsFrame.Parent = ScreenGui
  81. CreditsFrame.Size = UDim2.new(0, 200, 0, 150)
  82. CreditsFrame.Position = UDim2.new(0.5, -100, 0.5, -75)
  83. CreditsFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  84. CreditsFrame.Visible = false
  85.  
  86. CreditsCloseButton.Parent = CreditsFrame
  87. CreditsCloseButton.Size = UDim2.new(0, 20, 0, 20)
  88. CreditsCloseButton.Position = UDim2.new(1, -25, 0, 5)
  89. CreditsCloseButton.Text = "X"
  90. CreditsCloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  91.  
  92. CreditsText.Parent = CreditsFrame
  93. CreditsText.Size = UDim2.new(1, 0, 1, 0)
  94. CreditsText.Text = "Desenvolvedor: @Gabriel13cassiano\nVersão: 1.0\nEm Desenvolvimento"
  95. CreditsText.TextColor3 = Color3.fromRGB(255, 255, 255)
  96. CreditsText.BackgroundTransparency = 1
  97. CreditsText.TextScaled = true
  98.  
  99. -- Função para criar o ESP
  100. local function createESP(targetPlayer)
  101. if targetPlayer.Character and targetPlayer.Character:FindFirstChild("Head") then
  102. local BillboardGui = Instance.new("BillboardGui")
  103. BillboardGui.Name = "ESP"
  104. BillboardGui.Parent = targetPlayer.Character.Head
  105. BillboardGui.AlwaysOnTop = true
  106. BillboardGui.Size = UDim2.new(0, 100, 0, 40)
  107. BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
  108.  
  109. local NameTag = Instance.new("TextLabel")
  110. NameTag.Parent = BillboardGui
  111. NameTag.BackgroundTransparency = 1
  112. NameTag.Size = UDim2.new(1, 0, 0.5, 0)
  113. NameTag.Text = targetPlayer.Name
  114. NameTag.TextColor3 = Color3.fromRGB(255, 255, 255)
  115. NameTag.TextStrokeTransparency = 0.5
  116. NameTag.TextScaled = true
  117.  
  118. local HealthTag = Instance.new("TextLabel")
  119. HealthTag.Parent = BillboardGui
  120. HealthTag.BackgroundTransparency = 1
  121. HealthTag.Position = UDim2.new(0, 0, 0.5, 0)
  122. HealthTag.Size = UDim2.new(1, 0, 0.5, 0)
  123. HealthTag.TextColor3 = Color3.fromRGB(255, 0, 0)
  124. HealthTag.TextStrokeTransparency = 0.5
  125. HealthTag.TextScaled = true
  126.  
  127. game:GetService("RunService").RenderStepped:Connect(function()
  128. if targetPlayer.Character and targetPlayer.Character:FindFirstChild("Humanoid") then
  129. HealthTag.Text = "HP: " .. math.floor(targetPlayer.Character.Humanoid.Health)
  130. local distance = (player.Character.HumanoidRootPart.Position - targetPlayer.Character.HumanoidRootPart.Position).magnitude
  131. NameTag.Text = targetPlayer.Name .. " (" .. math.floor(distance) .. "m)"
  132. end
  133. end)
  134.  
  135. table.insert(ESPs, BillboardGui)
  136. end
  137. end
  138.  
  139. -- Aplica ESP a todos os jogadores
  140. ESPButton.MouseButton1Click:Connect(function()
  141. for _, targetPlayer in pairs(game.Players:GetPlayers()) do
  142. if targetPlayer ~= player then
  143. createESP(targetPlayer)
  144. end
  145. end
  146.  
  147. game.Players.PlayerAdded:Connect(function(targetPlayer)
  148. targetPlayer.CharacterAdded:Connect(function()
  149. wait(1)
  150. createESP(targetPlayer)
  151. end)
  152. end)
  153. end)
  154.  
  155. -- Desativa ESP
  156. ESPDisableButton.MouseButton1Click:Connect(function()
  157. for _, esp in pairs(ESPs) do
  158. esp:Destroy()
  159. end
  160. ESPs = {}
  161. end)
  162.  
  163. -- Teleporte
  164. local TeleportEnabled = false
  165. local TeleportItem = Instance.new("Tool")
  166. TeleportItem.Name = "Teleporte"
  167. TeleportItem.RequiresHandle = false
  168. TeleportItem.Parent = player.Backpack
  169. local previousPosition -- Para guardar a posição anterior
  170.  
  171. -- Função para criar os efeitos visuais do teleporte
  172. local function createTeleportEffects(position)
  173. -- Efeito de bola de fogo
  174. local fireBall = Instance.new("Part")
  175. fireBall.Size = Vector3.new(2, 2, 2)
  176. fireBall.Position = position + Vector3.new(0, 10, 0)
  177. fireBall.BrickColor = BrickColor.new("Bright red")
  178. fireBall.Material = Enum.Material.Neon
  179. fireBall.Anchored = true
  180. fireBall.CanCollide = false
  181. fireBall.Parent = workspace
  182.  
  183. local fireEffect = Instance.new("Fire", fireBall)
  184. fireEffect.Size = 10
  185. fireEffect.Heat = 10
  186.  
  187. -- Efeito de fumaça
  188. local smoke = Instance.new("Smoke")
  189. smoke.Size = 5
  190. smoke.Color = Color3.fromRGB(255, 255, 255)
  191. smoke.Parent = fireBall
  192.  
  193. -- Efeito de fogo --
  194. fireBall.Touched:Connect(function(hit)
  195. if hit:IsA("Player") then
  196. hit:TakeDamage(10) -- Dano ao jogador atingido
  197. end
  198. end)
  199.  
  200. -- Destruir a bola de fogo após 2 segundos
  201. wait(2)
  202. fireBall:Destroy()
  203. end
  204.  
  205. -- Ativar o teleporte
  206. TeleportButton.MouseButton1Click:Connect(function()
  207. if not TeleportEnabled then
  208. TeleportEnabled = true
  209. previousPosition = player.Character.HumanoidRootPart.Position -- Salvar a posição anterior
  210.  
  211. -- Teleporte para a posição da arma do xerife em MM2
  212. if game.Workspace:FindFirstChild("SheriffWeapon") then
  213. player.Character.HumanoidRootPart.Position = game.Workspace.SheriffWeapon.Position
  214. createTeleportEffects(game.Workspace.SheriffWeapon.Position)
  215. wait(1) -- Esperar um segundo antes de retornar
  216. player.Character.HumanoidRootPart.Position = previousPosition -- Retornar à posição anterior
  217. end
  218. end
  219. end)
  220.  
  221. -- Mostrar créditos
  222. CreditsButton.MouseButton1Click:Connect(function()
  223. CreditsFrame.Visible = true
  224. end)
  225.  
  226. CreditsCloseButton.MouseButton1Click:Connect(function()
  227. CreditsFrame.Visible = false
  228. end)
  229.  
  230. -- Funcionalidade "IA GL"
  231. IAGLButton.MouseButton1Click:Connect(function()
  232. local response = game:GetService("HttpService"):GetAsync("https://pastebin.com/raw/RwnKSEUa")
  233. local outputFrame = Instance.new("Frame")
  234. outputFrame.Size = UDim2.new(0, 400, 0, 200)
  235. outputFrame.Position = UDim2.new(0.5, -200, 0.5, -100)
  236. outputFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  237. outputFrame.Parent = ScreenGui
  238.  
  239. local outputLabel = Instance.new("TextLabel")
  240. outputLabel.Size = UDim2.new(1, 0, 1, 0)
  241. outputLabel.Text = response
  242. outputLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  243. outputLabel.BackgroundTransparency = 1
  244. outputLabel.TextScaled = true
  245. outputLabel.Parent = outputFrame
  246.  
  247. local closeButton = Instance.new("TextButton")
  248. closeButton.Size = UDim2.new(0, 50, 0, 30)
  249. closeButton.Position = UDim2.new(1, -60, 0, 5)
  250. closeButton.Text = "Fechar"
  251. closeButton.Parent = outputFrame
  252.  
  253. closeButton.MouseButton1Click:Connect(function()
  254. outputFrame:Destroy()
  255. end)
  256. end)
  257.  
  258. -- Fechar a UI principal
  259. CloseButton.MouseButton1Click:Connect(function()
  260. ScreenGui:Destroy()
  261. end)
Advertisement
Add Comment
Please, Sign In to add comment