script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice==script.Parent.TurnIn) then
player.leaderstats.Money.Value=player.leaderstats.Money.Value+player.Chips.Value
player.Chips.Value=0
end
end)
If a player gets 10 chips, it can convert to 1 money. How can I make this work?

3 comments
To elaborate on this (since I couldn't really include comments), it starts off by making a loop that subtracts 0-9 from whatever value your chips were at. It then checks to see if that value is divisible by 10, and if it is, it converts that portion to money, and keeps the rest as chips. For example, if you'd had 35 chips, you'd be left with 3 Money, and 5 chips.
Please put any scripts you post in a code block!
Sorry about that! I hadn't even known about code blocks 'til yesterday. I'm pretty dull, haha.