Error while calling Module Script

I was running my game, and this message came in the output: The current thread cannot start 'PlayerAndCameraFreeze' (lacking capability RunClientScript)

What does this mean?

----------- Context -----------
I think this has something to do with sandboxing so I’ll tell you that the Script calling it is a Local Script in StarterPlayerScripts and isn’t Sandboxed, and the ModuleScript is in ReplicatedStorage and is Sandboxed.

Please tell me what this error means. >﹏<

1 Like

Are you calling this function from server-side script?
Try call this function in localscript

1 Like

move the code to execute on the client to LocalScript, and if on the client and server, use RemoteEvent.

1 Like

this means the script you are calling is parented under model or itself has .Sandboxed = true
You need to disable that

1 Like

Some apis have script capabilities

I’m calling from LocalScript :frowning:

It isn’t possible to change the IsInSandbox property

wdym?
Eleborate
Also its called “sandbox” property

you have to edit a property under I believe workspace that allows you to change this if i remember correctly

its probably SandboxedInstanceMode

1 Like

Look at this image. It’s called IsInSandbox, and it isn’t possible to change.

Maybe you’re talking about something else? :person_shrugging:

I found SandboxedInstanceMode, and it has two values, default and experimental. Should I change to experimental?

yes setting it to experimental should fix the property ig
because once again this error is purely about sandbox permissions

1 Like