How to make a tool that lets the user click on any player to do something's

I’m not that new to studio or scripting but i never really learned tools and click detectors. How can i make a tool that lets you click on any player’s character / npc and for example kill them?

1 Like

Hello! You can use Raycasting to click where an object is.

If you need a step-by-step guide don’t hesitate to ask!

I’ll research it tmrw, thanks for help

1 Like

Example.rbxm (4.6 KB)

I had the free time, so I built you an example of what you asked for, fitted with sanity checks n’ all that

1 Like