DrawingJhon

Gear insert

Jun 18th, 2020 (edited)
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. --|ROBLOX SCRIPT BUILDER|--
  2. --|LOCAL SCRIPT|--
  3. --|GEAR INSERT SCRIPT|--
  4.  
  5. gear_ids={3157668507} --insert gear asset ids
  6. --------------------------------------
  7. keep_gear_when_dead = false
  8. ---Source---
  9. local player=game.Players.JhonXD2006
  10. for i,v in pairs(gear_ids) do
  11.     local id=tonumber(v)
  12.     if id~=nil then
  13.         game:GetService("InsertService"):LoadAsset(id):GetChildren()[1].Parent=workspace
  14.         if keep_gear_when_dead == true then
  15.             game:GetService("InsertService"):LoadAsset(id):GetChildren()[1].Parent=player.StarterGear
  16.         end
  17.     end
  18. end
Add Comment
Please, Sign In to add comment