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

How Can I Do A Gamepass Gives Some Cash?

Asked by 5 years ago
Edited 5 years ago

I Have A Dragon Ball Game And I Got A Gamepass Who Gives Some Ki And Other Gamepass Gives Attack But I Need A Script To Do That!


web.roblox.com/games/1011958438

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Try This:

wait(10)

amount = 500

GamepassID = 000000

for i,v in pairs(game.Players:GetPlayers()) do

if v then

if game:GetService("MarketplaceService"):PlayerOwnsAsset(v,GamepassID) then

v.leaderstats.Ki.Value = v.leaderstats.Ki.Value + amount * 2

else

v.leaderstats.Ki.Value = v.leaderstats.Ki.Value + amount

end

end

end

----Gabriwolf----

0
You answered your own question? 4D_X 118 — 5y
0
lol gabriwolf 0 — 5y
0
I only do this to test lol gabriwolf 0 — 5y
0
Um, that's odd? Lol. SchonATL 15 — 5y
0
Just a tip, put your code in a code block. NinjaManChase 226 — 5y
Ad

Answer this question