Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Bees loading system does not works?

Asked by 4 years ago
Edited 4 years ago

Hello, so I have this script and its not working. Like, its working, but if set, for example, 1 bee at my hive, and save the game, it just gonna load this not as 1, but as a whole hive, and i don't know how to fix, and also print shows it as it should, so there's only 1 bee. if someone understood me(because my explanation is really bad), please help! Here's my code:

001local DataStoreService = game:GetService("DataStoreService")
002local DataStore = DataStoreService:GetDataStore("BeeGameData")
003local Cells = workspace:WaitForChild("Cells")
004local Hives = workspace:WaitForChild("Hives")
005 
006function loadBees(player, parent, beesTable)
007    print(unpack(beesTable))
008    if beesTable[1] ~= nil then
009        for i, bee in pairs(beesTable) do
010            local beeValue = Instance.new("IntValue")
011            print(bee.Name, "-", bee.Slot)
012            beeValue.Name = bee.Name
013            beeValue.Value = bee.Slot
014            beeValue.Parent = parent
015        end
View all 112 lines...

Thanks!

0
```LoadBees(Example1, Example2, Example3)``` is never called in the script you showed us. KingCh1ll 2 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

LoadBees(Example1, Example2, Example3) is never called in the script you showed us.

0
oh, i m sorry, i thought it will be long, so i did not send the full GravityGouse99938 75 — 4y
Ad

Answer this question