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!
Try replacing the Position with a CFrame
Exmple:
local clickdetector = script.Parent clickdetector.MouseClick:Connect(function(player) while true do game.Workspace.OHHH.CFrame = CFrame.new(-16.3, 0.5, -10.5) wait(3) game.Workspace.OHHH.CFrame= CFrame.new(-16.4, 0.5, -8.8) wait(3) end end)