Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lp=game:service'Players'.LocalPlayer
- pl=lp.Character
- e=0
- ring={}
- Part = function(x,y,z,color,tr,cc,an,parent)
- local p = Instance.new('Part',parent or Weapon)
- p.formFactor = 'Custom'
- p.Size = Vector3.new(x,y,z)
- p.BrickColor = BrickColor.new(color)
- p.CanCollide = cc
- p.Transparency = tr
- p.Anchored = an
- p.TopSurface,p.BottomSurface = 0,0
- p.Material="Neon"
- return p
- end
- Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
- p0.Position = p1.Position
- local w = Instance.new('Motor',par or p0)
- w.Part0 = p0
- w.Part1 = p1
- w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
- return w
- end
- so = function(id,par,lo,pi,tm)
- local s = Instance.new("Sound",par)
- s.Looped=lo
- s.Pitch=pi
- s.SoundId = "http://roblox.com/asset/?id="..id
- s:play()
- s.Volume=1
- Spawn(function()
- wait(tm)
- s:Stop''
- s:Destroy''
- end)
- return s
- end
- findHumanoid = function(where)
- if where and where:IsA("Model") then
- for i,v in pairs(where:GetChildren()) do
- if v:IsA("Humanoid") then return v end
- end
- end
- end
- Mesh = function(par,num,x,y,z)
- local msh = _
- if num == 1 then
- msh = Instance.new("CylinderMesh",par)
- elseif num == 2 then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshType = 3
- elseif num == 3 then
- msh = Instance.new("BlockMesh",par)
- elseif num == 4 then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshType = "Torso"
- elseif type(num) == 'string' then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshId = num
- end
- msh.Scale = Vector3.new(x,y,z)
- return msh
- end
- Lightning = function(Start,End,Times,Offset,Color,Thickness)
- local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
- for i=1,Times do
- local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = 0 li.BrickColor = Color li.Material="Neon"
- li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
- local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
- if Times == i then
- local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
- li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
- else
- li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
- end
- curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,10 do wait() li.Transparency = li.Transparency+.1 end li:Destroy() end)
- end
- end
- function skul(v)
- if v:findFirstChild("Torso") ~= nil then
- for i=1,30 do
- local prt= Part(1,.2,1,'Black',0,true,false,workspace)
- prt.Material='Concrete'
- prt.CanCollide=false
- prt.CFrame=v.Torso.CFrame*CFrame.new(math.random(-30,30)/10,math.random(-20,30)/10,math.random(-20,20)/10)
- game.Debris:AddItem(prt,math.random(50,70)/10)
- end
- ypcall(function()v.Head.face:Destroy()end)
- local ms= Mesh(v.Head,'http://www.roblox.com/asset/?id=4770583',3.2,3.2,3.2)
- ms.TextureId='http://www.roblox.com/asset/?id=4770560'
- local ded=so('16433289',v.Head,false,1,1)
- for _,a in pairs(v:GetChildren()) do if a.Name ~= 'Head' and not a:IsA'Humanoid' then a:remove() end end
- end
- end
- mod=Instance.new("Model",pl)
- mainp=Part(1,1,1,"",1,false,false,mod)
- mainw=Weld(mainp,pl['Torso'],0,0,0,0,0,0,mainp)
- for i=1,360,24 do
- local p=Part(.1,.1,2.5,'',.9,false,false,mod)
- table.insert(ring,p)
- local w=Weld(p,mainp,0,0,0,0,0,0,p)
- w.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(i),0,0)*CFrame.new(0,6,0);
- end
- for i=1,360,24 do
- local p=Part(.1,.1,2.5,'',.9,false,false,mod)
- table.insert(ring,p)
- local w=Weld(p,mainp,0,0,0,0,0,0,p)
- w.C1=CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(i),0)*CFrame.new(6,0,0);
- end
- Spawn(function()
- while wait() do
- e=e+1
- for i,v in pairs(workspace:children()) do
- if v:IsA("Model") and findHumanoid(v) then
- if v:findFirstChild("Head") and v:findFirstChild("Torso") then
- if (v:findFirstChild("Torso").Position - pl.Torso.Position).magnitude < 7.5 and v.Name ~= pl.Name then
- Lightning(v.Torso.Position,pl['Torso'].Position,math.random(5,10),math.random(-2.5,2.5),BrickColor.random(),0.35)
- skul(v)
- Spawn(function()
- for i=1,10 do wait(.01)
- for o=1,#ring do
- ring[o].Transparency=i/10-.1
- end
- end
- end)
- end
- end
- end
- end
- mainw.C1=CFrame.new()*CFrame.Angles(math.rad(e),-math.rad(e),math.rad(e))
- end
- end)
Add Comment
Please, Sign In to add comment