mouse.KeyDown:connect(function(n)n=string.lower(n)if n=="\107"then if cam=="\099\097\114"then Camera.CameraSubject=player.Character.Humanoid Camera.CameraType="\067\117\115\116\111\109"cam="\102\114\101\101\112\108\114"Camera.FieldOfView=70 player.Character.Humanoid.CameraOffset=Vector3.new(-0.14,.12,-0.2)limitButton.Text="\070\114\101\101 \067\097\109\101\114\097"wait(3)limitButton.Text=""elseif cam=="\102\114\101\101\112\108\114"then Camera.CameraSubject=player.Character.Humanoid Camera.CameraType="\065\116\116\097\099\104"cam="\108\111\099\107\112\108\114"Camera.FieldOfView=70 player.Character.Humanoid.CameraOffset=Vector3.new(-0.14,.12,-0.2)limitButton.Text="\070\080\086 \067\097\109\101\114\097"wait(3)limitButton.Text=""elseif cam=="\108\111\099\107\112\108\114"then Camera.CameraSubject=carSeat Camera.CameraType="\067\117\115\116\111\109"cam="\099\097\114"Camera.FieldOfView=70 player.Character.Humanoid.CameraOffset=Vector3.new(0,0,0)limitButton.Text="\083\116\097\110\100\097\114\100 \067\097\109\101\114\097"wait(3)limitButton.Text=""end end end)
-------------------------

mouse.KeyDown:connect(function(key)
	key = string.lower(key)
	if key == "k" then --Camera controls
		if cam == "car" then
			Camera.CameraSubject = player.Character.Humanoid
			Camera.CameraType = "Custom"
			cam = "freeplr"
			Camera.FieldOfView = 70
			player.Character.Humanoid.CameraOffset = Vector3.new(-0.14, 0.12, -0.2)
			limitButton.Text = "Free Camera"
			wait(3)
			limitButton.Text = ""
		elseif cam == "freeplr" then
			Camera.CameraSubject = player.Character.Humanoid
			Camera.CameraType = "Attach"
			cam = "lockplr"
			Camera.FieldOfView = 70
			player.Character.Humanoid.CameraOffset = Vector3.new(-0.14, 0.12, -0.2)
			limitButton.Text = "FPV Camera"
			wait(3)
			limitButton.Text = ""
		elseif cam == "lockplr" then
			Camera.CameraSubject = carSeat
			Camera.CameraType = "Custom"
			cam = "car"
			Camera.FieldOfView = 70
			player.Character.Humanoid.CameraOffset = Vector3.new(0, 0, 0)
			limitButton.Text = "Standard Camera"
			wait(3)
			limitButton.Text = ""
		end
	end
end)
