local Numbers = {1,2,3,4,5}
local IntValue = script.IntValue --(this value is 1 btw)
if IntValue.Value == Numbers[1] then
print("Success")
end
Else you would do
local Numbers = {1,2,3,4,5}
local IntValue = script.IntValue --(this value is 1 btw)
for i, v in Numbers do
if IntValue.Value == v then
print("Success")
end
end
local Numbers = {1,2,3,4,5}
local IntValue = script.IntValue --(this value is 1 btw)
if IntValue.Value == Numbers[IntValue.Value] then
print("Success")
end
I tried the first example you showed but it’s still not printing out “Success”.
local Numbers = {1, 2, 3, 4, 5}
local IntValue = script.IntValue-- Assuming this value is 1
if table.find(Numbers, IntValue.Value) then
print("Success")
end
The script I wrote was just a simplified version. I’m making an aura system and I’m trying to check if you already have the current aura that is being showed on screen or not.
This is the problem right now:
print(AuraNumber.Value.."=",BoughtAuras[AuraNumber.Value]) --"1 = 1"
if AuraNumber.Value == BoughtAuras[AuraNumber.Value] then
print("Success") --doesn't print out
end