Changing player's camera position not working?

Hey! I’m trying to do a simple script that changes the player’s camera CFrame upon joining, however it won’t work for some reason. Any help would be appreciated, thanks! Script is below.

local Player = game.Players.LocalPlayer
local Camera = workspace.CurrentCamera

Player.CharacterAdded:Connect(function(Character)
Camera.CFrame = CFrame.new(-128.177, 7.145, -159.481)
end)

You need two position variable to change the camera position
I recommend read this to understand how it work
https://developer.roblox.com/en-us/api-reference/property/Camera/CFrame

1 Like