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

How do I make a Gear be lost?

Asked by 8 years ago

I am making a horror game and whenever you use a Gear (Key) on a locked door you lose the key from your inventory. How would I do that?

0
key.Parent = nil UniversalDreams 205 — 8y
0
OMG why didn't I think of that. Thanks. MrMinecraft998887 87 — 8y

1 answer

Log in to vote
2
Answered by
Validark 1580 Snack Break Moderation Voter
8 years ago

Use the Destroy method

key:Destroy()
Ad

Answer this question