Let's say we have an IntValue in the PlayerGui, it's value is 1.
I would normally check it with this..
if game.Players.IntellectualBeing.IntValue.Value = 1 then
print('The number is 1!')
end
Is there a more efficient way?
And what if I want the script to check if the script is multiple numbers and do a different outcome for different numbers. I do not want it to just print out the number, if I did I would just do
print(game.Players.IntellectualBeing.IntValue.Value)
I want it to do different outcomes for each number, I am just using print() as an example.
Examples
print('The number is 1!') --Occurs when IntValue is 1
game.Workspace:ClearAllChildren() --Occurs when IntValue is 2
local a = Instance.New("Part") --Occurs when IntValue is 3
and etc...
