local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if player.leaderstats.Coins.Value >= 100
then
script.Parent.Roll:FireServer()
player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - 100
end
end)
so i made a local script in a gui that takes coins if you have enough (dont mind the remote event) when i get money again it gives 10 coins (the normal amount) plus the amount that the local script took

2 comments
um pls write it by lua
ok sorry