RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a lua script executor that runs lua Also create the gui for it Make the gui look good."
-- local script local player = game.Players.LocalPlayer local gui = Instance.new("ScreenGui") local frame = Instance.new("Frame") local textbox = Instance.new("TextBox") local execute = Instance.new("TextButton") gui.Name = "LuaExecutor" gui.Parent = player.PlayerGui frame.Name = "ExecutorFrame" frame.Parent = gui frame.Size = UDim2.new(0.8, 0, 0.5, 0) frame.Position = UDim2.new(0.1, 0, 0.2, 0) frame.BackgroundColor3 = Color3.fromRGB(255,255,255) frame.BorderSizePixel = 0 textbox.Name = "LuaCode" textbox.Parent = frame textbox.Size = UDim2.new(0.9, 0, 0.8, 0) textbox.Position = UDim2.new(0.05, 0, 0.1, 0) textbox.BackgroundColor3 = Color3.fromRGB(255,255,255) textbox.BorderSizePixel = 0 textbox.Text = "" execute.Name = "ExecuteButton" execute.Parent = frame execute.Size = UDim2.new(0.2, 0, 0.2, 0) execute.Position = UDim2.new(0.75, 0, 0.7, 0) execute.BackgroundColor3 = Color3.fromRGB(255,255,255) execute.BorderSizePixel = 0 execute.Text = "Execute" execute.MouseButton1Click:Connect(function() local code = textbox.Text local success, err = pcall(function() loadstring(code)() end) if not success then warn(err) end end)