#Weapon reset every 3 minutes

1 messages · Page 1 of 1 (latest)

limpid cosmos
#

I'm making a war game where players can pick up weapons that are placed on the map (they start with nothing) It's like first come first serve, When someone picks up a weapon it's gone, But I want it so that every 3 minutes the weapon respawns, so someone else can get it. Without the player who got it originally losing it, I'll have multiple weapons just laying around on the map, please help. Thanks!

flat falcon
#

Create a “Spawner” where it can spawn a tool, I’d then have it so it will create an instance of ur tool and when the “AncestryChanged” property fires you may start a timer on your Spawner that will then create another instance for you.

#

If that makes sense.

gentle pike
limpid cosmos
pulsar ploverBOT
#

studio** You are now Level 2! **studio

flat falcon
#

yeah sorry thats my bad, I'm on my phone

flat falcon
# limpid cosmos Can y'all explain step by step, I'm new

you want to in your spawner script or even better a genera script that loops your spawners to create a instance of a tool in itself or workspace
local function spawnWeapon() local clone = tool:Clone() clone.Parent = workspace clone.Handle.CFrame = pos when a player picks the tool up its parent changes so to check that you do
`local connection
connection = clone:AncestryChanged:Connect(function()
connection:Disconnect()

--respan timer
task.delay(RESPAWN_TIME, spawnWeapon)
end)
end`