How to detected if the mouse touch a child of a model ?
local Player = game.Players.LocalPlayer
local Cursor = game:GetService("MouseService")
local Model = workspace.R6
repeat wait() until Model
while wait() do
local Mouse = game.Players.LocalPlayer:GetMouse()
if Mouse.Target == Model then
print(Mouse.Target)
end
end
local Player = game.Players.LocalPlayer
local Model = workspace.R6
repeat wait() until Model
while wait() do
local Mouse = Player:GetMouse()
if Mouse.Target and Mouse.Target.Parent == Model then
print(Mouse.Target)
end
end