hello!

im working on a castle defense game, but i have a problem.

the model castleB is not working with me on the move to Y position. I had a problem with C-frame with the exact reason, but there was no way to do that so i tried MoveTo. it did not really work until I did it to get the Y position of another part (not the primary one) and minus it by 1.

problem is... X and Z position worked with the model but Y did not. i

I tried

workspace.CastleB:MoveTo(Vector3.new(workspace.CastleB.Cframeisevil.Position.X,workspace.CastleB.Cframeisevil.Position.Y - 2,workspace.CastleB.Cframeisevil.Position.Z))

(i know im messy) but it doesn work at all, it just doesnt move!

plz help, codingMASTER398 (I'm not really a master)

2 comments

0

It's probably because it's unanchored (has to be unanchored) so it falls when trying to move up

0

You could simplify that line of code by using Cframeisevil position instead of creating a new one from each axis: workspace.CastleB:MoveTo(workspace.CastleB.Cframeisevil.Position - Vector3.new(0,2,0)).