function onTouch(hit)
local h = hit.Parent:FindFirstChild("A")
if hit.Parent:FindFirstChild("A") then
h.Anchored = true
else
h.Anchored = false
end
end
^ This is how far I was able to get
Hi All,
I'm trying to make a script where
it needs to constant check if: IF block "A" touches block "B" anchor block "A" ELSE if not touched by block "B" unanchor block "A" END
What would be the best to achieve the above?
note: block A and B is not in the same group

1 comment
Hi dino thanks for your comment, as long as you can make the script locate block a and block b, it should work..