Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Annoying issue that I somewhat cannot solve, any help please?

So it is saying I am not comparing a value correctly what is the issue? (its a string value

	if workspace.Votes.M1V.Value > 0 then
		workspace.Votes.Minigame1:GetChildren():Destroy()
	end
	if workspace.Votes.M2V.Value > 0 then
		workspace.Votes.Minigame2:GetChildren():Destroy()
	end

10:04:06.687 - ServerScriptService.Intermission:5: attempt to compare number with string

If you have helped me, well then thank you!

1 comment

0

Hey, did my answer do any good?

1 answer

✓ Accepted answer

You stated that you're attempting to use a StringValue. You're trying to detect if a text is greater than 0.. I don't believe that's possible ;) Try using a NumberValue, my friend.

3 comments

0

thanks for the help!

0

Welcome!

0

You can do that, actually.

This discussion is preserved as it was. New answers, comments, and votes are closed.