· 2 years ago · Oct 05, 2023, 08:05 AM
1# Import the Roblox API module
2Import-Module RobloxAPI
3
4# Get the player's ID
5$playerId = Read-Host "Enter the player's ID:"
6
7# Get the API key
8$apiKey = Read-Host "Enter the API key:"
9
10# Get the player's current coin balance
11$currentCoins = Get-RobloxUserCoins -PlayerId $playerId -ApiKey $apiKey
12
13# Prompt the user for the amount of coins to add
14$amount = Read-Host "Enter the amount of coins to add:"
15
16# Add the coins to the player's account
17Add-RobloxUserCoins -PlayerId $playerId -ApiKey $apiKey -Amount $amount
18
19# Display a message to the user
20Write-Host "Added $amount coins to the player's account."
21