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

When Part is touched the tool gets removed, but doesn't add 10 gold, and doesn't print text? [closed]

Asked by 8 years ago
Edited 8 years ago

The part that works is the part where it gets rid of the item in the backpack on touch but doesn't give gold for it (a sell weapon button). And it also doesn't print the message saying "you bought this for 100" or "you don't have that weapon"

01local debounce = false
02 
03 
04 
05function getPlayer(humanoid)
06 
07local players = game.Players:children()
08 
09for i = 1, #players do
10 
11if players[i].Character.Humanoid == humanoid then return players[i] end
12 
13end
14 
15return nil
View all 90 lines...
0
The setup is so scary thehybrid576 294 — 8y
0
Wow, this script is an artifact. I'm assuming you didn't write this, @Gamersofthegodss. Pyrondon 2089 — 8y
0
What do you mean? Gamersofthegodss 11 — 8y
0
Soooo many "enter"s. marioblast1244 113 — 8y

Closed as Non-Descriptive by Goulstem

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?