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.
plugin:Activate(true)
local Mouse = plugin:GetMouse()
local function OnHover()
print(Mouse.TargetSurface)
end
Mouse.Move:Connect(OnHover)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.