Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------This is an Official script from Duelist--------------------------
- ---{-------------------- -------------------}---
- ---{-------------------- / \ -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- A========A -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- W -------------------}---
- -------------------------------------------------------------------------------------------------------------
- --made by navaltom02
- local asin, atan2, rad, cos, abs, ceil, pi = math.asin, math.atan2, math.rad, math.cos, math.abs, math.ceil, math.pi
- local anglespeed = 1
- local v3 = Vector3.new
- local cf = CFrame.new
- local ca = CFrame.Angles
- local protect=game.Players.LocalPlayer.Name
- local angle = 0
- local Names = {"Demon"}
- local Speed = 100
- local Health = 200000000000
- local attack = false
- local combo = 0
- Cols={"Black","Really black","Really red","Really red","Really red"}
- function stick(x, y)
- weld = Instance.new("Motor")
- weld.Name='mot'
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- do
- local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
- local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) end
- local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- end
- 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.Locked=true
- p:BreakJoints()
- return p
- end
- wPart = function(x,y,z,color,tr,cc,an,parent)
- local wp = Instance.new('WedgePart',parent or Weapon)
- wp.formFactor = 'Custom'
- wp.Size = Vector3.new(x,y,z)
- wp.BrickColor = BrickColor.new(color)
- wp.CanCollide = cc
- wp.Transparency = tr
- wp.Anchored = an
- wp.TopSurface,wp.BottomSurface = 0,0
- return wp
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- print("unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- if len1 > 0.01 then
- local w1 = wPart(0,0,0,'Really red',0.5,false,true,pchar)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Mesh(w1,2,0,0,0)
- sp.MeshType='Wedge'
- sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Transparency = 0.7
- Spawn(function()
- for i=0,1,0.1 do
- wait()
- w1.Transparency=w1.Transparency+0.03
- end
- end)
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = wPart(0,0,0,'Really black',0.5,false,true,pchar)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Mesh(w2,2,0,0,0)
- sp.MeshType='Wedge'
- sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Transparency = 0.7
- Spawn(function()
- for i=0,1,0.1 do
- wait()
- w2.Transparency=w2.Transparency+0.03
- end
- end)
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- function mgblock(pa,cfr,tm,col1,col2,sz,wa)
- local cols={col1,col2}
- Spawn(function()
- for i=1,tm do
- local a= Part(1,1,1,cols[math.random(1,2)],0,false,true,pchar)
- curre=a
- v1,v2,v3=sz.x,sz.y,sz.z
- local m= Mesh(a,3,v1,v2,v3)
- a.CFrame=pa.CFrame*cfr*CFrame.Angles(math.random(),math.random(),math.random())
- Spawn(function()
- while wait() do
- if a.Transparency >= 1 then a:Destroy() break end
- m.Scale=m.Scale-Vector3.new(.1,0.1,0.1)
- a.CFrame=a.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.1,0)
- a.Transparency=a.Transparency+0.05
- end
- end)
- wait(wa)
- end
- end)
- return curre
- end
- function trail(p,t,h)
- Spawn(function()
- local blcf = p.CFrame
- local scfr = blcf
- for i=1,t do
- local blcf = p.CFrame
- if scfr and (p.Position-scfr.p).magnitude > .1 then
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end
- if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end
- if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- game:service'RunService'.Stepped:wait()
- end
- scfr=nil
- end)
- 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
- wait()
- s:play()
- s.Volume=10
- game.Debris:AddItem(s,tm)
- return s
- end
- function posfix(nom)
- Spawn(function()
- local bg=Instance.new("BodyGyro",pchar.Torso)
- bg.maxTorque=Vector3.new(0,math.huge,0)
- bg.P=5000
- bg.D=100
- bg.cframe=workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(0,nom,0)
- wait(.5)
- bg:Destroy()
- end)
- end
- Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
- 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
- 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
- anglespeed = 1
- angle = 0
- local function getAngles(cf)
- local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
- return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
- end
- function explosion(col1,col2,cfr,sz,rng,dmg)
- local a= Part(1,1,1,col1,.5,false,true,pchar)
- local a2= Part(1,1,1,col2,.5,false,true,pchar)
- local a3= Part(1,1,1,col2,.5,false,true,pchar)
- v1,v2,v3=sz.x,sz.y,sz.z
- local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
- local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
- local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
- a.CFrame=cfr
- a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
- a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
- for i,v in pairs(workspace:children()) do
- if v:IsA("Model") and v:findFirstChild("Humanoid") then
- if v:findFirstChild("Head") and v:findFirstChild("Torso") then
- if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name and v.Name ~= protect then
- v.Humanoid.Health=v.Humanoid.Health-dmg
- v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2))
- end
- end
- end
- end
- Spawn(function()
- while true do
- wait()
- if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
- m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
- m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
- m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
- a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))
- a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2))
- a.Transparency=a.Transparency+0.05
- a2.Transparency=a2.Transparency+0.05
- a3.Transparency=a3.Transparency+0.05
- end
- end)
- end
- function tmdmg(tm,pa,dmg,rng)
- Spawn(function()
- for i=1,tm do wait()
- for i,v in pairs(workspace:children()) do
- if v:IsA("Model") and v:findFirstChild("Humanoid") then
- if v:findFirstChild("Head") and v:findFirstChild("Torso") then
- if (v:findFirstChild("Torso").Position - pa.Position).magnitude < rng and v.Name ~= pchar.Name and v.Name ~= protect then
- v.Humanoid.Health=v.Humanoid.Health-dmg
- end
- end
- end
- end
- end
- end)
- end
- local function getAngles(cf)
- local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
- return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
- end
- Lerp = {
- Number = function(C1,C2,inc)
- return C1 + (C2 - C1) * inc
- end;
- CFrame = function(a,b,m)
- local c,d={a:components()},{b:components()}
- table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
- return CFrame.new(unpack(c))
- end;
- }
- function build()
- local SelectedName = Names[math.random(#Names)]
- workspace[protect].Archivable=true
- pchar = workspace[protect]:Clone() --Create("Model",{Parent=workspace})
- pchar.Parent=workspace[protect]
- torso=pchar.Torso
- hum=pchar.Humanoid
- pchar.Name=SelectedName
- pl=pchar
- hum.MaxHealth=Health
- wait()
- hum.Health=Health
- hum.WalkSpeed=Speed
- local mainp=Part(2.01,2.01,1.01,'Really red',1,false,false,pl)
- Weld(pl.Torso,mainp,0,0,0,0,0,0,mainp)
- local p=Part(2.02,1.2,1.02,'Really black',0,false,false,pl)
- Weld(mainp,p,0,.41,0,0,0,0,p)
- local p=Part(2.02,2.03,.5,'Really black',0,false,false,pl)
- Weld(mainp,p,0,0,-0.26,0,0,0,p)
- local p=Part(.5,1,1.02,'Really black',0,false,false,pl)
- Weld(mainp,p,-0.2,-0.65,0,0,0,rad(30),p)
- local p=Part(.5,1,1.02,'Really black',0,false,false,pl)
- Weld(mainp,p,0.2,-0.65,0,0,0,-rad(30),p)
- local p=Part(.5,1,1.02,'Really black',0,false,false,pl)
- Weld(mainp,p,.76,-0.51,0,0,0,0,p)
- local p=Part(.5,1,1.02,'Really black',0,false,false,pl)
- Weld(mainp,p,-.76,-0.51,0,0,0,0,p)
- local p=Part(.65,.95,1.01,'Really red',0,false,false,pl)
- Weld(mainp,p,-0.15,-0.65,0,0,0,rad(30),p)
- local p=Part(.65,.95,1.01,'Really red',0,false,false,pl)
- Weld(mainp,p,0.15,-0.65,0,0,0,-rad(30),p)
- local p=Part(.2,1.2,.2,'Really red',0,false,false,pl)
- Weld(mainp,p,0,.35,.45,0,0,0,p)
- local p=Part(.2,.2,.2,'Really red',0,false,false,pl)
- Mesh(p,1,.5,.5,.5)
- Weld(mainp,p,0,-.51,.05,pi/2,0,0,p)
- local p=Part(.2,.2,.2,'Really red',0,false,false,pl)
- Mesh(p,1,.5,.5,.5)
- Weld(mainp,p,0,-.51,.2,pi/2,0,0,p)
- local p=Part(2.11,.2,1.11,'Really red',0,false,false,pl)
- Weld(mainp,p,0,.5,0,0,0,0,p)
- local p=Part(2.13,.2,1.13,'Black',0,false,false,pl)
- Weld(mainp,p,0,.5,0,0,0,0,p)
- Mesh(p,3,1,.75,1)
- local p=Part(.2,.6,.2,'Really red',0,false,false,pl)
- Weld(mainp,p,0.3,.65,0.5,0,0,0,p)
- Mesh(p,3,.75,1,.75)
- local p=Part(.2,.6,.2,'Really red',0,false,false,pl)
- Weld(mainp,p,-0.3,.65,0.5,0,0,0,p)
- Mesh(p,3,.75,1,.75)
- local p=Part(.6,.2,.2,'Really red',0,false,false,pl)
- Weld(mainp,p,0,.425,0.5,0,0,0,p)
- Mesh(p,3,1,.75,.75)
- local p=Part(.6,.2,.2,'Really red',0,false,false,pl)
- Weld(mainp,p,0,.875,0.5,0,0,0,p)
- Mesh(p,3,1,.75,.75)
- local p=Part(.2,.6,.2,'Really red',0,false,false,pl)
- Weld(mainp,p,0.1,.65,0.5,0,0,-rad(20),p)
- Mesh(p,3,.5,1,.75)
- local p=Part(.2,.6,.2,'Really red',0,false,false,pl)
- Weld(mainp,p,-0.1,.65,0.5,0,0,rad(20),p)
- Mesh(p,3,.5,1,.75)
- local p=Part(.2,.25,.2,'Really red',0,false,false,pl)
- Weld(mainp,p,-0.7,.5,0.5,0,0,0,p)
- Mesh(p,3,.5,1,.75)
- local p=Part(.2,.25,.2,'Really red',0,false,false,pl)
- Weld(mainp,p,0.7,.5,0.5,0,0,0,p)
- Mesh(p,3,.5,1,.75)
- p=Part(2.11,.2,1.11,'Really red',0,false,false,pl)
- Weld(mainp,p,0,.75,0,0,0,0,p)
- local p=Part(1.01,2.01,1.01,'Really red',0,false,false,pl)
- Weld(pl['Right Leg'],p,0,0,0,0,0,0,p)
- local p=Part(1.01,2.01,1.01,'Really red',0,false,false,pl)
- Weld(pl['Left Leg'],p,0,0,0,0,0,0,p)
- local p=Part(1.01,2.01,1.01,'Really red',0,false,false,pl)
- Weld(pl['Right Arm'],p,0,0,0,0,0,0,p)
- local p=Part(1.01,2.01,1.01,'Really black',0,false,false,pl)
- Weld(pl['Left Arm'],p,0,0,0,0,0,0,p)
- local p=Part(1.02,1,1.02,'Black',0,false,false,pl)
- Weld(pl['Right Arm'],p,0,0.41,0,0,0,0,p)
- local p=Part(1.02,1,1.02,'Black',0,false,false,pl)
- Weld(pl['Left Arm'],p,0,0.41,0,0,0,0,p)
- local p=Part(1.1,.3,1.1,'Black',0,false,false,pl)
- Weld(pl['Right Arm'],p,0,-0.4,0,0,0,0,p)
- local p=Part(1.1,.3,1.1,'Black',0,false,false,pl)
- Weld(pl['Left Arm'],p,0,-0.4,0,0,0,0,p)
- local p=Part(.51,.2,1.11,'Really red',0,false,false,pl)
- Weld(pl['Right Arm'],p,-0.3,-0.4,0,0,0,0,p)
- local p=Part(.51,.2,1.11,'Really red',0,false,false,pl)
- Weld(pl['Left Arm'],p,0.3,-0.4,0,0,0,0,p)
- local p=Part(.2,1.11,.2,'Really red',0,false,false,pl)
- Mesh(p,1,1,1,1)
- Weld(pl['Right Arm'],p,0.3,0,-.4,rad(90),0,0,p)
- local p=Part(.2,1.11,.2,'Really red',0,false,false,pl)
- Mesh(p,1,1,1,1)
- Weld(pl['Left Arm'],p,-0.3,0,-.4,rad(90),0,0,p)
- local p=Part(1.03,.2,1.03,'Really red',0,false,false,pl)
- Weld(pl['Left Arm'],p,0,0,0,0,0,0,p)
- local p=Part(1.1,.2,1.03,'Really red',0,false,false,pl)
- Weld(pl['Left Arm'],p,-0.2,0.25,0,0,0,rad(40),p)
- local p=Part(1.1,.2,1.03,'Really red',0,false,false,pl)
- Weld(pl['Left Arm'],p,0.2,0.25,0,0,0,-rad(40),p)
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- m = New("Model",nil,"Model",{})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-6.19765997, 2.3154006, -20.1852283, -0.459659487, -0.844636917, -0.274245769, 0.868429303, -0.36309287, -0.337406158, 0.185414284, -0.393307269, 0.900434256),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.0900000036, 1.5, 0.200000003),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.2849026, 0.47093609, -21.6759739, 0.459599137, 0.274224967, 0.844680846, -0.868458629, 0.337394416, 0.363040775, -0.185440272, -0.90044713, 0.393271238),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.2849197, 0.470925152, -21.6759644, 0.820387483, 0.274235934, 0.501713693, -0.570611954, 0.337407678, 0.748654962, 0.0360371731, -0.900483251, 0.433310956),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.0655117, 0.740833163, -22.3963528, 0.92226541, 0.274225026, 0.272291988, -0.357383519, 0.337394148, 0.870802283, 0.146959186, -0.900447249, 0.409210235),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.0655212, 0.740832984, -22.3963718, 0.459617496, 0.274235934, 0.844692051, -0.868493438, 0.337407887, 0.363045663, -0.185447723, -0.900483131, 0.393276483),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.5975561, 0.424365997, -22.2327957, 0.459635943, 0.844703317, -0.274246991, -0.868528426, 0.36305055, -0.337421417, -0.185455203, 0.393281788, 0.900519311),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("CylinderMesh",Part1,"Mesh",{Scale = Vector3.new(1, 1.5, 0.100000001),})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-11.1043253, 0.206570342, -22.4687767, 0.274225235, 0.844680905, 0.459599048, 0.337394118, 0.363040715, -0.868458927, -0.900447369, 0.393271297, -0.185439944),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.280000001, 0.280000001, 0.5),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-5.86756945, 2.44408679, -19.9689026, -0.459599227, 0.844680905, 0.274225056, 0.868458807, 0.363040775, 0.337394476, 0.185440302, 0.393271297, -0.900447309),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.400000006, 1, 0.600000024),MeshType = Enum.MeshType.Wedge,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-9.75292015, 0.787398696, -21.8395786, 0.459599227, 0.844680905, -0.274225056, -0.868458807, 0.363040775, -0.337394476, -0.185440302, 0.393271297, 0.900447309),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("BlockMesh",Part1,"Mesh",{Scale = Vector3.new(0.449999988, 1.10000002, 0.150000006),})
- handl = New("Part",m,"handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.5975342, 0.424375206, -22.2327862, 0.459603816, 0.844683707, -0.274227798, -0.86846751, 0.363041997, -0.337397844, -0.185442165, 0.393272609, 0.900456309),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("BlockMesh",handl,"Mesh",{Scale = Vector3.new(0.5, 1.5, 0.150000006),})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.1752129, 0.605890632, -22.0361595, -0.844603121, 0.459629774, -0.274413377, -0.362855345, -0.868378639, -0.337799579, -0.393609494, -0.185738698, 0.900237918),Anchored = true,CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.0500000007, 0.0599999987, 0.219999999),MeshId = "http://www.roblox.com/asset/?id=16606212",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.4286127, 0.496973038, -22.1541042, 0.274230719, 0.459608227, -0.844686568, 0.337400854, -0.868476331, -0.363043159, -0.900465369, -0.185443684, -0.39327392),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-8.23247528, 1.44083679, -21.1316605, 0.459617585, 0.844692111, -0.274236023, -0.868493617, 0.363045663, -0.337407947, -0.185447752, 0.393276542, 0.90048331),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("BlockMesh",Part1,"Mesh",{Scale = Vector3.new(0.400000006, 2.70000005, 1.25),})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.1752262, 0.605885088, -22.0361652, 0.459617496, 0.274235934, 0.844692051, -0.868493438, 0.337407887, 0.363045663, -0.185447723, -0.900483131, 0.393276483),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("CylinderMesh",Part1,"Mesh",{Scale = Vector3.new(1, 0.860000014, 0.349999994),})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.3441544, 0.53327328, -22.1147881, 0.274225235, 0.459599048, -0.844680965, 0.337394118, -0.868458927, -0.363040715, -0.900447369, -0.185439959, -0.393271297),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.1752262, 0.605885088, -22.0361652, 0.274241686, -0.459626645, 0.844697714, 0.337414324, 0.86851114, 0.363048106, -0.90050137, 0.185451105, 0.393279165),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("CylinderMesh",Part1,"Mesh",{Scale = Vector3.new(1, 0.899999976, 0.899999976),})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.1752129, 0.605890632, -22.0361595, 0.274224788, -0.459598899, 0.844681144, 0.337392837, 0.868459284, 0.363041222, -0.900448024, 0.185438991, 0.393270314),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("CylinderMesh",Part1,"Mesh",{Scale = Vector3.new(1, 1.10000002, 0.25),})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.1752129, 0.605890632, -22.0361595, 0.274230719, -0.459608287, 0.844686508, 0.337400854, 0.868476331, 0.363043219, -0.900465369, 0.185443655, 0.39327392),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("CylinderMesh",Part1,"Mesh",{Scale = Vector3.new(1, 1, 0.5),})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-5.83461905, 2.48459363, -20.0769348, 0.459617555, 0.844692111, -0.274236083, -0.868493617, 0.363045603, -0.337407947, -0.185447752, 0.393276602, 0.90048331),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.400000006, 1, 0.600000024),MeshType = Enum.MeshType.Wedge,})
- blade = New("Part",m,"blade",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-8.23247528, 1.44083679, -21.1316605, 0.459617585, 0.844692111, -0.274236023, -0.868493617, 0.363045663, -0.337407947, -0.185447752, 0.393276542, 0.90048331),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("BlockMesh",blade,"Mesh",{Scale = Vector3.new(0.419999987, 2.70000005, 0.5),})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.3096189, 0.440624267, -21.594902, 0.274241686, 0.844697714, 0.459626615, 0.337414354, 0.363048047, -0.86851114, -0.90050137, 0.393279165, -0.185451165),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.280000001, 0.280000001, 0.5),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.1113911, 0.576328218, -21.73909, 0.274236202, 0.844692111, 0.459617436, 0.337407619, 0.363045603, -0.868493736, -0.90048337, 0.393276542, -0.18544744),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.280000001, 0.280000001, 0.5),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.3732338, 0.463769555, -21.8610172, 0.274236202, 0.844692111, 0.459617436, 0.337407619, 0.363045603, -0.868493736, -0.90048337, 0.393276542, -0.18544744),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.280000001, 0.280000001, 0.5),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-8.28543091, 1.41672218, -21.1517391, -0.459677845, -0.844648123, -0.274256736, 0.868464112, -0.363097757, -0.337419629, 0.185421735, -0.393312514, 0.900470257),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.100000001, 1.5, 0.100000001),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-9.9687748, 0.751787782, -22.2073421, -0.274281591, 0.844617963, -0.459726632, -0.337427109, 0.363139778, 0.868446827, 0.90046227, 0.393348873, 0.185396582),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.280000001, 0.280000001, 0.5),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.0408382, 0.771299124, -22.4773846, -0.274281591, 0.844617963, -0.459726632, -0.337427109, 0.363139778, 0.868446827, 0.90046227, 0.393348873, 0.185396582),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.280000001, 0.280000001, 0.5),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-10.2306175, 0.639229178, -22.3292694, -0.274281591, 0.844617963, -0.459726632, -0.337427109, 0.363139778, 0.868446827, 0.90046227, 0.393348873, 0.185396582),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.280000001, 0.280000001, 0.5),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
- Part1 = New("Part",m,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-9.9687748, 0.751787782, -22.2073421, -0.274281591, 0.844617963, -0.459726632, -0.337427109, 0.363139778, 0.868446827, 0.90046227, 0.393348873, 0.185396582),Anchored = true,CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh1 = New("SpecialMesh",Part1,"Mesh",{Scale = Vector3.new(0.280000001, 0.280000001, 0.5),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
- c = m:children()
- for n = 1, #c do
- if (c[n].className == "Part") then
- if (c[n].Name ~= "handle") then
- stick(c[n], m.handle)
- wait()
- c[n].Anchored = false
- end
- end
- end
- handl.Anchored=false
- mwl= Weld(handl,pchar.Torso,-1,0,-1,rad(120),0,0,m)
- m.Parent = pchar
- local function genWeld(a,b)
- local w = Instance.new("Weld",a)
- w.Part0 = a
- w.Part1 = b
- return w
- end
- local Neck = genWeld(pchar.Torso,pchar.Head)
- Neck.C0 = CFrame.new(0,1,0)
- Neck.C1 = CFrame.new(0,-0.5,0)
- local LeftShoulder = genWeld(pchar.Torso,pchar['Left Arm'])
- LeftShoulder.C0 = CFrame.new(-1,0.5,0)
- LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
- local RightShoulder = genWeld(pchar.Torso,pchar['Right Arm'])
- RightShoulder.C0 = CFrame.new(1,0.5,0)
- RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
- local LeftHip = genWeld(pchar.Torso,pchar['Left Leg'])
- LeftHip.C0 = CFrame.new(-1,-1,0)
- LeftHip.C1 = CFrame.new(-0.5,1,0)
- local RightHip = genWeld(pchar.Torso,pchar['Right Leg'])
- RightHip.C0 = CFrame.new(1,-1,0)
- RightHip.C1 = CFrame.new(0.5,1,0)
- local RootJoint = genWeld(pchar.HumanoidRootPart,pchar.Torso)
- RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
- RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
- for i=1,4 do wait()
- pchar:MoveTo(workspace[protect].Torso.Position+Vector3.new(5,0,0))
- end
- local function newLerpTo(weld)
- return {
- Weld = weld;
- To = weld.C0;
- Cache = weld.C0;
- Speed = 0.2;
- }
- end
- LerpTo = {
- Neck = newLerpTo(Neck);
- LeftArm = newLerpTo(LeftShoulder);
- RightArm = newLerpTo(RightShoulder);
- LeftLeg = newLerpTo(LeftHip);
- RightLeg = newLerpTo(RightHip);
- RootJoint = newLerpTo(RootJoint);
- hndl = newLerpTo(mwl);
- }
- LerpTo.hndl.Cache=CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,rad(90))
- end
- build()
- Used={Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false}
- function SetAnimData(IF_DATA_IS_USED)
- Used = IF_DATA_IS_USED
- end
- function CheckAnimData(ANIM_TAB,DO_ANIM)
- anglespeed=Anims[ANIM_TAB][DO_ANIM].speed or 1
- if Used.Head == true then
- LerpTo.Neck.To = LerpTo.Neck.Cache * Anims[ANIM_TAB][DO_ANIM].Head
- end
- if Used.RightArm == true then
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * Anims[ANIM_TAB][DO_ANIM].RightArm
- end
- if Used.LeftArm == true then
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * Anims[ANIM_TAB][DO_ANIM].LeftArm
- end
- if Used.RightLeg == true then
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * Anims[ANIM_TAB][DO_ANIM].RightLeg
- end
- if Used.LeftLeg == true then
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * Anims[ANIM_TAB][DO_ANIM].LeftLeg
- end
- if Used.Torso == true then
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * Anims[ANIM_TAB][DO_ANIM].Torso
- end
- end
- function UpdateAnims()
- Anims = {
- ["Idle"] = {
- ["Stance"] = {
- speed=.25,
- Head = CFrame.Angles(cos(angle)*0.01,0,0),
- RightArm = CFrame.Angles(cos(angle)*0.1,0,0),
- LeftArm = CFrame.Angles(-cos(angle)*0.1,0,0),
- RightLeg = CFrame.Angles(cos(angle)*0.1,0,0),
- LeftLeg = CFrame.Angles(-cos(angle)*0.1,0,0),
- Torso = CFrame.Angles(0,0,0)
- },
- ["Walk"] = {
- speed=2,
- Head = CFrame.Angles(0,0,cos(angle)*0.05),
- RightArm = CFrame.Angles(-cos(angle)*1,0,0),
- LeftArm = CFrame.Angles(cos(angle)*1,0,0),
- RightLeg = CFrame.Angles(cos(angle)*1,0,0),
- LeftLeg = CFrame.Angles(-cos(angle)*1,0,0),
- Torso = CFrame.Angles(0,0,0)
- },
- ["Jump"] = {
- speed=2,
- Head = CFrame.Angles(0,0,0),
- RightArm = CFrame.Angles(rad(-20),0,0),
- LeftArm = CFrame.Angles(rad(-20),0,0),
- RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
- LeftLeg = CFrame.Angles(0,0,0),
- Torso = CFrame.Angles(rad(10),0,0)
- }
- },
- ["Holding"] = {
- ["Stance"] = {
- speed=.25,
- Head = CFrame.Angles(cos(angle)*0.01,0,0),
- RightArm = CFrame.Angles(cos(angle)*0.1,0,rad(10)),
- LeftArm = CFrame.Angles(-cos(angle)*0.1,0,-rad(10)),
- RightLeg = CFrame.Angles(cos(angle)*0.1,0,0),
- LeftLeg = CFrame.Angles(-cos(angle)*0.1,0,0),
- Torso = CFrame.Angles(0,0,0)
- },
- ["Walk"] = {
- speed=2,
- Head = CFrame.Angles(0,0,cos(angle)*0.05),
- RightArm = CFrame.Angles(-cos(angle)*.3,0,rad(10)),
- LeftArm = CFrame.Angles(cos(angle)*.3,0,-rad(10)),
- RightLeg = CFrame.Angles(cos(angle)*1,0,0),
- LeftLeg = CFrame.Angles(-cos(angle)*1,0,0),
- Torso = CFrame.Angles(0,0,0)
- },
- ["Jump"] = {
- speed=2,
- Head = CFrame.Angles(0,0,0),
- RightArm = CFrame.Angles(rad(-20),0,0),
- LeftArm = CFrame.Angles(rad(-20),0,0),
- RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
- LeftLeg = CFrame.Angles(0,0,0),
- Torso = CFrame.Angles(rad(10),0,0)
- }
- }
- }
- end
- UpdateAnims()
- equi=false
- jumpt=false
- walked=false
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- CurrentActiveAnim="Idle"
- function jump()
- if attack == true or jumpt==true then return end
- jumpt=true
- attack=true
- Spawn(function()
- for i=1,3 do wait()
- local efx= Part(100,100,100,'Really red',100,false,true,m)
- local m= Mesh(efx,'http://www.roblox.com/asset/?id=20329976',300,100,300)
- efx.CFrame=torso.CFrame
- Spawn(function()
- for i=1,7 do wait()
- m.Scale=m.Scale+Vector3.new(1,.2,1)
- efx.Transparency=efx.Transparency+.12
- end
- efx:Destroy()
- end)
- end
- end)
- local vs = Instance.new("BodyVelocity",pchar.Torso)
- vs.maxForce = Vector3.new(100,100,100)*9e9
- vs.P = 2000
- vs.velocity = pchar.Torso.CFrame.lookVector*60+Vector3.new(0,250,0)
- wait(.025)
- vs:Destroy()
- trail(blade,50,50)
- so('665549876',torso,false,.8)
- SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))*CFrame.new(0,-.5,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))*CFrame.new(0,-.5,0)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,rad(90),0)*CFrame.Angles(rad(130),0,0)
- local spn=0
- for i=1,14 do
- spn=spn+30
- wait(i/1000)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(spn),0,0)
- end
- SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))* CFrame.new(-.2,-.25,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))* CFrame.new(.2,-.25,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,-rad(90))*CFrame.Angles(-rad(130),0,0)
- hitted=false
- local hp=blade.Touched:connect(function(hit)
- if hitted == true or hit.Parent.Name==pchar.Name then return end
- so('514867425',torso,false,1)
- hitted=true
- explosion('Really black','Really red',torso.CFrame,Vector3.new(40,40,40),30,40)
- for i=1, 20 do
- local p= Part(math.random(2,7),math.random(2,7),math.random(2,7),workspace.Base.BrickColor.Color,0,false,false,pchar)
- p.Material=workspace.Base.Material
- p.CFrame=CFrame.new(torso.CFrame.x+math.random(-i,i),0,torso.CFrame.z+math.random(-i,i))*CFrame.Angles(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)*CFrame.Angles(pi/2,0,0)
- p.Velocity=Vector3.new(math.random(-100,100),math.random(30,100),math.random(-100,100))
- game.Debris:AddItem(p,2)
- Spawn(function()
- for i=1,10 do wait(.01)
- p.Transparency=p.Transparency+.1
- end
- end)
- end
- end)
- repeat wait() until hitted
- hp:disconnect()
- wait(.5)
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.hndl.To = LerpTo.hndl.Cache
- attack=false
- SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
- wait(.01)
- mwl.Part1=pchar['Right Arm']
- mwl.C1=CFrame.new(0,-1,0)*CFrame.Angles(-rad(90),0,rad(90))
- wait(.2)
- CurrentActiveAnim="Holding"
- LerpTo.hndl.To = LerpTo.hndl.Cache
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- Spawn(function()
- wait(math.random(10,20))
- jumpt=false
- end)
- end
- function swing()
- if attack == true then return end
- if combo==0 then
- attack=true
- tmdmg(20,blade,20,20)
- SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
- wait(.1)
- trail(blade,50,50)
- so('357622136',torso,false,1)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
- wait(.2)
- attack=false
- combo=1
- elseif combo==1 then
- attack=true
- tmdmg(20,blade,20,20)
- SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
- wait(.1)
- trail(blade,50,50)
- so('357622136',torso,false,.8)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0)
- wait(.2)
- attack=false
- combo=2
- elseif combo==2 then
- attack=true
- trail(blade,50,50)
- tmdmg(20,blade,20,20)
- so('665549876',torso,false,1)
- SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))*CFrame.new(0,-.5,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))*CFrame.new(0,-.5,0)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,0)
- local spn=0
- for i=1,15 do
- spn=spn+30
- wait(i/1000)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn)+rad(70))
- end
- attack=false
- combo=3
- end
- Spawn(function()
- wait(0.6)
- if attack==false then
- attack=true
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.hndl.To = LerpTo.hndl.Cache
- wait(.2)
- attack=false
- combo=0
- end
- end)
- end
- deb=false
- function eq()
- if attack == true then return end
- if deb==true then return end
- deb=true
- SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
- wait(.01)
- mwl.Part1=pchar['Right Arm']
- mwl.C1=CFrame.new(0,-1,0)*CFrame.Angles(-rad(90),0,rad(90))
- wait(.2)
- CurrentActiveAnim="Holding"
- LerpTo.hndl.To = LerpTo.hndl.Cache
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- deb=false
- equi=true
- end
- function deq()
- if attack == true then return end
- if deb==true then return end
- deb=true
- wait(2)
- SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,0)
- wait(.1)
- mwl.Part1=pchar.Torso
- mwl.C1=CFrame.new(-1,0,-1)*CFrame.Angles(rad(120),0,0)
- wait(.1)
- CurrentActiveAnim="Idle"
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- deb=false
- equi=false
- end
- chardeb=false
- game:service'RunService'.Stepped:connect(function()
- if pchar.Humanoid.Health<1 then if chardeb==false then chardeb=true wait(5) pchar:Destroy() build() chardeb=false end end
- closer={}
- for _,x in pairs(workspace:GetChildren()) do
- if x.ClassName=="Model" and x:findFirstChild("Humanoid")~=nil and x:findFirstChild("Torso")~=nil then
- dist = (x.Torso.Position - torso.Position).magnitude
- if dist <= 1000 and x.Name ~= workspace[protect].Name then
- table.insert(closer,x.Name)
- end
- end
- end
- if #closer > 0 then
- if equi==false then eq() end
- for _,x in pairs(workspace:GetChildren()) do
- if x.ClassName=="Model" and x:findFirstChild("Humanoid")~=nil and x:findFirstChild("Torso")~=nil then
- dist = (x.Torso.Position - torso.Position).magnitude
- if dist <= 2000 and x.Name ~= workspace[protect].Name then
- if equi==true then hum:MoveTo(workspace[closer[1]].Torso.Position)
- jump()
- swing()
- end
- end
- end
- end
- else
- if equi==true then deq() end
- Spawn(function()
- if walked==false then
- walked=true
- hum:MoveTo(workspace[protect].Torso.Position+Vector3.new(math.random(-10,10),0,math.random(-10,10)))
- wait(7)
- walked=false
- end
- end)
- end
- UpdateAnims(angle)
- for _,v in pairs(LerpTo) do
- v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)
- end
- angle = (angle % 100) + anglespeed/10
- if Vector3.new(0, torso.Velocity.y, 0).magnitude > 2 then
- CheckAnimData(CurrentActiveAnim,"Jump")
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
- CheckAnimData(CurrentActiveAnim,"Stance")
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
- CheckAnimData(CurrentActiveAnim,"Walk")
- end
- end)
- local p = game.Players.LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local hed = char.Head
- local torso = char.Torso
- local CanAttack = true
- Debounces = {
- CanAttack = true;
- CanJoke = true;
- NoIdl = false;
- Slashing = false;
- Slashed = false;
- Slapping = false;
- Slapped = false;
- ks = false;
- }
- local Touche = {char.Name, }
- local Character = p.Character
- mouse.KeyDown:connect(function(key)
- if key == "l" then
- if Debounces.CanJoke == true then
- Debounces.CanJoke = false
- z = Instance.new("Sound",char)
- z.SoundId = "rbxassetid://184605339"
- z.Pitch = 0.78
- z.Volume = 2
- wait()
- z:Play()
- wait(20)
- z:Destroy()
- if Debounces.CanJoke == false then
- Debounces.CanJoke = true
- end
- end
- end
- end)
- ----------------------------------------------------
- mouse.KeyDown:connect(function(key)
- if key == "k" then
- if Debounces.CanJoke == true then
- Debounces.CanJoke = false
- z = Instance.new("Sound",char)
- z.SoundId = "rbxassetid://246649905"
- z.Pitch = 1
- z.Volume = 2
- wait()
- z:Play()
- wait(100)
- z:Destroy()
- if Debounces.CanJoke == false then
- Debounces.CanJoke = true
- end
- end
- end
- end)
- ----------------------------------------------------
- mouse.KeyDown:connect(function(key)
- if key == "j" then
- if Debounces.CanJoke == true then
- Debounces.CanJoke = false
- z = Instance.new("Sound",char)
- z.SoundId = "rbxassetid://246646210"
- z.Pitch = 1
- z.Volume = 3
- wait()
- z:Play()
- wait(100)
- z:Destroy()
- if Debounces.CanJoke == false then
- Debounces.CanJoke = true
- end
- end
- end
- end)
- ----------------------------------------------------
- name = game.Players.LocalPlayer.Name
- player = game.Players:WaitForChild(name)
- chara = player.Character
- debby = game:GetService("Debris")
- chara.Humanoid.MaxHealth = math.huge
- chara.Humanoid.Health = math.huge
- chara.Humanoid.WalkSpeed = 50
- chara.Humanoid.JumpPower = 100
- local p = Instance.new("Part", chara)
- p.Name = "Ears"
- p.BrickColor = BrickColor.new("Really red")
- p.Size = Vector3.new(0, 0, 0)
- p.BottomSurface = 0
- p.TopSurface = 0
- p.Position = chara.Head.Position
- local pweld = Instance.new("Weld", p)
- pweld.Part0 = chara.Head
- pweld.Part1 = p
- pweld.C0 = CFrame.new(0, 0.7, 0)
- pweld.C0 = pweld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(180), 0, math.rad(180))
- local earmesh = Instance.new("SpecialMesh", p)
- earmesh.MeshType = "FileMesh"
- earmesh.MeshId = "http://www.roblox.com/asset/?id=1374148"
- earmesh.Scale = Vector3.new(1.1, 1.5, 3)
- local fakehead = chara.Head:clone()
- fakehead.Name = "FakeHead"
- fakehead.Parent = chara
- fakehead.Position = chara.Head.Position
- fakehead.Transparency = 0
- fakehead.face.Texture = "http://www.roblox.com/asset/?id=105092745"
- local hand1 = Instance.new("Part", chara)
- hand1.Name = "Hand1"
- hand1.Size = Vector3.new(0.8, 0.8, 0.8)
- hand1.Transparency = 1
- hand1.Position = chara["Left Arm"].Position
- local hand1weld = Instance.new("Weld", hand1)
- hand1weld.Part0 = chara["Left Arm"]
- hand1weld.Part1 = hand1
- hand1weld.C0 = CFrame.new(0, -1, 0)
- local hand2 = hand1:Clone()
- hand2.Name = "Hand2"
- hand2.Parent = chara
- hand2.Position = chara["Right Arm"].Position
- local hand2weld = Instance.new("Weld", hand2)
- hand2weld.Part0 = chara["Right Arm"]
- hand2weld.Part1 = hand2
- hand2weld.C0 = CFrame.new(0, -1, 0)
- color3colour = {
- BrickColor.new("Really red").Color,
- BrickColor.new("Really red").Color,
- BrickColor.new("Really red").Color,
- BrickColor.new("Really red").Color,
- BrickColor.new("Really red").Color,
- BrickColor.new("Really red").Color
- }
- breekcolour = {
- BrickColor.new("Really red"),
- BrickColor.new("Really red"),
- BrickColor.new("Really red"),
- BrickColor.new("Really red"),
- BrickColor.new("Really red"),
- BrickColor.new("Really red")
- }
- firecolour = {
- ColorSequenceKeypoint.new(0, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(0.05, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(0.1, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(0.15, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(0.2, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(0.25, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(1, BrickColor.new("Really red").Color)
- }
- barcolour = {
- ColorSequenceKeypoint.new(0, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(0.2, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(0.4, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(0.6, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(0.8, BrickColor.new("Really red").Color),
- ColorSequenceKeypoint.new(1, BrickColor.new("Really red").Color)
- }
- normallife = {
- NumberSequenceKeypoint.new(0, 0),
- NumberSequenceKeypoint.new(1, 1)
- }
- extendlife = {
- NumberSequenceKeypoint.new(0, 0),
- NumberSequenceKeypoint.new(0.8, 0),
- NumberSequenceKeypoint.new(1, 1)
- }
- function createrainbow(color, part, texture, size, trans, life, face, speed, accel, velsp, lock, name)
- local fira = Instance.new("ParticleEmitter", part)
- fira.Name = name
- fira.Color = ColorSequence.new(color)
- fira.Size = size
- fira.Texture = texture
- fira.Transparency = trans
- fira.Lifetime = life
- fira.EmissionDirection = face
- fira.Rate = 100000000
- fira.RotSpeed = NumberRange.new(10000)
- fira.Speed = speed
- fira.VelocitySpread = velsp
- fira.Acceleration = accel
- fira.LightEmission = 1
- fira.LockedToPart = lock
- end
- handfire1 = createrainbow(firecolour, hand1, "rbxasset://textures/particles/smoke_main.dds", NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.4),
- NumberSequenceKeypoint.new(1, 0)
- }), NumberSequence.new(extendlife), NumberRange.new(1), "Left", NumberRange.new(1), Vector3.new(0, 2, 0), 0, false, "FireEffect")
- handfire2 = createrainbow(firecolour, hand2, "rbxasset://textures/particles/smoke_main.dds", NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.4),
- NumberSequenceKeypoint.new(1, 0)
- }), NumberSequence.new(extendlife), NumberRange.new(1), "Right", NumberRange.new(1), Vector3.new(0, 2, 0), 0, false, "FireEffect")
- createrainbow(barcolour, orbuur, "rbxasset://textures/particles/smoke_main.dds", NumberSequence.new({
- NumberSequenceKeypoint.new(0, 1),
- NumberSequenceKeypoint.new(0.8, 1),
- NumberSequenceKeypoint.new(1, 0)
- }), NumberSequence.new(extendlife), NumberRange.new(1), "Front", NumberRange.new(0), Vector3.new(0, 0, 0), 0, false, "OrbEffect")
- local spelleffect = Instance.new("ParticleEmitter", chara.Torso)
- spelleffect.Texture = "http://www.roblox.com/asset/?id=679657454"
- spelleffect.Speed = NumberRange.new(0)
- spelleffect.LightEmission = 1
- spelleffect.Transparency = NumberSequence.new(normallife)
- spelleffect.Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0),
- NumberSequenceKeypoint.new(1, 10)
- })
- spelleffect.Rate = 0.001
- spelleffect.Rotation = NumberRange.new(0, 359)
- spelleffect.RotSpeed = NumberRange.new(1000)
- spelleffect.Lifetime = NumberRange.new(1)
- createrainbow(barcolour, hand2, "rbxasset://textures/particles/smoke_main.dds", NumberSequence.new({
- NumberSequenceKeypoint.new(0, 1),
- NumberSequenceKeypoint.new(1, 0)
- }), NumberSequence.new(normallife), NumberRange.new(1), "Front", NumberRange.new(10), Vector3.new(0, 0, 0), 1000, true, "PowerEffect")
- powereffect = hand2.PowerEffect
- powereffect.Enabled = false
- local naeeym = Instance.new("BillboardGui", chara)
- naeeym.Size = UDim2.new(0, 100, 0, 40)
- naeeym.StudsOffset = Vector3.new(0, 2, 0)
- naeeym.Adornee = chara.Head
- local tecks = Instance.new("TextLabel", naeeym)
- tecks.BackgroundTransparency = 1
- tecks.BorderSizePixel = 0
- tecks.Text = ""
- tecks.Font = "Fantasy"
- tecks.FontSize = "Size24"
- tecks.TextStrokeTransparency = 0
- tecks.TextColor3 = Color3.new(1, 1, 1)
- tecks.TextStrokeColor3 = BrickColor.new("Really red").Color
- tecks.Size = UDim2.new(1, 0, 0.5, 0)
- Void = nil
- VoidParts = {}
- Equipped = false
- Counter = 1
- function RayCast(Position, Direction, MaxDistance, IgnoreList)
- return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
- end
- Player = player
- Character = chara
- Humanoid = Character:FindFirstChild("Humanoid")
- Torso = Character:FindFirstChild("Torso")
- if not Player or not Humanoid or Humanoid.Health == 0 or not chara.Torso then
- return
- end
- Equipped = true
- Void = Instance.new("Model")
- Void.Name = "Void"
- Angle = 0
- for i = 1, 1 do
- local VoidPart = Instance.new("Part")
- VoidPart.Name = "VoidPart"
- VoidPart.Transparency = 1
- VoidPart.BrickColor = BrickColor.new("Really red")
- VoidPart.Material = Enum.Material.Plastic
- VoidPart.Shape = Enum.PartType.Block
- VoidPart.FormFactor = Enum.FormFactor.Custom
- VoidPart.TopSurface = Enum.SurfaceType.Smooth
- VoidPart.BottomSurface = Enum.SurfaceType.Smooth
- VoidPart.Anchored = true
- VoidPart.CanCollide = false
- VoidPart.Locked = true
- VoidPart.Size = Vector3.new(10, 0.2, 10)
- fiyer = createrainbow(firecolour, VoidPart, "http://www.roblox.com/asset/?id=224413104", NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.4),
- NumberSequenceKeypoint.new(1, 0)
- }), NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0),
- NumberSequenceKeypoint.new(0.99, 0),
- NumberSequenceKeypoint.new(1, 1)
- }), NumberRange.new(10), "Top", NumberRange.new(2), Vector3.new(0, 2, 0), 0, false, "FireEffect")
- VoidPart.FireEffect.Rate = 10
- local BlockMesh = Instance.new("BlockMesh")
- BlockMesh.Scale = Vector3.new(50, 50, 50)
- BlockMesh.Parent = VoidPart
- VoidPart.Parent = Void
- local Star = Instance.new("Decal", VoidPart)
- Star.Texture = "http://www.roblox.com/asset/?id=418573228"
- Star.Face = "Top"
- local Light = Instance.new("PointLight", VoidPart)
- Light.Color = Color3.new(1, 0, 0)
- Light.Brightness = 10
- Light.Range = 10
- table.insert(VoidParts, VoidPart)
- end
- Spawn(function()
- while Equipped and Humanoid.Parent and Humanoid.Health > 0 and chara do
- if Angle == 360 then
- Angle = 0
- end
- Angle = Angle + 0.05
- chara.Humanoid.MaxHealth = math.huge
- chara.Humanoid.Health = math.huge
- Counter = Counter + 1
- if Counter == 7 then
- Counter = 1
- end
- tecks.TextStrokeColor3 = color3colour[Counter]
- fakehead.face.Color3 = color3colour[Counter]
- Void.VoidPart.Decal.Color3 = color3colour[Counter]
- Void.VoidPart.PointLight.Color = color3colour[Counter]
- local parentPos = chara.Torso.CFrame
- local Hit, EndPosition = RayCast(chara.Torso.Position, Vector3.new(0, -1, 0), chara.Torso.Size.Y * 6.5, {Character})
- if Hit then
- if not Void.Parent then
- Void.Parent = Character
- end
- for i, v in pairs(VoidParts) do
- v.CFrame = CFrame.new(chara.Torso.Position.X, EndPosition.Y, chara.Torso.Position.Z) * CFrame.Angles(0, Angle + i, 0)
- end
- else
- Void.Parent = nil
- end
- wait()
- end
- end)
- ------------------------------------------------------------
- Me = game.Players.LocalPlayer
- player = Me
- char = Me.Character
- chara = char
- larm = char["Left Arm"]
- rarm = char["Right Arm"]
- lleg = char["Left Leg"]
- rleg = char["Right Leg"]
- torso = char.Torso
- hed = char.Head
- mouse = player:GetMouse()
- lght = game.Lighting
- lichtact = false
- moosicact = false
- gotsagofest = true
- chara.Humanoid.MaxHealth = math.huge + 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
- chara.Humanoid.Health = math.huge + 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
- hed.BrickColor = BrickColor.new("Really black")
- torso.BrickColor = BrickColor.new("Really black")
- larm.BrickColor = BrickColor.new("Really black")
- rarm.BrickColor = BrickColor.new("Really black")
- lleg.BrickColor = BrickColor.new("Really black")
- rleg.BrickColor = BrickColor.new("Really black")
- hat=Instance.new("Part",chara)
- hat.Size = Vector3.new(1, 1, 1)
- hatm = Instance.new("SpecialMesh",hat)
- hatm.MeshType = "FileMesh"
- hatm.MeshId = "http://www.roblox.com/asset/?id=495214258"
- hatm.TextureId = "http://www.roblox.com/asset/?id=412059413"
- hatw = Instance.new("Weld",hat)
- hatw.Part0 = hat
- hatw.Part1 = chara.Head
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- Mouse = player:GetMouse()
- for i,v in pairs(chara:children()) do
- if v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("Pants") then
- v:Destroy()
- end
- end
- char.Head.face:Destroy()
- local Orbd = Instance.new("Part", char)
- Orbd.Name = "Orbd"
- Orbd.Shape = Enum.PartType.Ball
- Orbd.CanCollide = false
- Orbd.BrickColor = BrickColor.new("Really red")
- Orbd.Transparency = 0
- Orbd.Material = "Neon"
- Orbd.Size = Vector3.new(0.1, 0.1, 0.1)
- Orbd.TopSurface = Enum.SurfaceType.Smooth
- Orbd.BottomSurface = Enum.SurfaceType.Smooth
- local Weld = Instance.new("Weld", Orbd)
- Weld.Part0 = char.Head
- Weld.Part1 = Orbd
- Weld.C1 = CFrame.new(-0.2, -0.2, 0.5)
- local glov = Instance.new("PointLight", Orbd)
- glov.Brightness = 0.25
- glov.Range = 20
- glov.Color = Color3.new(255, 0, 0)
- local Orbvc = Instance.new("Part", char)
- Orbvc.Name = "Orbvc"
- Orbvc.Shape = Enum.PartType.Ball
- Orbvc.CanCollide = false
- Orbvc.BrickColor = BrickColor.new("Really red")
- Orbvc.Transparency = 0
- Orbvc.Material = "Neon"
- Orbvc.Size = Vector3.new(0.1, 0.1, 0.1)
- Orbvc.TopSurface = Enum.SurfaceType.Smooth
- Orbvc.BottomSurface = Enum.SurfaceType.Smooth
- local Weld = Instance.new("Weld", Orbvc)
- Weld.Part0 = char.Head
- Weld.Part1 = Orbvc
- Weld.C1 = CFrame.new(0.2, -0.2, 0.5)
- local glo = Instance.new("PointLight", Orbvc)
- glo.Brightness = 0.25
- glo.Range = 20
- glo.Color = Color3.new(1, 0, 0)
- local IsFreeFalling = false
- local SpinPart = Instance.new('Part')
- SpinPart.Transparency = 1
- SpinPart.Size = Vector3.new(100,1,100)
- SpinPart.CanCollide = false
- SpinPart.FormFactor = 'Custom'
- local FX = Instance.new('ParticleEmitter',SpinPart)
- FX.Color,FX.Size,FX.Lifetime,FX.Rate,FX.Speed,FX.EmissionDirection,FX.Transparency,FX.LockedToPart,FX.Texture,FX.VelocityInheritance = ColorSequence.new({ColorSequenceKeypoint.new(0, BrickColor.new("Really black").Color, 0), ColorSequenceKeypoint.new(1, BrickColor.new("Really red").Color, 0)}), NumberSequence.new(2), NumberRange.new(3.75,3.75), 125, NumberRange.new(5,5), "Top", NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.25,0,0),NumberSequenceKeypoint.new(0.9,0,0),NumberSequenceKeypoint.new(0.975,1,0),NumberSequenceKeypoint.new(1,1,0)}), false, "rbxassetid://386837338",-0.1
- local FX = Instance.new('ParticleEmitter',SpinPart)
- FX.Color,FX.Size,FX.Lifetime,FX.Rate,FX.Speed,FX.EmissionDirection,FX.Transparency,FX.LockedToPart,FX.Texture,FX.VelocityInheritance = ColorSequence.new({ColorSequenceKeypoint.new(0, BrickColor.new("Really black").Color, 0), ColorSequenceKeypoint.new(1, BrickColor.new("Really red").Color, 0)}), NumberSequence.new(2), NumberRange.new(3.75,3.75), 125, NumberRange.new(5,5), "Top", NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.25,0,0),NumberSequenceKeypoint.new(0.9,0,0),NumberSequenceKeypoint.new(0.975,1,0),NumberSequenceKeypoint.new(1,1,0)}), false, "rbxassetid://418573253",0.1
- do
- local tspin = Instance.new('BodyAngularVelocity')
- tspin.angularvelocity = Vector3.new(0,1,0)
- tspin.maxTorque =Vector3.new(math.huge,math.huge,math.huge)
- tspin.Parent = SpinPart
- end
- local SpinPos = Instance.new('BodyPosition')
- SpinPos.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- SpinPos.Parent = SpinPart
- function Equipped()
- IsEquipped = true
- local MyTorso = char.Torso
- if MyTorso then
- spawn(function()
- local startTime = tick()
- SpinPart.CFrame = CFrame.new(MyTorso.CFrame.p+Vector3.new(0,-2.8,0))
- SpinPart.Parent = MyTorso
- local fadeIn = true
- while IsEquipped do
- if not IsFreeFalling then
- SpinPos.position = MyTorso.CFrame.p+Vector3.new(0,-2.8,0)
- end
- wait()
- end
- SpinPart.Parent = nil
- end)
- end
- end
- wait(0.01)
- Equipped()
- function start()
- print("Darkness falls across the battlefield...")
- wait()
- print("----------------------------------------")
- wait()
- print(" - Ender booted up. -")
- wait()
- print("- Ender written by yeox769. -")
- i = 0
- while i<1 do
- wait()
- i = i + 0.01
- l.Contrast,l.Saturation,l.Brightness = l.Contrast + 0.02, l.Saturation - 0.0075, l.Brightness + 0.00375
- l.TintColor = Color3.new(1,1-i,1-i)
- end
- end
- delay(0,start)
- TC = chara.HumanoidRootPart.RootJoint
- HC = chara.Torso.Neck
- RAC = chara.Torso["Right Shoulder"]
- LAC = chara.Torso["Left Shoulder"]
- RLC = chara.Torso["Right Hip"]
- LLC = chara.Torso["Left Hip"]
- TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- RW = Instance.new("Weld",HC.Parent)
- RW.Part1 = HC.Parent
- RW.Part0 = chara["Right Arm"]
- RW.C0 = RWF
- LW = Instance.new("Weld",HC.Parent)
- LW.Part1 = HC.Parent
- LW.Part0 = chara["Left Arm"]
- LW.C0 = LWF
- RLW = nil
- LLW = nil
- function clerp(a,b,c)
- return a:lerp(b,c)
- end
- TC.C0 = TCF
- HC.C0 = HCF
- RW.C0 = RWF
- LW.C0 = LWF
- --Idle Clerp--
- ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(10))
- IHCF = HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,math.rad(-10))
- IRWF = RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-2))
- ILWF = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2))
- TC.C0 = ITCF
- HC.C0 = IHCF
- RW.C0 = IRWF
- LW.C0 = ILWF
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- function BurningEff(part)
- local eff1 = Instance.new("ParticleEmitter",part)
- eff1.Size = NumberSequence.new(20)
- eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
- eff1.LightEmission = 1
- eff1.Lifetime = NumberRange.new(20)
- eff1.Speed = NumberRange.new(0)
- eff1.Rate = 10000
- eff1.Texture = "rbxassetid://347504241"
- eff1.Acceleration = Vector3.new(0,10,0)
- eff1.Color = ColorSequence.new(Color3.new(1,0,0))
- local eff2 = Instance.new("ParticleEmitter",part)
- eff2.Size = NumberSequence.new(1)
- eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
- eff2.LightEmission = 1
- eff2.Lifetime = NumberRange.new(1)
- eff2.Speed = NumberRange.new(0)
- eff2.Rate = 100
- eff2.Texture = "rbxassetid://347504259"
- eff2.Acceleration = Vector3.new(0,10,0)
- eff2.Color = ColorSequence.new(Color3.new(1,0,0))
- local eff3 = Instance.new("ParticleEmitter",part)
- eff3.Size = NumberSequence.new(1)
- eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
- eff3.LightEmission = 1
- eff3.Lifetime = NumberRange.new(1)
- eff3.Speed = NumberRange.new(0)
- eff3.Rate = 100
- eff3.Texture = "rbxasset://textures/particles/fire_main.dds"
- eff3.Acceleration = Vector3.new(0,10,0)
- eff3.Color = ColorSequence.new(Color3.new(1,0,0))
- end
- -----------------------------------------------
- Me = game.Players.LocalPlayer
- player = Me
- char = Me.Character
- root = char.HumanoidRootPart
- chara = char
- larm = char["Left Arm"]
- rarm = char["Right Arm"]
- lleg = char["Left Leg"]
- rleg = char["Right Leg"]
- torso = char.Torso
- hed = char.Head
- mouse = player:GetMouse()
- lght = game.Lighting
- lichtact = false
- moosicact = false
- gotsagofest = true
- chara.Humanoid.MaxHealth = 999e+999
- chara.Humanoid.Health = 999e+999
- r = false
- local shirt = Instance.new("Shirt",chara)
- shirt.ShirtTemplate = "rbxassetid://519769931"
- local pants = Instance.new("Pants",chara)
- pants.PantsTemplate = "rbxassetid://519770250"
- local bg = Instance.new("BillboardGui",hed)
- bg.AlwaysOnTop = true
- local bgframe = Instance.new("Frame",bg)
- bgframe.BackgroundTransparency = 1
- bgframe.Size = UDim2.new(0,200,0,25)
- bgframe.Position = UDim2.new(0.5,-100,0.5,-12)
- local bgtxt = Instance.new("TextLabel",bgframe)
- bgtxt.Size = UDim2.new(0,200,0,25)
- bgtxt.Position = UDim2.new(0.5,-100,0.5,-12)
- bgtxt.BackgroundTransparency = 1
- bgtxt.TextColor3 = BrickColor.new("Really red").Color
- bgtxt.Font = "SciFi"
- bgtxt.TextScaled = true
- spawn(function()
- local txt1 = "Riku by navaltom02"
- local txt2 = "Make them suffer"
- local txt3 = "Welcome to the end!"
- for i=1,#txt1 do
- bgtxt.Text = txt1:sub(1,i)
- wait()
- end
- wait()
- for i=#txt1,1,-1 do
- bgtxt.Text = txt1:sub(1,i)
- wait()
- end
- wait()
- for i=1,#txt2 do
- bgtxt.Text = txt2:sub(1,i)
- wait()
- end
- wait()
- for i=#txt2,1,-1 do
- bgtxt.Text = txt2:sub(1,i)
- wait()
- end
- wait()
- for i=1,#txt3 do
- bgtxt.Text = txt3:sub(1,i)
- wait()
- end
- wait()
- for i=0,1,0.1 do
- bgtxt.TextTransparency = i
- wait()
- end
- bg:Destroy()
- end)
- wait(1)
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- New("ForceField",char,"ForceField",{Visible = false})
- local z1 = Instance.new("Sound",char)
- z1.Looped = false
- z1.SoundId = "rbxassetid://844632396"
- z1.Volume = 1.5
- local z2 = Instance.new("Sound",char)
- z2.Looped = true
- z2.SoundId = "rbxassetid://844627563"
- z2.Volume = 0.9
- wait(1.5)
- chara.Humanoid.WalkSpeed = 32
- chara.Humanoid.JumpPower = 75
- local naeeym = Instance.new("BillboardGui",chara)
- naeeym.Size = UDim2.new(0,100,0,40)
- naeeym.StudsOffset = Vector3.new(0,2,0)
- naeeym.Adornee = chara.Head
- local tecks = Instance.new("TextLabel",naeeym)
- tecks.BackgroundTransparency = 1
- tecks.BorderSizePixel = 0
- tecks.Text = "???"
- tecks.Font = "Fantasy"
- tecks.FontSize = "Size24"
- tecks.TextStrokeTransparency = 0
- tecks.TextColor3 = Color3.new(0,0,0)
- rrer = BrickColor.new("Really red")
- tecks.TextStrokeColor3 = rrer.Color
- tecks.Size = UDim2.new(1,0,0.5,0)
- local l = Instance.new("ColorCorrectionEffect",game.Lighting)
- l.Contrast,l.Saturation,l.Brightness = 420,-1,-1
- l.TintColor = Color3.new(1,0,0)
- game.Lighting.GeographicLatitude = 20000
- function music()
- z1:Play()
- chara.Humanoid.JumpPower = 0
- chara.Humanoid.WalkSpeed = 0
- wait(9.69)
- chara.Humanoid.JumpPower, chara.Humanoid.WalkSpeed = 75, 25
- l.Brightness, l.Contrast = 1, 1
- r = true
- tecks.Text = "Riku"
- z2:Play()
- i = 0
- while i < 1 do
- wait()
- l.Brightness = l.Brightness - 0.01
- l.Contrast = l.Contrast + 0.03
- i = i + 0.02
- end
- end
- delay(0,music)
- ------------------------------
- wait(1 / 60)
- Effects = { }
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local Mouse = Player:GetMouse()
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local Camera = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local attack = false
- local Anim = 'Idle'
- local attacktype = 1
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local Create = LoadLibrary("RbxUtility").Create
- Humanoid.MaxHealth = math.huge
- local spooky = Instance.new("Sound",Character)
- spooky.SoundId = "rbxassetid://"
- spooky.Looped = true
- spooky.Pitch = 1
- spooky.Volume = 1.1
- spooky:Stop()
- local spooky2 = Instance.new("Sound",Character)
- spooky2.SoundId = "rbxassetid://"
- spooky2.Looped = false
- spooky2.Pitch = 1
- spooky2.Volume = 1.4
- spooky2:Play()
- local m = Create("Model"){
- Parent = Character,
- Name = "WeaponModel",
- }
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Torso.Neck.C1 = CFrame.new(0, 0, 0)
- Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool == true then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- ArtificialHB = Create("BindableEvent", script){
- Parent = script,
- Name = "Heartbeat",
- }
- script:WaitForChild("Heartbeat")
- frame = 1 / 30
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- FindNearestTorso = function(pos)
- local list = (game.Workspace:children())
- local torso = nil
- local dist = 1000
- local temp, human, temp2 = nil, nil, nil
- for x = 1, #list do
- temp2 = list[x]
- if temp2.className == "Model" and temp2.Name ~= Character.Name then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
- local dohit = true
- if dohit == true then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso, dist
- end
- function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil then
- if hit.Parent.DebounceHit.Value == true then
- return
- end
- end
- local c = Create("ObjectValue"){
- Name = "creator",
- Value = game:service("Players").LocalPlayer,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- if HitSound ~= nil and HitPitch ~= nil then
- CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil then
- if block.className == "IntValue" then
- if block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- end
- end
- if blocked == false then
- h.Health = h.Health - Damage
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
- else
- h.Health = h.Health - (Damage / 2)
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
- local bodvol = Create("BodyVelocity"){
- velocity = angle * knockback,
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- local rl = Create("BodyAngularVelocity"){
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodvol, .5)
- game:GetService("Debris"):AddItem(rl, .5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity"){
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
- }
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, .5)
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, .5)
- elseif Type == "DarkUp" then
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- swait()
- Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
- end
- end))
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, 1)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition"){
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze" then
- local BodPos = Create("BodyPosition"){
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- local BodGy = Create("BodyGyro") {
- maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
- P = 20e+003,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame,
- }
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue"){
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true,
- }
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Create("ObjectValue"){
- Name = "creator",
- Value = Player,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- end
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 1))
- local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui"){
- Size = UDim2.new(3, 0, 3, 0),
- Adornee = EffectPart,
- Parent = EffectPart,
- }
- local TextLabel = Create("TextLabel"){
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- Font = "SciFi",
- TextColor3 = Color,
- TextScaled = true,
- Parent = BillboardGui,
- }
- game.Debris:AddItem(EffectPart, (Time))
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= Magnitude and c.Name ~= Player.Name then
- Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
- end
- end
- end
- end
- end
- function UltraMagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) -- kek
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= Magnitude and c.Name ~= Player.Name then
- Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
- head.Size = head.Size + Vector3.new(0.01, 0.01, 0.01)
- end
- end
- end
- end
- end
- EffectModel = Create("Model"){
- Parent = Character,
- Name = "Effects",
- }
- Effects = {
- Block = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end;
- };
- Cylinder = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Head = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Sphere = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Elect = {
- Create = function(cff, x, y, z)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
- prt.Anchored = true
- prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
- prt.CFrame = CFrame.new(prt.Position)
- game:GetService("Debris"):AddItem(prt, 2)
- local xval = math.random() / 2
- local yval = math.random() / 2
- local zval = math.random() / 2
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
- table.insert(Effects, {
- prt,
- "Elec",
- 0.1,
- x,
- y,
- z,
- xval,
- yval,
- zval
- })
- end;
- };
- Ring = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Wave = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Break = {
- Create = function(brickcolor, cframe, x1, y1, z1)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Shatter",
- num,
- prt.CFrame,
- math.random() - math.random(),
- 0,
- math.random(50, 100) / 100
- })
- end;
- };
- Fire = {
- Create = function(brickcolor, cframe, x1, y1, z1, delay)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Fire",
- delay,
- 1,
- 1,
- 1,
- msh
- })
- end;
- };
- FireWave = {
- Create = function(brickcolor, cframe, x1, y1, z1)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local d = Create("Decal"){
- Parent = prt,
- Texture = "rbxassetid://26356434",
- Face = "Top",
- }
- local d = Create("Decal"){
- Parent = prt,
- Texture = "rbxassetid://26356434",
- Face = "Bottom",
- }
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "FireWave",
- 1,
- 30,
- math.random(400, 600) / 100,
- msh
- })
- end;
- };
- Lightning = {
- Create = function(p0, p1, tym, ofs, col, th, tra, last)
- local magz = (p0 - p1).magnitude
- local curpos = p0
- local trz = {
- -ofs,
- ofs
- }
- for i = 1, tym do
- local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
- local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
- local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
- li.Material = "Neon"
- if tym == i then
- local magz2 = (curpos - p1).magnitude
- li.Size = Vector3.new(th, th, magz2)
- li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
- table.insert(Effects, {
- li,
- "Disappear",
- last
- })
- else
- do
- do
- li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
- curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
- game.Debris:AddItem(li, 10)
- table.insert(Effects, {
- li,
- "Disappear",
- last
- })
- end
- end
- end
- end
- end
- };
- EffectTemplate = {
- };
- }
- function hahahohoho(Part, Dmg)
- sp = Part.Position
- dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
- local hit, pos = rayCast(sp, dirr.lookVector, 500, Character)
- local las = Instance.new("Part", Character)
- las.Anchored = true
- las.Locked = true
- las.CanCollide = false
- las.TopSurface = 0
- las.BottomSurface = 0
- las.BrickColor = BrickColor.new("Really black")
- las.Size = Vector3.new(1, 1, 1)
- las.CFrame = CFrame.new((Part.Position + pos) / 2, pos) * CFrame.Angles(math.rad(90), 0, 0)
- local msh = Instance.new("SpecialMesh", las)
- mag = (Part.Position - pos).magnitude
- msh.Scale = Vector3.new(0.1, mag, 0.1)
- coroutine.resume(coroutine.create(function(Part, Mesh)
- for i = 0, 3, 0.1 do
- wait()
- Part.Transparency = Part.Transparency + 0.03
- Mesh.Scale = Mesh.Scale + Vector3.new(0.5, 0.7, 0.5)
- end
- Part.Parent = nil
- end), las, msh)
- if pos ~= nil then
- local las2 = Instance.new("Part", Character)
- las2.Anchored = true
- las2.Locked = true
- las2.CanCollide = false
- las2.TopSurface = 0
- las2.BottomSurface = 0
- las2.Transparency = 1
- las2.BrickColor = BrickColor.new("Really black")
- las2.Size = Vector3.new(1, 1, 1)
- las2.CFrame = CFrame.new(pos) * CFrame.Angles(math.rad(90), 0, 0)
- local msh = Instance.new("SpecialMesh", las2)
- msh.MeshType = "Sphere"
- mag = (Part.Position - pos).magnitude
- msh.Scale = Vector3.new(0.1, 0.1, 0.1)
- Effects.Ring.Create(BrickColor.new("Really black"), las2.CFrame * CFrame.Angles(math.random(-4,4),math.random(-4,4),math.random(-4,4)), 8, 8, 8, 2.5, 2.5, 2.5, 0.04)
- Effects.Sphere.Create(BrickColor.new("Really black"), las2.CFrame, 6, 6, 6, 9, 9, 9, 0.04)
- CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=228343252", las2, 1.2, 0.9)
- UltraMagnitudeDamage(las2, 20, 100, 100, math.random(1, 5), "Normal", "http://www.roblox.com/asset/?id=228343252", 1)
- coroutine.resume(coroutine.create(function(Part, Mesh)
- for i = 0, 3, 0.1 do
- wait()
- Part.Transparency = Part.Transparency + 1
- Mesh.Scale = Mesh.Scale + Vector3.new(0, 0, 0)
- end
- Part.Parent = nil
- end), las2, msh)
- end
- if hit ~= nil and pos ~= nil then
- if hit.Parent.className == "Hat" then
- hit:BreakJoints()
- hit.Velocity = Vector3.new(math.random(-5, 5), 20, math.random(-5, 5))
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
- hit.Parent.Humanoid:TakeDamage(Dmg)
- end
- end
- end
- function attackone()
- attack = true
- local ref = New("Part",Character,"ref",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-63.7534943, 0.396845818, -9.92230225, -1, 0, 0, 0, 0.00350399944, -0.999993861, 0, -0.999993861, -0.00350399921),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- mot = New("Weld",ref,"mot",{Part0 = ref,Part1 = RootPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.00350399944, -0.999993861, 0, -0.999993861, -0.00350399921),C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .3, false)
- end
- hahahohoho(ref, 100)
- CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", Character, 1, .6)
- attack = false
- wait(1)
- ref:Remove()
- end
- function spamrein()
- attack = true
- local ref1 = New("Part",EffectModel,"ref1",{Anchored = true,CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- local ref2 = New("Part",EffectModel,"ref2",{Anchored = true,CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .3, false)
- end
- for i = 0, 8 do
- swait(3)
- ref1.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),50,math.random(-30,30)) * CFrame.Angles(math.rad(math.random(-25,25)),0,math.rad(math.random(-25,25)))
- hahahohoho(ref1, 100)
- CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", ref1, 1, .6)
- wait(.05)
- ref2.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),50,math.random(-30,30)) * CFrame.Angles(math.rad(math.random(-25,25)),0,math.rad(math.random(-25,25)))
- hahahohoho(ref2, 100)
- CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", ref2, 1, .6)
- wait(.05)
- end
- attack = false
- end
- function spamspin()
- attack = true
- local ref3 = New("Part",EffectModel,"ref3",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- local ref4 = New("Part",EffectModel,"ref4",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-55.9288712, 27.204155, -45.3742905, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- moter1 = New("Motor",ref3,"mot",{Part0 = LeftArm,Part1 = ref3,})
- moter2 = New("Motor",ref4,"mot",{Part0 = RightArm,Part1 = ref4,})
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49998045, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(2.00000072, 0.500000775, 0, -6.33299351e-007, -1.00000048, 0, 1.00000048, -6.33299351e-007, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.99999726, 0.500000834, 0, -2.38418579e-007, 1.0000006, 0, -1.00000048, -3.7252903e-007, 0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.99999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5, -1.99999619, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- coroutine.wrap(function()
- for i = 0, 18 do
- swait(2)
- hahahohoho(ref3, 100)
- hahahohoho(ref4, 100)
- CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=156572165", RootPart, 1, .6)
- end
- end)()
- for i = 0, 7, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.500001013, 7.62939453e-006, 1, 0, 0, 0, 0, -1, 0, 1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(sine * 25), 0),
- CFrame.new(0, 1.4999733, -9.00030136e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(2, 0.499996185, -1.40070915e-005, 0, -1, 0, 1, 0, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.99999237, 0.499996185, -1.40070915e-005, 0, 1, 0, -1, 0, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.99998474, -2.02655792e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.5, -1.99998474, -2.02655792e-006, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- moter1.C0 = clerp(moter1.C0, CFrame.new(1.07955907e-006, -1.10001731, 0, 1.0000031, 3.13669534e-006, 0, -3.00258512e-006, 1.00000322, -0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- moter2.C0 = clerp(moter2.C0, CFrame.new(-2.22906492e-005, -1.10000086, 1.03585517e-005, -1.00000048, 4.00841191e-006, -1.0410066e-011, 4.00840509e-006, 1.00000215, -2.61515493e-006, 1.75116303e-014, -2.48104334e-006, -1.00000179) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
- end
- attack = false
- end
- function criufkinbastard()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- coroutine.wrap(function()
- attack = true
- local txt = Instance.new("BillboardGui", Character)
- txt.Adornee = game.Players.LocalPlayer.Character.Head
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 1
- text.BackgroundTransparency = 1
- text.TextStrokeTransparency = 1
- text.Font = "Garamond"
- text.TextStrokeColor3 = Color3.new(1,0,0)
- text.TextColor3 = Color3.new(0, 0, 0)
- text.Text = "greetings...my friend..."
- local text2 = Instance.new("TextLabel", txt)
- text2.Size = UDim2.new(10, 0, 7, 0)
- text2.FontSize = "Size24"
- text2.TextScaled = true
- text2.TextTransparency = 1
- text2.BackgroundTransparency = 1
- text2.TextStrokeTransparency = 1
- text2.Font = "Garamond"
- text2.TextStrokeColor3 = Color3.new(1,0,0)
- text2.TextColor3 = Color3.new(0, 0, 0)
- text2.Text = "I am the overlord!."
- local text3 = Instance.new("TextLabel", txt)
- text3.Size = UDim2.new(10, 0, 7, 0)
- text3.FontSize = "Size24"
- text3.TextScaled = true
- text3.TextTransparency = 1
- text3.BackgroundTransparency = 1
- text3.TextStrokeTransparency = 1
- text3.Font = "Garamond"
- text3.TextStrokeColor3 = Color3.new(1,1,1)
- text3.TextColor3 = Color3.new(1, 0, 0)
- text3.Text = "and i...will kill you"
- local text4 = Instance.new("TextLabel", txt)
- text4.Size = UDim2.new(10, 0, 7, 0)
- text4.FontSize = "Size24"
- text4.TextScaled = true
- text4.TextTransparency = 1
- text4.BackgroundTransparency = 1
- text4.TextStrokeTransparency = 1
- text4.Font = "Garamond"
- text4.TextStrokeColor3 = Color3.new(1,0,0)
- text4.TextColor3 = Color3.new(0, 0, 0)
- text4.Text = "If you have to run.....this is the moment."
- local text5 = Instance.new("TextLabel", txt)
- text5.Size = UDim2.new(10, 0, 7, 0)
- text5.FontSize = "Size24"
- text5.TextScaled = true
- text5.TextTransparency = 1
- text5.BackgroundTransparency = 1
- text5.TextStrokeTransparency = 1
- text5.Font = "Garamond"
- text5.TextStrokeColor3 = Color3.new(1,0,0)
- text5.TextColor3 = Color3.new(0, 0, 0)
- text5.Text = "Run..."
- CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
- while wait() and text and text.TextTransparency >= 0 do
- text.TextStrokeTransparency = text.TextStrokeTransparency - .05
- text.TextTransparency = text.TextTransparency - .05
- end
- wait(10)
- while wait() and text and text.TextTransparency <= 1 do
- text.TextStrokeTransparency = text.TextStrokeTransparency + .05
- text.TextTransparency = text.TextTransparency + .05
- text.Position = text.Position - UDim2.new(0,0,0,1)
- text.Rotation = text.Rotation - 1
- text2.TextStrokeTransparency = text2.TextStrokeTransparency - .05
- text2.TextTransparency = text2.TextTransparency - .05
- end
- CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
- wait(5)
- while wait() and text2 and text2.TextTransparency <= 1 do
- text2.TextStrokeTransparency = text2.TextStrokeTransparency + .05
- text2.TextTransparency = text2.TextTransparency + .05
- text2.Position = text2.Position - UDim2.new(0,0,0,1)
- text2.Rotation = text2.Rotation - 1
- text3.TextStrokeTransparency = text3.TextStrokeTransparency - .05
- text3.TextTransparency = text3.TextTransparency - .05
- end
- wait(5)
- while wait() and text3 and text3.TextTransparency <= 1 do
- text3.TextStrokeTransparency = text3.TextStrokeTransparency + .05
- text3.TextTransparency = text3.TextTransparency + .05
- text3.Position = text3.Position - UDim2.new(0,0,0,1)
- text3.Rotation = text3.Rotation - 1
- text4.TextStrokeTransparency = text4.TextStrokeTransparency - .05
- text4.TextTransparency = text4.TextTransparency - .05
- end
- CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=191006402", RootPart, 3, 1)
- wait(3)
- while wait() and text4 and text4.TextTransparency <= 1 do
- text4.TextStrokeTransparency = text4.TextStrokeTransparency + .05
- text4.TextTransparency = text4.TextTransparency + .05
- text4.Position = text4.Position - UDim2.new(0,0,0,1)
- text4.Rotation = text4.Rotation - 1
- text5.TextStrokeTransparency = text5.TextStrokeTransparency - .05
- text5.TextTransparency = text5.TextTransparency - .05
- end
- wait(3)
- while wait() and text5 and text5.TextTransparency <= 1 do
- text5.TextStrokeTransparency = text5.TextStrokeTransparency + .05
- text5.TextTransparency = text5.TextTransparency + .05
- text5.Position = text5.Position - UDim2.new(math.random(-0.3,0.3),math.random(-5,5),math.random(-0.3,0.3),math.random(-5,5))
- text5.Rotation = text5.Rotation - 1
- spooky2.Volume = spooky2.Volume - 0.05
- end
- spooky:Play()
- text:Remove()
- text2:Remove()
- text3:Remove()
- text4:Remove()
- text5:Remove()
- end)()
- for i = 0, 51, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0, -2.01999879, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.100006104, 1.64000487, -3.69548798e-006, 1, 0, 0, 0, 0.891016304, 0.453991741, 0, -0.453991264, 0.891006649) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.950131536, 1.02000284, -0.609929323, 0.838677049, 0.544629633, 1.82800829e-006, 0.280503511, -0.431945533, -0.857170463, -0.466839492, 0.718889475, -0.515032887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.01001573, 1.08999729, -0.649995506, 0.743156135, -0.669118106, 5.49372999e-006, -0.324383408, -0.360283762, -0.874626398, 0.585230291, 0.649981976, -0.484797955) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -0.169970214, -1.0898838, 1, 0, -0, 0, 0.681989849, -0.73136127, 0, 0.73136127, 0.681989849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.549926758, -0.149971083, -1.56995773, 1, 0, -0, 0, 0.1736864, -0.984801233, 0, 0.984801233, 0.1736864) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .1, false)
- end
- for i = 0, 5, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0.0981965065, -1.31277657, -0.54871279, 0.808166862, -0.196366429, -0.555253625, 0.575620949, 0.0638884008, 0.815217137, -0.124606982, -0.97844708, 0.164665088) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.0582410395, 1.44129539, 0.0734805763, 0.934516311, 2.10106373e-006, 0.355920374, 0.121625632, 0.939799547, -0.319349885, -0.334494382, 0.34172672, 0.878257751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.759254932, 0.609628737, -1.37132394, 0.887519658, 0.460769922, 5.49852848e-006, 0.0474366248, -0.0913589746, -0.994687736, -0.458321631, 0.882805049, -0.102940291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.522138, 1.1763432, -0.233797818, 0.654816628, 0.623950124, -0.426499099, 0.0684916377, -0.610978603, -0.788678765, -0.752677917, 0.487228334, -0.44281441) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.55273962, -1.8331666, -0.853646398, 0.994906187, -2.04518437e-006, 0.100805953, 0.0784842819, 0.627576351, -0.774589181, -0.0632617697, 0.778555214, 0.624379694) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.663739324, -1.72484899, -0.279409111, 0.936938882, 0.336636096, -0.0939244553, -0.32966578, 0.762038469, -0.557331204, -0.116043702, 0.553148985, 0.824960768) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .05, false)
- end
- for i = 0, 5, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.446419, -0.149725705, 1, 0, 0, 0, 0.941553891, 0.336862653, 0, -0.336862624, 0.94155395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .05, false)
- end
- for i = 0, 2 do
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(5.51342964e-007, 1.44641995, -0.149724424, 0.782274365, -6.99407749e-008, -0.622934043, 0.209844083, 0.941553354, 0.263520032, 0.586525559, -0.336863965, 0.736553073) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- for i = 0, 1, 0.1 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(0, -0.0442145504, -0.205582842, 1, 0, 0, 0, 0.911569417, 0.411146224, 0, -0.411146194, 0.911569417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.78813934e-007, 1.4464184, -0.149724573, 0.864948869, -2.57774872e-007, 0.501860023, -0.169061571, 0.941551089, 0.291375846, -0.472526848, -0.336870432, 0.81439352) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.62312984, 0.0405562371, -0.126877204, 0.987515867, -0.155472979, 0.0253103133, 0.157519713, 0.974684954, -0.158671856, -3.94880772e-007, 0.160677835, 0.987006903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.62933123, 0.039488472, -0.0764760524, 0.982997239, 0.18362084, -1.8598115e-008, -0.180242166, 0.964909732, -0.190950453, -0.0350624695, 0.187703788, 0.981599748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.50331378, -2.03031564, -0.386381626, 0.994077384, -0.100885771, 0.0404032469, 0.108675495, 0.922825038, -0.369572222, -5.43892384e-007, 0.371774226, 0.92832315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.610246539, -1.9785527, -0.533763826, 0.991280973, 0.13176541, 7.16808756e-007, -0.118788213, 0.893654883, -0.432747513, -0.057021793, 0.428974301, 0.901515245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- }, .3, false)
- end
- end
- local Anim = false
- Humanoid.WalkSpeed = 16
- Humanoid.JumpPower = 50
- attack = false
- end
- criufkinbastard()
- Mouse.Button1Down:connect(function()
- if attack == false and attacktype == 1 then
- attackone()
- end
- end)
- Mouse.KeyDown:connect(function(k)
- k = k:lower()
- if attack == false and k == 'z' then
- spamrein()
- elseif attack == false and k == 'x' then
- spamspin()
- end
- end)
- while true do
- swait()
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("Part") then
- v.Material = "SmoothPlastic"
- elseif v:IsA("Accessory") then
- v:WaitForChild("Handle").Material = "SmoothPlastic"
- end
- end
- player = game.Players.LocalPlayer
- chara = player.Character
- debby = game:GetService("Debris")
- --Outfit--
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- --Animations--
- function LoadAnim(id)
- local anim = New("Animation",chara,"Animation",{AnimationId = "rbxassetid://"..id})
- local realanim = chara.Humanoid:LoadAnimation(anim)
- return realanim
- end
- HoldA = LoadAnim(69427262)
- Swing1A = LoadAnim(186934658)
- Swing2A = LoadAnim(94160738)
- Swing3A = LoadAnim(186934910)
- Swing4A = LoadAnim(74909528)
- RaiseA = LoadAnim(83994319)
- RiseA = LoadAnim(169638954)
- HoldA:Play()
- wait(2)
- --Fly--
- local truflyposy = chara.Torso.Position.Y+7
- local flyposy = truflyposy
- local bodfly = Instance.new("BodyPosition", chara.Torso)
- bodfly.Name = "Fly"
- bodfly.maxForce = Vector3.new(0,10000,0)
- bodfly.Position = Vector3.new(0,flyposy,0)
- --------------------------------------------------
- if 0 < #Effects then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local Delay = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if Thing[2] == "Shoot" then
- local Look = Thing[1]
- local move = 30
- if Thing[8] == 3 then
- move = 10
- end
- local hit, pos = rayCast(Thing[4], Thing[1], move, m)
- if Thing[10] ~= nil then
- da = pos
- cf2 = CFrame.new(Thing[4], Thing[10].Position)
- cfa = CFrame.new(Thing[4], pos)
- tehCF = cfa:lerp(cf2, 0.2)
- Thing[1] = tehCF.lookVector
- end
- local mag = (Thing[4] - pos).magnitude
- Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
- if Thing[8] == 2 then
- Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
- end
- Thing[4] = Thing[4] + Look * move
- Thing[3] = Thing[3] - 1
- if 2 < Thing[5] then
- Thing[5] = Thing[5] - 0.3
- Thing[6] = Thing[6] - 0.3
- end
- if hit ~= nil then
- Thing[3] = 0
- if Thing[8] == 1 or Thing[8] == 3 then
- Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
- else
- if Thing[8] == 2 then
- Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
- if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
- ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
- ref.Anchored = true
- ref.CFrame = CFrame.new(pos)
- CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
- game:GetService("Debris"):AddItem(ref, 0.2)
- Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
- Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
- MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
- end
- end
- end
- ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
- ref.Anchored = true
- ref.CFrame = CFrame.new(pos)
- Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
- game:GetService("Debris"):AddItem(ref, 1)
- end
- if Thing[3] <= 0 then
- table.remove(Effects, e)
- end
- end
- do
- do
- if Thing[2] == "FireWave" then
- if Thing[3] <= Thing[4] then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
- Thing[3] = Thing[3] + 1
- Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
- if Thing[1].Transparency <= 1 then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Fire" then
- Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Cylinder" then
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Blood" then
- Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Elec" then
- Mesh = Thing[10]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- end
- end
- end
- end
- end
- end
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement