[CLOSED] I am trying to make a refinery machine, but my script isn't working. Why is that so?
Asked by
4 years ago Edited 4 years ago
So far what I have done is taken a script from a shop button and the script from a keycard door to try and make a brick that, when touched with a tool removes the tool that touched it and then gives you something else. It doesn't work though, this is what I have:
1 | script.Parent.Touched:connect( function (p) |
2 | if p.Parent.Name = = "Scrap" then |
3 | local ItemName = game.Lighting.Box |
4 | ItemName:Clone().Parent = p.Backpack |
I don't know how to make the removing tool either. Any help is appreciated.