21:49:51.303 Position cannot be assigned to - Server - ModuleScript:5
21:49:51.304 Stack Begin - Studio
21:49:51.304 Script 'ServerScriptService.Modules.ModuleScript', Line 5 - function Move - Studio - ModuleScript:5
21:49:51.304 Script 'Workspace.oxygenAtom.Move', Line 6 - Studio - Move:6
21:49:51.305 Stack End - Studio
How do I fix this?
local module = {}
function module:Move(object, SOM) -- SOM = State of Matter
for i = 1,75 do task.wait(.4)
object.CFrame.Position += Vector3.new(math.random(-1, 1), 0, math.random(-1, 1))
end
end
return module
CFrames aren’t mutable so you either need to change the part’s position property or apply an offset (eg. object.CFrame *= CFrame.new(math.random(-1, 1), 0, math.random(-1, 1))).
It does still exist. It just appears under CFrame in the properties panel which may be a bit misleading as it can’t be written to through the CFrame property.