Camera Subject not working?

For some reason Camera Subject isn’t working, I’ve tried a lot and it still doesn’t work it always keeps it to your player.
Also yes, it is finding a valid player I made it print their name and it does.

Client :

function ToSee:GetPlayer(PlayerName)
	for i,v in pairs(game.Players:GetChildren()) do
		if v.Name == PlayerName then
			return v
		end
	end
end

function ToSee:HandleView(SentPlayer)
	local TrgPlayer = ToSee:GetPlayer(SentPlayer)
	ToSee:Blink("Out")
	wait(0.4)
	ToSee:View("In",TrgPlayer)
	CurrentCamera.CameraSubject = TrgPlayer
	wait(0.6)
	ToSee:Blink("In")
	wait(5)
	ToSee:Blink("Out")
	wait(0.4)
	ToSee:View("Out",TrgPlayer)
	wait(0.6)
	ToSee:Blink("In")
end

Try setting the camera subject to the player’s character’s humanoid and see if that changes anything.

1 Like

Thank you this made me realize I was trying to make it focus on the Player and not the Character. I feel so dumb thank you!!

1 Like

No problem! That’s like 90% of programming :joy: