Hello all, I’m in the process of learning to code and script and I’m just learning about or trying to learn, about different functions i can use to create game mechanics. For example, one thing I’m really confused about is not necesarily finding a players position, but sort of like another version of .touched or finding when a player is within reach of something. I hear a lot on the forums that most developers dislike .touched because it is not consistent or what not, and the only way I can think about doing something the way I am thinking of it is by doing runservice:heartbeat() and that seems like a bad idea because as far as I am concerned this would cause a lot of lag or performance issues. if someone could direct me to a bunch of api references or even tell me I’m wrong, I am looking for more materials to learn from. Thank you!
I think you should at least give touched a try you might find it better then you imagen
another option is proximity prompts you can make the player press a key to interact with things
but if you do want to find out what is close to a players character then I believe GetPartBoundsInRadius is the fastest way to get a list of parts that are close to the character but I also think this is not a good way and I would personally use touched or proximity prompts
1 Like