This is my code, i am trying to add up all of the values into a total amount.
local parts = script.Parent.Parent.Parent:GetConnectedParts()
for i = 1, #parts do
if parts[i].Name == "Storage" then
script.Parent.Text = parts[i].Value.Value
end
end
This is my code, i am trying to add up all of the values into a total amount.
local parts = script.Parent.Parent.Parent:GetConnectedParts()
for i = 1, #parts do
if parts[i].Name == "Storage" then
script.Parent.Text = parts[i].Value.Value
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
What is the problem?