How can I run a local script added locally

Hello! I am trying to test an anti-cheat I made. But I don’t want to download hacks and test them, so I want to put a local script when testing the game in studio. How can I run the script after I put it into the game?

3 Likes

You can use the commandbar on the bottom of your screen in Studio and just execute code that way.

1 Like

You can just put the exploit script into a localscript, disable it, and run it whenever you like by enabling again it again.
There may be a problem with this since the script you may be using may have exploit-only functions that don’t work without the actual exploit.

1 Like

How can I run the script?
text text text

1 Like

Let’s say you have a DISABLED script in workspace. It’s called “MyScript”.
You can run the script by toggling the enabled property in the script. Same with disabling it:
workspace.MyScript.Enabled = false
workspace.MyScript.Enabled = true

I think you should look at the developer documentation for better explanation:

1 Like

It didn’t work. Can it run a remote event?

You need to toggle the “Enabled” property when the game is running and is being viewed on the client. If you did that and it still doesn’t work could I see how you did it?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.