
141.3k Views
Upper Cost OPEN SOURCE
Lucky Lockups Uploaded by 3 years ago
Please login to perform these actions:Description
The script writes only the upper cost of items in the container I do not know how to calculate the exact cost, but if you are a scripting guru, you can modify the script And yes, run the script during the auction
Comments
3

Offline
Ruytrev 3 years ago - Edited
patch
Offline
Ruytrev 3 years ago - Edited
it does not work no more
Offline
Badnana 2 years ago - Edited
This calculates both since there is a lowerprice to the items and upperprice so u cant calculate the exact one :
local lowerSum = 0
local upperSum = 0
local lowerCost = {}
local upperCost = {}
for _, item in pairs(work*e.Garages:GetDescendants()) do
if item.Name == "LowerPrice" then
table.insert(lowerCost, item.Value)
end
end
for _, val in ipairs(lowerCost) do
lowerSum = lowerSum + val
end
for _, item in pairs(work*e.Garages:GetDescendants()) do
if item.Name == "UpperPrice" then
table.insert(upperCost, item.Value)
end
end
for _, val in ipairs(upperCost) do
upperSum = upperSum + val
end
game.StarterGui:SetCore("SendNotification", {
Title = "Cost",
Text = "Lower Price: " .. lowerSum .. "\nUpper Price: " .. upperSum,
Duration = 3.5
})

![[🎉 RELEASE] Anime Astral Simulator](/images/script/113236157544232-1780333729144.png)

