How to Compare Two Values Not working

Here Is My code (Its part of a bigger script)

if game.ReplicatedStorage.Gamevoting.Survive > (game.ReplicatedStorage.Gamevoting.Infect) then
			print("Survive")
		else
			print("Infect")
		end

Here is the output
Workspace.Script:69: attempt to compare Instance < Instance

Please Help Me FIx This.

LargeHotDogs13

If they’re BaseValues, just add .Value to the end of them like so:

if game.ReplicatedStorage.Gamevoting.Survive.Value > (game.ReplicatedStorage.Gamevoting.Infect.Value) then
	print("Survive")
else
	print("Infect")
end

When comparing two values(such us IntValues, BoolValues, StringValues etc.) you have to compare their .Value property.

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Gamevoting = ReplicatedStorage:WaitForChild("Gamevoting")
if Gamevoting.Survive.Value > Gamevoting.Infect.Value then
	print("Survive")
else
	print("Infect")
end

Thanks Just a Dumb Mistake by me.