Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does this keep giving me an error?

Says Unable to cast double to Vector3. I don't know why.

model:MoveTo(math.ceil(eventMouse.Hit.X*100), math.ceil(eventMouse.Hit.Y*100), math.ceil(eventMouse.Hit.Z*100))

Tell me if I need to explain something more

1 answer

✓ Accepted answer

You forgot to put the numbers in the Vector3 constructor.

model:MoveTo(Vector3.new(math.ceil(eventMouse.Hit.X*100), math.ceil(eventMouse.Hit.Y*100), math.ceil(eventMouse.Hit.Z*100)))

Hope this helped.

2 comments

0

thanksssssss

0

No problem.

This discussion is preserved as it was. New answers, comments, and votes are closed.