basically i have a system where you can say /pay (amount) and it clones the Cash Tool changes the name to $ (amount) and also changes the val which as you can see its not working and yes my leaderstats are name "leaderstat" if you were wondering

EDIT: i figured it out i forgot to add val.value

DB = true

function onRedeem()
	if DB == true then
		DB = false

		local player = game.Players.LocalPlayer
		local val = script.Parent.val

		player.leaderstat.Wallet.Value = player.leaderstat.Wallet.Value + val
		player.PlayerGui.MoneyGui.Money.Money.Text = player.Money.Value
		player.PlayerGui.MoneyGui.Wallet.Money.Text = player.Wallet.Value		
		script.Parent.Handle.AY:Play()
		wait()
		script.Parent:Destroy()
	end
end

script.Parent.Activated:connect(onRedeem)