Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my 'Version' checker keep spamming IntValues?

Asked by 9 years ago

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
0
Line 3 is useless. Just do wait(1) instead of the repeat loop. Try putting the IntValue in some place other than game. Tkdriverx 514 — 9y

Answer this question