Permissions
Most of the API is safe to use without thinking about it. Scripts read the game, draw, keep files in their own folder and talk to the web. A few things are riskier, and this page covers what guards them.
Allow unsafe Luau
Scripts > Settings > Security > Allow unsafe Luau guards the functions that touch the game's memory directly:
getbase,memory_readandmemory_writegetgc,setgcandapplygc
It is off by default. While it is off, each of these raises an error before doing anything:
local ok, message = pcall(getbase)
print(ok, message) -- false getbase requires 'Allow unsafe Luau' (Scripts settings)Turn it on only for scripts you trust. A wrong address or a bad write can crash Roblox, and these functions can change values the game relies on.
The setting is saved, so it is still on the next time you start evasive. That matters for autoexec: a marked script that reads memory needs the switch on when it starts.
evasive also checks the switch again at the moment of writing. If you turn it off while a setgc search is still running, nothing gets written and the console says so.
Once a getgc or setgc search has run, the Security card shows a Last heap search line with how long it took and how much it found.
See Memory and the Lua heap for how to use these functions.
Other limits that are always on
These need no switch. They are just how evasive works.
Files stay in the workspace folder
writefile, readfile and the other file functions only work inside Documents\evasive roblox\workspace. Paths are relative to it. An absolute path or a path with .. that leaves the folder raises an error. The three that read or write a file's contents (readfile, writefile, appendfile) refuse any file that is not .txt, .lua, .luau, .json, .cfg, .dat or .ini.
require reads the scripts folder only
require("utils.lua") loads a module from the scripts folder. It cannot reach anywhere else.
Sending input to Roblox
keypress, mouse1click, mousemoverel and the other input functions only send input when all three of these hold:
setgameinputis on (it is on until a script turns it off);- Roblox is the window in front;
- the evasive menu is closed.
Otherwise the call does nothing. That way a script can never type into another program or click around in the menu. Any key or button a script is still holding when it stops gets released.
Changing the game
A handful of game properties can be written, and they need no switch:
Camera.FieldOfView(1 to 120 degrees)- a part's
Position,CFrame,Velocity,AssemblyLinearVelocityandCanCollide Model:PivotTo(cframe)andBasePart:PivotTo(cframe)Texton a TextLabel, TextButton or TextBox, as long as the new text is not longer than the space the old text hadInstance:SetAttribute(name, value)for an attribute that already exists, with a value of the same type
Everything else is read-only. Assigning to it raises "Unable to assign property X. Property is read only".
These writes are real changes in your game client. Moving parts around or teleporting your character can look odd to other players, and a game is free to notice.