Parts won't constantly be in the same location, how to fix?
Asked by
3 years ago Edited 3 years ago
01 | local Ablock = game.workspace.A |
02 | local Bblock = game.workspace.B |
04 | local parttouchB = Bblock:GetTouchingParts() |
05 | for i,v in pairs (parttouchB) do |
07 | Ablock.anchored = true |
09 | Ablock.anchored = false |
Hello, I have received this script, So basically
When Part B touches part A, part A must be anchored else A must be unanchored.
The script I have works 100% OK, the only problem is that Part A & B won't always be in the workspace. They could be in groups with different names (Won't constantly be in the same location.)
Is there a way I can fix this?
Thanks