Advertisement
InTesting

Squishy Bighead

Jun 1st, 2019
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.72 KB | None | 0 0
  1. print('https://pastebin.com/CAuR8uNJ')
  2. local function makebh()
  3.     local part = Instance.new("Part",workspace)
  4.     part.Name = '∞'
  5.     part.Shape = Enum.PartType.Ball
  6.     part.Transparency = 0
  7.     part.Size = Vector3.new(2,2,2)
  8.     part.Position = Vector3.new(0,5,0)
  9.        
  10.     local sm1 = Instance.new("SpecialMesh",part)
  11.     sm1.Scale = Vector3.new(1,1,1)
  12.     sm1.MeshId = 'rbxassetid://1047997'
  13.     sm1.TextureId = 'rbxassetid://1047998'
  14.    
  15.     if workspace:FindFirstChild'p1'then
  16.         workspace:FindFirstChild'p1':Destroy()
  17.     elseif workspace:FindFirstChild'p2'then
  18.         workspace:FindFirstChild'p2':Destroy()
  19.     elseif workspace:FindFirstChild'p3'then
  20.         workspace:FindFirstChild'p3':Destroy()
  21.     elseif workspace:FindFirstChild'p4'then
  22.         workspace:FindFirstChild'p4':Destroy()
  23.     end
  24.     wait(.1)
  25.     local p1 = Instance.new("Part",workspace)
  26.     p1.Name = 'p1'
  27.     p1.Transparency = 0
  28.     p1.Position = Vector3.new(40,.5,0) 
  29.     p1.Size = Vector3.new(1,1,80)
  30.     p1.Anchored = true
  31.     p1.BrickColor = workspace:FindFirstChild'Base'.BrickColor
  32.     p1.Material = Enum.Material.Grass
  33.    
  34.     local p2 = Instance.new("Part",workspace)
  35.     p2.Name = 'p2'
  36.     p2.Transparency = 0
  37.     p2.Position = Vector3.new(-40,.5,0)
  38.     p2.Size = Vector3.new(1,1,80)
  39.     p2.Anchored = true
  40.     p2.BrickColor = workspace:FindFirstChild'Base'.BrickColor
  41.     p2.Material = Enum.Material.Grass
  42.    
  43.     local p3 = Instance.new("Part",workspace)
  44.     p3.Name = 'p3'
  45.     p3.Transparency = 0
  46.     p3.Position = Vector3.new(0,.5,40) 
  47.     p3.Size = Vector3.new(80,1,1)
  48.     p3.Anchored = true
  49.     p3.BrickColor = workspace:FindFirstChild'Base'.BrickColor
  50.     p3.Material = Enum.Material.Grass
  51.    
  52.     local p4 = Instance.new("Part",workspace)
  53.     p4.Name = 'p4'
  54.     p4.Transparency = 0
  55.     p4.Position = Vector3.new(0,.5,-40)
  56.     p4.Size = Vector3.new(80,1,1)
  57.     p4.Anchored = true
  58.     p4.BrickColor = workspace:FindFirstChild'Base'.BrickColor
  59.     p4.Material = Enum.Material.Grass
  60.    
  61.     local pdeb = true
  62.     part.Touched:Connect(function(h)
  63.         local hpar = h.Parent
  64.         if hpar~=nil then
  65.             local hhum = hpar:FindFirstChildWhichIsA('Humanoid',true)
  66.             if game:GetService("Players"):GetPlayerFromCharacter(hpar)and
  67.                 hhum~=nil then
  68.                 if hhum.Health>0 and pdeb==true then
  69.                     pdeb = false
  70.                     sm1.Scale = Vector3.new(1,.8,1)
  71.                     local sound = Instance.new("Sound",part)
  72.                     sound.Volume = 8
  73.                     sound.SoundId = 'rbxassetid://320412149'
  74.                     sound:Play()
  75.                     wait(.8)
  76.                     sm1.Scale = Vector3.new(1,1,1)
  77.                     if part:FindFirstChildWhichIsA('Sound')~=nil then
  78.                         part:FindFirstChildWhichIsA('Sound'):Destroy()
  79.                     end
  80.                     pdeb = true
  81.                 end
  82.             end
  83.         end
  84.     end)
  85.  
  86.             part.Position = owner.Character:FindFirstChild'Head'.Position
  87.  
  88. end
  89. makebh()
  90. workspace.ChildRemoved:Connect(function(c)
  91.     if c.Name=='∞'and workspace:FindFirstChild('∞')==nil then
  92.         makebh()
  93.     end
  94. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement