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

Help me please?

Asked by 8 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:

plr = game.Players.LocalPlayer
points = plr.PlayerGui:FindFirstChild("MoneySystem").Money.Points
give = 5
debounce = false

function point()
if points == nil then
print("Not found")
else
if debounce then
debounce = true
print("It's found")
points.Value = points.Value + give 
wait(1)
debounce = false
end
end
end
script.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 — 8y
0
EXACTLY, but it doesn't work for some reason ;-; NICCO890 35 — 8y

1 answer

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

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

Ad

Answer this question