local gampass_id = 35168372
script.Parent.MouseButton1Click:Connect(function() game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer, gampass_id)
end)
gamepass link: https://www.roblox.com/game-pass/35168372/thx
local gampass_id = 35168372
script.Parent.MouseButton1Click:Connect(function() game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer, gampass_id)
end)
gamepass link: https://www.roblox.com/game-pass/35168372/thx
Use humanoid.JumpPower to change it.
I made a script for you (server-sided):
local gamepass_Id = 35168372
local MarketplaceService = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamepass_Id) then
character:WaitForChild("Humanoid").JumpPower = 50 -- Change to any amount you like
end
end)
end)
Please research more on this before asking a question, as there are multiple sources that provide an answer to your question.
You can use this Roblox article to figure this out.
u meant to send the gamepass link? I saw 2 types of links on this article
This discussion is preserved as it was. New answers, comments, and votes are closed.
9 comments
where do I put it? In server script? Or in local server script? Or somewhere else?
I've put it in server script service in normal script. ERROR: 12:16:29.474 UserOwnsGamepassAsync is not a valid member of MarketplaceService "MarketplaceService" - Server - Script:6
Oh, sorry, use UserOwnsGamePassAsync instead because
Passis uppercase17:00:21.030 UserOwnsGamepassAsync is not a valid member of MarketplaceService "MarketplaceService" - Server - Script:6. U meant to use Pass instead of UserOwnsGamePassAsync? Cuz i dont see any "pass" in the script
I used if MarketplaceService:PromptGamePassPurchase(player, gamepass_Id) then
It shows me info to buy gamepass on the start of the game, but then nothing. My charcher doestn jump higher. And btw wdym by saying ,,Use humanoid.JumpPower to change it"?
Do not use
UserOwnsGamepassAsyncbut useUserOwnsGamePassAsyncSorry i made a typo, Pass must be uppercase. You are still using the same string as before14:58:17.982 Unable to cast Instance to int64 - Server - Script:6
Instead of player use
player.UserId