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

Help with this?

Asked by
painzx3 43
10 years ago
Weapon = game.Lighting.Enfield 
script.Parent.MouseClick:connect(function(PlayerClicked)
    Weapon:clone().Parent = PlayerClicked.Backpack
end)
script.Parent.MouseClick:connect()

What do I add to the script that deletes the model after it has been clicked by a player?

1 answer

Log in to vote
0
Answered by
m0rgoth 75
10 years ago

You could simply move the weapon rather than cloning it:

Weapon.Parent = PlayerClicked.Backpack
0
I think he meant the brick. Azarth 3141 — 10y
0
No no no, I want the model to be deleted after it has been cloned into the person's backpack painzx3 43 — 10y
Ad

Answer this question