Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to make tool that deletes after click?

Asked by 3 years ago

I'm making a game with a gun that only has 1 bullet so I want the tool to be deleted in about 2 seconds. How would I make something like this?

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Howdy!

Normally, the Community Guidelines prohibit a question like this but because the request is simplistic and easy - I'll just answer it for you. However, I ask that you review these guidelines.

script.Parent.Activated:Connect(function()
    script.Parent:Destroy()
end)

If this helped you out, consider accepting this answer for those sweet, sweet reputation points. If not, comment below and I (or someone else) will help you out.

Be sure to check out the Roblox API Documentation as well for additional reference.

0
Thanks! :) Cool29375 7 — 3y
Ad

Answer this question