local posX,posY,posZ = mouse.hit.X, mouse.hit.Y, mouse.hit.Z mtarget.Position = Vector3.new(posX,posY,posZ)
wait(3) local player = game.Players.LocalPlayer local mouse = player:GetMouse() local part = Instance.new("Part",workspace) part.Anchored = true mouse.Move:Connect(function() local posx = math.floor(mouse.Hit.X/3+0.5)*2 --3 is your gride local posz = math.floor(mouse.Hit.Z/3+0.5)*2 --3 is your gride part.Position = Vector3.new(posx,2,posz) end)
I hope it helped you