My Third Person Camera Code may be Crashing the Game

Edit: fixed the code.

How embarrassing! I have some ideas on how to improve it, but I figured it wouldn’t hurt to have someone else take a look at it. Any help would be greatly appreciated.

variables
{
	player:
		11: thirdPersonX
}

actions
{
	Start Camera(Event Player, Ray Cast Hit Position(Event Player + World Vector Of(Vector(Event Player.thirdPersonX, Is On Ground(
		Event Player) ? (Is Crouching(Event Player) ? 1.500 : 2) : 2.500, 0), Event Player, Rotation), Event Player + World Vector Of(
		Vector(Event Player.thirdPersonX, Is On Ground(Event Player) ? (Is Crouching(Event Player) ? 1.500 : 2) : 2.500,
		Vertical Facing Angle Of(Event Player) / 90), Event Player, Rotation) + Facing Direction Of(Event Player) * -2.500, Null,
		Event Player, False), Event Player + World Vector Of(Vector(Event Player.thirdPersonX, Is On Ground(Event Player) ? (
		Is Crouching(Event Player) ? 1.500 : 2) : 2.500, 0), Event Player, Rotation) + Direction From Angles(
		Horizontal Facing Angle Of(Event Player), Min(85, Max(Vertical Facing Angle Of(Event Player), -85))) * 100, 80);
}