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

How to make double EXP gamepass for RPG game?

Asked by
0msh 333 Moderation Voter
6 years ago

I've been researching since the last twelve hours and couldn't even find anything relevant to this. How do I make the monsters give Player that have the Pass double EXP when they kill it? I know I didn't provide a script because I have no clue how to do this, but just give me a general idea, thanks.

1
You'll have to make it check if the player has the pass before awarding any xp and then give the right amount of xp Nogalo 148 — 6y
0
ohhh, I get it, thank! 0msh 333 — 6y

1 answer

Log in to vote
-1
Answered by
Pejorem 164
6 years ago
local mpService = game:GetService("MarketplaceService")
local doubleEXP = 0

function hasDoubleEXP(plr)
    if mpService:PlayerOwnsAsset(plr, doubleEXP) then return true end
    return false
end
0
Explain_Your_Code Goulstem 8144 — 6y
Ad

Answer this question