How would i change CFrame's position

how do i change cframes position? i have this script

local scframe = CFrame.new()
				scframe.Position = v.Middle.Position + Vector3.new(g[2])

but it gives me this error
image

1 Like

CFrames are immutable. May I ask why do you need to do this?

To offset it globally add a Vector3 to it. To offset it locally multiply it by another CFrame.
Using 3 numbers or a single Vector3 in the CFrame.new() constructor gives you a CFrame with that as it’s position.

2 Likes

i need to make a saving system for my game, so it saves all items you have placed down on your base, and to do the only way to move a model is using cframes. there also is MoveTo(), but its glitched as hell

that kinda works but i am having trouble with look vector


my script simply just saves the look vector and then loads it so why would this happen