Have you ever wondered how developers write the Roblox scripts that you execute using Delta? From simple walkspeed boosts to complex auto-farm GUIs, every cheat is written using Roblox’s programming language: Luau (a customized, optimized version of Lua 5.1).
Learning the basics of scripting not only helps you understand what you are running, but it also allows you to write custom scripts to automate your games without waiting for someone else to publish them.
In this beginner-friendly tutorial, we break down the structure of Roblox executor scripts and show you how to write, test, and publish your own basic Lua commands.
1. What is Luau and How Do Executors Run It?
Roblox games run code on both the server (Roblox’s computers) and the client (your mobile phone or PC).
Standard game scripts are restricted by FilteringEnabled, which stops players from sending unauthorized commands to the server. For example, if you try to change your gold count locally, the server rejects it.
However, executors bypass this restriction by injecting code directly into the Client Memory. This allows you to manipulate elements that are handled locally on your device, such as:
- Your character’s speed, jump height, and coordinates (teleportation).
- The positions of other players and items (ESP / Wall hacks).
- Local GUI buttons and automated clickers.
Executors load scripts using the loadstring function, which converts text code fetched from a URL into executable functions:
loadstring(game:HttpGet(“https://raw.githubusercontent.com/username/repo/main/script.lua”))()
2. Writing Your First Roblox Script: Character Mods
Let’s start by modifying your character’s physics. Open the executor GUI inside Roblox, paste any of these code blocks, and tap Execute.
Script 1: WalkSpeed Modifier
To make your character run faster, we need to locate your player’s humanoid object and change its WalkSpeed property (default speed is 16).
— Find the local player, get their character, and modify speed
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
Script 2: JumpPower Modifier
Similarly, to jump higher, we modify the JumpPower property (default is 50). Note: we must also set UseJumpPower to true to ensure the game uses our new value.
local character = game.Players.LocalPlayer.Character
character.Humanoid.UseJumpPower = true
character.Humanoid.JumpPower = 100
3. Creating a Simple Infinite Jump Script
Now let’s build something slightly more advanced: a script that lets you jump continuously in mid-air (Infinite Jump). This requires listening to user input and triggering a jump function whenever the spacebar or jump button is pressed.
Paste the following script into your executor:
local Player = game:GetService(“Players”).LocalPlayer
local Mouse = Player:GetMouse()
— Listen for key presses
Mouse.KeyDown:Connect(function(key)
if key == ” ” then — Spacebar space key
local Character = Player.Character
if Character then
— Set character velocity upward to simulate a jump
Character:FindFirstChildOfClass(“Humanoid”):ChangeState(“Jumping”)
end
end
end)
How it works:
game:GetService("Players").LocalPlayerlocates your active player session.Mouse.KeyDownis a listener that waits for you to press a key.:ChangeState("Jumping")forces your character’s state to “Jumping” even if they are already in the air.
4. How to Host and Share Your Script (Creating a Loadstring)
Once you write a script, you can host it online so you and other players can run it with a single line of code.
Step 1: Write and Save Your Code
Write your script in a text editor (like Notepad or VS Code) and save it.
Step 2: Upload to GitHub Gist or Pastebin
- Go to GitHub Gists (
https://gist.github.com/). - Paste your Lua script.
- Click Create Secret Gist or Create Public Gist.
- Click the Raw button at the top right of your file code. This gives you a clean URL showing only your code without website borders.
- Never share cookies: Avoid writing scripts that access
game.Players.LocalPlayer.Charactercookies or tokens, as this can lead to account theft. - Handle errors: Wrap your HTTP calls in
pcall(protected call) to prevent your script from breaking if GitHub or Pastebin experiences downtime. - Keep it local: Focus on client-side properties (like Position, CFrame, and WalkSpeed) for the best execution rates on mobile devices.
Step 3: Write Your Loadstring
Copy the raw URL and insert it into this template:
loadstring(game:HttpGet(“YOUR_RAW_URL_HERE”))()
Now, anyone can paste that single line into Delta Executor, and your script will run instantly!
5. Tips for Writing Safe Roblox Scripts