Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How Can I Do A Gamepass Gives Some Cash?

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

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----

5 comments

0

You answered your own question?

0

lol

0

I only do this to test lol

0

Um, that's odd? Lol.

0

Just a tip, put your code in a code block.

This discussion is preserved as it was. New answers, comments, and votes are closed.