How do i use Humanoid.TargetPoint to set an object's position?

Hi! I’m trying to make a simple script in a tool that, when activated, creates an explosion in the position of the cursor, just to practice and see how i can use Humanoid.TargetPoint

However i don’t know how to use it to set an Explosion’s position, here’s the script:

Script|690x335

Don’t use TargetPoint.

The Tool | Roblox Creator Documentation documentation is outdated.

See the warning on the Humanoid | Roblox Creator Documentation docs:

Do not use
This property only works with Experimental Mode enabled, which has been entirely discontinued.

Instead you can just use the mouse—either by getting it through the Tool | Roblox Creator Documentation event and storing it for use later, or just doing

local mouse = game.Players.LocalPlayer:GetMouse()

-- ...

kaboom.Position = mouse.Hit.Position
5 Likes