ROBLOX Gear Codes 150+ Ark server Admin Commands; HL2DM RolePlay 3.2.15 Commands; Xonotic command list; Chest Commands (ROBLOX) Person299's Admin Commands; Vietcong Dedicated Servers Console Commands; Toole LuaBlox Admin Commands; Tiramisu Admin Commands; Kohl's Admin Commands; Republic Alt is Life Admin Commands; TF2 smplay Admin Commands; 7.
Nov 7th, 2016
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- --| WaitForChild |--
- -- Waits for parent.child to exist, then returns it
- assert(parent, 'ERROR: WaitForChild: parent is nil')
- while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
- end
- -----------------
- -----------------
- local GamePassService = Game:GetService('GamePassService')
- local PlayersService = Game:GetService('Players')
- local InsertService = Game:GetService('InsertService')
- local LightingService = Game:GetService('Lighting') --TODO: Use new data store service once that exists
- local GamePassIdObject = WaitForChild(script, 'GamePassId')
- local ToolAssetsToLoad = WaitForChild(script, 'ToolAssetsToLoad')
- local AdminTools = LightingService:FindFirstChild('AdminTools')
- -----------------
- -----------------
- -- Makes copies of all the admin tools and puts them in target
- for _, tool in pairs(AdminTools:GetChildren()) do
- toolClone.Parent = target
- end
- -- When a player with the game pass joins, give them the admin tools
- if GamePassService:PlayerHasPass(player, GamePassIdObject.Value) then
- local starterGear = WaitForChild(player, 'StarterGear')
- if player.Character then -- They've already loaded and won't get their StarterGear until next spawn
- local backpack = WaitForChild(player, 'Backpack')
- end
- end
- --------------------
- --------------------
- -- Create AdminTools if it doesn't exist
- AdminTools = Instance.new('Model')
- -- Load all of the assets in ToolAssetsToLoad and put them in AdminTools
- for _, intObject in pairs(ToolAssetsToLoad:GetChildren()) do
- if intObject and intObject:IsA('IntValue') and intObject.Value then
- local assetModel = InsertService:LoadAsset(intObject.Value)
- local asset = assetModel:GetChildren()[1]
- asset.Parent = AdminTools
- end
- end
- AdminTools.Parent = LightingService
Free Admin Roblox
RAW Paste Data