#Gamepass scripts

7 messages · Page 1 of 1 (latest)

elder flax
#

So basically I have a speed simulator game and need help with some scripts. So I have 2 gamepasses 1 is 2x Speed and 2 is x2 Rebirths. Basically every step you gain 1 "step" and each step increases your speed a set amount. I can give more details if needed I have the script for these already just would like help with linking the gamepasses and making them work

#

Please ping if you reply

vestal stratus
#

@elder flax

#

Call

dim wren
#

local ms = game:GetService("MarketplaceService")
StepStepped:Connect(function() -- fires when step, adjust it as how your script works
speed += 1
if ms:UserOwnsGamePassAsync(Player.UserId, GamepassID) then -- add the user id and the gamepass id here
speed += 1 -- Adds an aditional Speed
end)

#

@elder flax

vestal stratus