Skip to content

Kill misbehaving client scripts via an interrupt hook#25

Merged
techs-sus merged 4 commits intomainfrom
kill-misbehaving-client-scripts
Apr 5, 2026
Merged

Kill misbehaving client scripts via an interrupt hook#25
techs-sus merged 4 commits intomainfrom
kill-misbehaving-client-scripts

Conversation

@techs-sus
Copy link
Copy Markdown
Collaborator

@techs-sus techs-sus commented Feb 5, 2026

Close #24

Also adds @native to luau_execute (the VM step function) for performance

The SCRIPT_TIMEOUT is currently 0.1 seconds, which should probably be increased to another value. I chose 0.1, so the user would only experience a slight stutter.

https://github.com/rce-incorporated/Fiu/blob/main/Source.lua was used as a reference when adding back interruptHook support.

@techs-sus techs-sus changed the title kill misbehaving client scripts via interruptHook Kill misbehaving client scripts via an interrupt hook Feb 5, 2026
@techs-sus
Copy link
Copy Markdown
Collaborator Author

Here's how it looks in game:

Client.script.dies.mov

@techs-sus techs-sus requested a review from ewd3v March 5, 2026 01:55
Comment thread modules/client/wm/sandbox/init.luau Outdated
Copy link
Copy Markdown
Member

@ewd3v ewd3v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, though take a look at the other comment I made.

@ewd3v
Copy link
Copy Markdown
Member

ewd3v commented Mar 20, 2026

Alright I left another comment on something I just thought about. However it's really fine and you can merge this if you want.

@techs-sus techs-sus merged commit 5852ada into main Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use VM interrupts to stop misbehaving client scripts

2 participants