local Lighting = game:GetService("Lighting") local Players = game:GetService("Players") local totalNights = 99 local currentNight = 1 -- Tạo leaderstats (tiền) Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local money = Instance.new("IntValue") money.Name = "Money" money.Value = 0 money.Parent = leaderstats end) -- Hàm thưởng tiền local function rewardPlayers(amount) for _, player in pairs(Players:GetPlayers()) do if player:FindFirstChild("leaderstats") then player.leaderstats.Money.Value += amount end end end while currentNight <= totalNights do print("Đêm " .. currentNight .. " bắt đầu!") -- Ban đêm Lighting.ClockTime = 0 -- Quái mạnh dần theo đêm (ví dụ) local enemyHealth = 100 + (currentNight * 20) print("Máu quái: " .. enemyHealth) wait(20) -- Ban ngày Lighting.ClockTime = 14 -- Thưởng tiền theo đêm rewardPlayers(currentNight * 50) wait(10) currentNight += 1 end print("Hoàn thành 99 đêm!")