i want to check the position that is colliding with a part if its inside a magnitude, but i dont really know how to
What do you mean? Are you talking about the position of the part colliding?
No, i want to get the position that is reaching to that part if its not fully “covered”
Are you talking about the position at which the two parts collide? Sorry I don’t really understand what you want that well
Sorry for taking too long, I was programming something in studio. This should work:
local Part; --Your part here
Part.Touched:Connect(function(otherPart: BasePart)
local Dir = (Part.Position - otherPart.Position).Unit * 100
local Cast = workspace:Raycast(otherPart.Position, Dir)
if not Cast then return end
local HitPos = Cast.Position --Collison position
end)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.