I'm trying to set up a Version Checker in my Anti Virus, but it keeps spamming Anti Virus Version
over and over again in game
, and I can't figure out how to stop it from spamming, I added a wait
but it is still spamming IntValue
's, here is the code;
local ChkVersion = game:FindFirstChild([[Anti Virus Version]]) repeat wait(1) break until nil if ChkVersion then if ChkVersion.Value >= Version then print([[Up-To-Date! :D]]) ChkVersion.Value = Version elseif Version > ChkVersion.Value then print([[New version! :D]]) ChkVersion.Value = [[Version: ]]..Version end elseif not ChkVersion then local NewVersion = Instance.new([[IntValue]],game) NewVersion.Name = [[Anti Virus Version]] NewVersion.Value = Version end