Changing player camera

How would I change the position where the player’s camera is? I changed its type to Scriptable but I tried to change the subject and it doesn’t work when I use CFrame. Any tips?

Code:

game.ReplicatedStorage.Events.OpenShop.OnClientEvent:Connect(function()
	
	workspace.Camera.CameraType = Enum.CameraType.Scriptable
	workspace.Camera.CameraSubject = workspace.CamPart.Position
	
end)

If this is solved, please remove the post.

I can’t because it says there was an error and it told me to contact the site’s administrator.

1 Like