Answered by
6 years ago Edited 6 years ago
Make sure the GamePass / Developer Product is purchased and then goto your script and make sure when the player has the gamepass then you will make the walkspeed higher, Example
WalkSpeed (GamePass): game.Players.LocalPlayer.Humanoid.WalkSpeed = 20 [Change to walkspeed amount]
WalkSpeed (Developer Product): game.Players.LocalPlayer.Humanoid.WalkSpeed = game.Players.LocalPlayer.Humanoid.WalkSpeed + 5 [Every time its purchased it will get higher]
Whole Script For gamepass
01 | local MarketplaceService = game:GetService( "MarketplaceService" ) |
02 | local Players = game:GetService( "Players" ) |
04 | local gamePassID = 0000000 |
06 | local function onPlayerAdded(player) |
11 | local success, message = pcall ( function () |
12 | hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamePassID) |
17 | warn( "Error while checking if player has pass: " .. tostring (message)) |
21 | if hasPass = = true then |
22 | print (player.Name .. " owns the game pass with ID " .. gamePassID) |
23 | game.Players.LocalPlayer.Humanoid.WalkSpeed = 20 |
28 | Players.PlayerAdded:Connect(onPlayerAdded) |
If this doesn't Work Check the Roblox wiki! Theres better info there.
http://robloxdev.com/