How can i make it play the sound when credits have increased and not play when it has decreased.
local player = game.Players.LocalPlayer player.leaderstats.Credits.Changed:connect(function() script.Parent.CoinCollect:Play() script.Parent.TextLabel.Text = "Credits: "..player.leaderstats.Credits.Value end)