Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Can developer products be used like this for scripting?

Asked by 9 years ago

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

1 answer

Log in to vote
0
Answered by 9 years ago

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

0
Thanks, I also would like a way for the game to give money to players but dont think this is possible yet, anyways Thanks Dstructiod 0 — 9y
0
Giving money to players is not possible for regular roblox inns only admins probably have the permission level to do so DragonSkyye 517 — 9y
0
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 Dstructiod 0 — 9y
0
sorry roblox has yet to make something like that DragonSkyye 517 — 9y
Ad

Answer this question