If I want to check for a number to equal something is there a better way than a pile of if and elses every time it updates as that becomes long and ugly
Could you show the script? And is this event trackable?
Im just talking about in general
Well you’d just do
local function Check()
if NumberX == NumberY then
print("Hello!")
end
end
well thats the ISSUE. I don’t want a stack of if and elses if I have like 7 NumberY’s then it gets long and ugly is there any other way?
So you could do something like
local Numbers = {5,10,50}
local function Check()
for i,v in pairs(Numbers) do
if v == 50 then
--Do what you want to do with it.
end
end
end
ah that kind of concept helps thank you