Tool "respawns" after a amount of time

Hello,
so what I am trying to do is that if you pick up a tool it respawns after a amount of time


because right now you can see it never comes back so just 1 player can pick it up but I want it to respawn
would be cool if someone could help me
bye.

2 Likes

Do you have any existing code we can assist with?

Still, in the script you have that gives the player the item, you need to put some sort of wait timer in place, and then after that period of time is waited, you need to clone yourself a new object.

something like

local newItem = oldItem:Clone()
neItem.Parent = script.Parent

How do you give the player the key they picked up? Do you change the parent of the key that’s on the wall and put it in the player’s inventory? Do you clone it?

You could do something once the prompt is triggered

prompt.Triggered:Connect(function()
    -- give tool etc     
     task.wait(4) -- amount of time you want to wait before the tool respawns
     tool:Clone().Parent = workspace --(or the parent of the tools normally)
end)

I don’t know if this would work with your current code but something along these lines would work.