My Point: Players rob the bags, if they have the Gamepass, they can rob more than 2000 Points, a bag gives you 250 Points (Francs) If they don't have the gamepass they can only rob 8 bags. Even thought I Don't own the gamepass, I can still rob more than 8
local gamePassID = 9434126 local ownsGamePass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, gamePassID) UIS.InputBegan:Connect(function(Key, Process) if (Process) then return nil end; if (Key.KeyCode == Enum.KeyCode.E) then local dt = 0; player.PlayerGui.RobbingGui.ImageLabel.Visible = true -- BAG while (HumanoidRootPart.Position - BottomLeft.Union.Position).magnitude < 8 and UIS:IsKeyDown(Key.KeyCode) do if (dt >= 3) then print("Collected Bag") if player.robbedAmmount.Value >= 2000 then if ownsGamePass then print("Player has gamepass") bagsGiveMoney:FireServer(player) player.robbedAmmount.Value = player.robbedAmmount.Value + 250 for i, v in ipairs(BottomLeft:GetChildren()) do if v:IsA("UnionOperation") then v.CFrame = v.CFrame * CFrame.new(0, 20, 0) wait(120) v.CFrame = v.CFrame * CFrame.new(0, -20, 0) break; end end end dt = dt + game:GetService('RunService').RenderStepped:Wait(); end else print("You reached the limit!") end end