How to make limited player range?

I’m trying to make a game where you need to get within a certain range of an object to interact with it. I’m not sure how to do this, help would be appreciated.

2 Likes

use coblock
when object is clicked (or another event)
{If distance beetwen player and object “(you can find this round coblock in the transform section of coblocks)” < 4
[Run the command that you want]}

2 Likes

Thank you your response was very helpful

2 Likes

Thank you, you can mark my response as solution if it solved the problem.

1 Like