Attempt to compare string <= number (Error

Attempt to compare string <= number


https://gyazo.com/45870c39d3436f92f4614b7457448418

	script.Parent.Spawn.MouseButton1Click:Connect(function()
		if frame:FindFirstChild(namevalue).Group.Value == true then
			local Car = (frame:FindFirstChild(namevalue))
			local Minimum = Car:FindFirstChild("GroupRank")
			**if Player:GetRankInGroup(Car.ID.Value) >= Minimum.Value then**
				pickedevent:FireServer(namevalue)
				game.Players.LocalPlayer.PlayerGui:WaitForChild("CarSpawnGui"):Destroy()
				end
			else if not frame:FindFirstChild(namevalue).Group.Value == true then
					pickedevent:FireServer(namevalue)
					game.Players.LocalPlayer.PlayerGui:WaitForChild("CarSpawnGui"):Destroy()						
				end
			end
		end)
	end
end


https://gyazo.com/4367d48af4259cc0a798123cdbaf1ba9

It think It works bc I changed stringvalue to numbervalue.

This is lacking context. Your error is because you are trying to compare two different datatypes. If you are wanting to compare two strings then do (based off what you just typed) tostring(myNumberValue)

Thank you, I think now it works I changed stringvalue to numbervalue, the error didn’t show me.