Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help with this?

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

You could simply move the weapon rather than cloning it:

Weapon.Parent = PlayerClicked.Backpack

2 comments

0

I think he meant the brick.

0

No no no, I want the model to be deleted after it has been cloned into the person's backpack

This discussion is preserved as it was. New answers, comments, and votes are closed.