If then statement not running

So… For some reason this won’t run.

local Items = Character.CarryBag.Items:GetChildren()
local RandomItem = Items[math.random(1, #Items)]

print(RandomItem)
if RandomItem == "Spike" then
	print("O")
end

image

It prints the exact thing, but the if statement won’t run. It won’t print “O”

Try to put RandomItem.Name and see if it works

1 Like

Saved me from insanity, thanks