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?
Local scripts only run in: The local player. The backpack. or the player GUI.