Hello! I have another question. How would I get this Notification to run in a LocalScript? I would really appreciate the help. Here is the LocalScript:
game.Players.LocalPlayer.Stats.Coins.Changed:connect(function(oldValue) local Number = game.Players.LocalPlayer.Stats.Coins.Value - oldValue game.StarterGui:SetCore("SendNotification", { Title = "Doge Coins"; Text = "+"..Number.." Doge Coins"; Icon = ""; Duration = 5; }) end)
This should work.
local coinstats = game.Players.LocalPlayer.Stats.Coins local onevar = coinstats.Value local twovar = 0 while wait() do twovar = coinstats.Value if not twovar == onevar then if twovar >= onevar then -- put script code here else -- put script code for losing dogecoins here end else onevar = twovar end end
If not, please ask me. Thanks!