Hello there! So what my script does is that it basically gives every player a tool, but what I want to do is Destroy it from every players inventory when x seconds is up. I’ve tried Destroy()
and making it wait(8)
but if I do that, it seems to give the tools to all players every 8 seconds and then deleting from their inventory with all the remaining players in-game.
Code:
local plrs = {}
for i, player in pairs(game.Players:GetPlayers()) do
if player then
table.insert(plrs,player)
end
end
---
for i, player in pairs(plrs) do
if player then
character = player.Character
if character then
local BlowDryer = game.ServerStorage.Maps.ToolMap.BlowDryer:Clone()
BlowDryer.Parent = player.Backpack
end
end
end
Help is appreciated!