I have a script that makes people sprint whilst holding shift. I want this script to only apply to people that have purchased my game pass. Here's the script so far:
function onPlayerEntered(player)
repeat wait () until player.Character ~= nil
local s = script.SprintScript:clone()
s.Parent = player.Character
s.Disabled = false
player.CharacterAdded:connect(function (char)
local s = script.SprintScript:clone()
s.Parent = char
s.Disabled = false
end)
end
game.Players.PlayerAdded:connect(onPlayerEntered)

2 comments
http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset
Thanks but I'm really new to scripting, would I just paste the original code after the example one on the link?