So here I have a local script:
script.Parent.Handle.Touched:Connect(function(hit)
local touchingParts = workspace:GetPartsInPart(hit)
print(touchingParts)
if hit.Name == "HitBox1Train" then
print("+1 train")
end
end)
this is where it is, and this is what it says in output when you touch it
But, it doesn’t tell me what I need. This is what I do:
But instead, I have to check if I touched this desk in front of me.
So what I want to do is, I throw the thing. And I check to see if it touches this big desk. If it did, then print something in the output.