WolfGamesProgrammer

Donat Item

Aug 27th, 2025
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | Source Code | 0 0
  1. local Item = script.Sword -- писать Script + точка + название вашего предмета
  2. local PassId = 0 -- сюда PassId вашего геймпаса
  3. local MarketPlaceService = game:GetService("MarketplaceService")
  4.  
  5. function OnAdded(player)
  6.     local function OnCharacterAdded()
  7.         if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, PassId) then
  8.             local newItem = Item:Clone()
  9.             newItem.Parent = player.Backpack
  10.         end
  11.     end
  12.     player.CharacterAdded:Connect(OnCharacterAdded)
  13. end
  14.  
  15. game.Players.PlayerAdded:Connect(OnAdded)
  16.  
  17. --Created by WolfGamesProgrammer
Advertisement
Add Comment
Please, Sign In to add comment