- local repStorage = game:GetService("ReplicatedStorage")
- local remote = repStorage:FindFirstChild("CoinClick")
local button = script.Parentlocal debounce = false- button.MouseButton1Click:Connect(function()
if not debounce thendebounce = truelocal playerPoint = game.Players.LocalPlayer.leaderstats.Coinsremote:FireServer(playerPoint)wait(0.01)debounce = false- end
- 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
Please. Put script in special code block. And Roblox Studio can't find stats
what do i do with this