Can someone explain why this script results in this:
# = Random number
#
#
#
#
#
-
0
-
0
function Add()
x = First.Value + Second.Value + Third.Value + Fourth.Value + Fifth.Value
end
First = script.findMean.First--.Value
Second = script.findMean.Second--.Value
Third = script.findMean.Third--.Value
Fourth = script.findMean.Fourth--.Value
Fifth = script.findMean.Fifth--.Value
Plus = script.findMean.Plus--.Value
--
First.Value = (math.random(1,10))
Second.Value = (math.random(1,10))
Third.Value = (math.random(1,10))
Fourth.Value = (math.random(1,10))
Fifth.Value = (math.random(1,10))
--
print(First.Value)
print(Second.Value)
print(Third.Value)
print(Fourth.Value)
print(Fifth.Value)
--
print("-")
Plus.Value = Add()
print(Plus.Value)
print("-")
print(Plus.Value / 5)
How I've got it set up: http://i.imgur.com/unSZNlk.png

2 comments
Thank you! I wasn't aware that tables were a thing!
Tables are amazing! You can do anything with tables. See http://wiki.roblox.com/index.php/Table