It's meant to show a Video Ad and give the player his reward, but nothing happens... Help? No output too...
debounce = false script.Parent.Touched:connect(function() if debounce == false then debounce = true game:GetService("AdService"):ShowVideoAd() end end) game:GetService("AdService").VideoAdClosed:connect(function() local a = math.random(1,10) game.Players.LocalPlayer.stats.Cash = game.Players.LocalPlayer.stats.Cash + a game.Players.LocalPlayer.PlayerGui.ScreenGui.Notice.TextButton.Text = "You have earnt "..a.." Cash from the Video." wait(60) debounce = false end)
I'm fairly certain that it's LocalPlayer.stats
. Those stats aren't meant to be visible to anyone but the player.