Can scripts under starterplayer see changes made to ReplicatedStorage?

I’ve been trying to hook up a bindable event to to toggle shiftlock, and it seemingly ignores when its being fired, despite the code definitely being compiled, and other scripts that aren’t under StarterPlayerScripts picking up the fact it had been fired.

I tried to then make a module script that contained my own custom event function, but the shiftlock script didn’t even say anything was in the module table (it was created externally, then I had the shiftlock script yield until it found it - other scripts did).

All my scripts are local.

My goal is to make it so I can toggle shiftlock from a different script. If anyone knows a way to do this, that’d be great.

There are a lot of ways to do this. I would suggest using ModuleScripts. But as for using BindableEvents in ReplicatedStorage, yes, scripts under StarterPlayerScripts can see those objects. But, that’s only true depending on how those objects were created. How are you instancing this bindable event?

I tried both instance.new and just creating it in studio then running the game.

Can you share some example code?

Oh looks like my code wasn’t syncing with studio properly. I’ll get back to you and confirm if that was the issue later.

Thanks for the help!

2 Likes