If someone Purchases the gamepass, in game, they will get the script (walkspeed, tool)
COMMUNITY QUESTION
How to create a Gamepass Script?
1 answer
okk so the terms for gamepasses and stuff are these UserOwnsGamePassAsync(), PromptGamePassPurchase() so basically if you waned to give extra walkspeed and a tool you would use a local script for this and start of like this
local plr = game.Players.LocalPlayer--gets player locally
local market = game:GetService("MarketPlaceService")--Sets up the service for gamepasses and sells
local gamepassid = 0--YOUR GAMEPASS ID
local tool = game.ReplicatedStorage.Tool--Best way is to put that tool in replic
if market:UserOwnsGamePassAsync(plr.UserId, gamepassid)then--if statement if they own it
plr.Character.Humanoid.Speed = 32--Make this the speed of them if they own gamepass
tool:Clone().Parent = plr.BackPack--Clones tool and puts in plrs backpack
end--ends if statement
kk so this is some basic stuff if this helps accept
This discussion is preserved as it was. New answers, comments, and votes are closed.
