I have leaderstats in local player and I have made sure that my cash value is named the exact name I have tried many things but it still says that leader stats is not a member of blueturtle8908 (me). I checked that the value is still there and it is so I don't know.
It is a local script if that makes a difference
Any ways, here is my code.
while true do
local cash = game.Players.LocalPlayer.leaderstats
cash.Cash.Value = Cash.Value - 40
script.Parent.Bill.Visible = true
wait(5)
script.Parent.Bill.Visible = false
wait(60)
end

3 comments
try on line 2: local cash = game.Players.LocalPlayers.leaderstats.Cash
then on line 3 try: cash.Value = cash.Value -40
if that doesn't work, comment and i'll find a solution