Hello. Im wondering if there is a way to make drop cash command
Like /dropcash 100 or /dropcash 200
And it should checks if the amount that player wants to drop should be more than $50
Can you explain what the command should do?
Well the command should be /dropcash (amount)
Also the amount should be more than $50
but after said what should the command do
Example
like /dropcash 50
drop bag of cash
Not bag, a paper of dollar with a billboardgui on it that shows the amount even if it is $999999
You Mean Something Like That?
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg == "/dropcash 50" then
-- Run Code Here
end
end)
end)
Yes but player should be able to change 50 to any value that is more than 50
Hi! I think you should use the player.Chatted
Basically, when a player chats, it checks if the message is like “/dropcash 20”, and then you can “divide” the message in two parts.
The first “part” would be “/dropcash”, and the second part would be “20”, or the amount.
Then you can use that second part, and turn it into a number.
Then check if the player has enough money, and to finish, you can maybe make drop in front of the player a “cash mesh”, and if you touch it you get the money.
Hope it helped!
you can use string.split()
…
Ok ill try to use both and i dont know witch one is solution