I'm trying to make a block that when the hand touches it, it anchors the block, and then it sets the CFrame of that block to the hand.
script.Parent.Touched:Connect(function(hit)
if hit.Name == "LeftHand" or hit.Name == "RightHand" then
script.Parent.Anchored = true
while true do
script.Parent.CFrame = hit.CFrame
wait(0.1)
end
end
end)
I do not get any errors.

1 comment
try debugging the script first to see any potential issues