Check if viewmodel specific part was touched

i have a view model inserted into replicated storage, and it only pops up when a tool is equipped

i got a specific viewmodel for a each tool, and one of them has a “card” inside of it

how could i detect if the specific part (aka "card) of the viewmodel was touched with another model in workspace?

1 Like

Same as you would with a part outside a viewport, simply just set the path to the viewport path.

local part = script.Parent -- Define path here

local function onTouch(Part)

end

local function onTouchEnded(Part)

end

part.Touched:Connect(onTouch)
part.TouchEnded:Connect(onTouchEnded)
1 Like

it keeps detecting the handle, and handle is following the viewmodel, i dont know how to fix this

1 Like

I need some sort of video or detailed explanation, im so baffled

the block is the handle of the tool