Heres the script:
local clickdetector = script.Parent
clickdetector.MouseClick:Connect(function(player) -- registers the click
while true do -- from here its just to code
game.Workspace.OHHH.Position = Vector3.new(-16.3, 0.5, -10.5)
wait(3)
game.Workspace.OHHH.Position = Vector3.new(-16.4, 0.5, -8.8)
wait(3)
end
end)
so basically this script is linked to a Click Detector and when I click it, the block goes above into the air and not in the ground like its supposed to, help!

4 comments
Does the position you are trying to set the part to also happen to force it to collide with another part?
yes
Set CanCollide = false while setting the position, and once the position is set, you can make it true again.
you do realize you could just use clickdetector.MouseClick:Wait()?