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

CurrentCamera p can not be assigned to?

The way this works is that i have vector3 values in serverstorage and i want to move the camera to the vector3 assigned in the value

game.Workspace.CurrentCamera.CFrame.p = Vector3.new(Cam1pl.Value.X, Cam1pl.Value.Y, Cam1pl.Value.Z)

but it returns this:

p can not be assigned to

1 answer

✓ Accepted answer

Well, you cannot assign p, it's a read-only value. Try this:

game.Workspace.CurrentCamera.CFrame = CFrame.new(Vector3.new(Cam1pl.Value.X, Cam1pl.Value.Y, Cam1pl.Value.Z))

Edit: Make sure you are running this script using a LocalScript

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