I looked through the wiki; didn't really find anything. Hopefully, I am overlooking it. I know you can do that with the Player:GetMouse(), but it is depreciated, or whatever. If you know how to find the part the player is "pointing at", let me know.

I wouldn't think this question needs my code, but here it is:

mouse.InputChanged:connect(function(input , event)
	if input.UserInputType == Enum.UserInputType.MouseMovement then
		--I want to put a selectionBox around the object here but don't know how to get it
	end
end)

4 comments

4

Player:GetMouse() isn't deprecated?

1

i thought it was for some reason lol im using GetMouse() now

1

Yeah, just use Player:GetMouse().Target

0

Be sure to put [Solved] in the title so it automatically closes.