Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local Lighting = game:GetService("Lighting")
- local Camera = workspace.CurrentCamera
- local config = {
- MislightEnabled = false,
- PlayerHighlightEnabled = false,
- FullBrightEnabled = false,
- AimBotEnabled = false,
- ShowFireButton = UserInputService.TouchEnabled,
- CreatorName = "camangel213"
- }
- local fireButton
- local originalLighting = {
- Ambient = Lighting.Ambient,
- Brightness = Lighting.Brightness,
- GlobalShadows = Lighting.GlobalShadows
- }
- local function UpdateFireButton()
- if fireButton then fireButton:Destroy() end
- if config.ShowFireButton then
- fireButton = Instance.new("ScreenGui")
- fireButton.Name = "MobileFireButton"
- fireButton.ResetOnSpawn = false
- fireButton.Parent = LocalPlayer:WaitForChild("PlayerGui")
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(0, 100, 0, 100)
- button.Position = UDim2.new(1, -120, 1, -120)
- button.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
- button.TextColor3 = Color3.new(1, 1, 1)
- button.Text = "FIRE"
- button.Font = Enum.Font.GothamBold
- button.TextSize = 18
- button.Parent = fireButton
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(1, 0)
- corner.Parent = button
- button.MouseButton1Click:Connect(function()
- if LocalPlayer.Character then
- local humanoid = LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid:ChangeState(Enum.HumanoidStateType.Freefall)
- task.wait(0.1)
- humanoid:ChangeState(Enum.HumanoidStateType.Running)
- end
- end
- end)
- end
- end
- local function UpdateFullBright()
- if config.FullBrightEnabled then
- Lighting.Ambient = Color3.fromRGB(150, 150, 150)
- Lighting.Brightness = 2
- Lighting.GlobalShadows = false
- if LocalPlayer.Character then
- local light = LocalPlayer.Character:FindFirstChild("PlayerLight") or Instance.new("PointLight")
- light.Name = "PlayerLight"
- light.Brightness = 1
- light.Range = 30
- light.Color = Color3.fromRGB(255, 240, 220)
- light.Parent = LocalPlayer.Character:WaitForChild("HumanoidRootPart")
- end
- else
- Lighting.Ambient = originalLighting.Ambient
- Lighting.Brightness = originalLighting.Brightness
- Lighting.GlobalShadows = originalLighting.GlobalShadows
- if LocalPlayer.Character then
- local light = LocalPlayer.Character:FindFirstChild("PlayerLight")
- if light then light:Destroy() end
- end
- end
- end
- local function FindMislights()
- local mislights = {}
- for _, obj in ipairs(workspace:GetDescendants()) do
- if (obj.Name:lower() == "screen" or obj.Name == "Screen") and obj:IsA("BasePart") then
- table.insert(mislights, obj)
- end
- end
- return mislights
- end
- local function UpdateMislight()
- local mislights = FindMislights()
- for _, mislight in ipairs(mislights) do
- if config.MislightEnabled then
- if not mislight:FindFirstChild("MislightHighlight") then
- local highlight = Instance.new("Highlight")
- highlight.Name = "MislightHighlight"
- highlight.FillColor = Color3.fromRGB(0, 150, 255)
- highlight.OutlineColor = Color3.fromRGB(0, 200, 255)
- highlight.FillTransparency = 0.3
- highlight.Parent = mislight
- end
- else
- local highlight = mislight:FindFirstChild("MislightHighlight")
- if highlight then highlight:Destroy() end
- end
- end
- end
- local function SetupAimbot()
- if not config.AimBotEnabled then return end
- local UIS = game:GetService("UserInputService")
- local aiming = false
- local function findClosestHead()
- local closestHead = nil
- local closestDistance = math.huge
- local localTeam = LocalPlayer.Team
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= LocalPlayer and player.Character and (not localTeam or player.Team ~= localTeam) then
- local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
- local head = player.Character:FindFirstChild("Head")
- if humanoid and humanoid.Health > 0 and head then
- local screenPoint = Camera:WorldToViewportPoint(head.Position)
- if screenPoint.Z > 0 then
- local mousePos = UIS:GetMouseLocation()
- local distance = (Vector2.new(screenPoint.X, screenPoint.Y) - mousePos).Magnitude
- if distance < closestDistance then
- closestDistance = distance
- closestHead = head
- end
- end
- end
- end
- end
- return closestHead
- end
- local function updateAimbot()
- while aiming and config.AimBotEnabled do
- local head = findClosestHead()
- if head then
- Camera.CFrame = CFrame.lookAt(Camera.CFrame.Position, head.Position)
- end
- RunService.RenderStepped:Wait()
- end
- end
- UIS.InputBegan:Connect(function(input, gameProcessed)
- if not config.AimBotEnabled or gameProcessed then return end
- if input.UserInputType == Enum.UserInputType.MouseButton2 then
- aiming = true
- updateAimbot()
- end
- end)
- UIS.InputEnded:Connect(function(input, gameProcessed)
- if input.UserInputType == Enum.UserInputType.MouseButton2 then
- aiming = false
- end
- end)
- end
- local function UpdatePlayerHighlights()
- while true do
- if config.PlayerHighlightEnabled then
- for _, player in ipairs(Players:GetPlayers()) do
- if player.Character then
- local highlight = player.Character:FindFirstChild("PlayerHighlight") or Instance.new("Highlight")
- highlight.Name = "PlayerHighlight"
- highlight.FillColor = player.Team and player.Team.TeamColor.Color or Color3.new(1, 1, 1)
- highlight.OutlineColor = highlight.FillColor
- highlight.FillTransparency = 0.5
- if not player:GetAttribute("PlayerHighlightConnected") then
- player:SetAttribute("PlayerHighlightConnected", true)
- if player:FindFirstChild("Team") then
- player.TeamChanged:Connect(function()
- if player.Character and config.PlayerHighlightEnabled then
- local hl = player.Character:FindFirstChild("PlayerHighlight")
- if hl then
- hl.FillColor = player.Team and player.Team.TeamColor.Color or Color3.new(1, 1, 1)
- hl.OutlineColor = hl.FillColor
- end
- end
- end)
- end
- end
- highlight.Parent = player.Character
- end
- end
- else
- for _, player in ipairs(Players:GetPlayers()) do
- if player.Character then
- local highlight = player.Character:FindFirstChild("PlayerHighlight")
- if highlight then highlight:Destroy() end
- end
- end
- end
- task.wait(1)
- end
- end
- local function SetupCreatorTag()
- local function checkCreator(player)
- if player.Name == config.CreatorName then
- local character = player.Character or player.CharacterAdded:Wait()
- local head = character:WaitForChild("Head")
- local billboard = Instance.new("BillboardGui")
- billboard.Name = "CreatorTag"
- billboard.Adornee = head
- billboard.Size = UDim2.new(0, 200, 0, 50)
- billboard.StudsOffset = Vector3.new(0, 3, 0)
- billboard.AlwaysOnTop = true
- billboard.Parent = head
- local textLabel = Instance.new("TextLabel")
- textLabel.Text = "MGE Hub Creator"
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- textLabel.BackgroundTransparency = 1
- textLabel.TextColor3 = Color3.fromRGB(100, 200, 255)
- textLabel.Font = Enum.Font.GothamBold
- textLabel.TextSize = 18
- textLabel.Parent = billboard
- player.CharacterAdded:Connect(function(newChar)
- local newHead = newChar:WaitForChild("Head")
- billboard.Adornee = newHead
- billboard.Parent = newHead
- end)
- end
- end
- for _, player in ipairs(Players:GetPlayers()) do
- checkCreator(player)
- end
- Players.PlayerAdded:Connect(checkCreator)
- end
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "MGEHubGUI"
- screenGui.ResetOnSpawn = false
- screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0, 350, 0, 320)
- mainFrame.Position = UDim2.new(0.5, -175, 0.1, 0)
- mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
- mainFrame.BorderSizePixel = 0
- mainFrame.Active = true
- mainFrame.Draggable = true
- mainFrame.Parent = screenGui
- local title = Instance.new("TextLabel")
- title.Text = "MGE HUB"
- title.Size = UDim2.new(1, 0, 0, 50)
- title.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
- title.TextColor3 = Color3.fromRGB(100, 200, 255)
- title.Font = Enum.Font.GothamBold
- title.TextSize = 24
- title.Parent = mainFrame
- local function CreateButton(name, yPos, configKey)
- local button = Instance.new("TextButton")
- button.Name = name
- button.Text = name..": "..(config[configKey] and "ON" or "OFF")
- button.Size = UDim2.new(0.9, 0, 0, 40)
- button.Position = UDim2.new(0.05, 0, 0, yPos)
- button.BackgroundColor3 = config[configKey] and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(150, 0, 0)
- button.TextColor3 = Color3.new(1, 1, 1)
- button.Font = Enum.Font.Gotham
- button.TextSize = 16
- button.Parent = mainFrame
- button.MouseButton1Click:Connect(function()
- config[configKey] = not config[configKey]
- button.Text = name..": "..(config[configKey] and "ON" or "OFF")
- button.BackgroundColor3 = config[configKey] and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(150, 0, 0)
- if configKey == "AimBotEnabled" then
- if config.AimBotEnabled then
- SetupAimbot()
- end
- elseif configKey == "PlayerHighlightEnabled" then
- elseif configKey == "MislightEnabled" then
- UpdateMislight()
- elseif configKey == "FullBrightEnabled" then
- UpdateFullBright()
- elseif configKey == "ShowFireButton" then
- UpdateFireButton()
- end
- end)
- end
- CreateButton("Подсветка мисайдов", 55, "MislightEnabled")
- CreateButton("Подсветка игроков", 105, "PlayerHighlightEnabled")
- CreateButton("FullBright", 155, "FullBrightEnabled")
- if not UserInputService.TouchEnabled then
- CreateButton("Аимбот (ПКМ, работает только на ПК)", 205, "AimBotEnabled")
- end
- if UserInputService.TouchEnabled then
- CreateButton("Fire Button", 255, "ShowFireButton")
- end
- UpdateFireButton()
- UpdateFullBright()
- SetupCreatorTag()
- task.spawn(UpdatePlayerHighlights)
- while true do
- if config.MislightEnabled then
- UpdateMislight()
- else
- local mislights = FindMislights()
- for _, mislight in ipairs(mislights) do
- local highlight = mislight:FindFirstChild("MislightHighlight")
- if highlight then highlight:Destroy() end
- end
- end
- task.wait(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment