How would i move a model by moving its primary part

so i have this code

movemodel:SetPrimaryPartCFrame(CFrame.new(movemodel:GetPrimaryPartCFrame().p+Vector3.new(0,.01,0)))

but the problem is that it rotates the primary part up so its facing the sky, any way to do that but without rotating it up?

Try this:

movemodel:SetPrimaryPartCFrame(movemodel:GetPrimaryPartCFrame()+CFrame.new(Vector3.new(0,.01,0)))

nope, i got this
ServerScriptService.Siekiery.Scinanie:183: invalid argument #2 (Vector3 expected, got CFrame)

maybe this work…?

movemodel:SetPrimaryPartCFrame(movemodel:GetPrimaryPartCFrame()+Vector3.new(0,5,0))

ya thats what i have just done ima still accept tho

1 Like