of     1   

j818
#153485645Thursday, January 08, 2015 1:15 AM GMT

What would put for a mouse hover over thing? Like there is onClicked, onTouched, but what about when you hover your mouse over a part? For example: if you hover your mouse over an NPC a gui pops up that says "click to talk".
ShinyZoruaXD
#153488112Thursday, January 08, 2015 1:49 AM GMT

flying hippos
Hunter4529
#153490080Thursday, January 08, 2015 2:12 AM GMT

You can detect what part a mouse is "on" using mouse.Target http://wiki.roblox.com/index.php?title=API:Class/Mouse/Target
championbuilder
#153490545Thursday, January 08, 2015 2:19 AM GMT

player = game.Players.LocalPlayer mouse = player:GetMouse() mouse.Move:connect(function() if not mouse.Target then return end --makes sure it doesn't break print(mouse.Target.Name) --stuff goes here end)
chimmihc
#153491802Thursday, January 08, 2015 2:36 AM GMT

for finding a part the mouse is hovering over --- player = game.Players.LocalPlayer mouse = player:GetMouse() mouse.Move:connect(function() if mouse.target then -- lol this is all you need to stop it from breaking print(mouse.target.Name) end end) for finding the CFrame of the hovering mouse --- player = game.Players.LocalPlayer mouse = player:GetMouse() mouse.Move:connect(function() if mouse.hit then print(mouse.hit) end end)
championbuilder
#153492281Thursday, January 08, 2015 2:42 AM GMT

but then u need an extra end at the bottom, instead of a 1 line if statement.
chimmihc
#153496543Thursday, January 08, 2015 3:45 AM GMT

anyone worried about line count is a noob
championbuilder
#153497248Thursday, January 08, 2015 3:56 AM GMT

Lol ok, i'm a noob, i'm such a noob.

    of     1