1. local repStorage = game:GetService("ReplicatedStorage")
  2. local remote = repStorage:FindFirstChild("CoinClick")
  3.         local button = script.Parent
    
  4.           local debounce = false
    
  5. button.MouseButton1Click:Connect(function()
  6.  if not debounce then 
    
  7.   debounce = true
    
  8.    local playerPoint = game.Players.LocalPlayer.leaderstats.Coins
    
  9.   remote:FireServer(playerPoint)
    
  10.       wait(0.01)
    
  11. debounce = false
    
  12. end
  13. end)

I am getting a error and idk how to fix this if anyone knows please help me really need to fix this problem.

  • leaderstats is not a valid member of Player
  • Stack Begin
  • Script 'Players.l3gendrasp.PlayerGui.Button.TextButton.LocalScript', Line 11
  • Stack End

2 comments

0

Please. Put script in special code block. And Roblox Studio can't find stats

0

what do i do with this