What is the best way to detect Touch between two anchored parts?
Asked by
5 years ago Edited 5 years ago
I have moving animated models with anchored HumanoidRootPart as primary part, with no "Humanoid, but with AnimationController.
It's using TweenService on HumanoidRootPart to move, and models pass a zone, that is an anchored part.
As two anchored parts - zone and HumanoidRootPart - can't fire Touch event, i was hope, that other parts like hands will fire it, but they doesn't.
All parts of the models CanCollide = false (if it's important)
So is there any alternative solutions for how to make it clear to a part, that it touched another part? Or the is there any way to call Touch Event in that case?
03 | Zone.Upgrade.Touched:Connect( function (Part) |
04 | if Part.ClassName = = "MeshPart" and Part.Parent.Name = = "Creature" and Part.Parent.Humanoid = = false then |
05 | if Zone.Multiplicate.Value then |
06 | Part.CreatureSouls.Value = Part.CreatureSouls.Value * Zone.Souls.Value |
08 | Part.CreatureSouls.Value = Part.CreatureSouls.Value + Zone.Souls.Value |