-- Aglin head with Cursor

CEs.Aglin.OnClientEvent:connect(function(Rchr,Answer,NAngles,Time,Turning,Tilt2)
	if Rchr == plr.Character then return end
	
	local neck = Rchr.Torso.Neck
	local tiltweld = Rchr.Tilt.Mtiltweld 
	local fakeneck = Rchr.FakeHead.FakeNeck
	
	if not Tilt2 then
		if not Turning then	
			TweenService:Create(neck,TweenInfo.new(Time),{C0=OriginalC0*CFrame.Angles(NAngles[1],NAngles[2],NAngles[3])}):Play()
		end
		TweenService:Create(fakeneck,TweenInfo.new(Time),{C0=OriginalC0*CFrame.Angles(0,0,0)}):Play()
		TweenService:Create(tiltweld,TweenInfo.new(Time),{C0=CFrame.new(0,0,0) * CFrame.Angles(Answer,0,0)}):Play()
	else
		if not Turning then
			TweenService:Create(neck,TweenInfo.new(Time),{C0=OriginalC0*CFrame.Angles(0,0,NAngles[3])}):Play()
		end
		TweenService:Create(fakeneck,TweenInfo.new(Time),{C0=OriginalC0*CFrame.Angles(0,0,0)}):Play()
		TweenService:Create(tiltweld,TweenInfo.new(Time),{C0=CFrame.new(0,0,0) * CFrame.Angles(0,0,0)}):Play()
	end	
end)
