PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Mouse Hover Enterring a ClickDetector

Mouse Hover Enterring a ClickDetector

Oct 01 2018, 1:31 AM PST

The below code will print “Oh my… PlayerName hovered over my parent” when a player’s mouse hovers over the ClickDetector’s parent, replacing “PlayerName” with the player’s name.

script.Parent.ClickDetector.MouseHoverEnter:Connect(function(Player)
   print("Oh my... " .. Player.Name .. " hovered over my parent")
end)