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

Help me please?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

I am making a point giver, when you click the part it gives you the chosen amount of money I made it to give you. I put it in a local script and it doesn't work. The points go into a value in the text which lists then amount of money. Here is the script:

01plr = game.Players.LocalPlayer
02points = plr.PlayerGui:FindFirstChild("MoneySystem").Money.Points
03give = 5
04debounce = false
05 
06function point()
07if points == nil then
08print("Not found")
09else
10if debounce then
11debounce = true
12print("It's found")
13points.Value = points.Value + give
14wait(1)
15debounce = false
16end
17end
18end
19script.Parent.ClickDetector.MouseClick:connect(point)

--there isn't anything wrong in the Output. Help?

0
I dont see the error in your code koolkid8099 705 — 9y
0
EXACTLY, but it doesn't work for some reason ;-; NICCO890 35 — 9y

1 answer

Log in to vote
0
Answered by
snow29 0
9 years ago

Local scripts only run in: The local player. The backpack. or the player GUI.

Ad

Answer this question