How do I get the current position of the Egg. The Egg is a model. I want to move it as a whole from where it is in the present
--minecraft dragon egg
bounce = true
function teleportEgg()
if bounce == true then
bounce = false
x1 = math.random(-25, 25)
y1 = math.random(-1, 1)
z1 = math.random(-25, 25)
script.Parent.Parent:MoveTo()
wait(0.1)
bounce = true
end
end
script.Parent.ClickDetector.MouseClick:Connect(teleportEgg)

2 comments
Ohh, you got an error becuase its a model
Just weld all of the objects to a invisible nocollide block and run the CFrame script on that