-- Services

local playerService = game:GetService("Players")

local i = game:GetService("UserInputService")

playerService.PlayerAdded:Connect(function (plr)
	plr.CharacterAdded:wait()
	i.InputBegan:Connect(function(a)
		if a.KeyCode == Enum.KeyCode.F then
			plr.CameraMode = Enum.CameraMode.Classic
		elseif a.KeyCode == Enum.KeyCode.Z then
			plr.CameraMode = Enum.CameraMode.LockFirstPerson
		end
	end)
end)
