grep

Regex search across every synced script.

What it does

grep searches the source of every script the plugin has synced from your game. Matches are returned with their script path, line numbers, and optional surrounding context lines. The pattern can be plain text (default) or a regex when use_regex is set. By default the search is case-insensitive.

You can scope the search to a subtree by passing a path like ServerScriptService or StarterGui/MainMenu — only scripts under that subtree are searched. For very large games with no scope, the search runs against a prioritized subset of common script locations and reports that it did so, so you can narrow the scope if you need full coverage.

The tool caps results at 150 matches per call. If you hit that ceiling, narrow the pattern or scope and try again.

Parameters

NameTypeRequiredDescription
`pattern`stringyesSearch pattern (plain text, or regex if `use_regex=true`).
`path`stringnoLimit search to scripts under this DataModel subtree.
`use_regex`booleannoTreat pattern as regex. Default `false`.
`case_sensitive`booleannoCase-sensitive search. Default `false`.
`context_lines`numbernoLines of context around each match (0-10). Default `0`.

When Revix uses it

  • Finding every caller of a function or every reference to a RemoteEvent
  • Locating a variable name or string literal across the game
  • Discovering which scripts handle a particular event or service
  • Auditing usage before renaming or refactoring

Example

text
Found "PlayerAdded" — 3 match(es):

--- ServerScriptService/GameManager (2 matches) ---
    12:> Players.PlayerAdded:Connect(function(player)
    18:> Players.PlayerAdded:Wait()
--- ServerScriptService/Leaderboard (1 match) ---
     7:> Players.PlayerAdded:Connect(setupStats)

Limits

Capped at 150 matches per call. In large games without a scope, search runs over a prioritized subset of common locations.

Troubleshooting

If "No synced files available" comes back, the plugin is not connected. See setup.