How to make LocalScript only work when in a seat

It runs now, but it still works when I’m not in the seat.

Maybe I didn’t say before that it should only work when I’m in that specific seat, but that’s how I intended it.

How are you testing this? Because I can’t seem to replicate it.

Well, it’s sort of complicated to explain the testing just in words.

It would be better to send multiple short videos using a gif maker, or a possible video call (something like discord).

If discord is possible you may provide it, but if you don’t have it, let me know and I’ll send a few videos showing the components.

For now, I can say it in words though.

There are 4 scripts in the StarterGui folder, labeled W A S, and D. Each script corresponds to a letter on the keyboard, controlling a spotlight model, if you have ever seen the spotlights they use in concerts or the way they move.

My idea is to have all those scripts only work if you are sitting in a specific seat.


The seat I am sitting on is the seat I want to apply the script to.

The spotlight that is moving is controlled by WASD. (Looks up and down using W and S, turns left and right using A and D)

Try using ContextActionService to Bind/Unbind the actions you want to happen when the player sits/stands up from the seat as opposed to UserInputService.