Tartenka

Untitled

Apr 6th, 2025 (edited)
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.49 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local LocalPlayer = Players.LocalPlayer
  3. local UserInputService = game:GetService("UserInputService")
  4. local RunService = game:GetService("RunService")
  5. local Lighting = game:GetService("Lighting")
  6. local Camera = workspace.CurrentCamera
  7.  
  8. local config = {
  9. MislightEnabled = false,
  10. PlayerHighlightEnabled = false,
  11. FullBrightEnabled = false,
  12. AimBotEnabled = false,
  13. ShowFireButton = UserInputService.TouchEnabled,
  14. CreatorName = "camangel213"
  15. }
  16.  
  17. local fireButton
  18. local originalLighting = {
  19. Ambient = Lighting.Ambient,
  20. Brightness = Lighting.Brightness,
  21. GlobalShadows = Lighting.GlobalShadows
  22. }
  23.  
  24. local function UpdateFireButton()
  25. if fireButton then fireButton:Destroy() end
  26.  
  27. if config.ShowFireButton then
  28. fireButton = Instance.new("ScreenGui")
  29. fireButton.Name = "MobileFireButton"
  30. fireButton.ResetOnSpawn = false
  31. fireButton.Parent = LocalPlayer:WaitForChild("PlayerGui")
  32.  
  33. local button = Instance.new("TextButton")
  34. button.Size = UDim2.new(0, 100, 0, 100)
  35. button.Position = UDim2.new(1, -120, 1, -120)
  36. button.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
  37. button.TextColor3 = Color3.new(1, 1, 1)
  38. button.Text = "FIRE"
  39. button.Font = Enum.Font.GothamBold
  40. button.TextSize = 18
  41. button.Parent = fireButton
  42.  
  43. local corner = Instance.new("UICorner")
  44. corner.CornerRadius = UDim.new(1, 0)
  45. corner.Parent = button
  46.  
  47. button.MouseButton1Click:Connect(function()
  48. if LocalPlayer.Character then
  49. local humanoid = LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
  50. if humanoid then
  51. humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
  52. task.wait(0.1)
  53. humanoid:ChangeState(Enum.HumanoidStateType.Running)
  54. end
  55. end
  56. end)
  57. end
  58. end
  59.  
  60. local function UpdateFullBright()
  61. if config.FullBrightEnabled then
  62. Lighting.Ambient = Color3.fromRGB(150, 150, 150)
  63. Lighting.Brightness = 2
  64. Lighting.GlobalShadows = false
  65.  
  66. if LocalPlayer.Character then
  67. local light = LocalPlayer.Character:FindFirstChild("PlayerLight") or Instance.new("PointLight")
  68. light.Name = "PlayerLight"
  69. light.Brightness = 1
  70. light.Range = 30
  71. light.Color = Color3.fromRGB(255, 240, 220)
  72. light.Parent = LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  73. end
  74. else
  75. Lighting.Ambient = originalLighting.Ambient
  76. Lighting.Brightness = originalLighting.Brightness
  77. Lighting.GlobalShadows = originalLighting.GlobalShadows
  78.  
  79. if LocalPlayer.Character then
  80. local light = LocalPlayer.Character:FindFirstChild("PlayerLight")
  81. if light then light:Destroy() end
  82. end
  83. end
  84. end
  85.  
  86. local function FindMislights()
  87. local mislights = {}
  88. for _, obj in ipairs(workspace:GetDescendants()) do
  89. if (obj.Name:lower() == "screen" or obj.Name == "Screen") and obj:IsA("BasePart") then
  90. table.insert(mislights, obj)
  91. end
  92. end
  93. return mislights
  94. end
  95.  
  96. local function UpdateMislight()
  97. local mislights = FindMislights()
  98. for _, mislight in ipairs(mislights) do
  99. if config.MislightEnabled then
  100. if not mislight:FindFirstChild("MislightHighlight") then
  101. local highlight = Instance.new("Highlight")
  102. highlight.Name = "MislightHighlight"
  103. highlight.FillColor = Color3.fromRGB(0, 150, 255)
  104. highlight.OutlineColor = Color3.fromRGB(0, 200, 255)
  105. highlight.FillTransparency = 0.3
  106. highlight.Parent = mislight
  107. end
  108. else
  109. local highlight = mislight:FindFirstChild("MislightHighlight")
  110. if highlight then highlight:Destroy() end
  111. end
  112. end
  113. end
  114.  
  115. local function SetupAimbot()
  116. if not config.AimBotEnabled then return end
  117.  
  118. local UIS = game:GetService("UserInputService")
  119. local aiming = false
  120.  
  121. local function findClosestHead()
  122. local closestHead = nil
  123. local closestDistance = math.huge
  124. local localTeam = LocalPlayer.Team
  125.  
  126. for _, player in ipairs(Players:GetPlayers()) do
  127. if player ~= LocalPlayer and player.Character and (not localTeam or player.Team ~= localTeam) then
  128. local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  129. local head = player.Character:FindFirstChild("Head")
  130.  
  131. if humanoid and humanoid.Health > 0 and head then
  132. local screenPoint = Camera:WorldToViewportPoint(head.Position)
  133. if screenPoint.Z > 0 then
  134. local mousePos = UIS:GetMouseLocation()
  135. local distance = (Vector2.new(screenPoint.X, screenPoint.Y) - mousePos).Magnitude
  136. if distance < closestDistance then
  137. closestDistance = distance
  138. closestHead = head
  139. end
  140. end
  141. end
  142. end
  143. end
  144.  
  145. return closestHead
  146. end
  147.  
  148. local function updateAimbot()
  149. while aiming and config.AimBotEnabled do
  150. local head = findClosestHead()
  151. if head then
  152. Camera.CFrame = CFrame.lookAt(Camera.CFrame.Position, head.Position)
  153. end
  154. RunService.RenderStepped:Wait()
  155. end
  156. end
  157.  
  158. UIS.InputBegan:Connect(function(input, gameProcessed)
  159. if not config.AimBotEnabled or gameProcessed then return end
  160.  
  161. if input.UserInputType == Enum.UserInputType.MouseButton2 then
  162. aiming = true
  163. updateAimbot()
  164. end
  165. end)
  166.  
  167. UIS.InputEnded:Connect(function(input, gameProcessed)
  168. if input.UserInputType == Enum.UserInputType.MouseButton2 then
  169. aiming = false
  170. end
  171. end)
  172. end
  173.  
  174. local function UpdatePlayerHighlights()
  175. while true do
  176. if config.PlayerHighlightEnabled then
  177. for _, player in ipairs(Players:GetPlayers()) do
  178. if player.Character then
  179. local highlight = player.Character:FindFirstChild("PlayerHighlight") or Instance.new("Highlight")
  180. highlight.Name = "PlayerHighlight"
  181. highlight.FillColor = player.Team and player.Team.TeamColor.Color or Color3.new(1, 1, 1)
  182. highlight.OutlineColor = highlight.FillColor
  183. highlight.FillTransparency = 0.5
  184.  
  185. if not player:GetAttribute("PlayerHighlightConnected") then
  186. player:SetAttribute("PlayerHighlightConnected", true)
  187.  
  188. if player:FindFirstChild("Team") then
  189. player.TeamChanged:Connect(function()
  190. if player.Character and config.PlayerHighlightEnabled then
  191. local hl = player.Character:FindFirstChild("PlayerHighlight")
  192. if hl then
  193. hl.FillColor = player.Team and player.Team.TeamColor.Color or Color3.new(1, 1, 1)
  194. hl.OutlineColor = hl.FillColor
  195. end
  196. end
  197. end)
  198. end
  199. end
  200.  
  201. highlight.Parent = player.Character
  202. end
  203. end
  204. else
  205. for _, player in ipairs(Players:GetPlayers()) do
  206. if player.Character then
  207. local highlight = player.Character:FindFirstChild("PlayerHighlight")
  208. if highlight then highlight:Destroy() end
  209. end
  210. end
  211. end
  212. task.wait(1)
  213. end
  214. end
  215.  
  216. local function SetupCreatorTag()
  217. local function checkCreator(player)
  218. if player.Name == config.CreatorName then
  219. local character = player.Character or player.CharacterAdded:Wait()
  220. local head = character:WaitForChild("Head")
  221.  
  222. local billboard = Instance.new("BillboardGui")
  223. billboard.Name = "CreatorTag"
  224. billboard.Adornee = head
  225. billboard.Size = UDim2.new(0, 200, 0, 50)
  226. billboard.StudsOffset = Vector3.new(0, 3, 0)
  227. billboard.AlwaysOnTop = true
  228. billboard.Parent = head
  229.  
  230. local textLabel = Instance.new("TextLabel")
  231. textLabel.Text = "MGE Hub Creator"
  232. textLabel.Size = UDim2.new(1, 0, 1, 0)
  233. textLabel.BackgroundTransparency = 1
  234. textLabel.TextColor3 = Color3.fromRGB(100, 200, 255)
  235. textLabel.Font = Enum.Font.GothamBold
  236. textLabel.TextSize = 18
  237. textLabel.Parent = billboard
  238.  
  239. player.CharacterAdded:Connect(function(newChar)
  240. local newHead = newChar:WaitForChild("Head")
  241. billboard.Adornee = newHead
  242. billboard.Parent = newHead
  243. end)
  244. end
  245. end
  246.  
  247. for _, player in ipairs(Players:GetPlayers()) do
  248. checkCreator(player)
  249. end
  250.  
  251. Players.PlayerAdded:Connect(checkCreator)
  252. end
  253.  
  254. local screenGui = Instance.new("ScreenGui")
  255. screenGui.Name = "MGEHubGUI"
  256. screenGui.ResetOnSpawn = false
  257. screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
  258.  
  259. local mainFrame = Instance.new("Frame")
  260. mainFrame.Size = UDim2.new(0, 350, 0, 320)
  261. mainFrame.Position = UDim2.new(0.5, -175, 0.1, 0)
  262. mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
  263. mainFrame.BorderSizePixel = 0
  264. mainFrame.Active = true
  265. mainFrame.Draggable = true
  266. mainFrame.Parent = screenGui
  267.  
  268. local title = Instance.new("TextLabel")
  269. title.Text = "MGE HUB"
  270. title.Size = UDim2.new(1, 0, 0, 50)
  271. title.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
  272. title.TextColor3 = Color3.fromRGB(100, 200, 255)
  273. title.Font = Enum.Font.GothamBold
  274. title.TextSize = 24
  275. title.Parent = mainFrame
  276.  
  277. local function CreateButton(name, yPos, configKey)
  278. local button = Instance.new("TextButton")
  279. button.Name = name
  280. button.Text = name..": "..(config[configKey] and "ON" or "OFF")
  281. button.Size = UDim2.new(0.9, 0, 0, 40)
  282. button.Position = UDim2.new(0.05, 0, 0, yPos)
  283. button.BackgroundColor3 = config[configKey] and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(150, 0, 0)
  284. button.TextColor3 = Color3.new(1, 1, 1)
  285. button.Font = Enum.Font.Gotham
  286. button.TextSize = 16
  287. button.Parent = mainFrame
  288.  
  289. button.MouseButton1Click:Connect(function()
  290. config[configKey] = not config[configKey]
  291. button.Text = name..": "..(config[configKey] and "ON" or "OFF")
  292. button.BackgroundColor3 = config[configKey] and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(150, 0, 0)
  293.  
  294. if configKey == "AimBotEnabled" then
  295. if config.AimBotEnabled then
  296. SetupAimbot()
  297. end
  298. elseif configKey == "PlayerHighlightEnabled" then
  299. elseif configKey == "MislightEnabled" then
  300. UpdateMislight()
  301. elseif configKey == "FullBrightEnabled" then
  302. UpdateFullBright()
  303. elseif configKey == "ShowFireButton" then
  304. UpdateFireButton()
  305. end
  306. end)
  307. end
  308.  
  309. CreateButton("Подсветка мисайдов", 55, "MislightEnabled")
  310. CreateButton("Подсветка игроков", 105, "PlayerHighlightEnabled")
  311. CreateButton("FullBright", 155, "FullBrightEnabled")
  312.  
  313. if not UserInputService.TouchEnabled then
  314. CreateButton("Аимбот (ПКМ, работает только на ПК)", 205, "AimBotEnabled")
  315. end
  316.  
  317. if UserInputService.TouchEnabled then
  318. CreateButton("Fire Button", 255, "ShowFireButton")
  319. end
  320.  
  321. UpdateFireButton()
  322. UpdateFullBright()
  323. SetupCreatorTag()
  324.  
  325. task.spawn(UpdatePlayerHighlights)
  326.  
  327. while true do
  328. if config.MislightEnabled then
  329. UpdateMislight()
  330. else
  331. local mislights = FindMislights()
  332. for _, mislight in ipairs(mislights) do
  333. local highlight = mislight:FindFirstChild("MislightHighlight")
  334. if highlight then highlight:Destroy() end
  335. end
  336. end
  337. task.wait(1)
  338. end
Advertisement
Add Comment
Please, Sign In to add comment