Regen button. Could someone please explain the error to me or how to fix it?
local x = script.parent.x.value --IntValue property (numbers are ints)
local clo = it:Clone()
print("Cloned")
clo.Parent = it.Parent
print("Parented")
it:Destroy()
print("Destroyed")
clo:MoveTo(x,y,z) --Error line
Error: Unable to cast double to vector3 --except I’m not seeing any doubles.