How to use loadstring on local scripts?

I tried many times to use loadstring on a localscripts but that didn’t work :frowning:
So I will be really happy if someone answer me :slight_smile:

that’s the code :

local x = “print(‘Hello world’)”
loadstring(x)()

When I execute it it just say :
loadstring() is not available

So I tried to enable the loadstring on the server script service (And yeah it worked on a script but not a a local one)

but still the same error :frowning:

If you know the answer please answer me.

1 Like

You probably shouldnt be doing this but maybe try using remote events.

1 Like

So it will no longer be executed in local ?

1 Like