--// Mega Executor V2 - Enhanced GUI with Image Integration
--// Services
local replicatedStorage = game:GetService("ReplicatedStorage")
local players = game:GetService("Players")
local workspace = game:GetService("Workspace")
local userInputService = game:GetService("UserInputService")
local httpService = game:GetService("HttpService")
local localPlayer = players.LocalPlayer
--// Image Integration System
local imageAssets = {}
local function loadGuiImages()
-- Use reliable CDN URLs for images
local imageUrls = {
logo =
"https://cdn.jsdelivr.net/gh/lucide-icons/lucide@main/icons/zap.svg",
icon1 =
"https://cdn.jsdelivr.net/gh/lucide-icons/lucide@main/icons/settings.svg",
icon2 =
"https://cdn.jsdelivr.net/gh/lucide-icons/lucide@main/icons/user.svg",
discord =
"https://cdn.jsdelivr.net/gh/simple-icons/simple-icons@develop/icons/discord.svg",
headshot =
"https://cdn.jsdelivr.net/gh/lucide-icons/lucide@main/icons/user-circle.svg"
}
for name, url in pairs(imageUrls) do
local success, result = pcall(function()
local imgdata = game:HttpGet(url)
local filename = "mega_executor_" .. name .. ".svg"
writefile(filename, imgdata)
return getcustomasset(filename)
end)
if success then
imageAssets[name] = result
print("✓ Loaded " .. name .. " image successfully")
else
warn("Failed to load " .. name .. " image: " .. tostring(result))
imageAssets[name] = "rbxasset://textures/ui/GuiImagePlaceholder.png"
end
end
end
loadGuiImages()
--// Remote Event (with error handling)
local abilityEvent = replicatedStorage:FindFirstChild("AbilityEvent")
if not abilityEvent then
abilityEvent = Instance.new("RemoteEvent")
abilityEvent.Name = "AbilityEvent"
abilityEvent.Parent = replicatedStorage
end
--// PlayersFolder in Workspace (safe fallback)
local playersFolder = workspace:FindFirstChild("PlayersFolder")
if not playersFolder then
playersFolder = Instance.new("Folder")
playersFolder.Name = "PlayersFolder"
playersFolder.Parent = workspace
end
--// Configuration
local GUI_CONFIG = {
TITLE = "Mega Executor",
VERSION = "",
BACKGROUND_COLOR = Color3.fromRGB(30, 30, 30),
HEADER_COLOR = Color3.fromRGB(40, 40, 40),
BUTTON_COLOR = Color3.fromRGB(50, 50, 50),
BUTTON_HOVER_COLOR = Color3.fromRGB(75, 75, 75),
TEXT_COLOR = Color3.fromRGB(230, 230, 230),
ACCENT_COLOR = Color3.fromRGB(255, 255, 255),
BORDER_COLOR = Color3.fromRGB(60, 60, 60)
}
--// Whitelist Configuration
local WHITELIST_CONFIG = {
BACKUP_URL = "https://dawn-block-06c5.hiplitehehe.workers.dev/checkWhitelist"
}
--// Proximity Prompt Variables
local DEFAULT_HOLD_DURATION = 0.5
local INSTANT_HOLD_DURATION = 0
--// Logic Variables
local screenGui = nil
local toggleGui = nil
local mainFrame = nil
local currentTab = "inject"
local connectionsList = {}
--// Whitelist Variables
local isWhitelisted = false
local whitelistStatus = "Checking..."
local hasAccess = false
local checked = false
--// Tab panels
local injectPanel = nil
local townsPanel = nil
local bypassPanel = nil
local updateLogsPanel = nil
--// Notification system
local notificationQueue = {}
local activeNotifications = {}
--// ESP Variables
local espEnabled = false
local espConnections = {}
local espFolder = nil
--// Death place tracking
local lastDeathPosition = nil
--// Fly Variables (Enhanced System)
local flyEnabled = false
local flySpeed = 1
local flyConnection = nil
local bodyVelocity = nil
local bodyAngularVelocity = nil
local tpwalking = false
local nowe = false
local flying = false
local deb = true
local ctrl = {f = 0, b = 0, l = 0, r = 0}
local lastctrl = {f = 0, b = 0, l = 0, r = 0}
local maxspeed = 50
local speed = 0
--// Noclip Variables
local noclipEnabled = false
local noclipConnection = nil
local originalCanCollide = {}
--// Utility Functions
local function createCorner(parent, radius)
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, radius or 8)
corner.Parent = parent
return corner
end
local function createStroke(parent, color, thickness)
local stroke = Instance.new("UIStroke")
stroke.Color = color or GUI_CONFIG.ACCENT_COLOR
stroke.Thickness = thickness or 1
stroke.Parent = parent
return stroke
end
local function createGradient(parent, colors)
local gradient = Instance.new("UIGradient")
gradient.Color = colors or ColorSequence.new{
ColorSequenceKeypoint.new(0, GUI_CONFIG.BACKGROUND_COLOR),
ColorSequenceKeypoint.new(1, Color3.fromRGB(30, 30, 35))
}
gradient.Rotation = 45
gradient.Parent = parent
return gradient
end
local function createButton(parent, text, size, position, callback)
local button = Instance.new("TextButton")
button.Size = size
button.Position = position
button.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
button.Text = text
button.TextColor3 = GUI_CONFIG.TEXT_COLOR
button.TextScaled = true
button.Font = Enum.Font.GothamBold
button.Parent = parent
createCorner(button, 6)
createStroke(button, GUI_CONFIG.ACCENT_COLOR, 1)
-- Hover effects
button.MouseEnter:Connect(function()
button.BackgroundColor3 = GUI_CONFIG.ACCENT_COLOR
button.TextColor3 = GUI_CONFIG.BACKGROUND_COLOR
end)
button.MouseLeave:Connect(function()
button.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
button.TextColor3 = GUI_CONFIG.TEXT_COLOR
end)
if callback then
button.MouseButton1Click:Connect(callback)
end
return button
end
--// Notification System
local function createNotification(message, notificationType, duration)
duration = duration or 3
local notification = Instance.new("Frame")
notification.Size = UDim2.new(0, 300, 0, 60)
notification.Position = UDim2.new(1, 10, 0, 10 + (#activeNotifications * 70))
notification.BackgroundTransparency = 0.1
notification.BorderSizePixel = 0
notification.Parent = screenGui or localPlayer:WaitForChild("PlayerGui")
-- Set color based on type
if notificationType == "success" then
notification.BackgroundColor3 = Color3.fromRGB(46, 125, 50)
elseif notificationType == "warning" then
notification.BackgroundColor3 = Color3.fromRGB(255, 152, 0)
elseif notificationType == "error" then
notification.BackgroundColor3 = Color3.fromRGB(211, 47, 47)
else
notification.BackgroundColor3 = Color3.fromRGB(33, 150, 243)
end
createCorner(notification, 8)
createStroke(notification, Color3.fromRGB(255, 255, 255), 1)
-- Icon
local icon = Instance.new("TextLabel")
icon.Size = UDim2.new(0, 40, 1, 0)
icon.Position = UDim2.new(0, 0, 0, 0)
icon.BackgroundTransparency = 1
icon.TextColor3 = Color3.fromRGB(255, 255, 255)
icon.TextScaled = true
icon.Font = Enum.Font.GothamBold
icon.Parent = notification
if notificationType == "success" then
icon.Text = "✓"
elseif notificationType == "warning" then
icon.Text = "⚠"
elseif notificationType == "error" then
icon.Text = "✗"
else
icon.Text = "ℹ"
end
-- Message text
local messageLabel = Instance.new("TextLabel")
messageLabel.Size = UDim2.new(1, -50, 1, 0)
messageLabel.Position = UDim2.new(0, 45, 0, 0)
messageLabel.BackgroundTransparency = 1
messageLabel.Text = message
messageLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
messageLabel.TextWrapped = true
messageLabel.TextScaled = true
messageLabel.Font = Enum.Font.Gotham
messageLabel.TextXAlignment = Enum.TextXAlignment.Left
messageLabel.Parent = notification
-- Slide in animation
notification:TweenPosition(
UDim2.new(1, -310, 0, 10 + (#activeNotifications * 70)),
"Out",
"Quad",
0.3,
true
)
table.insert(activeNotifications, notification)
-- Auto-remove after duration
game:GetService("Debris"):AddItem(notification, duration)
-- Remove from active notifications when destroyed
task.spawn(function()
task.wait(duration)
for i, notif in ipairs(activeNotifications) do
if notif == notification then
table.remove(activeNotifications, i)
break
end
end
-- Reposition remaining notifications
for i, notif in ipairs(activeNotifications) do
notif:TweenPosition(
UDim2.new(1, -310, 0, 10 + ((i - 1) * 70)),
"Out",
"Quad",
0.2,
true
)
end
end)
return notification
end
local function notify(message, notificationType, duration)
createNotification(message, notificationType, duration)
end
--// Simple Highlight ESP System
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local espConnections = {}
local function createHighlight(player)
-- Function to add highlight when character is added
local function onCharacterAdded(character)
if not espEnabled then return end
local success = pcall(function()
-- Remove existing ESP highlight
local existingHighlight = character:FindFirstChild("ESP")
if existingHighlight then
existingHighlight:Destroy()
end
-- Create new highlight
local highlight = Instance.new("Highlight")
highlight.Name = "ESP"
highlight.FillColor = Color3.fromRGB(255, 0, 0)
highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
highlight.FillTransparency = 0.5
highlight.OutlineTransparency = 0
highlight.Parent = character
-- Add headshot above player
local head = character:FindFirstChild("Head")
if head then
local headshotGui = Instance.new("BillboardGui")
headshotGui.Name = "HeadshotESP"
headshotGui.Size = UDim2.new(0, 100, 0, 100)
headshotGui.StudsOffset = Vector3.new(0, 3, 0)
headshotGui.Parent = head
local headshotFrame = Instance.new("Frame")
headshotFrame.Size = UDim2.new(1, 0, 1, 0)
headshotFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
headshotFrame.BackgroundTransparency = 0.3
headshotFrame.BorderSizePixel = 2
headshotFrame.BorderColor3 = Color3.fromRGB(255, 255, 255)
headshotFrame.Parent = headshotGui
local headshotImage = Instance.new("ImageLabel")
headshotImage.Size = UDim2.new(1, -4, 1, -4)
headshotImage.Position = UDim2.new(0, 2, 0, 2)
headshotImage.BackgroundTransparency = 1
headshotImage.Image = imageAssets.headshot or
"rbxasset://textures/ui/GuiImagePlaceholder.png"
headshotImage.ScaleType = Enum.ScaleType.Crop
headshotImage.Parent = headshotFrame
local nameLabel = Instance.new("TextLabel")
nameLabel.Size = UDim2.new(1, 0, 0, 20)
nameLabel.Position = UDim2.new(0, 0, 1, 5)
nameLabel.BackgroundTransparency = 1
nameLabel.Text = player.Name
nameLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
nameLabel.TextSize = 14
nameLabel.Font = Enum.Font.GothamBold
nameLabel.TextStrokeTransparency = 0
nameLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
nameLabel.Parent = headshotGui
-- Create corner for headshot frame
createCorner(headshotFrame, 8)
end
end)
if not success then
warn("Failed to create highlight for player:", player.Name)
end
end
-- Connect to CharacterAdded
local connection = player.CharacterAdded:Connect(onCharacterAdded)
espConnections[player] = connection
-- If character already exists (player already spawned), add highlight
if player.Character then
onCharacterAdded(player.Character)
end
end
local function removeHighlight(player)
-- Disconnect character connection
if espConnections[player] then
espConnections[player]:Disconnect()
espConnections[player] = nil
end
-- Remove highlight from current character
if player.Character then
local highlight = player.Character:FindFirstChild("ESP")
if highlight then
highlight:Destroy()
end
-- Remove headshot ESP
local head = player.Character:FindFirstChild("Head")
if head then
local headshotGui = head:FindFirstChild("HeadshotESP")
if headshotGui then
headshotGui:Destroy()
end
end
end
end
local function startESP()
-- Apply to all existing players except LocalPlayer
for _, player in pairs(Players:GetPlayers()) do
if player ~= LocalPlayer then
createHighlight(player)
end
end
-- Apply to new players when they join
espConnections.playerAdded = Players.PlayerAdded:Connect(function(player)
if player ~= LocalPlayer and espEnabled then
createHighlight(player)
end
end)
-- Handle players leaving
espConnections.playerRemoving = Players.PlayerRemoving:Connect(function(player)
removeHighlight(player)
end)
notify("Highlight ESP enabled for all players!", "success", 3)
end
local function stopESP()
-- Remove all ESP connections and highlights
for player, connection in pairs(espConnections) do
if typeof(connection) == "RBXScriptConnection" then
connection:Disconnect()
elseif typeof(player) == "Instance" and player:IsA("Player") then
removeHighlight(player)
end
end
espConnections = {}
-- Remove highlights from all players
for _, player in pairs(Players:GetPlayers()) do
if player ~= LocalPlayer and player.Character then
local highlight = player.Character:FindFirstChild("ESP")
if highlight then
highlight:Destroy()
end
end
end
notify("ESP disabled!", "info", 2)
end
local function toggleESP()
espEnabled = not espEnabled
if espEnabled then
startESP()
else
stopESP()
end
end
--// Death place tracking
local function trackDeathPlace()
local connection = localPlayer.CharacterRemoving:Connect(function(character)
if character and character:FindFirstChild("HumanoidRootPart") then
lastDeathPosition = character.HumanoidRootPart.Position
notify("Death position saved!", "info", 2)
end
end)
table.insert(connectionsList, connection)
end
--// Character respawn handling for fly/noclip
local function handleCharacterRespawn()
localPlayer.CharacterAdded:Connect(function(character)
character:WaitForChild("HumanoidRootPart")
-- Restart fly if it was enabled
if flyEnabled then
task.wait(1) -- Wait for character to fully load
stopFly()
startFly()
end
-- Restart noclip if it was enabled
if noclipEnabled then
task.wait(1) -- Wait for character to fully load
stopNoclip()
startNoclip()
end
end)
end
--// Fly Functions
local function startFly()
local character = localPlayer.Character
local humanoid = character and character:FindFirstChildWhichIsA("Humanoid")
if not character or not humanoid then
notify("Character not found! Cannot start fly.", "error", 3)
return
end
nowe = true
flyEnabled = true
-- Send notification with working icon
game:GetService("StarterGui"):SetCore("SendNotification", {
Title = "FLY GUI V3";
Text = "BY XNEO";
Icon = "rbxthumb://type=Asset&id=5107182114&w=150&h=150";
Duration = 5;
})
-- Disable humanoid states for smooth fly
humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Running, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
-- Enhanced teleportation movement
for i = 1, flySpeed do
spawn(function()
local hb = game:GetService("RunService").Heartbeat
tpwalking = true
local chr = localPlayer.Character
local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
while tpwalking and hb:Wait() and chr and hum and hum.Parent do
if hum.MoveDirection.Magnitude > 0 then
chr:TranslateBy(hum.MoveDirection)
end
end
end)
end
-- Disable animations
character.Animate.Disabled = true
local Hum = character:FindFirstChildOfClass("Humanoid") or
character:FindFirstChildOfClass("AnimationController")
for i, v in next, Hum:GetPlayingAnimationTracks() do
v:AdjustSpeed(0)
end
-- R6 and R15 compatible fly system
if humanoid.RigType == Enum.HumanoidRigType.R6 then
local torso = character.Torso
local bg = Instance.new("BodyGyro", torso)
bg.P = 9e4
bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
bg.cframe = torso.CFrame
local bv = Instance.new("BodyVelocity", torso)
bv.velocity = Vector3.new(0, 0.1, 0)
bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
humanoid.PlatformStand = true
-- Store for cleanup
bodyVelocity = bv
bodyAngularVelocity = bg
-- Enhanced fly loop with WASD controls
flyConnection =
game:GetService("RunService").RenderStepped:Connect(function()
if not nowe or humanoid.Health == 0 then return end
-- Handle WASD input
if userInputService:IsKeyDown(Enum.KeyCode.W) then
ctrl.f = 1
else
ctrl.f = 0
end
if userInputService:IsKeyDown(Enum.KeyCode.S) then
ctrl.b = -1
else
ctrl.b = 0
end
if userInputService:IsKeyDown(Enum.KeyCode.A) then
ctrl.l = -1
else
ctrl.l = 0
end
if userInputService:IsKeyDown(Enum.KeyCode.D) then
ctrl.r = 1
else
ctrl.r = 0
end
-- Speed calculation
if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
speed = speed + 0.5 + (speed / maxspeed)
if speed > maxspeed then
speed = maxspeed
end
elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~=
0 then
speed = speed - 1
if speed < 0 then
speed = 0
end
end
-- Apply movement
if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
bv.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector
* (ctrl.f + ctrl.b)) +
((workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l +
ctrl.r, (ctrl.f + ctrl.b) * 0.2, 0).p) -
workspace.CurrentCamera.CoordinateFrame.p)) * speed
lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0
then
bv.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector
* (lastctrl.f + lastctrl.b)) +
((workspace.CurrentCamera.CoordinateFrame *
CFrame.new(lastctrl.l + lastctrl.r, (lastctrl.f + lastctrl.b) * 0.2, 0).p) -
workspace.CurrentCamera.CoordinateFrame.p)) * speed
else
bv.velocity = Vector3.new(0, 0, 0)
end
bg.cframe = workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-
math.rad((ctrl.f + ctrl.b) * 50 * speed / maxspeed), 0, 0)
end)
else
-- R15 support
local upperTorso = character.UpperTorso
local bg = Instance.new("BodyGyro", upperTorso)
bg.P = 9e4
bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
bg.cframe = upperTorso.CFrame
local bv = Instance.new("BodyVelocity", upperTorso)
bv.velocity = Vector3.new(0, 0.1, 0)
bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
humanoid.PlatformStand = true
-- Store for cleanup
bodyVelocity = bv
bodyAngularVelocity = bg
-- R15 fly loop
flyConnection = spawn(function()
while nowe and humanoid.Health > 0 do
wait()
-- Handle WASD input
if userInputService:IsKeyDown(Enum.KeyCode.W) then
ctrl.f = 1
else
ctrl.f = 0
end
if userInputService:IsKeyDown(Enum.KeyCode.S) then
ctrl.b = -1
else
ctrl.b = 0
end
if userInputService:IsKeyDown(Enum.KeyCode.A) then
ctrl.l = -1
else
ctrl.l = 0
end
if userInputService:IsKeyDown(Enum.KeyCode.D) then
ctrl.r = 1
else
ctrl.r = 0
end
-- Speed calculation and movement (same as R6)
if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
speed = speed + 0.5 + (speed / maxspeed)
if speed > maxspeed then
speed = maxspeed
end
elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed
~= 0 then
speed = speed - 1
if speed < 0 then
speed = 0
end
end
if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
bv.velocity =
((workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f + ctrl.b)) +
((workspace.CurrentCamera.CoordinateFrame *
CFrame.new(ctrl.l + ctrl.r, (ctrl.f + ctrl.b) * 0.2, 0).p) -
workspace.CurrentCamera.CoordinateFrame.p)) * speed
lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed
~= 0 then
bv.velocity =
((workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f + lastctrl.b)) +
((workspace.CurrentCamera.CoordinateFrame *
CFrame.new(lastctrl.l + lastctrl.r, (lastctrl.f + lastctrl.b) * 0.2, 0).p) -
workspace.CurrentCamera.CoordinateFrame.p)) * speed
else
bv.velocity = Vector3.new(0, 0, 0)
end
bg.cframe = workspace.CurrentCamera.CoordinateFrame *
CFrame.Angles(-math.rad((ctrl.f + ctrl.b) * 50 * speed / maxspeed), 0, 0)
end
end)
end
notify("Enhanced Fly V3 enabled! Use WASD to fly smoothly.", "success", 3)
end
local function stopFly()
flyEnabled = false
nowe = false
tpwalking = false
ctrl = {f = 0, b = 0, l = 0, r = 0}
lastctrl = {f = 0, b = 0, l = 0, r = 0}
speed = 0
if flyConnection then
if typeof(flyConnection) == "RBXScriptConnection" then
flyConnection:Disconnect()
end
flyConnection = nil
end
if bodyVelocity then
bodyVelocity:Destroy()
bodyVelocity = nil
end
if bodyAngularVelocity then
bodyAngularVelocity:Destroy()
bodyAngularVelocity = nil
end
local character = localPlayer.Character
if character then
local humanoid = character:FindFirstChildWhichIsA("Humanoid")
if humanoid then
-- Re-enable humanoid states
humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Running, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,
true)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, true)
humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
humanoid.PlatformStand = false
end
character.Animate.Disabled = false
end
notify("Enhanced Fly disabled!", "info", 2)
end
local function toggleFly()
if flyEnabled then
stopFly()
else
startFly()
end
end
--// Noclip Functions
local function startNoclip()
local character = localPlayer.Character
if not character then
notify("Character not found! Cannot start noclip.", "error", 3)
return
end
-- Store original CanCollide values and disable collision
for _, part in pairs(character:GetDescendants()) do
if part:IsA("BasePart") then
originalCanCollide[part] = part.CanCollide
part.CanCollide = false
end
end
-- Monitor for new parts added to character
noclipConnection = character.DescendantAdded:Connect(function(descendant)
if descendant:IsA("BasePart") and noclipEnabled then
originalCanCollide[descendant] = descendant.CanCollide
descendant.CanCollide = false
end
end)
noclipEnabled = true
notify("Noclip enabled! You can walk through walls.", "success", 3)
end
local function stopNoclip()
noclipEnabled = false
if noclipConnection then
noclipConnection:Disconnect()
noclipConnection = nil
end
local character = localPlayer.Character
if character then
-- Restore original CanCollide values
for part, originalValue in pairs(originalCanCollide) do
if part and part.Parent then
part.CanCollide = originalValue
end
end
end
originalCanCollide = {}
notify("Noclip disabled!", "info", 2)
end
local function toggleNoclip()
if noclipEnabled then
stopNoclip()
else
startNoclip()
end
end
--// Backup-only Whitelist Functions with game:HttpGet
local function checkWhitelist()
local playerName = localPlayer.Name
local userId = localPlayer.UserId
-- Use backup URL only with game:HttpGet
local backupUrl = WHITELIST_CONFIG.BACKUP_URL .. "?playerName=" ..
playerName .. "&userId=" .. userId
local success, result = pcall(function()
return game:HttpGet(backupUrl)
end)
if success and result then
-- Parse response more robustly
local responseData = result
if type(responseData) == "string" and (string.find(responseData:lower(),
"true") or string.find(responseData:lower(), '"whitelisted":true')) then
hasAccess = true
isWhitelisted = true
whitelistStatus = "✓ WHITELISTED - Full Access"
notify("Welcome " .. playerName .. "! You have full access to all
features.", "success", 4)
print("✓ " .. playerName .. " is whitelisted!")
else
hasAccess = false
isWhitelisted = false
whitelistStatus = "⚠ LIMITED ACCESS - Get whitelisted for premium
features"
notify("Limited access mode. Get whitelisted for premium features!",
"warning", 4)
print("⚠ " .. playerName .. " has limited access")
end
else
hasAccess = false
whitelistStatus = "⚠ Connection Failed - Limited Access"
notify("Failed to connect to whitelist server. Limited access enabled.",
"error", 4)
warn("Failed to check whitelist: " .. tostring(result))
end
checked = true
end
--// Tab Management
local function showPanel(panel)
if injectPanel then injectPanel.Visible = false end
if townsPanel then townsPanel.Visible = false end
if bypassPanel then bypassPanel.Visible = false end
if updateLogsPanel then updateLogsPanel.Visible = false end
panel.Visible = true
end
--// Create v1-style GUI
local function createMainGUI()
-- Create main ScreenGui
screenGui = Instance.new("ScreenGui")
screenGui.Name = "MegaExecutorGUI"
screenGui.ResetOnSpawn = false
screenGui.Parent = localPlayer:WaitForChild("PlayerGui")
-- Create separate ScreenGui for toggle button
toggleGui = Instance.new("ScreenGui")
toggleGui.Name = "MegaExecutorToggleGUI"
toggleGui.ResetOnSpawn = false
toggleGui.Parent = localPlayer:WaitForChild("PlayerGui")
-- Main Frame (v1 style - wider with right panel)
mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0, 620, 0, 320)
mainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
mainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
mainFrame.BackgroundColor3 = GUI_CONFIG.BACKGROUND_COLOR
mainFrame.ClipsDescendants = true
mainFrame.Parent = screenGui
mainFrame.Visible = true
createCorner(mainFrame, 8)
-- Add GUI logo if available
if imageAssets.logo then
local logoImage = Instance.new("ImageLabel")
logoImage.Size = UDim2.new(0, 100, 0, 80)
logoImage.Position = UDim2.new(0, 15, 0, 50)
logoImage.BackgroundTransparency = 1
logoImage.Image = imageAssets.logo
logoImage.ScaleType = Enum.ScaleType.Fit
logoImage.Parent = mainFrame
-- Add subtle glow effect
local glow = Instance.new("UIStroke")
glow.Color = GUI_CONFIG.ACCENT_COLOR
glow.Thickness = 2
glow.Transparency = 0.5
glow.Parent = logoImage
-- Add icon decorations
if imageAssets.icon1 then
local icon1 = Instance.new("ImageLabel")
icon1.Size = UDim2.new(0, 30, 0, 30)
icon1.Position = UDim2.new(0, 130, 0, 50)
icon1.BackgroundTransparency = 1
icon1.Image = imageAssets.icon1
icon1.ScaleType = Enum.ScaleType.Fit
icon1.Parent = mainFrame
end
if imageAssets.icon2 then
local icon2 = Instance.new("ImageLabel")
icon2.Size = UDim2.new(0, 30, 0, 30)
icon2.Position = UDim2.new(0, 170, 0, 50)
icon2.BackgroundTransparency = 1
icon2.Image = imageAssets.icon2
icon2.ScaleType = Enum.ScaleType.Fit
icon2.Parent = mainFrame
end
end
-- Title Header
local title = Instance.new("TextLabel")
title.Name = "Title"
title.Size = UDim2.new(1, 0, 0, 40)
title.Position = UDim2.new(0, 0, 0, 0)
title.BackgroundColor3 = GUI_CONFIG.HEADER_COLOR
title.Text = GUI_CONFIG.TITLE
title.TextColor3 = GUI_CONFIG.ACCENT_COLOR
title.TextScaled = true
title.Font = Enum.Font.GothamBold
title.BorderSizePixel = 0
title.Parent = mainFrame
createCorner(title, 8)
-- Left Content Frame (for tabs and content)
local leftFrame = Instance.new("Frame")
leftFrame.Name = "LeftFrame"
leftFrame.Size = UDim2.new(0, 380, 1, 0)
leftFrame.Position = UDim2.new(0, 0, 0, 0)
leftFrame.BackgroundTransparency = 1
leftFrame.Parent = mainFrame
-- Right Panel for Instructions
local rightFrame = Instance.new("Frame")
rightFrame.Name = "RightFrame"
rightFrame.Size = UDim2.new(0, 195, 1, -45)
rightFrame.Position = UDim2.new(0, 385, 0, 45)
rightFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
rightFrame.BorderSizePixel = 1
rightFrame.BorderColor3 = GUI_CONFIG.BORDER_COLOR
rightFrame.Parent = mainFrame
createCorner(rightFrame, 6)
return leftFrame, rightFrame
end
--// Create v1-style tab buttons and content
local function createTabInterface(leftFrame, rightFrame)
-- Whitelist Status (in left frame)
local statusLabel = Instance.new("TextLabel")
statusLabel.Name = "StatusLabel"
statusLabel.Size = UDim2.new(1, -20, 0, 25)
statusLabel.Position = UDim2.new(0, 10, 0, 45)
statusLabel.BackgroundTransparency = 1
statusLabel.Text = whitelistStatus
statusLabel.TextColor3 = hasAccess and Color3.fromRGB(0, 255, 0) or
Color3.fromRGB(255, 165, 0)
statusLabel.TextScaled = false
statusLabel.TextSize = 12
statusLabel.Font = Enum.Font.Gotham
statusLabel.TextXAlignment = Enum.TextXAlignment.Center
statusLabel.Parent = leftFrame
-- Buttons Container
local buttonsFrame = Instance.new("Frame")
buttonsFrame.Size = UDim2.new(1, 0, 0, 35)
buttonsFrame.Position = UDim2.new(0, 0, 0, 75)
buttonsFrame.BackgroundTransparency = 1
buttonsFrame.Parent = leftFrame
local buttonsLayout = Instance.new("UIListLayout")
buttonsLayout.FillDirection = Enum.FillDirection.Horizontal
buttonsLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
buttonsLayout.VerticalAlignment = Enum.VerticalAlignment.Center
buttonsLayout.SortOrder = Enum.SortOrder.LayoutOrder
buttonsLayout.Padding = UDim.new(0, 10)
buttonsLayout.Parent = buttonsFrame
-- Tab button creation function
local function createTabButton(text)
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0, 85, 0, 25)
btn.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
btn.TextColor3 = GUI_CONFIG.TEXT_COLOR
btn.Font = Enum.Font.GothamSemibold
btn.TextSize = 12
btn.Text = text
btn.AutoButtonColor = false
createCorner(btn, 6)
btn.MouseEnter:Connect(function()
btn.BackgroundColor3 = GUI_CONFIG.BUTTON_HOVER_COLOR
end)
btn.MouseLeave:Connect(function()
btn.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
end)
return btn
end
-- Create tab buttons
local injectBtn = createTabButton("Game Controls")
local townsBtn = createTabButton("Teleportations")
local bypassBtn = createTabButton("Tools")
local updateLogsBtn = createTabButton("Settings")
injectBtn.Parent = buttonsFrame
townsBtn.Parent = buttonsFrame
bypassBtn.Parent = buttonsFrame
updateLogsBtn.Parent = buttonsFrame
return statusLabel, injectBtn, townsBtn, bypassBtn, updateLogsBtn
end
--// Create content panels
local function createScrollingPanel(parent)
local frame = Instance.new("ScrollingFrame")
frame.Size = UDim2.new(1, 0, 1, -110)
frame.Position = UDim2.new(0, 0, 0, 110)
frame.BackgroundTransparency = 1
frame.ScrollBarThickness = 6
frame.Parent = parent
frame.Visible = false
local layout = Instance.new("UIListLayout")
layout.SortOrder = Enum.SortOrder.LayoutOrder
layout.Padding = UDim.new(0, 8)
layout.Parent = frame
layout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
frame.CanvasSize = UDim2.new(0, 0, 0, layout.AbsoluteContentSize.Y + 10)
end)
return frame, layout
end
--// Create tab content
local function createTabContent(leftFrame)
local injectPanel, injectLayout = createScrollingPanel(leftFrame)
local townsPanel, townsLayout = createScrollingPanel(leftFrame)
local bypassPanel, bypassLayout = createScrollingPanel(leftFrame)
local updateLogsPanel, updateLogsLayout = createScrollingPanel(leftFrame)
-- Game Controls content
local gameControls = {
["Use Ability no cooldown"] = function()
if not hasAccess then
notify("Access denied: Premium feature requires whitelist!",
"error", 3)
return
end
abilityEvent:FireServer(1)
notify("Ability used successfully!", "success", 2)
end,
["Check Whitelist"] = function()
notify("Checking whitelist status...", "info", 2)
checkWhitelist()
end,
["Enable Instant revive other plr Prompts "] = function()
if not hasAccess then
notify("Access denied: Premium feature requires whitelist!",
"error", 3)
return
end
-- Instant proximity prompts implementation
local success, err = pcall(function()
-- Function to set HoldDuration to 0 if it's a ProximityPrompt
local function setInstantPrompt(descendant)
if descendant:IsA("ProximityPrompt") then
descendant.HoldDuration = 0
end
end
-- Set existing ProximityPrompts to instant
for _, prompt in ipairs(game:GetDescendants()) do
setInstantPrompt(prompt)
end
-- Listen for new ProximityPrompts and make them instant
local instantPromptConnection =
game.DescendantAdded:Connect(setInstantPrompt)
notify("Instant proximity prompts enabled! All prompts now activate
with single click.", "success", 3)
-- Store connection for cleanup
if not _G.MegaExecutorConnections then
_G.MegaExecutorConnections = {}
end
_G.MegaExecutorConnections.instantPrompts = instantPromptConnection
end)
if not success then
notify("Instant prompts failed: " .. tostring(err), "error", 3)
print("Instant prompts error:", err)
end
end,
["Disable Instant Prompts"] = function()
local success, err = pcall(function()
-- Clean up instant prompts connection
if _G.MegaExecutorConnections then
if _G.MegaExecutorConnections.instantPrompts then
_G.MegaExecutorConnections.instantPrompts:Disconnect()
_G.MegaExecutorConnections.instantPrompts = nil
end
end
notify("Instant prompts disabled! New prompts will use default hold
duration.", "info", 2)
end)
if not success then
notify("Failed to disable instant prompts: " .. tostring(err),
"error", 3)
end
end,
["Toggle Fly"] = function()
if not hasAccess then
notify("Access denied: Premium feature requires whitelist!",
"error", 3)
return
end
toggleFly()
end,
["Toggle Noclip"] = function()
if not hasAccess then
notify("Access denied: Premium feature requires whitelist!",
"error", 3)
return
end
toggleNoclip()
end,
["Teleport to safe place"] = function()
if not hasAccess then
notify("Access denied: Premium teleportation requires whitelist!",
"error", 3)
return
end
local character = localPlayer.Character
if character and character:FindFirstChild("HumanoidRootPart") then
character.HumanoidRootPart.CFrame = CFrame.new(0, 5, 0)
notify("Teleported to spawn successfully!", "success", 2)
else
notify("Error: Character not found!", "error", 3)
end
end,
["Teleport to Death Place"] = function()
if not hasAccess then
notify("Access denied: Premium teleportation requires whitelist!",
"error", 3)
return
end
if not lastDeathPosition then
notify("No death position recorded yet!", "warning", 3)
return
end
local character = localPlayer.Character
if character and character:FindFirstChild("HumanoidRootPart") then
character.HumanoidRootPart.CFrame = CFrame.new(lastDeathPosition)
notify("Teleported to last death position!", "success", 2)
else
notify("Error: Character not found!", "error", 3)
end
end,
["Teleport to Random Player"] = function()
if not hasAccess then
notify("Access denied: Premium teleportation requires whitelist!",
"error", 3)
return
end
local playersTable = {}
for _, playerObj in pairs(playersFolder:GetChildren()) do
local player = players:FindFirstChild(playerObj.Name)
if player and player ~= localPlayer and player.Character and
player.Character:FindFirstChild("HumanoidRootPart") then
table.insert(playersTable, player)
end
end
if #playersTable > 0 then
local randomPlayer = playersTable[math.random(1, #playersTable)]
local character = localPlayer.Character
if character and character:FindFirstChild("HumanoidRootPart") then
character.HumanoidRootPart.CFrame =
randomPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(5, 0, 0)
notify("Teleported to " .. randomPlayer.Name .. "!", "success",
3)
else
notify("Error: Character not found!", "error", 3)
end
else
notify("No players available for teleportation!", "warning", 3)
end
end,
["Join Discord"] = function()
-- Create Discord requirements GUI
local discordGui = Instance.new("ScreenGui")
discordGui.Name = "DiscordRequirementsGUI"
discordGui.ResetOnSpawn = false
discordGui.Parent = localPlayer:WaitForChild("PlayerGui")
local discordFrame = Instance.new("Frame")
discordFrame.Size = UDim2.new(0, 400, 0, 300)
discordFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
discordFrame.AnchorPoint = Vector2.new(0.5, 0.5)
discordFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
discordFrame.BorderSizePixel = 0
discordFrame.Parent = discordGui
createCorner(discordFrame, 8)
-- Title
local titleLabel = Instance.new("TextLabel")
titleLabel.Size = UDim2.new(1, 0, 0, 40)
titleLabel.Position = UDim2.new(0, 0, 0, 0)
titleLabel.BackgroundColor3 = Color3.fromRGB(100, 50, 150)
titleLabel.Text = "Discord Community - Requirements"
titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
titleLabel.TextSize = 16
titleLabel.Font = Enum.Font.GothamBold
titleLabel.Parent = discordFrame
createCorner(titleLabel, 8)
-- Discord Requirements Image
local discordImage = Instance.new("ImageLabel")
discordImage.Size = UDim2.new(0, 60, 0, 60)
discordImage.Position = UDim2.new(0, 10, 0, 50)
discordImage.BackgroundTransparency = 1
discordImage.Image = imageAssets.discord or
"rbxasset://textures/ui/GuiImagePlaceholder.png"
discordImage.ScaleType = Enum.ScaleType.Fit
discordImage.Parent = discordFrame
createCorner(discordImage, 8)
-- Requirements text (adjusted position for image)
local requirementsText = Instance.new("TextLabel")
requirementsText.Size = UDim2.new(1, -90, 0, 120)
requirementsText.Position = UDim2.new(0, 80, 0, 50)
requirementsText.BackgroundTransparency = 1
requirementsText.Text = "Requirements:\n• Join by copying the link or
click the link that you can select the link text\n• Active in community\n• No rule
violation"
requirementsText.TextColor3 = Color3.fromRGB(200, 200, 200)
requirementsText.TextSize = 14
requirementsText.Font = Enum.Font.Gotham
requirementsText.TextXAlignment = Enum.TextXAlignment.Left
requirementsText.TextYAlignment = Enum.TextYAlignment.Top
requirementsText.TextWrapped = true
requirementsText.Parent = discordFrame
-- Discord link textbox (clickable)
local linkTextbox = Instance.new("TextButton")
linkTextbox.Size = UDim2.new(1, -20, 0, 35)
linkTextbox.Position = UDim2.new(0, 10, 0, 180)
linkTextbox.BackgroundColor3 = Color3.fromRGB(15, 15, 25)
linkTextbox.Text = "https://discord.gg/XrNVKhYTT7"
linkTextbox.TextColor3 = Color3.fromRGB(100, 150, 255)
linkTextbox.TextSize = 12
linkTextbox.Font = Enum.Font.Code
linkTextbox.TextXAlignment = Enum.TextXAlignment.Center
linkTextbox.Parent = discordFrame
createCorner(linkTextbox, 6)
-- Copy and Join buttons
local copyBtn = Instance.new("TextButton")
copyBtn.Size = UDim2.new(0, 80, 0, 30)
copyBtn.Position = UDim2.new(0, 50, 0, 230)
copyBtn.BackgroundColor3 = Color3.fromRGB(100, 50, 150)
copyBtn.Text = "Copy"
copyBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
copyBtn.TextSize = 12
copyBtn.Font = Enum.Font.GothamBold
copyBtn.Parent = discordFrame
createCorner(copyBtn, 6)
local joinBtn = Instance.new("TextButton")
joinBtn.Size = UDim2.new(0, 80, 0, 30)
joinBtn.Position = UDim2.new(0, 150, 0, 230)
joinBtn.BackgroundColor3 = Color3.fromRGB(100, 50, 150)
joinBtn.Text = "Join"
joinBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
joinBtn.TextSize = 12
joinBtn.Font = Enum.Font.GothamBold
joinBtn.Parent = discordFrame
createCorner(joinBtn, 6)
local closeBtn = Instance.new("TextButton")
closeBtn.Size = UDim2.new(0, 80, 0, 30)
closeBtn.Position = UDim2.new(0, 250, 0, 230)
closeBtn.BackgroundColor3 = Color3.fromRGB(150, 50, 50)
closeBtn.Text = "Close"
closeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
closeBtn.TextSize = 12
closeBtn.Font = Enum.Font.GothamBold
closeBtn.Parent = discordFrame
createCorner(closeBtn, 6)
-- Button functionality
linkTextbox.MouseButton1Click:Connect(function()
local success = pcall(function()
setclipboard("https://discord.gg/XrNVKhYTT7")
notify("Discord link copied to clipboard!", "success", 3)
end)
if not success then
-- Create manual copy popup
local manualFrame = Instance.new("Frame")
manualFrame.Size = UDim2.new(0, 400, 0, 150)
manualFrame.Position = UDim2.new(0.5, -200, 0.5, -75)
manualFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 60)
manualFrame.BorderSizePixel = 0
manualFrame.Parent = screenGui
createCorner(manualFrame, 12)
local manualTitle = Instance.new("TextLabel")
manualTitle.Size = UDim2.new(1, 0, 0, 30)
manualTitle.Position = UDim2.new(0, 0, 0, 10)
manualTitle.BackgroundTransparency = 1
manualTitle.Text = "Auto-copy failed - Manual Copy Required"
manualTitle.TextColor3 = Color3.fromRGB(255, 200, 100)
manualTitle.TextSize = 14
manualTitle.Font = Enum.Font.GothamBold
manualTitle.Parent = manualFrame
local manualTextbox = Instance.new("TextBox")
manualTextbox.Size = UDim2.new(1, -20, 0, 30)
manualTextbox.Position = UDim2.new(0, 10, 0, 50)
manualTextbox.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
manualTextbox.Text = "https://discord.gg/XrNVKhYTT7"
manualTextbox.TextColor3 = Color3.fromRGB(100, 150, 255)
manualTextbox.TextSize = 12
manualTextbox.Font = Enum.Font.Code
manualTextbox.ClearTextOnFocus = false
manualTextbox.Parent = manualFrame
createCorner(manualTextbox, 6)
local manualCloseBtn = Instance.new("TextButton")
manualCloseBtn.Size = UDim2.new(0, 80, 0, 25)
manualCloseBtn.Position = UDim2.new(0.5, -40, 1, -35)
manualCloseBtn.BackgroundColor3 = Color3.fromRGB(100, 50, 150)
manualCloseBtn.Text = "Close"
manualCloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
manualCloseBtn.TextSize = 12
manualCloseBtn.Font = Enum.Font.GothamBold
manualCloseBtn.Parent = manualFrame
createCorner(manualCloseBtn, 6)
manualCloseBtn.MouseButton1Click:Connect(function()
manualFrame:Destroy()
end)
-- Select all text for easy copying
manualTextbox:CaptureFocus()
manualTextbox.SelectionStart = 1
manualTextbox.CursorPosition = #manualTextbox.Text + 1
notify("Select and copy the link manually", "warning", 5)
end
end)
copyBtn.MouseButton1Click:Connect(function()
local success = pcall(function()
setclipboard("https://discord.gg/XrNVKhYTT7")
notify("Discord link copied to clipboard!", "success", 3)
end)
if not success then
notify("Manual copy: https://discord.gg/XrNVKhYTT7", "warning",
5)
end
end)
joinBtn.MouseButton1Click:Connect(function()
notify("Opening Discord... Please paste the link in your browser!",
"info", 5)
local success = pcall(function()
setclipboard("https://discord.gg/XrNVKhYTT7")
end)
discordGui:Destroy()
end)
closeBtn.MouseButton1Click:Connect(function()
discordGui:Destroy()
end)
end
}
for name, func in pairs(gameControls) do
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(1, -20, 0, 24)
btn.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
btn.TextColor3 = GUI_CONFIG.TEXT_COLOR
btn.Font = Enum.Font.GothamSemibold
btn.TextSize = 12
btn.Text = name
btn.AutoButtonColor = false
btn.LayoutOrder = 1
createCorner(btn, 6)
btn.MouseEnter:Connect(function()
btn.BackgroundColor3 = GUI_CONFIG.BUTTON_HOVER_COLOR
end)
btn.MouseLeave:Connect(function()
btn.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
end)
btn.MouseButton1Click:Connect(func)
btn.Parent = injectPanel
end
-- Teleportation content
local teleportLocations = {
["Teleport to Spawn"] = function()
if not hasAccess then
notify("Access denied: Premium teleportation requires whitelist!",
"error", 3)
return
end
local character = localPlayer.Character
if character and character:FindFirstChild("HumanoidRootPart") then
character.HumanoidRootPart.CFrame = CFrame.new(0, 5, 0)
notify("Teleported to spawn successfully!", "success", 2)
else
notify("Error: Character not found!", "error", 3)
end
end,
["Teleport to Death Place"] = function()
if not hasAccess then
notify("Access denied: Premium teleportation requires whitelist!",
"error", 3)
return
end
if not lastDeathPosition then
notify("No death position recorded yet!", "warning", 3)
return
end
local character = localPlayer.Character
if character and character:FindFirstChild("HumanoidRootPart") then
character.HumanoidRootPart.CFrame = CFrame.new(lastDeathPosition)
notify("Teleported to last death position!", "success", 2)
else
notify("Error: Character not found!", "error", 3)
end
end,
["Teleport to Random Player"] = function()
if not hasAccess then
notify("Access denied: Premium teleportation requires whitelist!",
"error", 3)
return
end
local playersTable = {}
for _, playerObj in pairs(playersFolder:GetChildren()) do
local player = players:FindFirstChild(playerObj.Name)
if player and player ~= localPlayer and player.Character and
player.Character:FindFirstChild("HumanoidRootPart") then
table.insert(playersTable, player)
end
end
if #playersTable > 0 then
local randomPlayer = playersTable[math.random(1, #playersTable)]
local character = localPlayer.Character
if character and character:FindFirstChild("HumanoidRootPart") then
character.HumanoidRootPart.CFrame =
randomPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(5, 0, 0)
notify("Teleported to " .. randomPlayer.Name .. "!", "success",
3)
else
notify("Error: Your character not found!", "error", 3)
end
else
notify("No players available to teleport to!", "warning", 3)
end
end,
["Choose Player to TP"] = function()
if not hasAccess then
notify("Access denied: Premium teleportation requires whitelist!",
"error", 3)
return
end
-- Get available players from PlayersFolder
local availablePlayers = {}
for _, playerObj in pairs(playersFolder:GetChildren()) do
local player = players:FindFirstChild(playerObj.Name)
if player and player ~= localPlayer and player.Character and
player.Character:FindFirstChild("HumanoidRootPart") then
table.insert(availablePlayers, player)
end
end
if #availablePlayers == 0 then
notify("No players available to teleport to!", "warning", 3)
return
end
-- Create player selection GUI
local selectionGui = Instance.new("ScreenGui")
selectionGui.Name = "PlayerSelectionGui"
selectionGui.ResetOnSpawn = false
selectionGui.Parent = localPlayer:WaitForChild("PlayerGui")
local selectionFrame = Instance.new("Frame")
selectionFrame.Size = UDim2.new(0, 300, 0, 200)
selectionFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
selectionFrame.AnchorPoint = Vector2.new(0.5, 0.5)
selectionFrame.BackgroundColor3 = GUI_CONFIG.BACKGROUND_COLOR
selectionFrame.Parent = selectionGui
createCorner(selectionFrame, 8)
createStroke(selectionFrame, GUI_CONFIG.ACCENT_COLOR, 2)
-- Title
local titleLabel = Instance.new("TextLabel")
titleLabel.Size = UDim2.new(1, 0, 0, 30)
titleLabel.Position = UDim2.new(0, 0, 0, 0)
titleLabel.BackgroundColor3 = GUI_CONFIG.HEADER_COLOR
titleLabel.Text = "Choose Player to Teleport To"
titleLabel.TextColor3 = GUI_CONFIG.ACCENT_COLOR
titleLabel.TextScaled = true
titleLabel.Font = Enum.Font.GothamBold
titleLabel.Parent = selectionFrame
createCorner(titleLabel, 8)
-- Scrolling frame for players
local scrollFrame = Instance.new("ScrollingFrame")
scrollFrame.Size = UDim2.new(1, -20, 1, -80)
scrollFrame.Position = UDim2.new(0, 10, 0, 35)
scrollFrame.BackgroundTransparency = 1
scrollFrame.ScrollBarThickness = 6
scrollFrame.Parent = selectionFrame
local layout = Instance.new("UIListLayout")
layout.SortOrder = Enum.SortOrder.LayoutOrder
layout.Padding = UDim.new(0, 5)
layout.Parent = scrollFrame
-- Create player buttons
for i, player in ipairs(availablePlayers) do
local playerBtn = Instance.new("TextButton")
playerBtn.Size = UDim2.new(1, -10, 0, 25)
playerBtn.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
playerBtn.TextColor3 = GUI_CONFIG.TEXT_COLOR
playerBtn.Font = Enum.Font.GothamSemibold
playerBtn.TextSize = 12
playerBtn.Text = player.Name .. " (" .. player.DisplayName .. ")"
playerBtn.AutoButtonColor = false
playerBtn.LayoutOrder = i
playerBtn.Parent = scrollFrame
createCorner(playerBtn, 6)
playerBtn.MouseEnter:Connect(function()
playerBtn.BackgroundColor3 = GUI_CONFIG.BUTTON_HOVER_COLOR
end)
playerBtn.MouseLeave:Connect(function()
playerBtn.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
end)
playerBtn.MouseButton1Click:Connect(function()
local myCharacter = localPlayer.Character
if myCharacter and
myCharacter:FindFirstChild("HumanoidRootPart") and player.Character and
player.Character:FindFirstChild("HumanoidRootPart") then
local targetPosition =
player.Character.HumanoidRootPart.CFrame
myCharacter.HumanoidRootPart.CFrame = targetPosition +
Vector3.new(5, 0, 0)
notify("Teleported to " .. player.Name .. "!", "success",
3)
else
notify("Error: Character not found!", "error", 3)
end
selectionGui:Destroy()
end)
end
-- Cancel button
local cancelBtn = Instance.new("TextButton")
cancelBtn.Size = UDim2.new(0, 80, 0, 25)
cancelBtn.Position = UDim2.new(0.5, 0, 1, -35)
cancelBtn.AnchorPoint = Vector2.new(0.5, 0)
cancelBtn.BackgroundColor3 = Color3.fromRGB(150, 50, 50)
cancelBtn.TextColor3 = GUI_CONFIG.TEXT_COLOR
cancelBtn.Font = Enum.Font.GothamSemibold
cancelBtn.TextSize = 12
cancelBtn.Text = "Cancel"
cancelBtn.AutoButtonColor = false
cancelBtn.Parent = selectionFrame
createCorner(cancelBtn, 6)
cancelBtn.MouseEnter:Connect(function()
cancelBtn.BackgroundColor3 = Color3.fromRGB(180, 70, 70)
end)
cancelBtn.MouseLeave:Connect(function()
cancelBtn.BackgroundColor3 = Color3.fromRGB(150, 50, 50)
end)
cancelBtn.MouseButton1Click:Connect(function()
selectionGui:Destroy()
notify("Player selection cancelled", "info", 2)
end)
-- Update scroll canvas size
layout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
scrollFrame.CanvasSize = UDim2.new(0, 0, 0,
layout.AbsoluteContentSize.Y + 10)
end)
notify("Choose a player to teleport to", "info", 3)
end
}
for name, func in pairs(teleportLocations) do
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(1, -20, 0, 24)
btn.BackgroundColor3 = hasAccess and GUI_CONFIG.BUTTON_COLOR or
Color3.fromRGB(80, 30, 30)
btn.TextColor3 = hasAccess and GUI_CONFIG.TEXT_COLOR or Color3.fromRGB(150,
100, 100)
btn.Font = Enum.Font.GothamSemibold
btn.TextSize = 12
btn.Text = hasAccess and name or ("🔒 " .. name .. " (PREMIUM)")
btn.AutoButtonColor = false
btn.LayoutOrder = 1
createCorner(btn, 6)
if hasAccess then
btn.MouseEnter:Connect(function()
btn.BackgroundColor3 = GUI_CONFIG.BUTTON_HOVER_COLOR
end)
btn.MouseLeave:Connect(function()
btn.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
end)
end
btn.MouseButton1Click:Connect(func)
btn.Parent = townsPanel
end
-- Tools content
local tools = {
["ESP Toggle"] = function()
if not hasAccess then
notify("Access denied: Premium tools require whitelist!", "error",
3)
return
end
toggleESP()
end,
["Noclip Toggle"] = function()
if not hasAccess then
notify("Access denied: Premium tools require whitelist!", "error",
3)
return
end
toggleNoclip()
end,
["Fly Toggle"] = function()
if not hasAccess then
notify("Access denied: Premium tools require whitelist!", "error",
3)
return
end
toggleFly()
end,
["Speed Boost"] = function()
if not hasAccess then
notify("Access denied: Premium tools require whitelist!", "error",
3)
return
end
local character = localPlayer.Character
if character and character:FindFirstChild("Humanoid") then
local currentSpeed = character.Humanoid.WalkSpeed
character.Humanoid.WalkSpeed = currentSpeed == 16 and 50 or 16
notify("Speed set to: " .. character.Humanoid.WalkSpeed, "success",
2)
else
notify("Error: Character not found!", "error", 3)
end
end
}
for name, func in pairs(tools) do
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(1, -20, 0, 24)
btn.BackgroundColor3 = hasAccess and GUI_CONFIG.BUTTON_COLOR or
Color3.fromRGB(80, 30, 30)
btn.TextColor3 = hasAccess and GUI_CONFIG.TEXT_COLOR or Color3.fromRGB(150,
100, 100)
btn.Font = Enum.Font.GothamSemibold
btn.TextSize = 12
btn.Text = hasAccess and name or ("🔒 " .. name .. " (PREMIUM)")
btn.AutoButtonColor = false
btn.LayoutOrder = 1
createCorner(btn, 6)
if hasAccess then
btn.MouseEnter:Connect(function()
btn.BackgroundColor3 = GUI_CONFIG.BUTTON_HOVER_COLOR
end)
btn.MouseLeave:Connect(function()
btn.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
end)
end
btn.MouseButton1Click:Connect(func)
btn.Parent = bypassPanel
end
return injectPanel, townsPanel, bypassPanel, updateLogsPanel
end
--// Create toggle button
local function createToggleButton()
local toggleButton = Instance.new("TextButton")
toggleButton.Name = "ToggleButton"
toggleButton.Size = UDim2.new(0, 100, 0, 30)
toggleButton.Position = UDim2.new(0, 10, 0, 10)
toggleButton.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
toggleButton.Text = "Toggle GUI"
toggleButton.TextColor3 = GUI_CONFIG.TEXT_COLOR
toggleButton.TextScaled = true
toggleButton.Font = Enum.Font.GothamBold
toggleButton.Parent = toggleGui
createCorner(toggleButton, 6)
toggleButton.MouseEnter:Connect(function()
toggleButton.BackgroundColor3 = GUI_CONFIG.BUTTON_HOVER_COLOR
end)
toggleButton.MouseLeave:Connect(function()
toggleButton.BackgroundColor3 = GUI_CONFIG.BUTTON_COLOR
end)
toggleButton.MouseButton1Click:Connect(function()
mainFrame.Visible = not mainFrame.Visible
end)
return toggleButton
end
--// Right panel content
local function createRightPanel(rightFrame)
local rightPanelTitle = Instance.new("TextLabel")
rightPanelTitle.Size = UDim2.new(1, 0, 0, 25)
rightPanelTitle.Position = UDim2.new(0, 0, 0, 5)
rightPanelTitle.BackgroundTransparency = 1
rightPanelTitle.Text = "🔑 How to Get Whitelisted"
rightPanelTitle.TextColor3 = Color3.fromRGB(200, 200, 200)
rightPanelTitle.TextScaled = false
rightPanelTitle.TextSize = 14
rightPanelTitle.Font = Enum.Font.GothamBold
rightPanelTitle.TextXAlignment = Enum.TextXAlignment.Center
rightPanelTitle.Parent = rightFrame
-- Discord Copy Textbox Frame (V1 Style)
local discordFrame = Instance.new("Frame")
discordFrame.Size = UDim2.new(1, -10, 0, 60)
discordFrame.Position = UDim2.new(0, 5, 0, 35)
discordFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 20)
discordFrame.BorderColor3 = Color3.fromRGB(88, 101, 242)
discordFrame.BorderSizePixel = 1
discordFrame.Parent = rightFrame
createCorner(discordFrame, 6)
-- Discord Icon
if imageAssets.discord then
local discordIcon = Instance.new("ImageLabel")
discordIcon.Size = UDim2.new(0, 20, 0, 20)
discordIcon.Position = UDim2.new(0, 5, 0, 5)
discordIcon.BackgroundTransparency = 1
discordIcon.Image = imageAssets.discord
discordIcon.ScaleType = Enum.ScaleType.Fit
discordIcon.Parent = discordFrame
end
-- Discord Copy Textbox
local discordTextbox = Instance.new("TextBox")
discordTextbox.Size = UDim2.new(1, -75, 0, 25)
discordTextbox.Position = UDim2.new(0, 30, 0, 5)
discordTextbox.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
discordTextbox.BorderColor3 = Color3.fromRGB(60, 60, 80)
discordTextbox.BorderSizePixel = 1
discordTextbox.Text = "https://discord.gg/XrNVKhYTT7"
discordTextbox.TextColor3 = Color3.fromRGB(88, 101, 242)
discordTextbox.TextSize = 11
discordTextbox.Font = Enum.Font.Code
discordTextbox.TextXAlignment = Enum.TextXAlignment.Left
discordTextbox.ClearTextOnFocus = false
discordTextbox.TextEditable = false
discordTextbox.Parent = discordFrame
createCorner(discordTextbox, 4)
-- Copy Discord Button
local copyDiscordBtn = Instance.new("TextButton")
copyDiscordBtn.Size = UDim2.new(0, 40, 0, 25)
copyDiscordBtn.Position = UDim2.new(1, -45, 0, 5)
copyDiscordBtn.BackgroundColor3 = Color3.fromRGB(88, 101, 242)
copyDiscordBtn.Text = "Copy"
copyDiscordBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
copyDiscordBtn.TextSize = 11
copyDiscordBtn.Font = Enum.Font.GothamBold
copyDiscordBtn.Parent = discordFrame
createCorner(copyDiscordBtn, 4)
copyDiscordBtn.MouseEnter:Connect(function()
copyDiscordBtn.BackgroundColor3 = Color3.fromRGB(75, 88, 220)
end)
copyDiscordBtn.MouseLeave:Connect(function()
copyDiscordBtn.BackgroundColor3 = Color3.fromRGB(88, 101, 242)
end)
copyDiscordBtn.MouseButton1Click:Connect(function()
setclipboard("https://discord.gg/XrNVKhYTT7")
showNotification("Discord invite copied to clipboard!", "success")
end)
-- Join Discord Button
local joinDiscordBtn = Instance.new("TextButton")
joinDiscordBtn.Size = UDim2.new(1, -10, 0, 25)
joinDiscordBtn.Position = UDim2.new(0, 5, 0, 30)
joinDiscordBtn.BackgroundColor3 = Color3.fromRGB(88, 101, 242)
joinDiscordBtn.Text = "🎮 Join Discord Server"
joinDiscordBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
joinDiscordBtn.TextSize = 12
joinDiscordBtn.Font = Enum.Font.GothamBold
joinDiscordBtn.Parent = discordFrame
createCorner(joinDiscordBtn, 4)
joinDiscordBtn.MouseEnter:Connect(function()
joinDiscordBtn.BackgroundColor3 = Color3.fromRGB(75, 88, 220)
end)
joinDiscordBtn.MouseLeave:Connect(function()
joinDiscordBtn.BackgroundColor3 = Color3.fromRGB(88, 101, 242)
end)
joinDiscordBtn.MouseButton1Click:Connect(function()
setclipboard("https://discord.gg/XrNVKhYTT7")
showNotification("Discord invite copied! Opening Discord...", "success")
end)
-- Information Text (matching requirements style)
local rightPanelText = Instance.new("TextLabel")
rightPanelText.Size = UDim2.new(1, -10, 1, -105)
rightPanelText.Position = UDim2.new(0, 5, 0, 100)
rightPanelText.BackgroundTransparency = 1
rightPanelText.Text = "Discord Requirements:\n• Join by copying the link or
click the link that you can select the link text\n• Active in community\n• No rule
violation\n\nBenefits:\n• All teleportation features\n• Speed & movement tools\n•
Game control abilities\n• Priority support\n\nQuick Tips:\n• Join Discord for
updates\n• Follow server rules\n• Show commitment"
rightPanelText.TextColor3 = Color3.fromRGB(200, 200, 200)
rightPanelText.TextScaled = false
rightPanelText.TextSize = 14
rightPanelText.Font = Enum.Font.Gotham
rightPanelText.TextXAlignment = Enum.TextXAlignment.Left
rightPanelText.TextYAlignment = Enum.TextYAlignment.Top
rightPanelText.TextWrapped = true
rightPanelText.Parent = rightFrame
end
--// Initialize GUI (persistent version)
local function initializeGUIPersistent()
-- Only create GUI if it doesn't exist
if screenGui and screenGui.Parent then
return -- GUI already exists
end
-- Check whitelist first
task.spawn(checkWhitelist)
-- Initialize character respawn handling
handleCharacterRespawn()
-- Wait for whitelist check
while not checked do
task.wait(0.1)
end
-- Create GUI
local leftFrame, rightFrame = createMainGUI()
local statusLabel, injectBtn, townsBtn, bypassBtn, updateLogsBtn =
createTabInterface(leftFrame, rightFrame)
-- Create content panels
injectPanel, townsPanel, bypassPanel, updateLogsPanel =
createTabContent(leftFrame)
-- Create right panel content
createRightPanel(rightFrame)
-- Create toggle button
createToggleButton()
-- Tab button functionality
injectBtn.MouseButton1Click:Connect(function()
showPanel(injectPanel)
currentTab = "inject"
end)
townsBtn.MouseButton1Click:Connect(function()
showPanel(townsPanel)
currentTab = "towns"
end)
bypassBtn.MouseButton1Click:Connect(function()
showPanel(bypassPanel)
currentTab = "bypass"
end)
updateLogsBtn.MouseButton1Click:Connect(function()
showPanel(updateLogsPanel)
currentTab = "logs"
end)
-- Show default panel
showPanel(injectPanel)
-- Update status label with whitelist result
statusLabel.Text = whitelistStatus
statusLabel.TextColor3 = hasAccess and Color3.fromRGB(0, 255, 0) or
Color3.fromRGB(255, 165, 0)
-- Keyboard controls
local toggleConnection = userInputService.InputBegan:Connect(function(input,
gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.H and
userInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
mainFrame.Visible = not mainFrame.Visible
end
end)
table.insert(connectionsList, toggleConnection)
-- Start death tracking
trackDeathPlace()
-- Initial startup notification
notify("Mega Executor loaded successfully!", "info", 3)
-- Welcome message based on whitelist status
task.spawn(function()
task.wait(1)
if hasAccess then
notify("Welcome! All premium features unlocked!", "success", 4)
else
notify("Limited mode active. Get whitelisted for full access!",
"warning", 5)
end
task.wait(2)
notify("Press CTRL+H to toggle GUI visibility", "info", 4)
end)
print("Mega Executor loaded successfully!")
print("Features: Whitelist System, Game Controls, Teleportations, ESP")
print("Press CTRL+H to toggle GUI or use the toggle button")
end
--// Minimal cleanup that preserves GUI
local function setupMinimalCleanup()
local connection = localPlayer.CharacterAdded:Connect(function()
-- Only track death place on respawn, don't recreate GUI
trackDeathPlace()
-- Update whitelist status display if GUI exists
if screenGui and screenGui.Parent then
task.wait(1)
local statusLabel = screenGui:FindFirstChild("MainFrame")
if statusLabel then
statusLabel = statusLabel:FindFirstChild("LeftFrame")
if statusLabel then
statusLabel = statusLabel:FindFirstChild("StatusLabel")
if statusLabel then
statusLabel.Text = whitelistStatus
statusLabel.TextColor3 = hasAccess and Color3.fromRGB(0,
255, 0) or Color3.fromRGB(255, 165, 0)
end
end
end
end
end)
table.insert(connectionsList, connection)
end
--// Initialize once and keep persistent
initializeGUIPersistent()
setupMinimalCleanup()