Don't know how to fix this error

I’m trying to fire an event once the bool value “allowed” is equal to true. I keep getting this error and I don’t know how to fix it because the folder is in ServerScriptService.

Folder:
megawowo.

Output & Script:

Thanks,
Skylexion

2 Likes

Localscripts can’t get the contents inside of ServerScriptsService, move it somewhere else such as ReplicatedStorage

2 Likes

You can’t acces serverscriptservice from a localscript. You need to work with RemoteEvents instead.

ddfs

Then I get this.

possibly an infinite loop of waiting
i didnt research infinite yield sorry :expressionless:

It’s still saying ServerScriptService, did you forget to change the reference in the script? What did you even change?

Edit: Oh

Oh, nervermind, its the other script lol.

Insert a new service called ReplicatedScriptService
put the localscript in there
should be good

replicatedscriptservice is a good place to put it but it isnt enabled by default