Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.70 KB | None | 0 0
  1. local VIPGamepass = 7622135
  2.     local MegaVIPGamepass = 7622108
  3.     local BanHammerGamepass = 7622101
  4.    
  5.     local HasVIP
  6.     local HasMegaVIP
  7.     local HasBanHammer
  8.    
  9.     local Success,Error = pcall(function()
  10.         HasVIP = MarketplaceService:UserOwnsGamePassAsync(Player.UserId,VIPGamepass)
  11.         HasMegaVIP = MarketplaceService:UserOwnsGamePassAsync(Player.UserId,MegaVIPGamepass)
  12.         HasBanHammer = MarketplaceService:UserOwnsGamePassAsync(Player.UserId,BanHammerGamepass)
  13.     end)
  14.    
  15.     if Success and HasVIP == true then
  16.         game.ServerStorage:WaitForChild("Tools").BanHammer:Clone().Parent = Player.Backpack
  17.         game.ServerStorage:WaitForChild("Tools").BanHammer:Clone().Parent = BoughtTools
  18.     else
  19.         error("Couldn't check if player owned VIP Gamepass: "..Error)
  20.     end
  21.    
  22.     if Success and HasBanHammer == true then
  23.         game.ServerStorage:WaitForChild("Tools").BanHammer:Clone().Parent = Player.Backpack
  24.         game.ServerStorage:WaitForChild("Tools").BanHammer:Clone().Parent = BoughtTools
  25.     else
  26.         error("Couldn't check if player owned Ban Hammer Gamepass: "..Error)
  27.     end
  28.    
  29.     if Success and HasMegaVIP == true then
  30.         local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
  31.        
  32.         ChatService.SpeakerAdded:Connect(function(VIP)
  33.             local Speaker = ChatService:GetSpeaker(VIP)
  34.             Speaker:SetExtraData('Tags', {{TagText = 'Mega VIP', TagColor = Color3.fromRGB(0, 25, 74)}})
  35.             Speaker:SetExtraData('ChatColor', Color3.fromRGB(201, 191, 0))
  36.         end)
  37.        
  38.         if Player.Backpack:FindFirstChild("Boombox") == nil and Player.Character:FindFirstChild("Boombox") == nil then
  39.             game:GetService("ServerStorage"):WaitForChild("Tools").Boombox:Clone().Parent = Player.StarterGear
  40.             game:GetService("ServerStorage"):WaitForChild("Tools").Boombox:Clone().Parent = Player.Backpack
  41.         end
  42.     else
  43.         error("Couldn't check if player owned Mega VIP Gamepass: "..Error)
  44.     end
  45.    
  46.     if Success and HasVIP == true then
  47.         local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
  48.        
  49.         ChatService.SpeakerAdded:Connect(function(VIP)
  50.             local Speaker = ChatService:GetSpeaker(VIP)
  51.             Speaker:SetExtraData('Tags', {{TagText = 'VIP', TagColor = Color3.fromRGB(130, 0, 0)}})
  52.             Speaker:SetExtraData('ChatColor', Color3.fromRGB(201, 191, 0))
  53.         end)
  54.        
  55.         if Player.Backpack:FindFirstChild("Boombox") == nil and Player.Character:FindFirstChild("Boombox") == nil then
  56.             game:GetService("ServerStorage"):WaitForChild("Tools").Boombox:Clone().Parent = Player.StarterGear
  57.             game:GetService("ServerStorage"):WaitForChild("Tools").Boombox:Clone().Parent = Player.Backpack
  58.         end
  59.     else
  60.         error("Couldn't check if player owned VIP Gamepass: "..Error)
  61.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement