Hey, Thanks for reading firstly. I was wondering whether there would be a way so that a script when a player has touched a block it makes them buy a developer product (this I can do). Then once they have bought in the robux, instead of going directly to the owner of the game gets stored inside the game so that it can get paid back out. Also is there a way to script it so that a block counts the amount of times it has been touched? Thanks again, Dstructiod
✓ ANSWER ACCEPTED
Can developer products be used like this for scripting?
1 answer
✓ Accepted answer
If you are looking for a way on how many times a block been touched here is an example
local AmountTouched = 0
Brick.Touched:connect(function(hit)
AmountTouched = AmountTouched + 1 -- add by 1
print(AmountTouched) -- print total amount
end)
This was done on IPad sorry for any errors that may occure
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Thanks, I also would like a way for the game to give money to players but dont think this is possible yet, anyways Thanks
Giving money to players is not possible for regular roblox inns only admins probably have the permission level to do so
I meant from player to player (as a transaction) but for a game to take the money from one account and give it to the next
sorry roblox has yet to make something like that