ежедневная и крафты

This commit is contained in:
heyshawtyy committed 2026-11-19 13:46:05 +05:00
1 parent 828297cc6a
commit ce8184576e
31 files changed
+3371

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
local s = Instance.new("Script")
s.Name = "_GiveCrafts"
s.Source = [[
local PD = require(game.ServerScriptService.OrnamentPlayerData)
local C = require(game.ReplicatedStorage.OrnamentMachine.Config)
local out = {}
for _, plr in game.Players:GetPlayers() do
local t0 = os.clock()
repeat task.wait(0.5) until PD.Get(plr) or os.clock() - t0 > 30
for _, c in C.CRAFTS do table.insert(out, c.Id .. "=" .. tostring(PD.AddCraft(plr, c.Id))) end
end
workspace:SetAttribute("_GiveResult", table.concat(out, " "))
script:Destroy()
]]
s.Parent = game.ServerScriptService
local t0 = os.clock()
repeat task.wait(0.5) until workspace:GetAttribute("_GiveResult") or os.clock() - t0 > 40
return workspace:GetAttribute("_GiveResult") or "no result"