Advertisement
InTesting

The 'Give Yourself a Badge' Club House

Jun 23rd, 2019
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.91 KB | None | 0 0
  1. print'https://pastebin.com/F8VyAchj'
  2. local function MakeClub()
  3.     local badge_s = game:GetService("BadgeService")
  4.     local players=  game:GetService("Players")
  5.    
  6.     local house = Instance.new("Model",workspace)
  7.     house.Name = '∞h1'
  8.    
  9.     house.ChildRemoved:Connect(function(ch)
  10.         ch:Clone().Parent = house
  11.     end)
  12.    
  13.     local f1 = Instance.new("Part",house)
  14.     f1.Material = Enum.Material.Fabric
  15.     f1.Position = Vector3.new(0, -.01, 15)
  16.     f1.Size = Vector3.new(16, 1, 16)
  17.    
  18.     local w1 = Instance.new("Part",house)
  19.     w1.Position = Vector3.new(0, 10, 15)
  20.     w1.Size = Vector3.new(14, 1, 14)
  21.    
  22.     local w2 = Instance.new("Part",house)
  23.     w2.Position = Vector3.new(-7.5, 5.5, 15)
  24.     w2.Size = Vector3.new(1, 10, 16)
  25.    
  26.     local w3 = Instance.new("Part",house)
  27.     w3.Position = Vector3.new(2, 5.5, 7.5)
  28.     w3.Size = Vector3.new(10, 10, 1)
  29.    
  30.     local w4 = Instance.new("Part",house)
  31.     w4.Position = Vector3.new(7.5, 5.5, 15)
  32.     w4.Size = Vector3.new(1, 10, 16)
  33.    
  34.     local w5 = Instance.new("Part",house)
  35.     w5.Position = Vector3.new(0, 5.5, 22.5)
  36.     w5.Size = Vector3.new(14, 10, 1)
  37.    
  38.     local w6 = Instance.new("Part",house)
  39.     w6.Position = Vector3.new(-5, 8.5, 7.5)
  40.     w6.Size = Vector3.new(4, 4, 1)
  41.    
  42.     local TESTPART = Instance.new("Part",house)
  43.     TESTPART.Position = Vector3.new(-0, 5, 15)
  44.     TESTPART.Size = Vector3.new(14, 9, 14)
  45.     TESTPART.Transparency = 1
  46.     TESTPART.CanCollide = false
  47.    
  48.     local kp = Instance.new("Part",house)
  49.     kp.Position = Vector3.new(-5, 3.5, 7.5)
  50.     kp.Size = Vector3.new(4, 6, 1)
  51.    
  52.     local sg = Instance.new("SurfaceGui",kp)
  53.    
  54.     local tl = Instance.new("TextLabel",sg)
  55.     tl.BackgroundColor3 = Color3.new(255, 0, 0)
  56.     tl.Size = UDim2.new(1,0,.125,0)
  57.     tl.Font = Enum.Font.Code
  58.     tl.Text = 'The "Give Yourself a Badge" Club'
  59.     tl.TextColor3 = Color3.new(255, 255, 255)
  60.     tl.TextScaled = true
  61.     tl.TextStrokeColor3 = Color3.new(0, 0, 0)
  62.     tl.TextStrokeTransparency = false
  63.    
  64.     local deb = true
  65.     TESTPART.Touched:Connect(function(h)
  66.         local pl = players:GetPlayerFromCharacter(h.Parent)
  67.         if pl and deb==true then
  68.             deb = false
  69.             if badge_s:UserHasBadgeAsync(pl.UserId,1060922754) then
  70.             else
  71.                 local _,e=pcall(function()pl:LoadCharacter()end)
  72.                 if e and typeof(e)=='string' then
  73.                     local char=pl.Character;
  74.                     local hum,p2=char:FindFirstChildWhichIsA'Humanoid',
  75.                         char:FindFirstChild'Head'or
  76.                         char:FindFirstChild'HumanoidRootPart'or
  77.                         char:FindFirstChild'Torso';
  78.                     if hum then if hum.Health>0 then hum.Health=0;end;
  79.                     elseif p2 then p2:Destroy();end;
  80.                 end;
  81.             end;
  82.             wait(.1)
  83.             deb = true
  84.         end
  85.     end)
  86.    
  87.     for _,v in pairs(house:GetChildren())do
  88.         if v.Material~=Enum.Material.Fabric then
  89.             v.Material = Enum.Material.ForceField
  90.         end
  91.         if v==kp then
  92.             kp.CanCollide = false
  93.         end
  94.         v.Anchored = true
  95.         v.BrickColor = BrickColor.new("Really red")
  96.     end
  97. end
  98.  
  99.  
  100.  
  101. MakeClub()
  102.  
  103. workspace.ChildRemoved:Connect(function(de)
  104.     if workspace:FindFirstChild'∞h1'==nil then
  105.         MakeClub()
  106.     end
  107. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement