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

My coin clicked script isn't working, what have I done wrong?

Asked by 5 years ago

This script is supposed to award 1 coin per every click, but it's not functioning, what have I done wrong?

link to code Thank you for helping, Fersist

0
How are we supposed to solve the problem if we don't have the server script? Joshument 110 — 5y

1 answer

Log in to vote
0
Answered by
katclap 24
5 years ago
Edited 5 years ago

I read the script and noticed that your RemoteEvents.CoinClicked dosen't exactly work all of the time instead you should use a script like this:

  tool.Activated:Connect(function()

  if Player.leaderstats.HiddenValues.CurrentValue.Value < Player.leaderstats.Storage.Value then

  if Debounce == false then

  Debounce = true

  Coin.MouseClick:connect(function()
   --Code here
   end)

  wait()

  Debounce = false

  end
Ad

Answer this question