Hello! I am trying to make a tool delay, to prevent lag from spammers. I've been working on this for almost 2 weeks, and I'm having no luck. If you know how to make a delay, please help me out! I'm losing my mind still working on this! Thanks for any help!
Here's the script I've been working on:
local tool = script.Parent
toolfolder = game.ServerStorage:WaitForChild("Toolfolder")
tool.Unequipped:Connect(function()
tool.Parent = toolfolder
wait(1)
tool.Parent = game.Players.LocalPlayer.Backpack
end)

2 comments
Thanks a bunch!
I hope you don't think I'm being rude. It's hard to answer questions like these because there's lots of things you need to factor in and the fact there's not one method to make something.