In the game that I'm making I require that when the mouse hovers over something, it checks if it has a certain child and then runs a script. Heres what I tried that didn't work:
local player = game.Players.LocalPlayer
local mouse = player:GetMouse() --Getting the player's mouse
mouse.Move:connect(function() --When the mouse moves
local target = mouse.Target
if target:FindFirstChild(game.Workspace.Build.Object.Value) then
--do this
end
end)

3 comments
So what is the exact issue, is this th full script. This seems a little broad
I'd include the entire script because people might get mad
Sorry for not making it clear enough. Object is a string value that states the name of what I want to find. Also the only other things in this script is defining target so I didn't think that was necessary