NexusX
Inject
Explorer
Editor
New
Script Hub
Documentation
Workspace
My Scripts
Favorites
12
Recent
Utilities
Key System
Auto Attach
Remote Spy
Esp Library
Community
Discord
Join
Guides
FAQ
Execute
Clear
Change Keybind
Auto Execute
Auto Refresh
Formatter
Search Script
Import Script
Export Script
main.lua
utils.lua
-- Welcome to NexusX -- Advanced Lua executor for Roblox local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local UserInputService = game:GetService("UserInputService") -- Simple fly script local flyToggle = false local flySpeed = 50 local flyKeybind = Enum.KeyCode.F local function toggleFlight() flyToggle = not flyToggle if flyToggle then -- Create body velocity for flying local bodyVelocity = Instance.new("BodyVelocity", Character) bodyVelocity.Name = "NexusXFlying" bodyVelocity.MaxForce = Vector3.new(0, math.huge, 0) bodyVelocity.Velocity = Vector3.new(0, 0, 0) -- Heartbeat connection for movement local flyConnection flyConnection = game:GetService("RunService").Heartbeat:Connect(function() if not Character or not Character:FindFirstChild("HumanoidRootPart") then return end local root = Character.HumanoidRootPart bodyVelocity.Velocity = Vector3.new(0, 0, 0) -- Forward/backward movement if UserInputService:IsKeyDown(Enum.KeyCode.W) then bodyVelocity.Velocity = root.CFrame.LookVector * flySpeed elseif UserInputService:IsKeyDown(Enum.KeyCode.S) then bodyVelocity.Velocity = root.CFrame.LookVector * -flySpeed end -- Strafe movement if UserInputService:IsKeyDown(Enum.KeyCode.A) then bodyVelocity.Velocity = bodyVelocity.Velocity - root.CFrame.RightVector * flySpeed elseif UserInputService:IsKeyDown(Enum.KeyCode.D) then bodyVelocity.Velocity = bodyVelocity.Velocity + root.CFrame.RightVector * flySpeed end -- Vertical movement if UserInputService:IsKeyDown(Enum.KeyCode.Space) then bodyVelocity.Velocity = bodyVelocity.Velocity + Vector3.new(0, flySpeed, 0) elseif UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then bodyVelocity.Velocity = bodyVelocity.Velocity - Vector3.new(0, flySpeed, 0) end end) print("[NexusX] Flight enabled | Speed: "..flySpeed) else -- Clean up flight if Character:FindFirstChild("NexusXFlying") then Character.NexusXFlying:Destroy() print("[NexusX] Flight disabled") end end end -- Toggle flight with keybind UserInputService.InputBegan:Connect(function(input, gameProcessed) if not gameProcessed and input.KeyCode == flyKeybind then toggleFlight() end end) -- Print welcome message print("Welcome to NexusX Executor") print("Press F to toggle flight")
Ready
Lua 5.1
Last execute: Never
0 Errors, 4 Warnings
12.4 MB
Console
[SYSTEM] NexusX v3.2.1 initialized at
14:25:46
[INFO] Waiting