-- Lua script for Roblox with password-protected, draggable, red-themed GUI with script hub local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local StarterGui = game:GetService("StarterGui") local LocalPlayer = Players.LocalPlayer -- Create a ScreenGui with high ZIndex to stay on top local screenGui = Instance.new("ScreenGui") screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") screenGui.Name = "ExEsGui" screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Global screenGui.ResetOnSpawn = false -- Create a Password Frame (initially visible) local passwordFrame = Instance.new("Frame") passwordFrame.Size = UDim2.new(0, 300, 0, 150) passwordFrame.Position = UDim2.new(0.5, -150, 0.5, -75) passwordFrame.BackgroundColor3 = Color3.fromRGB(100, 0, 0) -- Dark red passwordFrame.BorderSizePixel = 2 passwordFrame.BorderColor3 = Color3.fromRGB(255, 0, 0) -- Bright red passwordFrame.ZIndex = 200 -- Higher ZIndex for password prompt passwordFrame.Parent = screenGui -- Password Title local passwordTitle = Instance.new("TextLabel") passwordTitle.Size = UDim2.new(1, 0, 0, 40) passwordTitle.Position = UDim2.new(0, 0, 0, 10) passwordTitle.Text = "Enter Password" passwordTitle.TextColor3 = Color3.fromRGB(255, 255, 255) passwordTitle.BackgroundTransparency = 1 passwordTitle.TextScaled = true passwordTitle.Font = Enum.Font.SourceSansBold passwordTitle.ZIndex = 201 passwordTitle.Parent = passwordFrame -- Password Input TextBox local passwordBox = Instance.new("TextBox") passwordBox.Size = UDim2.new(0.9, 0, 0, 40) passwordBox.Position = UDim2.new(0.05, 0, 0, 60) passwordBox.BackgroundColor3 = Color3.fromRGB(50, 0, 0) passwordBox.TextColor3 = Color3.fromRGB(255, 255, 255) passwordBox.PlaceholderText = "Password..." passwordBox.TextScaled = true passwordBox.ClearTextOnFocus = false passwordBox.ZIndex = 201 passwordBox.Parent = passwordFrame -- Password Submit Button local submitButton = Instance.new("TextButton") submitButton.Size = UDim2.new(0.4, 0, 0, 40) submitButton.Position = UDim2.new(0.3, 0, 0, 110) submitButton.Text = "Submit" submitButton.TextColor3 = Color3.fromRGB(255, 255, 255) submitButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) submitButton.TextScaled = true submitButton.ZIndex = 201 submitButton.Parent = passwordFrame -- Create Main Frame (initially invisible) local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 400, 0, 300) frame.Position = UDim2.new(0.5, -200, 0.5, -150) frame.BackgroundColor3 = Color3.fromRGB(100, 0, 0) frame.BorderSizePixel = 2 frame.BorderColor3 = Color3.fromRGB(255, 0, 0) frame.ZIndex = 100 frame.ClipsDescendants = true frame.Visible = false -- Hidden until password is correct frame.Parent = screenGui -- Title for Main Frame (draggable area) local textLabel = Instance.new("TextLabel") textLabel.Size = UDim2.new(1, -30, 0, 50) textLabel.Position = UDim2.new(0, 0, 0, 10) textLabel.Text = "ExEs Lua Exec 😎" textLabel.TextColor3 = Color3.fromRGB(255, 255, 255) textLabel.BackgroundColor3 = Color3.fromRGB(120, 0, 0) textLabel.TextScaled = true textLabel.Font = Enum.Font.SourceSansBold textLabel.ZIndex = 101 textLabel.Parent = frame -- Close Button (X) local closeButton = Instance.new("TextButton") closeButton.Size = UDim2.new(0, 30, 0, 30) closeButton.Position = UDim2.new(1, -40, 0, 10) closeButton.Text = "X" closeButton.TextColor3 = Color3.fromRGB(255, 255, 255) closeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) closeButton.TextScaled = true closeButton.ZIndex = 102 closeButton.Parent = frame -- TextBox for Lua code input local textBox = Instance.new("TextBox") textBox.Size = UDim2.new(0.9, 0, 0, 100) textBox.Position = UDim2.new(0.05, 0, 0, 70) textBox.BackgroundColor3 = Color3.fromRGB(50, 0, 0) textBox.TextColor3 = Color3.fromRGB(255, 255, 255) textBox.PlaceholderText = "Enter Lua code here..." textBox.TextScaled = true textBox.ClearTextOnFocus = false textBox.ZIndex = 101 textBox.Parent = frame -- Execute Button local executeButton = Instance.new("TextButton") executeButton.Size = UDim2.new(0.28, 0, 0, 40) executeButton.Position = UDim2.new(0.05, 0, 0, 180) executeButton.Text = "Execute" executeButton.TextColor3 = Color3.fromRGB(255, 255, 255) executeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) executeButton.TextScaled = true executeButton.ZIndex = 101 executeButton.Parent = frame -- Upload Script Button local uploadButton = Instance.new("TextButton") uploadButton.Size = UDim2.new(0.28, 0, 0, 40) uploadButton.Position = UDim2.new(0.36, 0, 0, 180) uploadButton.Text = "Upload Script" uploadButton.TextColor3 = Color3.fromRGB(255, 255, 255) uploadButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) uploadButton.TextScaled = true uploadButton.ZIndex = 101 uploadButton.Parent = frame -- Script Hub Frame local scriptHubFrame = Instance.new("Frame") scriptHubFrame.Size = UDim2.new(0.28, 0, 0, 100) scriptHubFrame.Position = UDim2.new(0.67, 0, 0, 180) scriptHubFrame.BackgroundColor3 = Color3.fromRGB(50, 0, 0) scriptHubFrame.ZIndex = 101 scriptHubFrame.Parent = frame -- Script Hub Title local scriptHubLabel = Instance.new("TextLabel") scriptHubLabel.Size = UDim2.new(1, 0, 0, 20) scriptHubLabel.Position = UDim2.new(0, 0, 0, 0) scriptHubLabel.Text = "Script Hub" scriptHubLabel.TextColor3 = Color3.fromRGB(255, 255, 255) scriptHubLabel.BackgroundTransparency = 1 scriptHubLabel.TextScaled = true scriptHubLabel.ZIndex = 101 scriptHubLabel.Parent = scriptHubFrame -- Example Script Buttons for Script Hub local script1Button = Instance.new("TextButton") script1Button.Size = UDim2.new(0.9, 0, 0, 30) script1Button.Position = UDim2.new(0.05, 0, 0, 30) script1Button.Text = "Speed Boost" script1Button.TextColor3 = Color3.fromRGB(255, 255, 255) script1Button.BackgroundColor3 = Color3.fromRGB(200, 0, 0) script1Button.TextScaled = true script1Button.ZIndex = 101 script1Button.Parent = scriptHubFrame local script2Button = Instance.new("TextButton") script2Button.Size = UDim2.new(0.9, 0, 0, 30) script2Button.Position = UDim2.new(0.05, 0, 0, 65) script2Button.Text = "Teleport to Spawn" script2Button.TextColor3 = Color3.fromRGB(255, 255, 255) script2Button.BackgroundColor3 = Color3.fromRGB(200, 0, 0) script2Button.TextScaled = true script2Button.ZIndex = 101 script2Button.Parent = scriptHubFrame -- Drag functionality for Main Frame local dragging = false local dragStart = nil local startPos = nil local function updateDrag(input) local delta = input.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end textLabel.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position end end) textLabel.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then updateDrag(input) end end) textLabel.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) -- Function to execute Lua code safely local function executeCode(code) local success, result = pcall(function() return loadstring(code)() end) if success then StarterGui:SetCore("SendNotification", { Title = "ExEs Lua Exec", Text = "Code executed successfully! 😎", Duration = 3 }) else StarterGui:SetCore("SendNotification", { Title = "ExEs Lua Exec", Text = "Error: " .. tostring(result), Duration = 5 }) end end -- Password verification submitButton.MouseButton1Click:Connect(function() local enteredPassword = passwordBox.Text if enteredPassword == "TEAMEXEONTOP" then passwordFrame.Visible = false frame.Visible = true StarterGui:SetCore("SendNotification", { Title = "ExEs Lua Exec", Text = "TEAM EXE ON TOP 😎", Duration = 3 }) else StarterGui:SetCore("SendNotification", { Title = "ExEs Lua Exec", Text = "Incorrect password!", Duration = 3 }) end end) -- Close button functionality closeButton.MouseButton1Click:Connect(function() screenGui:Destroy() StarterGui:SetCore("SendNotification", { Title = "ExEs Lua Exec", Text = "GUI closed! 😎", Duration = 3 }) end) -- Execute button functionality executeButton.MouseButton1Click:Connect(function() local code = textBox.Text if code ~= "" then executeCode(code) else StarterGui:SetCore("SendNotification", { Title = "ExEs Lua Exec", Text = "Please enter some Lua code!", Duration = 3 }) end end) -- Upload Script button functionality uploadButton.MouseButton1Click:Connect(function() local code = textBox.Text if code ~= "" then local newScriptButton = Instance.new("TextButton") newScriptButton.Size = UDim2.new(0.9, 0, 0, 30) newScriptButton.Position = UDim2.new(0.05, 0, 0, #scriptHubFrame:GetChildren() * 35 - 35) newScriptButton.Text = "Uploaded Script " .. #scriptHubFrame:GetChildren() newScriptButton.TextColor3 = Color3.fromRGB(255, 255, 255) newScriptButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) newScriptButton.TextScaled = true newScriptButton.ZIndex = 101 newScriptButton.Parent = scriptHubFrame newScriptButton.MouseButton1Click:Connect(function() executeCode(code) end) StarterGui:SetCore("SendNotification", { Title = "ExEs Lua Exec", Text = "Script uploaded to Script Hub! 😎", Duration = 3 }) else StarterGui:SetCore("SendNotification", { Title = "ExEs Lua Exec", Text = "Please enter a script to upload!", Duration = 3 }) end end) -- Script Hub button functionalities script1Button.MouseButton1Click:Connect(function() local scriptCode = [[ game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50 print("Speed boosted!") ]] executeCode(scriptCode) end) script2Button.MouseButton1Click:Connect(function() local scriptCode = [[ local player = game.Players.LocalPlayer if player.Character and player.Character.HumanoidRootPart then player.Character.HumanoidRootPart.CFrame = CFrame.new(0, 5, 0) print("Teleported to spawn!") end ]] executeCode(scriptCode) end) -- Notify that the GUI has loaded print("ExEs Lua Exec GUI loaded!") StarterGui:SetCore("SendNotification", { Title = "ExEs Lua Exec", Text = "Password-protected GUI loaded! Enter password to unlock. 😎", Duration = 3 })