Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- currency = "Cash"
- recipient = ""
- amount = 0
- script.Parent.MouseButton1Click:Connect(function()
- recipient = script.Parent.Parent.Player.Text
- amount = tonumber(script.Parent.Parent.Amount.Text)
- if player.leaderstats[currency].Value >= tonumber(script.Parent.Parent.Amount.Text) then
- game.Players[recipient].leaderstats[currency].Value = game.Players[recipient].leaderstats[currency].Value + amount
- player.leaderstats[currency].Value = player.leaderstats[currency].Value - amount
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment