I have code below that for some reason doesn’t seem to work for my gamepass, any ideas why it doesn’t? Thanks!
01 | function Close(player) |
02 | if game:GetService( "MarketplaceService" ):UserOwnsGamePassAsync(Player.UserId, 6391479 ) then |
03 |
04 | game.Players.PlayerAdded:connect( function (p) -- Function P |
05 |
06 | p.CharacterAdded:connect( function (c) -- Function C |
07 |
08 | c.Humanoid.JumpPower = 200 -- [V] |
09 |
10 | end ) |
11 |
12 | end ) |
13 |
14 | |
15 |
16 | else |
17 |
18 | game.Players.PlayerAdded:connect( function (p) -- Function P |
19 |
20 | end )p.CharacterAdded:connect( function (c) -- Function C |
21 |
22 | c.Humanoid.JumpPower = 50 |
23 |
24 | end ) |
25 |
26 | end |
01 | game.Players.PlayerAdded:connect( function (p) -- Function P |
02 |
03 | p.CharacterAdded:connect( function (c) -- Function C |
04 | if game:GetService( "MarketplaceService" ):UserOwnsGamePassAsync(Player.UserId, 6391479 ) then |
05 | c.Humanoid.JumpPower = 200 -- [V] |
06 | elseif not game:GetService( "MarketplaceService" ):UserOwnsGamePassAsync(Player.UserId, 6391479 ) then |
07 | c.Humanoid.JumpPower = 50 |
08 | end |
09 | end ) |
10 |
11 | end ) |
Try this
Alright, I’ve found the answer! Here’s the script if anyone needs to use it. It seems to be working.
01 | game.Players.PlayerAdded:Connect( function (plr) |
02 |
03 | if game:GetService( "MarketplaceService" ):UserOwnsGamePassAsync(plr.UserId, 6391479 ) then --Change to your gamepass id |
04 |
05 | while wait( 0.5 ) do |
06 |
07 | plr.Character:FindFirstChild( "Humanoid" ).JumpPower = 100 -- Change 100 to the Jump power you want, default is 50. |
08 |
09 | end |
10 |
11 | end |
12 |
13 | end ) |