Advertisement
Sungmingamerpro13

LogsCollect (MainScript)

Oct 1st, 2023 (edited)
1,383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.40 KB | None | 0 0
  1. local LogsFound = game.ReplicatedStorage.LogsFound
  2. local LogsFolder = game.ReplicatedStorage.LogsFolder
  3.  
  4. LogsFolder:Clone().Parent = workspace
  5.  
  6. Objective("Logs Found: "..LogsFound.Value.." / 5")
  7.  
  8. spawn(function()
  9.     while wait() do
  10.         Objective("Logs Found: "..LogsFound.Value.." / 5")
  11.  
  12.         if LogsFound.Value == 5 then
  13.             wait(1)
  14.             break
  15.         end
  16.     end
  17. end)
  18.  
  19. repeat wait(0.1) until LogsFound.Value == 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement