How would I get the face a mouse is hovering over

If I were to create a roblox plugin t set faces on a part to different materials, how would I allow the user to get the parts face when you hover over it?

You can achieve this by using the ‚ÄúPluginMouse‚ÄĚ that has a property called ‚ÄúTargetSurface‚ÄĚ. It functions pretty much similar to the players mouse object. If youd like a more in depth guide on how the plugin mouse works id recommend you reading through this: PluginMouse | Documentation - Roblox Creator Hub

Heres a simple example i wrote for you how you can get the face of an object when you hover over it.

local Mouse = plugin:GetMouse()

local function OnHover()

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.