Player Walk-in detection

So I have a store in my game and I want a cut-scene of the shop owner greeting you when you walk in for the first time in the game. There could be a invisible part that detects when you walk in but that would detect every time (There is an entrance and exit) and if I destroy the part on collision then no body else will get the greeting. Any ideas on how I could make the detection work only once would be appreciated.

On touch event, you can change the camera client, play the animation, and store a variable that says player is IN = true, when player exit, if IN == true, dont play the cutscene

1 Like

Do you want this to happen even if the player comes back to play the game again? If so you would need to use the datastore service to store some kind of boolean HasVisited variable for the player and check it when they enter.

1 Like