PlayerOwnsAsset is not a vaid member of MarketplaceService?
Asked by
8 years ago Edited 8 years ago
At the top of the script I have this:
1 | local GPS = game:GetService( "MarketplaceService" ) |
And at the bottom:
01 | if c.Vip_Suit.VipType.Value = = 1 and GPS:PlayerOwnAsset(p, script.Parent.Rex.Value) then |
02 | for _,v in pairs (game.ReplicatedStorage.Game_Tools [ c.Vip_Suit.Tool.Value ] :GetChildren()) do |
03 | if v:IsA( "HopperBin" ) or v:IsA( "Tool" ) then |
04 | v:clone().Parent = p.Backpack |
07 | if c.Vip_Suit.VipType.Value = = 2 and GPS:PlayerOwnAsset(p, script.Parent.Sat.Value) then |
08 | for _,v in pairs (game.ReplicatedStorage.Game_Tools [ c.Vip_Suit.Tool.Value ] :GetChildren()) do |
09 | if v:IsA( "HopperBin" ) or v:IsA( "Tool" ) then |
10 | v:clone().Parent = p.Backpack |
13 | if c.Vip_Suit.VipType.Value = = 3 and GPS:PlayerOwnAsset(p, script.Parent.Fusion.Value) then |
14 | for _,v in pairs (game.ReplicatedStorage.Game_Tools [ c.Vip_Suit.Tool.Value ] :GetChildren()) do |
15 | if v:IsA( "HopperBin" ) or v:IsA( "Tool" ) then |
16 | v:clone().Parent = p.Backpack |
19 | if c.Vip_Suit.VipType.Value = = 4 and GPS:PlayerOwnAsset(p, script.Parent.Rex.Value) and GPS:PlayerOwnAsset(p, script.Parent.Sat.Value) then |
20 | for _,v in pairs (game.ReplicatedStorage.Game_Tools [ c.Vip_Suit.Tool.Value ] :GetChildren()) do |
21 | if v:IsA( "HopperBin" ) or v:IsA( "Tool" ) then |
22 | v:clone().Parent = p.Backpack |
Not sure what should be changed if it's checking if the player owns the asset located in the value at the bottom ?_?