Advertisement
Be_Gone_Thot

GetAllEggs_AutoUpdater

Aug 18th, 2020 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local Updater = {};
  2.  
  3. local Descends = game:GetService("Workspace").Resources.Eggs:GetDescendants();
  4. for i,v in pairs(Descends) do
  5. if v.Name == "Label" and v:IsA("Model") then
  6. local NameEgg = v:FindFirstChild("NameLabel").BillboardGui:FindFirstChildOfClass("TextLabel").Text;
  7. local AmountEgg = v:FindFirstChild("AmountLabel").BillboardGui:FindFirstChildOfClass("TextLabel").Text;
  8. Updater[NameEgg] = string.split(AmountEgg," ")[1]
  9. end
  10. end
  11. return Updater;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement