Advertisement
V3rmLua33

Jill's Armor

Feb 26th, 2015
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Plr = game.Players.LocalPlayer
  2. local Char =  Plr.Character
  3. local Cam = game.Workspace.CurrentCamera
  4. local Run = game:GetService('RunService')
  5. local Path = nil
  6. local Cv = false
  7. local Clr = 'Lime green'
  8.  
  9. local Songs = {161967422,146651067,176255971,155188958,187197902}
  10. local ID = 000000
  11.  
  12. function Armor(Part,Size,Color,Val,VColor)
  13.    
  14.     local P = Instance.new('Part')
  15.     P.Name = tostring(Part)..'Armor'
  16.     P.CanCollide = false
  17.     P.BrickColor =  BrickColor.new(Color)
  18.     P.Parent = Char
  19.     P.FormFactor = 'Custom'
  20.     P.Anchored = false
  21.     P.Size = Size
  22.     P.BottomSurface = 'Smooth'
  23.     P.TopSurface = 'Smooth'
  24.     P.Locked = true
  25.     Path = P
  26.    
  27.     if Val then
  28.         local Box = Instance.new('SelectionBox',P)
  29.         Box.Adornee = P
  30.         Box.Color = BrickColor.new(VColor)
  31.         Box.Transparency = .5
  32.     end
  33.    
  34.     local Weld = Instance.new('Weld')
  35.     Weld.Parent = P
  36.     Weld.Part0 = Part
  37.     Weld.Part1 = P
  38. end
  39.  
  40. Plr:GetMouse().KeyDown:connect(function(key)
  41.     if key == 'm' then
  42.         ID = nil
  43.         ID = Songs[math.random(1,#Songs)]
  44.         for _,v in pairs(Plr.Character.Head:GetChildren()) do
  45.             if v.ClassName == 'Sound' then
  46.                 v.Looped=false
  47.                 v.PlayOnRemove=false
  48.                 v:Pause()
  49.                 wait()
  50.                 v:remove()
  51.             end
  52.         end
  53.         local S=Instance.new('Sound',Plr.Character.Head)
  54.         S.Volume=1
  55.         S.SoundId='rbxassetid://'..ID
  56.         wait()
  57.         Chat('Now playing '..game:GetService("MarketplaceService"):GetProductInfo(ID)['Name'])
  58.         S:Play()
  59.     elseif key == 'n' then
  60.         for _,v in pairs(Plr.Character.Head:GetChildren()) do
  61.             if v.ClassName == 'Sound' then
  62.                 v.Looped=false
  63.                 v.PlayOnRemove=false
  64.                 v:Pause()
  65.                 wait()
  66.                 v:remove()
  67.             end
  68.         end
  69.     elseif key == 'v' then
  70.         for _,v in pairs(Plr.Character:GetChildren()) do
  71.             if v.ClassName == 'Part' and v.Transparency==0 then
  72.                 v.Transparency=1
  73.                 Char.Humanoid.WalkSpeed=50
  74.             elseif v.ClassName == 'Part' and v.Transparency==1 then
  75.                 v.Transparency=0
  76.                 Char.Humanoid.WalkSpeed=16
  77.             else
  78.             end
  79.         end
  80.     end
  81. end)
  82.  
  83. Plr.Character.Humanoid.Died:connect(function()
  84.     for _,v in pairs(Plr.Character.Head:GetChildren()) do
  85.         if v.ClassName == 'Sound' then
  86.             v.Looped=false
  87.             v.PlayOnRemove=false
  88.             v:Pause()
  89.             wait()
  90.             v:remove()
  91.         end
  92.     end
  93. end)
  94.  
  95. function Chat(msg)
  96.     if Char.Head.Parent then
  97.     pcall(function()
  98.     local Gui = Instance.new('BillboardGui',Char.Head)
  99.     Gui.ExtentsOffset = Vector3.new(0,3,0)
  100.     Gui.Size = UDim2.new(0,200,0,300)
  101.     local Frame = Instance.new('Frame',Gui)
  102.     Frame.BackgroundTransparency = 1
  103.     Frame.Size = UDim2.new(1,0,1,0)
  104.     local Txt = Instance.new('TextLabel',Frame)
  105.     Txt.BackgroundTransparency = 1
  106.     Txt.Size = UDim2.new(1,0,1,0)
  107.     Txt.Font = 'ArialBold'
  108.     Txt.FontSize = 'Size24'
  109.     Txt.Text = ''
  110.     Txt.TextColor3 = Color3.new(255/255,255/255,255/255)
  111.     Txt.TextStrokeColor3 = Color3.new(0/255,0/255,0/255)
  112.     Txt.TextStrokeTransparency = .5
  113.     Txt.TextWrapped = true
  114.     Txt.TextScaled = false
  115.     delay(wait(),function()
  116.         for v = 1, #msg do
  117.             Txt.Text=string.sub(msg,1,v)
  118.             wait(.07)
  119.         end;
  120.         wait(1)
  121.         for v = 1, #Txt.Text do
  122.             Txt.Text=string.sub(msg,-1,v)
  123.             wait(.05)
  124.         end;
  125.         Gui:remove()
  126.     end)
  127.     end)
  128.     else
  129.     end
  130. end
  131.  
  132. Plr.Chatted:connect(function(msg)
  133.     Chat(msg)
  134. end)
  135.  
  136. function SetHeadPos()
  137. local run,error = ypcall(function()
  138.     local Weld = Instance.new("Weld")
  139.     Weld.Part0 = Char.Torso
  140.     Weld.Part1 = Char["Head"]
  141.     Weld.C0 = CFrame.new(0, 1.4, 0)
  142.     Weld.Parent = Weld.Part0
  143.    
  144.     pcall(function()
  145.         for _,v in pairs(Char.Head:GetChildren()) do
  146.             if v.ClassName=='SpecialMesh' then
  147.                 v:remove()
  148.             end
  149.         end
  150.     end)
  151.        
  152.     if Char:findFirstChild('Head') then
  153.         pcall(function()
  154.             for _,v in pairs(Char:GetChildren()) do
  155.                 if v.ClassName == 'Hat' or v.ClassName == 'SpecialMesh' then
  156.                     v:remove()
  157.                 end
  158.             end
  159.             local jointPosition = Weld.Part0.CFrame:toWorldSpace(CFrame.new(0, 1.5, 0))
  160.             local cframe = CFrame.new(jointPosition.p,Plr:GetMouse().Hit.p)
  161.             Weld.C0 = Weld.Part0.CFrame:toObjectSpace(cframe)
  162.         end)
  163.     end
  164. end)
  165. if not run then end
  166. end
  167.  
  168. Run.Heartbeat:connect(SetHeadPos)
  169.  
  170. wait() -- Black armor--
  171. Armor(Char['Right Arm'],Vector3.new(1.1,2.1,1.1),'Really blue',false,Clr)
  172. Armor(Char['Left Arm'],Vector3.new(1.1,2.1,1.1),'Really red',false,Clr)
  173. Armor(Char['Torso'],Vector3.new(2.01,2.01,1.01),'Really blue',true,Clr)
  174. Armor(Char['Head'],Vector3.new(1.5,1.5,1.5),'Really red',false,Clr)
  175. Armor(Char['Right Leg'],Vector3.new(1.1,2.1,1.1),'Really blue',false,Clr)
  176. Armor(Char['Left Leg'],Vector3.new(1.1,2.1,1.1),'Really red',false,Clr)
  177.  
  178.  
  179. -- Tool --
  180. local T=Instance.new('HopperBin',Plr.Backpack)
  181. T.Name='Boom'
  182.  
  183. T.Selected:connect(function(MSE)
  184.     MSE.Button1Down:connect(function()
  185.        
  186.         local Bullet = nil
  187.         local Client = MSE.Target.Position
  188.        
  189.         if Client == nil then return end
  190.        
  191.         local P=Instance.new('Part',workspace)
  192.         P.Transparency=1
  193.         P.Name='Bullet'
  194.         P.Anchored=false
  195.         P.Position=Vector3.new(Plr.Character['Right Arm'].Position.X, Plr.Character['Right Arm'].Position.Y, Plr.Character['Right Arm'].Position.Z)
  196.         P.CanCollide=true
  197.         P.Locked=true
  198.         P.FormFactor='Custom'
  199.         P.Size=Vector3.new(0.32, 0.29, 1.48)
  200.         local Pos = Instance.new("BodyPosition",P)
  201.         Pos.position = Vector3.new(Client.X,Client.Y,Client.Z) 
  202.    
  203.         local Box=Instance.new('SelectionBox',P)
  204.         Box.Adornee=P
  205.         Box.Color=BrickColor.new('Teal')
  206.         Box.Transparency=.5
  207.        
  208.         P.Touched:connect(function(part)
  209.             Box.Transparency=1
  210.             P.Transparency=1
  211.            
  212.             local function asd()
  213.                 coroutine.resume(coroutine.create(function()
  214.                 local PA=Instance.new('Part',workspace)
  215.                 PA.Transparency=1
  216.                 local Box2=Instance.new('SelectionBox',PA)
  217.                 Box2.Adornee=PA
  218.                 Box2.Color=BrickColor.new('Teal')
  219.                 Box2.Transparency=.1
  220.                 PA.Anchored=false
  221.                 PA.CanCollide=false
  222.                 PA.Locked=true
  223.                 PA.Name = 'Bullet_Explosion'
  224.                 PA.FormFactor='Custom'
  225.                 PA.Position=Vector3.new(part.Position.X,part.Position.Y,part.Position.Z)
  226.                 PA.Size=Vector3.new(math.random(1,8.5),math.random(1,8.5),math.random(1,8.5))
  227.                 PA.Rotation=Vector3.new(math.random(1.5,275),math.random(1.5,215),math.random(1.5,200))
  228.    
  229.                 Bullet = PA
  230.    
  231.                 if part.ClassName == 'Humanoid' then
  232.                     part.Health:TakeDamage(5)
  233.                 end
  234.    
  235.                 part.Touched:connect(function(p2)
  236.                     if not p2.Name=='Base' or p2.Name=='Baseplate' or p2.Name=='Bullet_Explosion' then
  237.                     pcall(function() p2.Anchored=false end)
  238.                     end
  239.                 end)   
  240.    
  241.                 local S=Instance.new('Sound',PA)
  242.                 S.Volume=1
  243.                 S.SoundId='rbxassetid://165969964'
  244.                 wait()
  245.                 S:Play()
  246.                 wait(S.TimeLength)
  247.                 S:Pause()
  248.        
  249.                 end))
  250.             end --function asd end
  251.            
  252.             for i = 0,4,1 do
  253.                 asd()
  254.             end
  255.            
  256.             wait(math.random(.1,1))
  257.             P:remove()
  258.             Bullet:remove()
  259.                    
  260.         end)
  261.        
  262.     end)
  263. end)
  264. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement