Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How get part face player is clicking on?

I want to make a script where if i click a face of a part it would tell me the face i clicked on. so if i click on the top face it would print "top", if i clicked the front face it would say "front" ect.

code snippet

tool.Equipped:Connect(function(mouse)
	mouse.Button1Down:Connect(function()
		if mouse.Target and mouse.Target.Parent then
			print("face")
		end
	end)
end)

1 comment

0

Hmm, great question I actually remember reading about this but i forgot. Using rays maybe?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.