local Handle = game.Workspace.Handle local RandomItemGiver = game.Workspace.RandomItemGiver local BarrierLucky = game.ReplicatedStorage.BarrierLucky
script.Parent.Triggered:Connect(function(player) local loot = game.ReplicatedStorage.Loot:GetChildren() local chosenloot = loot[math.random(1,#loot)] chosenloot:Clone().Parent = player.Backpack wait(0.1) BarrierLucky.Parent = game.Workspace Handle.Parent = game.ReplicatedStorage.luckyblock RandomItemGiver.Parent = game.ReplicatedStorage.luckyblock wait(300) -- 300 sec (5min) BarrierLucky.Parent = game.ReplicatedStorage Handle.Parent = game.Workspace RandomItemGiver.Parent = game.Workspace end)