Hey, I think what you are looking for is using a player state. Take a look at this video, it might clear up a few things
Hope this helps