Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --updates 7/25/16 tyrantv
- --removed unnecessary stuff (sound tables and stuff)
- --jeff told me to make his ult cool down longer
- --10/7/16 made effeciency update, jeff
- module = Instance.new("ModuleScript",game.ReplicatedStorage)
- module.Name = "TagService"
- event = Instance.new("Folder",game.ReplicatedStorage)
- event.Name = "Remotes"
- event2 = Instance.new("RemoteEvent",event)
- event2.Name = "HealthEvent"
- wait(1)
- ---script.Parent=nil
- Character=game.Players.localPlayer.Character
- ----Character.Animate:destroy()
- local Character = game.Players.localPlayer.Character
- local Humanoid=Character.Humanoid
- script.Parent=nil
- wait()
- if Character:FindFirstChild"Animate" then
- Character.Animate:Destroy()
- end
- --[[Rigormortis class created by Brannon1964802.]]--
- TagService = game.ReplicatedStorage.TagService
- Meshes = {
- Blast = '20329976',
- Crown = '1323306',
- Ring = '3270017',
- Claw = '10681506',
- Crystal = '9756362',
- Coil = '9753878',
- Cloud = '1095708',
- }
- local Player=game.Players.LocalPlayer
- local Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- local Humanoid=Character.Humanoid
- --m=Instance.new("Model",Character)
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- local it=Instance.new
- local rad=math.rad
- local cos=math.cos
- local sin=math.sin
- local mr=math.random
- local co_create=coroutine.create
- local co_resume=coroutine.resume
- local kill_connections={}
- attacktype=1
- local vt=Vector3.new
- local cf=CFrame.new
- local euler=CFrame.fromEulerAnglesXYZ
- local angles=CFrame.Angles
- local math_rad_0=0
- local math_rad_15=rad(15)
- local math_rad_90=math.pi/2
- local math_rad_30=math.pi/6
- local math_rad_60=math.pi/3
- local math_rad_45=math.pi/4
- local kill_connections={}
- --m=Instance.new("Model",Character)
- vt=Vector3.new
- cf=cf
- euler=euler
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- mana=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local gun=false
- local shoot=false
- player=nil
- mana=0
- if Humanoid:FindFirstChild("Animator")then
- Humanoid:FindFirstChild("Animator"):Destroy()
- end
- print("Rigormortis loaded.")
- mouse=Player:GetMouse()
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Motor"), Instance.new("Motor")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- Colorpart1=Torso.BrickColor.r
- Colorpart2=Torso.BrickColor.g
- Colorpart3=Torso.BrickColor.b
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* euler(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* euler(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- Mouse=Player:GetMouse()
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = cf()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- local fat = Instance.new("BindableEvent", script)
- fat.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- local frame = 1 / 27
- local tf = 0
- local allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
- local tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
- local lastframe = tick()
- local floor = math.floor
- local Fire = fat.Fire
- local FatEvent = fat.Event
- kill_connections[1]=game:GetService("RunService").Heartbeat:connect(function(s, p) --herp derp
- tf = tf + s
- if tf >= frame then
- -- if allowframeloss then
- -- Fire(fat)
- -- lastframe = tick()
- -- else
- --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
- for i = 1, floor(tf / frame) do
- Fire(fat)
- end
- lastframe = tick()
- end
- tf = (tossremainder and 0) or tf - frame * floor(tf / frame)
- -- end
- end)
- --To use: FatEvent:FatEvent:wait() or FatEvent:connect(function() asdcode end)
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- local m=Instance.new("Model",RightArm)
- m.Name = "Rigormortis' Right Glove"
- GloveHandle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- GloveHandleweld=weld(m,Character["Right Arm"],GloveHandle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(1.1920929e-005, 0.000109910965, 0.00443553925, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1))
- mesh("SpecialMesh",GloveHandle,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5.5, 5.25, 5.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Br. yellowish orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0, 0.620000124, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5.5, 1, 5.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0, 0.869999886, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5.5, 1.5, 5.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.0184423923, 0.00541090965, 1, 0, 0, 0, 0.258819193, -0.965925813, 0, 0.965925813, 0.258819193))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Br. yellowish orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.00707101822, 0.00707101822, 0.465586424, 0.707106769, 0.707106769, 0, -0.707106769, 0.707106769, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 5, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Br. yellowish orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.00999999046, 0, 0.465586424, 0, 0.99999994, 0, -0.99999994, 0, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 5, 1))
- GloveEyePart=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Really red","GloveEyePart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- GloveEyePartweld=weld(m,GloveHandle,GloveEyePart,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0, 1.00999999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- GloveEyePartmesh=mesh("SpecialMesh",GloveEyePart,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 4))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.0192146301, 0.000453591347, 1, 0, 0, 0, 0.50000006, -0.866025388, 0, 0.866025388, 0.50000006))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Br. yellowish orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0, 0.00999999046, 0.465586424, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 5, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.549413562, 0.00707125664, 0.00707101822, 1.3767874e-007, -6.21808951e-008, -1, -0.70710659, 0.707106948, -1.4132209e-007, 0.707106948, 0.70710659, 5.33850653e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.0186772346, -0.004535079, 1, 0, 0, 0, 0.707106829, -0.707106709, 0, 0.707106709, 0.707106829))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.549413681, 0.00999999046, 0, -4.37113883e-008, -9.70964606e-008, -1, 0, 1, -9.70964606e-008, 1, -4.24422121e-015, -4.37113883e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 0.75, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.00921452045, 0.0168669224, 1, 0, 0, 0, -0.499999851, -0.866025507, 0, 0.866025507, -0.499999851))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.0132659674, 0.0139074326, 1, 0, 0, 0, -0.258818924, -0.965925872, 0, 0.965925872, -0.258818924))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.0168671608, -0.00921428204, 1, 0, 0, 0, 0.866025448, -0.499999911, 0, 0.499999911, 0.866025448))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- LaserReferencePart=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Really black","LaserReferencePart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- LaserReferencePartweld=weld(m,GloveHandle,LaserReferencePart,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.980000019, 0, 0, -4.37113883e-008, 1, 0, -1, -4.37113883e-008, 0, 0, 0, 1))
- mesh("SpecialMesh",LaserReferencePart,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 4, 4))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.974999905, 0, 0, -4.37113883e-008, 1, 0, -1, -4.37113883e-008, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 5, 5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.549413681, 0.00707101822, -0.00707149506, -3.09086268e-008, -1.0640651e-007, -1, 0.707106948, 0.70710659, -9.70964535e-008, 0.70710659, -0.707106948, 5.33850901e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.549413562, 1.1920929e-007, 0.00999999046, 7.54979013e-008, 7.54978799e-008, -1, -1, 2.68220901e-007, -7.54978799e-008, 2.68220901e-007, 1, 7.54979013e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 0.75, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Br. yellowish orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.00707101822, 0.00707101822, 0.465586424, 0.707106709, -0.707106829, 0, 0.707106829, 0.707106709, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 5, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.0164134502, 0.00999999046, 1, 0, 0, 0, 7.54979013e-008, -1, 0, 1, 7.54979013e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, -0.00453495979, -0.0186769962, 1, 0, 0, 0, 0.707106709, 0.707106888, 0, -0.707106888, 0.707106709))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.000453591347, -0.0192143917, 1, 0, 0, 0, 0.866025329, 0.500000119, 0, -0.500000119, 0.866025329))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.00541114807, -0.0184421539, 1, 0, 0, 0, 0.965925813, 0.258819163, 0, -0.258819163, 0.965925813))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.00999999046, -0.0164134502, 1, 0, 0, 0, 1, 1.34110465e-007, 0, -1.34110465e-007, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,GloveHandle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.549999952, 0.0139074326, -0.0132658482, 1, 0, 0, 0, 0.965925872, -0.258818865, 0, 0.258818865, 0.965925872))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Finger1Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Finger1Handleweld=weld(m,Character["Right Arm"],Finger1Handle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.138371706, 1.14493585, -0.395564556, 0.965925813, 0.258819014, 0, -0.258819044, 0.965925694, 0, 0, 0, 1))
- mesh("SpecialMesh",Finger1Handle,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Finger1Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103527784, 0.38637054, 0, 0.866025388, -0.5, 0, 0.5, 0.866025388, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Finger1Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0249999762, 0.200000167, 0, 0.965925813, -0.258819044, 0, 0.258819044, 0.965925813, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Glove1Finger1ClawFinger=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Glove1Finger1ClawFinger",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove1Finger1ClawFingerweld=weld(m,Finger1Handle,Glove1Finger1ClawFinger,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103747845, 0.500191927, -0.00441360474, 0.866025388, -0.5, 0, 0.5, 0.866025388, 0, 0, 0, 1))
- mesh("SpecialMesh",Glove1Finger1ClawFinger,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.209999993, 0.5, 0.209999993))
- Finger2Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Finger2Handleweld=weld(m,Character["Right Arm"],Finger2Handle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.138371706, 1.14493585, 0.00143527985, 0.965925813, 0.258819014, 0, -0.258819044, 0.965925694, 0, 0, 0, 1))
- mesh("SpecialMesh",Finger2Handle,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Finger2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0249999762, 0.200000167, 0, 0.965925813, -0.258819044, 0, 0.258819044, 0.965925813, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Finger2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103527784, 0.38637054, 0, 0.866025388, -0.5, 0, 0.5, 0.866025388, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Glove1Finger2ClawFinger=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Glove1Finger2ClawFinger",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove1Finger2ClawFingerweld=weld(m,Finger2Handle,Glove1Finger2ClawFinger,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103527784, 0.499370575, -0.00141334534, 0.866025388, -0.5, 0, 0.5, 0.866025388, 0, 0, 0, 1))
- mesh("SpecialMesh",Glove1Finger2ClawFinger,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.209999993, 0.5, 0.209999993))
- Finger3Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Finger3Handleweld=weld(m,Character["Right Arm"],Finger3Handle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.138371706, 1.14493585, 0.403035164, 0.965925813, 0.258819014, 0, -0.258819044, 0.965925694, 0, 0, 0, 1))
- mesh("SpecialMesh",Finger3Handle,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Finger3Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103527784, 0.38637054, 0, 0.866025388, -0.5, 0, 0.5, 0.866025388, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Finger3Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0249999762, 0.200000167, 0, 0.965925813, -0.258819044, 0, 0.258819044, 0.965925813, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Glove1Finger3ClawFinger=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Glove1Finger3ClawFinger",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove1Finger3ClawFingerweld=weld(m,Finger3Handle,Glove1Finger3ClawFinger,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103527784, 0.499370575, 0, 0.866025388, -0.5, 0, 0.5, 0.866025388, 0, 0, 0, 1))
- mesh("SpecialMesh",Glove1Finger3ClawFinger,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.209999993, 0.5, 0.209999993))
- Finger4Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Finger4Handleweld=weld(m,Character["Right Arm"],Finger4Handle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.145614386, 1.14687657, -0.40422225, -0.965925813, 0.258819103, 4.72798973e-008, 0.258819133, 0.965925694, -1.68990979e-007, -8.94069672e-008, -1.50995788e-007, -1))
- mesh("SpecialMesh",Finger4Handle,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Finger4Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103527784, 0.38637042, 0, 0.866025329, -0.500000179, 0, 0.500000179, 0.866025329, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Finger4Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0249997377, 0.200000048, 0, 0.965925753, -0.258819282, 0, 0.258819282, 0.965925753, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Glove1Finger4ClawFinger=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Glove4Finger1ClawFinger",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove1Finger4ClawFingerweld=weld(m,Finger4Handle,Glove1Finger4ClawFinger,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.134217024, 0.491147041, -0.00118684769, -0.866025329, 0.500000119, -1.2544109e-007, 0.500000119, 0.866025329, -1.22710517e-007, 4.72798973e-008, -1.68990979e-007, -1))
- mesh("SpecialMesh",Glove1Finger4ClawFinger,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.209999993, 0.5, 0.209999993))
- local m2=Instance.new("Model",Head)
- m2.Name = "Rigormortis' Hood"
- HoodHandle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- HoodHandleweld=weld(m,Character["Head"],HoodHandle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(1.1920929e-005, -0.0898900032, 2.19345093e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- mesh("SpecialMesh",HoodHandle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=64560031",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 1.10000002, 1.10000002))
- Hoodpart2=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Hoodpart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Hoodpart2weld=weld(m,HoodHandle,Hoodpart2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0, 0, -0.0299999714, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- mesh("SpecialMesh",Hoodpart2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=64560031",Vector3.new(0, 0, 0),Vector3.new(1.20000005, 1.20000005, 1.10000002))
- Eye1=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Really red","Eye1",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Eye1weld=weld(m,HoodHandle,Eye1,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.200000048, 0, 0.619999886, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- Eye1mesh=mesh("SpecialMesh",Eye1,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 2, 1))
- Eye2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Really red","Eye2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Eye2weld=weld(m,HoodHandle,Eye2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.200000048, 0.064807415, 0.616603374, 1, 0, 0, 0, 0.994521916, 0.104528464, 0, -0.104528464, 0.994521916))
- Eye2mesh=mesh("SpecialMesh",Eye2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 2, 1))
- local m3=Instance.new("Model",LeftArm)
- m3.Name = "Rigormortis' Left Glove"
- Glove2Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove2Handleweld=weld(m,Character["Left Arm"],Glove2Handle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(1.21593475e-005, 0.000111103058, 0.00443267822, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1))
- mesh("SpecialMesh",Glove2Handle,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5.5, 5.25, 5.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Br. yellowish orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0, 0.620001078, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5.5, 1, 5.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0, 0.870001078, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(5.5, 1.5, 5.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.0184402466, 0.00540876389, 1, 0, 0, 0, 0.258819193, -0.965925813, 0, 0.965925813, 0.258819193))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Br. yellowish orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.00706958771, 0.00706958771, 0.465587616, 0.707106769, 0.707106769, 0, -0.707106769, 0.707106769, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 5, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Br. yellowish orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.00999808311, 0, 0.465587616, 0, 0.99999994, 0, -0.99999994, 0, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 5, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Really red","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0, 1.00999808, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 4))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.0192146301, 0.000451087952, 1, 0, 0, 0, 0.50000006, -0.866025388, 0, 0.866025388, 0.50000006))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Br. yellowish orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0, 0.00999808311, 0.465587616, 1, 0, 0, 0, 1, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 5, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.549407959, 0.00706958771, 0.00706955791, 1.3767874e-007, -6.21808951e-008, -1, -0.70710659, 0.707106948, -1.4132209e-007, 0.707106948, 0.70710659, 5.33850653e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.0186767578, -0.00453662872, 1, 0, 0, 0, 0.707106829, -0.707106709, 0, 0.707106709, 0.707106829))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.549407959, 0.00999832153, 0, -4.37113883e-008, -9.70964606e-008, -1, 0, 1, -9.70964606e-008, 1, -4.24422121e-015, -4.37113883e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 0.75, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.00921630859, 0.016866684, 1, 0, 0, 0, -0.499999851, -0.866025507, 0, 0.866025507, -0.499999851))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.0132675171, 0.0139055252, 1, 0, 0, 0, -0.258818924, -0.965925872, 0, 0.965925872, -0.258818924))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.016866684, -0.00921630859, 1, 0, 0, 0, 0.866025448, -0.499999911, 0, 0.499999911, 0.866025448))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.979999065, -2.38418579e-007, 0, -4.37113883e-008, 1, 0, -1, -4.37113883e-008, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 4, 4))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.974999905, -2.38418579e-007, 0, -4.37113883e-008, 1, 0, -1, -4.37113883e-008, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 5, 5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.549407959, 0.00706964731, -0.00706958771, -3.09086268e-008, -1.0640651e-007, -1, 0.707106948, 0.70710659, -9.70964535e-008, 0.70710659, -0.707106948, 5.33850901e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.549407959, 0, 0.00999808311, 7.54979013e-008, 7.54978799e-008, -1, -1, 2.68220901e-007, -7.54978799e-008, 2.68220901e-007, 1, 7.54979013e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 0.75, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.25,0,"Br. yellowish orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.00706958771, 0.00706982613, 0.465587616, 0.707106709, -0.707106829, 0, 0.707106829, 0.707106709, 0, 0, 0, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1, 5, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.0164146423, 0.00999808311, 1, 0, 0, 0, 7.54979013e-008, -1, 0, 1, 7.54979013e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, -0.00453662872, -0.0186767578, 1, 0, 0, 0, 0.707106709, 0.707106888, 0, -0.707106888, 0.707106709))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.000451087952, -0.0192146301, 1, 0, 0, 0, 0.866025329, 0.500000119, 0, -0.500000119, 0.866025329))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.00540876389, -0.0184402466, 1, 0, 0, 0, 0.965925813, 0.258819163, 0, -0.258819163, 0.965925813))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.00999808311, -0.0164146423, 1, 0, 0, 0, 1, 1.34110465e-007, 0, -1.34110465e-007, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,"Bright orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.550000191, 0.0139064789, -0.0132675171, 1, 0, 0, 0, 0.965925872, -0.258818865, 0, 0.258818865, 0.965925872))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.25, 1, 0.25))
- Glove2Finger1Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove2Finger1Handleweld=weld(m,Character["Left Arm"],Glove2Finger1Handle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.149578571, 1.14794111, 0.398792267, -0.965925813, 0.258819133, 0, 0.258819163, 0.965925694, 7.4505806e-008, 1.92835312e-008, 7.19670723e-008, -1))
- mesh("SpecialMesh",Glove2Finger1Handle,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Finger1Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103526592, 0.386366367, 0, 0.866025448, -0.500000119, -3.72529136e-008, 0.500000119, 0.866025329, -9.98188199e-009, 3.72529101e-008, -9.98188909e-009, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Finger1Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0249929428, 0.199998975, 0, 0.965925813, -0.258819133, -1.92835294e-008, 0.258819133, 0.965925813, 2.79754886e-009, 1.79023978e-008, -7.6931741e-009, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Glove2Finger1ClawFinger=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Glove2Finger1ClawFinger",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove2Finger1ClawFingerweld=weld(m,Glove2Finger1Handle,Glove2Finger1ClawFinger,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103525162, 0.49937129, 0, 0.866025448, -0.500000119, -3.72529136e-008, 0.500000119, 0.866025329, -9.98188199e-009, 3.72529101e-008, -9.98188909e-009, 1))
- mesh("SpecialMesh",Glove2Finger1ClawFinger,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.209999993, 0.5, 0.209999993))
- Glove2Finger2Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove2Finger2Handleweld=weld(m,Character["Left Arm"],Glove2Finger2Handle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.149578094, 1.14794099, -0.00280952454, -0.965925813, 0.258819133, 0, 0.258819163, 0.965925694, 7.4505806e-008, 1.92835312e-008, 7.19670723e-008, -1))
- mesh("SpecialMesh",Glove2Finger2Handle,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Finger2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0249934196, 0.199998975, 1.90734863e-006, 0.965925813, -0.258819133, -1.92835294e-008, 0.258819133, 0.965925813, 2.79754886e-009, 1.79023978e-008, -7.6931741e-009, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Finger2Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103526592, 0.386366367, 0, 0.866025448, -0.500000119, -3.72529136e-008, 0.500000119, 0.866025329, -9.98188199e-009, 3.72529101e-008, -9.98188909e-009, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Glove2Finger2ClawFinger=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Glove2Finger2ClawFinger",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove2Finger2ClawFingerweld=weld(m,Glove2Finger2Handle,Glove2Finger2ClawFinger,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.10352397, 0.499371529, -0.00141334534, 0.866025448, -0.500000119, -3.72529136e-008, 0.500000119, 0.866025329, -9.98188199e-009, 3.72529101e-008, -9.98188909e-009, 1))
- mesh("SpecialMesh",Glove2Finger2ClawFinger,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.209999993, 0.5, 0.209999993))
- Glove2Finger3Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove2Finger3Handleweld=weld(m,Character["Left Arm"],Glove2Finger3Handle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.149578094, 1.14794099, -0.399812698, -0.965925813, 0.258819133, 0, 0.258819163, 0.965925694, 7.4505806e-008, 1.92835312e-008, 7.19670723e-008, -1))
- mesh("SpecialMesh",Glove2Finger3Handle,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Finger3Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103526592, 0.386366367, 0, 0.866025448, -0.500000119, -3.72529136e-008, 0.500000119, 0.866025329, -9.98188199e-009, 3.72529101e-008, -9.98188909e-009, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Finger3Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0249962807, 0.199998975, 1.90734863e-006, 0.965925813, -0.258819133, -1.92835294e-008, 0.258819133, 0.965925813, 2.79754886e-009, 1.79023978e-008, -7.6931741e-009, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Glove2Finger3ClawFinger=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Glove2Finger3ClawFinger",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove2Finger3ClawFingerweld=weld(m,Glove2Finger3Handle,Glove2Finger3ClawFinger,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103745937, 0.500193119, -0.00440788269, 0.866025448, -0.500000119, -3.72529136e-008, 0.500000119, 0.866025329, -9.98188199e-009, 3.72529101e-008, -9.98188909e-009, 1))
- mesh("SpecialMesh",Glove2Finger3ClawFinger,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.209999993, 0.5, 0.209999993))
- Glove2Finger4Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove2Finger4Handleweld=weld(m,Character["Left Arm"],Glove2Finger4Handle,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.134407997, 1.14387655, 0.400022507, 0.965925813, 0.258819103, -8.94069672e-008, -0.258819133, 0.965925694, 2.38418579e-007, 1.48067784e-007, -2.071544e-007, 1))
- mesh("SpecialMesh",Glove2Finger4Handle,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Finger4Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.103526354, 0.386366606, 0, 0.866025329, -0.500000238, 1.07231074e-007, 0.500000238, 0.866025329, 3.19420792e-008, -1.0883587e-007, 2.59529003e-008, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,Glove2Finger4Handle,Part,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.025002718, 0.199998975, 0, 0.965925753, -0.258819312, 8.84631604e-008, 0.258819312, 0.965925753, 1.30108901e-008, -8.88163285e-008, 1.03283924e-008, 1))
- mesh("SpecialMesh",Part,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.25, 1.5))
- Glove2Finger4ClawFinger=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0.25,0,TorsoColor,"Glove2Finger4ClawFinger",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Glove2Finger4ClawFingerweld=weld(m,Glove2Finger4Handle,Glove2Finger4ClawFinger,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.134222269, 0.491146207, -0.00118637085, -0.866025329, 0.500000238, -1.96638027e-007, 0.500000238, 0.866025329, -8.72672246e-008, 1.26659884e-007, -1.73894662e-007, -1))
- mesh("SpecialMesh",Glove2Finger4ClawFinger,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.209999993, 0.5, 0.209999993))
- co_resume(co_create(function(Part,Weld)
- while Part.Parent~=nil do
- wait(5)
- for i=0,1,0.2 do
- wait()
- Eye1mesh.Scale=Vector3.new(0.5, 2-1.9*i, 1)
- Eye2mesh.Scale=Vector3.new(0.5, 2-1.9*i, 1)
- end
- for i=0,1,0.2 do
- wait()
- Eye1mesh.Scale=Vector3.new(0.5, 0.1+1.9*i, 1)
- Eye2mesh.Scale=Vector3.new(0.5, 0.1+1.9*i, 1)
- end
- end
- end),Eye1,Eye1weld)
- --co_resume(co_create(function(Part,Weld)--I moved it up for efficiency purposes
- --while Part.Parent~=nil do
- --wait(5)
- --for i=0,1,0.2 do
- --wait()
- --Eye2mesh.Scale=Vector3.new(0.5, 2-1.9*i, 1)
- --end
- --for i=0,1,0.2 do
- --wait()
- --Eye2mesh.Scale=Vector3.new(0.5, 0.1+1.9*i, 1)
- --end
- --end
- --end),Eye2,Eye2weld)
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA'Model' then
- for _,c in pairs(v:GetChildren()) do
- if c:IsA'Part' then
- c.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
- end
- end
- end
- end
- --[[for _,v in pairs(Character:GetChildren()) do
- if v.className=="Hat" then
- hatp=v.Handle
- hatp.Transparency = 1
- end
- end]]--
- for i,v in pairs(Character.Head:GetChildren()) do
- if v.className=="BlockMesh" then
- v:destroy()
- head = Instance.new("SpecialMesh",Head)
- head.MeshType = "Head"
- end
- end
- local CloakEffect = Instance.new("ParticleEmitter", Torso)
- CloakEffect.VelocitySpread = 360
- CloakEffect.Lifetime = NumberRange.new(1)
- CloakEffect.Speed = NumberRange.new(20)
- CloakEffect.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 1), NumberSequenceKeypoint.new(1, 0)})
- CloakEffect.Enabled = false
- CloakEffect.RotSpeed = NumberRange.new(-360, 360)
- CloakEffect.Rate = 1000
- CloakEffect.Rotation = NumberRange.new(-360, 360)
- CloakEffect.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.1, 0), NumberSequenceKeypoint.new(1, 1)})
- CloakEffect.Color = ColorSequence.new(Color3.new(Colorpart1, Colorpart2, Colorpart3), Color3.new(Colorpart1, Colorpart2, Colorpart3))
- CloakEffect.LightEmission = 1
- CloakEffect.Texture = "http://www.roblox.com/asset/?id=243664672"
- CloakEffectLight = Instance.new("PointLight", Torso)
- CloakEffectLight.Color = Color3.new(Colorpart1, Colorpart2, Colorpart3)
- CloakEffectLight.Range = 10
- CloakEffectLight.Brightness = 10
- CloakEffectLight.Enabled = false
- CloakEffectLight2 = Instance.new("PointLight", Torso)
- CloakEffectLight2.Color = Color3.new(Colorpart1, Colorpart2, Colorpart3)
- CloakEffectLight2.Range = 7.5
- CloakEffectLight2.Brightness = 7.5
- CloakEffectLight2.Enabled = false
- local CloakEffect2 = Instance.new("ParticleEmitter", Torso)
- CloakEffect2.VelocitySpread = 360
- CloakEffect2.Lifetime = NumberRange.new(1)
- CloakEffect2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6), NumberSequenceKeypoint.new(1, 5)})
- CloakEffect2.Enabled = false
- CloakEffect2.RotSpeed = NumberRange.new(9000)
- CloakEffect2.Rate = 200
- CloakEffect2.Rotation = NumberRange.new(-360, 360)
- CloakEffect2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.1, 0), NumberSequenceKeypoint.new(1, 1)})
- CloakEffect2.Color = ColorSequence.new(Color3.new(Colorpart1, Colorpart2, Colorpart3), Color3.new(Colorpart1, Colorpart2, Colorpart3))
- CloakEffect2.Texture = "http://www.roblox.com/asset/?id=321556991"
- local TrailEffect = Instance.new("ParticleEmitter", Torso)
- TrailEffect.Lifetime = NumberRange.new(1)
- TrailEffect.Speed = NumberRange.new(0)
- TrailEffect.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.5), NumberSequenceKeypoint.new(1, 0)})
- TrailEffect.Enabled = false
- TrailEffect.RotSpeed = NumberRange.new(-360, 360)
- TrailEffect.Rate = 500
- TrailEffect.Rotation = NumberRange.new(-360, 360)
- TrailEffect.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.1, 0.5), NumberSequenceKeypoint.new(1, 1)})
- TrailEffect.Color = ColorSequence.new(Color3.new(Colorpart1, Colorpart2, Colorpart3), Color3.new(Colorpart1, Colorpart2, Colorpart3))
- TrailEffect.LightEmission = 0.5
- TrailEffect.Texture = "http://www.roblox.com/asset/?id=243728206"
- local GhostEffect = Instance.new("ParticleEmitter", Torso)
- GhostEffect.Lifetime = NumberRange.new(0.25,0.5)
- GhostEffect.Speed = NumberRange.new(12.5,15)
- GhostEffect.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.3, 0.3), NumberSequenceKeypoint.new(1, 0, 0)})
- GhostEffect.Acceleration = Vector3.new(0, 0, 0)
- GhostEffect.RotSpeed = NumberRange.new(9000)
- GhostEffect.Rate = 1000
- GhostEffect.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.1, 0.25), NumberSequenceKeypoint.new(1, 1)})
- GhostEffect.LightEmission = 0.75
- GhostEffect.Color = ColorSequence.new(Color3.new(1, 1, 1), Color3.new(1, 1, 1))
- GhostEffect.Texture = "http://www.roblox.com/asset/?id=321556991"
- GhostEffect.VelocitySpread = 360
- GhostEffect.LockedToPart = false
- GhostEffect.Enabled = false
- local Player = game.Players.localPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- local mouse = Player:GetMouse()
- --local m = Instance.new('Model', Character)
- 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 cam = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- --cam.CameraSubject = Head
- local equipped = false
- local attack = false
- local Anim = 'Idle'
- local idle = 0
- local sprint = false
- local battlestance = false
- local attacktype = 1
- local state = 'none'
- local torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local on = false
- local grabbed = false
- local skill1 = false
- local skill2 = false
- local skill3 = false
- local skill4 = false
- local cooldown1 = 0
- local cooldown2 = 0
- local cooldown3 = 0
- local cooldown4 = 0
- local co1 = 20--how long it will take for skill to cooldown
- local co2 = 30
- local co3 = 40
- local co4 = 100
- local inputserv = game:GetService('UserInputService')
- local typing = false
- local crit = false
- local critchance = 2--critical chance percentage
- local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage
- local critdamageaddmax = 7--maximum amount
- local maxstamina = 100--max amount of stamina
- local stamina = 0--stamina you start out with
- local maxjumpstamina = 100--max amount of jumpstamina
- local jumpstamina = 0--jumpstamina you start out with
- local maxstealth = 100--max amount of stealth
- local stealth = 0--stealth you start out with
- local skill1stam = 30--how much stamina is needed for a skill
- local skill2stam = 40
- local skill3stam = 50
- local skill4stam = 95
- local recovermana = 3--how much mana per second
- local recoverstealth = 5--how much mana per second
- local recoverjumpstamina = 25--how much mana per second
- local defensevalue = 0.7--how much defense this character has
- local speedvalue = 1.25--how much speed this character has
- --speed is 16*speedvalue
- local mindamage = 5--self explanatory
- local maxdamage = 10--self explanatory
- local damagevalue = 1--how much damage this character has
- local cf = cf-- make things easier :)
- local mr = rad
- local angles = CFrame.Angles
- local ud = UDim2.new
- local c3 = Color3.new
- local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol
- local scrn = Instance.new('ScreenGui', Player.PlayerGui)
- function makeframe(par, trans, pos, size, color)
- local frame = Instance.new('Frame', par)
- frame.BackgroundTransparency = trans
- frame.BorderSizePixel = 0
- frame.Position = pos
- frame.Size = size
- frame.BackgroundColor3 = color
- return frame
- end
- function makelabel(par, text)
- local label = Instance.new('TextLabel', par)
- label.BackgroundTransparency = 1
- label.Size = ud(1, 0, 1, 0)
- label.Position = ud(0, 0, 0, 0)
- label.TextColor3 = c3(255, 255, 255)
- label.TextStrokeTransparency = 0
- label.FontSize = Enum.FontSize.Size32
- label.Font = Enum.Font.SourceSansBold
- label.BorderSizePixel = 0
- label.TextScaled = true
- label.Text = text
- end
- framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
- framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
- framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
- framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
- --framesk5 = makeframe(scrn, .5, ud(.03, 0, .645, 0), ud(.26, 0, .06, 0), skillcolorscheme)
- --framesk6 = makeframe(scrn, .5, ud(.03, 0, .715, 0), ud(.26, 0, .06, 0), skillcolorscheme)
- bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
- bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
- bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
- bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
- --bar5 = makeframe(framesk5, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
- --bar6 = makeframe(framesk6, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
- text1 = makelabel(framesk1, '[C] Cometal Blast/Planet Shatter')
- text2 = makelabel(framesk2, '[V] Dark Void')
- text3 = makelabel(framesk3, '[X] Celestial Matter Distortion')
- text4 = makelabel(framesk4, '[Z] Galactic Lunge/Spiral Dispursion')
- --text5 = makelabel(framesk5, 'Rigormortis is basically finished, but before I release it as a public class, I need to make sure its balanced. Notify me if there are any problems. Thanks.')
- --text6 = makelabel(framesk6, 'A message from Brannon1964802')
- staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1))
- staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1))
- staminatext = makelabel(staminabar, 'Mana')
- stealthbar = makeframe(scrn, .5, ud(.23, 0, .78, 0), ud(.26, 0, .03, 0), c3(58 / 255, 125 / 255, 21 / 255))
- stealthcover = makeframe(stealthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0, 200 / 255, 0))
- stealthtext = makelabel(stealthbar, 'Stealth')
- healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
- healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
- healthtext = makelabel(healthbar, 'Health')
- jumpstaminabar = makeframe(scrn, .5, ud(.5, 0, .78, 0), ud(.26, 0, .03, 0), c3(200 / 200, 158 / 255, 0))
- jumpstaminacover = makeframe(jumpstaminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(255 / 255, 255 / 255, 0))
- jumpstaminatext = makelabel(jumpstaminabar, 'Jump Stamina')
- local stats=Instance.new('Folder',Character)
- stats.Name='Stats'
- local block=Instance.new('BoolValue',stats)
- block.Name='Block'
- block.Value=false
- local stun=Instance.new('BoolValue',stats)
- stun.Name='Stun'
- stun.Value=false
- local defense=Instance.new('NumberValue',stats)
- defense.Name='Defence'
- defense.Value=defensevalue
- local speed=Instance.new('NumberValue',stats)
- speed.Name='Speed'
- speed.Value=speedvalue
- local damagea=Instance.new('NumberValue',stats)
- damagea.Name='Damage'
- damagea.Value=damagevalue
- function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
- local p = Instance.new('Part', par or workspace)
- p.CFrame = pos1
- p.Anchored = true
- p.Material = 'Plastic'
- p.CanCollide = false
- p.TopSurface = 0
- p.Size = Vector3.new(1, 1, 1)
- p.BottomSurface = 0
- p.Transparency = trans
- p.FormFactor = 'Custom'
- nooutline(p)
- local mesh = Instance.new('SpecialMesh', p)
- mesh.Scale = size
- if id ~= nil and type == nil then
- mesh.MeshId = 'rbxassetid://'..id
- elseif id == nil and type ~= nil then
- mesh.MeshType = type
- elseif id == nil and type == nil then
- mesh.MeshType = 'Brick'
- end
- coroutine.wrap(function()
- for i = 0, delay1, .1 do
- wait(1 / 60)
- p.CFrame = p.CFrame
- mesh.Scale = mesh.Scale + howmuch
- p.Transparency = p.Transparency + trans1
- end
- p:Destroy()
- end)()
- return p
- end
- function clangy(cframe)
- wait(1 / 60)
- local clang = {}
- local dis = 0
- local part = Instance.new('Part', nil)
- part.CFrame = cframe
- part.Anchored = true
- part.CanCollide = false
- part.BrickColor = BrickColor.new('New Yeller')
- part.FormFactor = 'Custom'
- part.Name = 'clanger'
- part.Size = Vector3.new(.2, .2, .2)
- part.TopSurface = 10
- part.BottomSurface = 10
- part.RightSurface = 10
- part.LeftSurface = 10
- part.BackSurface = 10
- part.FrontSurface = 10
- --part.Material='Neon'
- part:BreakJoints()
- local mesh = Instance.new('BlockMesh', part)
- coroutine.wrap(function()
- for i = 1, 7 do
- wait(1 / 60)
- dis = dis + .2
- local partc = part:clone()
- partc.Parent = workspace
- partc.CFrame = part.CFrame * euler(dis, 0, 0)
- partc.CFrame = partc.CFrame * cf(0, dis, 0)
- table.insert(clang, partc)
- end
- for i, v in pairs(clang) do
- coroutine.wrap(function()
- for i = 1, 10 do
- wait(.01)
- v.Transparency = v.Transparency + .1
- end
- v:destroy()
- end)()
- end
- end)()
- end
- --damage effects
- function circle(color, pos1)
- local p = Instance.new('Part', m)
- p.BrickColor = BrickColor.new(color)
- p.CFrame = pos1
- p.Anchored = true
- p.Material = 'Plastic'
- p.CanCollide = false
- p.TopSurface = 0
- p.Size = Vector3.new(1, 1, 1)
- p.BottomSurface = 0
- p.Transparency = 0.35
- p.FormFactor = 'Custom'
- local mesh = Instance.new('CylinderMesh', p)
- mesh.Scale = Vector3.new(0, 0, 0)
- coroutine.wrap(function()
- for i = 0, 5, .1 do
- wait(1 / 60)
- p.CFrame = p.CFrame
- mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
- p.Transparency = p.Transparency + .025
- end
- p:Destroy()
- end)()
- end
- function firespaz1(color, pos1)
- local p = Instance.new('Part', m)
- p.BrickColor = BrickColor.new(color)
- p.CFrame = pos1
- p.Anchored = true
- p.Material = 'Plastic'
- p.CanCollide = false
- p.TopSurface = 0
- p.Size = Vector3.new(1, 1, 1)
- p.BottomSurface = 0
- p.Transparency = 0.5
- p.FormFactor = 'Custom'
- local mesh = Instance.new('BlockMesh', p)
- mesh.Scale = Vector3.new(1, 1, 1)
- coroutine.wrap(function()
- for i = 0, 15, .1 do
- wait(1 / 30)
- p.CFrame = p.CFrame * cf(0, .1, 0)
- mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
- p.Transparency = p.Transparency + .025
- end
- p:Destroy()
- end)()
- end
- function pickrandom(tablesa)
- local randomized = tablesa[math.random(1, #tablesa)]
- return randomized
- end
- function sound(id,pitch,volume,par,last)
- local s=Instance.new('Sound',par or Torso)
- s.SoundId='rbxassetid://'..id
- s.Pitch=pitch or 1
- s.Volume=volume or 1
- wait()
- s:play()
- game.Debris:AddItem(s,last or 120)
- end
- function clangy(cframe)
- wait(1 / 60)
- local clang = {}
- local dis = 0
- local part = Instance.new('Part', nil)
- part.CFrame = cframe
- part.Anchored = true
- part.CanCollide = false
- part.BrickColor = BrickColor.new('New Yeller')
- part.FormFactor = 'Custom'
- part.Name = 'clanger'
- part.Size = Vector3.new(.2, .2, .2)
- part.TopSurface = 10
- part.BottomSurface = 10
- part.RightSurface = 10
- part.LeftSurface = 10
- part.BackSurface = 10
- part.FrontSurface = 10
- --part.Material='Neon'
- part:BreakJoints()
- local mesh = Instance.new('BlockMesh', part)
- coroutine.wrap(function()
- for i = 1, 7 do
- wait(1 / 60)
- dis = dis + .2
- local partc = part:clone()
- partc.Parent = workspace
- partc.CFrame = part.CFrame * euler(dis, 0, 0)
- partc.CFrame = partc.CFrame * cf(0, dis, 0)
- table.insert(clang, partc)
- end
- for i, v in pairs(clang) do
- coroutine.wrap(function()
- for i = 1, 10 do
- wait(.01)
- v.Transparency = v.Transparency + .1
- end
- v:destroy()
- end)()
- end
- end)()
- end
- --damage effects
- --Effects
- so = function(id, par, vol, pit)
- co_resume(co_create(function()
- local sou = Instance.new("Sound",par)
- sou.Volume = vol
- sou.Pitch = pit
- sou.SoundId = id
- wait()
- sou:play()
- game:GetService("Debris"):AddItem(sou, 10)
- end))
- end
- function getclosest(obj,dis, player)
- if player then
- return (player.Torso.CFrame.p - obj).magnitude < dis
- end
- local list = {}
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") then
- if v:findFirstChild("Torso") then
- if v ~= Character then
- if (v.Torso.Position - obj).magnitude <= dis then
- table.insert(list, v)
- end
- end
- end
- end
- end
- return list
- end
- function tag(hum, player)
- local creator = Instance.new('ObjectValue', hum)
- creator.Value = player
- creator.Name = 'creator'
- end
- function untag(hum)
- if hum ~= nil then
- local tag = hum:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- function tagplayer(h)
- coroutine.wrap(function()
- tag(h, player)
- wait(1)
- untag(h)
- end)()
- end
- function randomizer(percent)
- local randomized = math.random(0, 100)
- if randomized <= percent then
- return true
- elseif randomized >= percent then
- return false
- end
- end
- function turncrit()
- co_resume(co_create(function()
- print'CRITICAL!'
- crit = true
- wait(.25)
- crit = false
- end))
- end
- --[[function damage(hit, mind, maxd, knock, type, prop)
- --
- to apply it to a player directly, make the first arg go to the players torso
- 1 - normal type(damage and knockback)
- 2 - drain type(damage no knockback)
- 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
- 4 - heal(heals target)
- 5 - subtracts enemies defense
- 6 - subtracts enemies speed
- 7 -
- if hit.Material == 'Metal' then
- local pos = cf(0, 1, -1)
- CreateSound(pickrandom(clangsounds),math.random(100,150)/100,1,Torso,6)
- coroutine.wrap(function()
- for i = 1, 4 do
- clangy(Torso.CFrame * pos * CFrame.Angles(0, rad(math.random(0, 360)), 0))
- end
- end)()
- end
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for i, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
- h = hit.Parent.Parent:FindFirstChild('Humanoid')
- end
- if hit.Parent:IsA('Hat') then
- hit = hit.Parent.Parent:findFirstChild('Head')
- end
- local D = math.random(mind, maxd)*damagea.Value
- if h then
- makegui(h.Parent.Head.CFrame, tostring(math.floor(D+.5)))
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if type == 1 then
- tagplayer(h)
- local asd = randomizer(critchance)
- if asd == true then
- turncrit()
- end
- if crit == false then
- h.Health = h.Health - D
- else
- h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
- end
- so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
- local vp = Instance.new('BodyVelocity')
- vp.P = 500
- vp.maxForce = Vector3.new(math.huge, 0, math.huge)
- vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
- if knock > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, .5)
- elseif type == 2 then
- so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
- local asd = randomizer(critchance)
- if asd == true then
- turncrit()
- end
- if crit == false then
- h.Health = h.Health - D
- else
- h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
- end
- tagplayer(h)
- elseif type == 3 then
- tagplayer(h)
- local asd = randomizer(critchance)
- if asd == true then
- turncrit()
- end
- if crit == false then
- h.Health = h.Health - D
- else
- h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
- end
- Character.Humanoid.Health = Character.Humanoid.Health + D / 2
- so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
- for i = 1, 10 do
- firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
- end
- elseif type == 4 then
- h.Health = h.Health + D
- so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
- circle('Dark green', h.Parent.Torso.CFrame * cf(0, -2.5, 0))
- end
- end
- end]]--
- function subtractstamina(k)
- if stamina >= k then
- stamina = stamina - k
- end
- end
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = cf()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return cf(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
- assert(false, "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 = {}
- local TrailColor = ("Dark grey")
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "SmoothPlastic"
- w1.FormFactor = 'Custom'
- w1.BrickColor = BrickColor.new(TrailColor)
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "SmoothPlastic"
- w1.CanCollide = false
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.01})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*cf(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "SmoothPlastic"
- w2.FormFactor = 'Custom'
- w2.BrickColor = BrickColor.new(TrailColor)
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "SmoothPlastic"
- w2.CanCollide = false
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.01})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*cf(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- so = function(id,par,vol,pit)
- co_resume(co_create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- FatEvent:wait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- 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
- local clerp = cf().lerp
- 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
- 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 cf(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
- 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/sin(theta)
- startInterp = sin((1-t)*theta)*invSinTheta
- finishInterp = 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/sin(theta)
- startInterp = sin((t-1)*theta)*invSinTheta
- finishInterp = 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
- --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, cf(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.4)
- local PartOnRay = workspace.FindPartOnRay
- local RayNew = Ray.new
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return PartOnRay(workspace,RayNew(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function makegui(cframe, text)
- local a = math.random(-10, 10) / 100
- local c = Instance.new("Part")
- c.Transparency = 1
- Instance.new("BodyGyro").Parent = c
- c.Parent = workspace
- c.CFrame = cf(cframe.p + Vector3.new(0, 1.5, 0))
- local f = Instance.new("BodyPosition")
- f.P = 2000
- f.D = 100
- f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- f.position = c.Position + Vector3.new(0, 3, 0)
- f.Parent = c
- game:GetService("Debris"):AddItem(c, .5 + 6)
- c.CanCollide = false
- c.Parent = workspace
- c.CanCollide = false
- local bg = Instance.new('BillboardGui', c)
- bg.Adornee = c
- bg.Size = UDim2.new(1, 0, 1, 0)
- bg.StudsOffset = Vector3.new(0, 0, 0)
- bg.AlwaysOnTop = false
- local tl = Instance.new('TextLabel', bg)
- tl.BackgroundTransparency = 1
- tl.Size = UDim2.new(1, 0, 1, 0)
- tl.Text = text
- tl.Font = 'SourceSansBold'
- tl.FontSize = 'Size42'
- if crit == true then
- tl.TextColor3 = Color3.new(180 / 255, 0, 0)
- else
- tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
- end
- tl.TextStrokeTransparency = 0
- tl.TextScaled = true
- tl.TextWrapped = true
- coroutine.wrap(function()
- wait(2)
- for i = 1, 10 do
- FatEvent:wait()
- c.Transparency = 1
- tl.TextTransparency = tl.TextTransparency + .1
- end
- end)()
- end
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- 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 hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- 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
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- --[[ c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)]]--
- --Damage=math.random(minim,maxim)*damagea.Value/defense.Value
- -- h:TakeDamage(Damage)
- local blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- local D = math.random(minim, maxim)*damagea.Value
- if h.Parent:FindFirstChild('Stats') then
- D=D/h.Parent:FindFirstChild('Stats').Defence.Value
- elseif not h.Parent:FindFirstChild('Stats') then
- D=D
- end
- --h.Health=h.Health-D
- game.ReplicatedStorage.Remotes.HealthEvent:FireServer(h, D, 1)
- hit.Parent.Humanoid:TakeDamage(D)
- makegui(hit.Parent.Head.CFrame,tostring(math.floor(D+.5)))
- --showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
- else
- local D = math.random(minim, maxim)*damagea.Value
- if h.Parent:FindFirstChild('Stats') then
- D=D/h.Parent:FindFirstChild('Stats').Defence.Value
- elseif not h.Parent:FindFirstChild('Stats') then
- D=D
- end
- --h.Health=h.Health-(D/2)
- game.ReplicatedStorage.Remotes.HealthEvent:FireServer(h, D/2, 1)
- --TagService:NewTag(h.Parent, Player, 'Rigormortis', D)
- makegui(hit.Parent.Head.CFrame,tostring(math.floor(D+.5)))
- -- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
- end
- if Type=="Knockdown" then
- local humanoid=hit.Parent.Humanoid
- humanoid.PlatformStand=true
- co_resume(co_create(function(Humanoid)
- FatEvent:wait()
- Humanoid.PlatformStand=false
- end),humanoid)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*euler(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- so("http://www.roblox.com/asset/?id=344936315",hit,1,math.random(100,200)/100)
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="SlashLifeSteal" then
- so("http://www.roblox.com/asset/?id=344936315",hit,1,math.random(100,200)/100)
- Humanoid.Health = Humanoid.Health+math.random(1,2)/2.5
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="SlashLifeSteal2" then
- so("http://www.roblox.com/asset/?id=344936315",hit,1,math.random(100,200)/100)
- Humanoid.Health = Humanoid.Health+math.random(2,3)/2.5
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="BlackHoleDamage" then
- --so("http://www.roblox.com/asset/?id=344936315",hit,1,math.random(100,200)/100)
- Humanoid.Health = Humanoid.Health+math.random(2,4)/5
- --bp = Instance.new("BodyPosition")
- --bp.P=2000
- --bp.D=100
- --bp.maxForce=Vector3.new(9999,9999,9999)
- --bp.position=hit.Parent.Torso.Position
- --bp.Parent=hit.Parent.Torso
- --game:GetService("Debris"):AddItem(bp,1)
- local floatingvelocity = Instance.new("BodyVelocity")
- floatingvelocity.Parent = hit.Parent.Torso
- floatingvelocity.Velocity = Vector3.new(0,math.random(2.5,5),0)
- game:GetService("Debris"):AddItem(floatingvelocity,1)
- elseif Type=="BlackHoleDamage2" then
- --so("http://www.roblox.com/asset/?id=344936315",hit,1,math.random(100,200)/100)
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,60,0)
- bodyVelocity.P=5000
- bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- wait()
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- so("http://www.roblox.com/asset/?id=199144144",hit,1,math.random(150,200)/100)
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- end
- local debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.3)
- -- CRIT=false
- -- hitDeb=true
- --AttackPos=6
- end
- end
- function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
- 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<=magni and c.Name~=Player.Name then
- Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3,1)
- end
- end
- end
- end
- end
- function JumpEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
- local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CanCollide=false
- prt.CFrame = cframe*angles(math_rad_90,0,0)
- local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- co_resume(co_create(function(Part, Mesh)
- for i = 0, 1, delay do
- FatEvent:wait()
- Part.CFrame = Part.CFrame
- Part.Transparency = i
- Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
- end
- Part.Parent = nil
- end), prt, msh)
- end
- function OrbEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
- local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CanCollide=false
- prt.CFrame = cframe*angles(rad(math.random(-90,90)),rad(math.random(-90,90)),rad(math.random(-90,90)))
- local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- co_resume(co_create(function(Part, Mesh)
- for i = 0, 1, delay do
- FatEvent:wait()
- Part.CFrame = Part.CFrame
- Part.Transparency = i
- Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
- end
- Part.Parent = nil
- end), prt, msh)
- end
- function BlockShockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe*angles(rad(mr(-90,90)),rad(mr(-90,90)),rad(mr(-90,90)))
- --prt.Material = "Neon"
- local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- co_resume(co_create(function(Part, Mesh)
- for i = 0, 1, delay do
- FatEvent:wait()
- Part.CFrame = Part.CFrame*angles(rad(mr(-90,90)),rad(mr(-90,90)),rad(mr(-90,90)))
- Part.Transparency = i
- Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
- end
- pcall(workspace.Destroy,Part)
- end), prt, msh)
- end
- function Shockwave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe
- --prt.Material = "Neon"
- local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- co_resume(co_create(function(Part, Mesh)
- for i = 0, 1, delay do
- FatEvent:wait()
- Part.CFrame = Part.CFrame
- Part.Transparency = i
- Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
- end
- Part.Parent = nil
- end), prt, msh)
- end
- canwalk=true
- canidle=true
- cloaked=false
- cloaked2=false
- portal=false
- usedstealth=false
- invisible=false
- Face.Parent=nil
- candoublejump=true
- MMouse=mouse
- TrailSound = Instance.new("Sound",Torso)
- TrailSound.Pitch = 2
- TrailSound.Volume = 0.25
- TrailSound.Looped = true
- TrailSound.SoundId = "http://www.roblox.com/asset/?id=338601253"
- TrailSound2 = Instance.new("Sound",Torso)
- TrailSound2.Pitch = 0.5
- TrailSound2.Volume = 0.25
- TrailSound2.Looped = true
- TrailSound2.SoundId = "http://www.roblox.com/asset/?id=338601253"
- --DarkRiftF=function(s,DemMags)
- --while rifting== true do
- --wait()
- --PWN={}
- --for _,v in pairs(workspace:children()) do
- --if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
- --if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
- --if v~=Character and (v.Torso.Position-refpart.Position).magnitude<=DemMags then
- --table.insert(PWN,v.Torso)
- --end
- --end
- --end
- --end
- --for _,t in pairs(PWN) do
- --Mag=(refpart.Position-t.Position).magnitude/2
- ----t.Parent.Humanoid:TakeDamage(1)
- --rl=it("BodyAngularVelocity")
- --rl.P=2000
- --rl.maxTorque=vt(9999,9999,9999)
- --rl.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
- --rl.Parent=t
- --game:GetService("Debris"):AddItem(rl,.1)
- --if Mag<=2 then
- --t.Parent.Humanoid:TakeDamage(.5)
- --else
- --vl=it("BodyVelocity")
- --vl.P=2000
- --vl.maxForce=vt(50000000000,50000000000,50000000000)
- --vl.velocity=(t.Position-refpart.Position).unit*-(70/(Mag))
- --vl.Parent=t
- --game:GetService("Debris"):AddItem(vl,.1)
- --end
- --end
- --wait(.08)
- --end
- --end
- function Cloak()
- cloaked=true
- so("http://roblox.com/asset/?id=178452217",Torso,0.5,1)
- for _,v in pairs(Torso.Parent:children()) do
- if v.className=="Part" and v.Name~="HumanoidRootPart" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- TrailEffect.Enabled = true
- --v.CanCollide = false
- speed.Value = 0.1
- CloakEffect.Enabled = true
- CloakEffect2.Enabled = true
- CloakEffectLight.Enabled = true
- v.Transparency=v.Transparency+0.1
- end
- GhostEffect.Enabled = true
- CloakEffectLight2.Enabled = true
- defense.Value=0.6
- Humanoid.CameraOffset = Vector3.new(0, 1, 0)
- TrailSound:Play()
- TrailSound2:Play()
- TrailEffect.Enabled = true
- v.CanCollide = false
- speed.Value = 0.1
- v.Transparency=1
- CloakEffect.Enabled = false
- CloakEffect2.Enabled = false
- CloakEffectLight.Enabled = false
- end))
- end
- if v.className=="Hat" then
- hatp=v.Handle
- co_resume(co_create(function(hatty)
- for i=0,1,0.1 do
- wait()
- hatty.Transparency=hatty.Transparency+0.1
- end
- hatty.Transparency=1
- end),hatp)
- end
- end
- for _,v in pairs(m:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency+0.1
- end
- v.Transparency=1
- end))
- end
- end
- for _,v in pairs(m2:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency+0.1
- end
- v.Transparency=1
- end))
- end
- end
- for _,v in pairs(m3:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency+0.1
- end
- v.Transparency=1
- end))
- end
- end
- end
- function UnCloak()
- cloaked=false
- so("http://roblox.com/asset/?id=178452217",Torso,0.5,1.2)
- for _,v in pairs(Torso.Parent:children()) do
- if v.className=="Part" and v.Name~="HumanoidRootPart" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- TrailEffect.Enabled = false
- speed.Value = 1.25
- TrailEffect.Enabled = false
- CloakEffect.Enabled = true
- CloakEffect2.Enabled = true
- CloakEffectLight.Enabled = true
- v.Transparency=v.Transparency-0.1
- end
- GhostEffect.Enabled = false
- CloakEffectLight2.Enabled = false
- defense.Value=0.9
- Humanoid.CameraOffset = Vector3.new(0, 0, 0)
- TrailSound:Stop()
- TrailSound2:Stop()
- speed.Value = 1.25
- v.Transparency=0
- CloakEffect.Enabled = false
- CloakEffect2.Enabled = false
- CloakEffectLight.Enabled = false
- end))
- end
- if v.className=="Hat" then
- hatp=v.Handle
- co_resume(co_create(function(hatty)
- for i=0,1,0.1 do
- wait()
- hatty.Transparency=hatty.Transparency-0.1
- end
- hatty.Transparency=0
- end),hatp)
- end
- end
- for _,v in pairs(m:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency-0.1
- end
- v.Transparency=0
- end))
- end
- end
- for _,v in pairs(m2:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency-0.1
- end
- v.Transparency=0
- end))
- end
- end
- for _,v in pairs(m3:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency-0.1
- end
- v.Transparency=0
- end))
- end
- end
- end
- function Cloak2()
- cloaked2=true
- so("http://roblox.com/asset/?id=178452217",Torso,0.5,1)
- for _,v in pairs(Torso.Parent:children()) do
- if v.className=="Part" and v.Name~="HumanoidRootPart" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- CloakEffect.Enabled = true
- CloakEffect2.Enabled = true
- CloakEffectLight.Enabled = true
- v.Transparency=v.Transparency+0.1
- end
- v.Transparency=1
- CloakEffect.Enabled = false
- CloakEffect2.Enabled = false
- CloakEffectLight.Enabled = false
- end))
- end
- if v.className=="Hat" then
- hatp=v.Handle
- co_resume(co_create(function(hatty)
- for i=0,1,0.1 do
- wait()
- hatty.Transparency=hatty.Transparency+0.1
- end
- hatty.Transparency=1
- end),hatp)
- end
- end
- for _,v in pairs(m:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency+0.1
- end
- v.Transparency=1
- end))
- end
- end
- for _,v in pairs(m2:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency+0.1
- end
- v.Transparency=1
- end))
- end
- end
- for _,v in pairs(m3:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency+0.1
- end
- v.Transparency=1
- end))
- end
- end
- end
- function UnCloak2()
- cloaked2=false
- so("http://roblox.com/asset/?id=178452217",Torso,0.5,1.2)
- for _,v in pairs(Torso.Parent:children()) do
- if v.className=="Part" and v.Name~="HumanoidRootPart" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- CloakEffect.Enabled = true
- CloakEffect2.Enabled = true
- CloakEffectLight.Enabled = true
- v.Transparency=v.Transparency-0.1
- end
- v.Transparency=0
- CloakEffect.Enabled = false
- CloakEffect2.Enabled = false
- CloakEffectLight.Enabled = false
- end))
- end
- if v.className=="Hat" then
- hatp=v.Handle
- co_resume(co_create(function(hatty)
- for i=0,1,0.1 do
- wait()
- hatty.Transparency=hatty.Transparency-0.1
- end
- hatty.Transparency=0
- end),hatp)
- end
- end
- for _,v in pairs(m:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency-0.1
- end
- v.Transparency=0
- end))
- end
- end
- for _,v in pairs(m2:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency-0.1
- end
- v.Transparency=0
- end))
- end
- end
- for _,v in pairs(m3:children()) do
- if v.className=="Part" then
- co_resume(co_create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency-0.1
- end
- v.Transparency=0
- end))
- end
- end
- end
- function GottaFlip()
- attack=true
- for i=0,1,0.5 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(0,0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(75),-math_rad_90,0),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(75),math_rad_90,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- end
- for i=0,1,0.08 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(rad(-10),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-10),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(205),-math_rad_90,0),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(205),math_rad_90,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- end
- for i=0,1,0.02 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(0,0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(150),-math_rad_90,0),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(150),math_rad_90,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.65,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.65,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.65,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.65,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.65,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.65,0)*angles(0,0,-math_rad_90),0.45)
- end
- attack=false
- end
- function attackone()
- if cloaked==true then
- speed.Value = 1.25
- UnCloak()
- end
- attack=true
- for i=0,1,0.15 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1)*angles(0,0,-math_rad_30),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,math_rad_30),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(75),0,rad(75)),0.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(rad(-20),rad(190),-math_rad_90),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- end
- con1=Glove1Finger1ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con2=Glove1Finger2ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con3=Glove1Finger3ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con4=Glove1Finger4ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- so("http://roblox.com/asset/?id=338586299",LeftArm,1,1.1)
- for i=0,1,0.15 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(rad(10),0,math_rad_60),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,-math_rad_60),0.45)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(rad(75),0,rad(-45)),0.45)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(-40),0,rad(-40)),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- con1:disconnect()
- con2:disconnect()
- con3:disconnect()
- con4:disconnect()
- attack=false
- end
- function attacktwo()
- if cloaked==true then
- speed.Value = 1.25
- UnCloak()
- end
- attack=true
- for i=0,1,0.15 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1)*angles(0,0,math_rad_30),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,-math_rad_30),0.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(rad(-20),rad(160),math_rad_90),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(75),0,rad(-75)),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- con1=Glove2Finger1ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con2=Glove2Finger2ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con3=Glove2Finger3ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con4=Glove2Finger4ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- so("http://roblox.com/asset/?id=338586318",RightArm,1,1.1)
- for i=0,1,0.15 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)*angles(rad(10),0,-math_rad_60),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,math_rad_60),0.45)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(-40),0,rad(40)),0.45)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(rad(75),0,math_rad_45),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- con1:disconnect()
- con2:disconnect()
- con3:disconnect()
- con4:disconnect()
- attack=false
- end
- function attackthree()
- if cloaked==true then
- speed.Value = 1.25
- UnCloak()
- end
- canidle=false
- canwalk=false
- attack=true
- for i=0,1,0.6 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2)*angles(rad(10),0,0),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,0),0.45)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math_rad_45,0,0),0.45)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-0.25)*angles(math_rad_45,0,0),0.45)
- RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(rad(-10),math_rad_90,0)*angles(0,0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-20),-math_rad_90,0)*angles(rad(-5),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- for i=0,1,0.15 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2)*angles(rad(-10),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-10),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.75,0)*angles(rad(105),math_rad_45,math_rad_90),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.75,0)*angles(rad(105),rad(-45),-math_rad_90),0.3)
- RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(rad(-10),math_rad_90,0)*angles(0,0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-20),-math_rad_90,0)*angles(rad(-5),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- canidle=true
- canwalk=true
- con1=Glove1Finger1ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con2=Glove1Finger2ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con3=Glove1Finger3ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con4=Glove1Finger4ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con5=Glove2Finger1ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con6=Glove2Finger2ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con7=Glove2Finger3ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con8=Glove2Finger4ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- so("http://roblox.com/asset/?id=338586331",Torso,1,1.1)
- for i=0,1,0.15 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1)*angles(rad(10),0,0),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,0),0.45)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(rad(75),math_rad_45,rad(-75)),0.45)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-0.25)*angles(rad(75),rad(-45),rad(75)),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- con1:disconnect()
- con2:disconnect()
- con3:disconnect()
- con4:disconnect()
- con5:disconnect()
- con6:disconnect()
- con7:disconnect()
- con8:disconnect()
- attack=false
- end
- function attackfour()
- if cloaked==true then
- speed.Value = 1.25
- UnCloak()
- end
- attack=true
- for i=0,1,0.15 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(rad(10),0,rad(75)),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,rad(-15)),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(-math_rad_90,0,math_rad_90),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math_rad_90,0,-math_rad_90),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- con1=Glove1Finger1ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con2=Glove1Finger2ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con3=Glove1Finger3ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con4=Glove1Finger4ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con5=Glove2Finger1ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con6=Glove2Finger2ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con7=Glove2Finger3ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- con8=Glove2Finger4ClawFinger.Touched:connect(function(hit) Damagefunc(hit,5,10,5,"SlashLifeSteal",RootPart,.2,1) end)
- so("http://roblox.com/asset/?id=338586299",Torso,1,1.3)
- for i=0,1,0.125 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(rad(-10),0,rad(0-360*i)),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(0,0,0),0.45)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(-math_rad_90,0,math_rad_90),0.45)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math_rad_90,0,-math_rad_90),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- con1:disconnect()
- con2:disconnect()
- con3:disconnect()
- con4:disconnect()
- con5:disconnect()
- con6:disconnect()
- con7:disconnect()
- con8:disconnect()
- attack=false
- end
- function SpiralDispursion()
- if cloaked==true then
- speed.Value = 1.25
- UnCloak()
- end
- attack=true
- con1=Glove1Finger1ClawFinger.Touched:connect(function(hit) Damagefunc(hit,7,14,5,"SlashLifeSteal",RootPart,.2,1) end)
- con2=Glove1Finger2ClawFinger.Touched:connect(function(hit) Damagefunc(hit,7,14,5,"SlashLifeSteal",RootPart,.2,1) end)
- con3=Glove1Finger3ClawFinger.Touched:connect(function(hit) Damagefunc(hit,7,14,5,"SlashLifeSteal",RootPart,.2,1) end)
- con4=Glove1Finger4ClawFinger.Touched:connect(function(hit) Damagefunc(hit,7,14,5,"SlashLifeSteal",RootPart,.2,1) end)
- con5=Glove2Finger1ClawFinger.Touched:connect(function(hit) Damagefunc(hit,7,14,5,"SlashLifeSteal",RootPart,.2,1) end)
- con6=Glove2Finger2ClawFinger.Touched:connect(function(hit) Damagefunc(hit,7,14,5,"SlashLifeSteal",RootPart,.2,1) end)
- con7=Glove2Finger3ClawFinger.Touched:connect(function(hit) Damagefunc(hit,7,14,5,"SlashLifeSteal",RootPart,.2,1) end)
- con8=Glove2Finger4ClawFinger.Touched:connect(function(hit) Damagefunc(hit,7,14,5,"SlashLifeSteal",RootPart,.2,1) end)
- for i=1,4 do
- so("http://roblox.com/asset/?id=338586331",Torso,1,math.random(120,140)/100)
- for i=0,1,0.125 do
- FatEvent:wait()
- Torso.Velocity=RootPart.CFrame.lookVector*25
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(0,rad(-180),rad(0-360*i)),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(0,0,0),0.45)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(-math_rad_90,0,math_rad_90),0.45)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math_rad_90,0,-math_rad_90),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- end
- con1:disconnect()
- con2:disconnect()
- con3:disconnect()
- con4:disconnect()
- con5:disconnect()
- con6:disconnect()
- con7:disconnect()
- con8:disconnect()
- for i=0,1,0.12 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2)*angles(rad(0+360*i),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(20),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math_rad_90,0,-math_rad_30),0.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math_rad_90,0,math_rad_30),0.3)
- RH.C0=clerp(RH.C0,cf(1,0.5,-1)*angles(rad(-10),math_rad_90,0)*angles(rad(-5),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,0.5,-1)*angles(rad(-10),-math_rad_90,0)*angles(rad(-5),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- end
- attack=false
- end
- function GalacticLunge()
- if cloaked==true then
- speed.Value = 1.25
- UnCloak()
- end
- canidle=false
- canwalk=false
- attack=true
- for i=1,1 do
- for i=0,1,0.125 do
- FatEvent:wait()
- Torso.Velocity=RootPart.CFrame.lookVector*50
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,4)*angles(rad(0+360*i),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-10),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.75,0)*angles(rad(105),math_rad_45,math_rad_90),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.75,0)*angles(rad(105),rad(-45),-math_rad_90),0.3)
- RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(rad(-10),math_rad_90,0)*angles(0,0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-20),-math_rad_90,0)*angles(rad(-5),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- end
- for i=0,1,0.4 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2)*angles(rad(-10),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-10),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.75,0)*angles(rad(75),math_rad_45,math_rad_90),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.75,0)*angles(rad(75),rad(-45),-math_rad_90),0.3)
- RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(rad(-10),math_rad_90,0)*angles(0,0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-20),-math_rad_90,0)*angles(rad(-5),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- canidle=true
- canwalk=true
- con1=Glove1Finger1ClawFinger.Touched:connect(function(hit) Damagefunc(hit,10,20,5,"SlashLifeSteal",RootPart,.2,1) end)
- con2=Glove1Finger2ClawFinger.Touched:connect(function(hit) Damagefunc(hit,10,20,5,"SlashLifeSteal",RootPart,.2,1) end)
- con3=Glove1Finger3ClawFinger.Touched:connect(function(hit) Damagefunc(hit,10,20,5,"SlashLifeSteal",RootPart,.2,1) end)
- con4=Glove1Finger4ClawFinger.Touched:connect(function(hit) Damagefunc(hit,10,20,5,"SlashLifeSteal",RootPart,.2,1) end)
- con5=Glove2Finger1ClawFinger.Touched:connect(function(hit) Damagefunc(hit,10,20,5,"SlashLifeSteal",RootPart,.2,1) end)
- con6=Glove2Finger2ClawFinger.Touched:connect(function(hit) Damagefunc(hit,10,20,5,"SlashLifeSteal",RootPart,.2,1) end)
- con7=Glove2Finger3ClawFinger.Touched:connect(function(hit) Damagefunc(hit,10,20,5,"SlashLifeSteal",RootPart,.2,1) end)
- con8=Glove2Finger4ClawFinger.Touched:connect(function(hit) Damagefunc(hit,10,20,5,"SlashLifeSteal",RootPart,.2,1) end)
- so("http://roblox.com/asset/?id=338586331",Torso,1,math.random(120,140)/100)
- for i=0,1,0.15 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1)*angles(rad(10),0,0),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,0),0.45)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(rad(75),math_rad_45,rad(-75)),0.45)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-0.25)*angles(rad(75),rad(-45),rad(75)),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- con1:disconnect()
- con2:disconnect()
- con3:disconnect()
- con4:disconnect()
- con5:disconnect()
- con6:disconnect()
- con7:disconnect()
- con8:disconnect()
- attack=false
- end
- function CelestialMatterDistortion()
- if cloaked==true then
- UnCloak()
- end
- invisible=true
- attack=true
- for i=0,1,0.12 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 16*speed.Value
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(0,0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math_rad_90,0,rad(-45)),0.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math_rad_90,0,math_rad_45),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- Humanoid.WalkSpeed = 0*speed.Value
- canidle=false
- canwalk=false
- for i=0,1,0.08 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 0*speed.Value
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.1)*angles(math_rad_45,0,math_rad_45),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-20),rad(20),rad(-45)),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math_rad_45,0,math_rad_45),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(-math_rad_30,0,-math_rad_30),0.3)
- RH.C0=clerp(RH.C0,cf(0.9,-1,0.45)*angles(rad(-35),math_rad_45,0)*angles(math_rad_15,0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,0,-1)*angles(math_rad_45,rad(-105),0)*angles(rad(25),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- Head.Transparency = 1
- Cloak2()
- for i=0,1,0.1 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 0*speed.Value
- Head.Transparency = 1
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.1)*angles(math_rad_45,0,math_rad_45),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-20),rad(20),rad(-45)),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math_rad_45,0,math_rad_45),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(-math_rad_30,0,-math_rad_30),0.3)
- RH.C0=clerp(RH.C0,cf(0.9,-1,0.45)*angles(rad(-35),math_rad_45,0)*angles(math_rad_15,0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,0,-1)*angles(math_rad_45,rad(-105),0)*angles(rad(25),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- wait(0.5)
- Head.Transparency = 1
- --Eye1.Transparency = 0.5
- --Eye2.Transparency = 0.5
- Humanoid.WalkSpeed = 16*speed.Value
- canidle=true
- canwalk=true
- attack=false
- wait(5)
- UnCloak2()
- invisible=false
- end
- function DemolishingGroundPound()
- if cloaked==true then
- UnCloak()
- end
- canidle=false
- canwalk=false
- attack=true
- Humanoid.WalkSpeed = 0*speed.Value
- for i=0,1,0.08 do
- FatEvent:wait()
- Torso.Velocity=RootPart.CFrame.lookVector*25
- Humanoid.WalkSpeed = 0*speed.Value
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+2*i)*angles(rad(-15-15*i),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(30+15*i),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1,0.75+0.25*i,-0.5+0.5*i)*angles(rad(135+30*i),0,rad(-15)),0.3)
- LW.C0=clerp(LW.C0,cf(-1,0.75+0.25*i,-0.5+0.5*i)*angles(rad(135+30*i),0,math_rad_15),0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(rad(-20-15*i),math_rad_90,0)*angles(rad(-10),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-20-15*i),-math_rad_90,0)*angles(rad(-10),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- end
- for i=0,1,0.5 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 0*speed.Value
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*angles(rad(135),0,0),0.6)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-45),0,0),0.6)
- RW.C0=clerp(RW.C0,cf(1,0.75,-0.5)*angles(rad(205),0,rad(-15)),0.6)
- LW.C0=clerp(LW.C0,cf(-1,0.75,-0.5)*angles(rad(205),0,math_rad_15),0.6)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(rad(-20),math_rad_90,0)*angles(rad(-10),0,0),0.6)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-20),-math_rad_90,0)*angles(rad(-10),0,0),0.6)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- end
- hitfloor=nil
- while hitfloor==nil do
- FatEvent:wait()
- hitfloor,posfloor=rayCast(Head.Position,(cf(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- end
- Col=hitfloor.BrickColor
- refpart=part(3,workspace,"SmoothPlastic",0,1,Col,"Effect",vt())
- refpart.Anchored=true
- refpart.Parent=workspace
- refpart.CFrame=cf(posfloor)
- game:GetService("Debris"):AddItem(refpart,3)
- for i=1,20 do
- local Color=hitfloor.BrickColor
- local Materials=hitfloor.Material
- local groundpart=part(3,workspace,"SmoothPlastic",0,0,Color,"Ground",vt(math.random(10,50)/100,math.random(10,50)/100,math.random(10,50)/100))
- groundpart.Anchored=false
- groundpart.Material=Materials
- groundpart.CanCollide=true
- groundpart.Friction = 0.1
- groundpart.Velocity=Vector3.new(math.random(-25,25),math.random(50,75),math.random(-25,25))
- groundpart.CFrame=cf(posfloor)*cf(math.random(-250,250)/100,0,math.random(-250,250)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- local actualgroundpart=part(3,workspace,"SmoothPlastic",0,0,Color,"Ground",vt(math.random(100,200)/100,math.random(100,200)/100,math.random(100,200)/100))
- actualgroundpart.Anchored=true
- actualgroundpart.Material=Materials
- actualgroundpart.CanCollide=false
- actualgroundpart.Friction = 1
- actualgroundpart.CFrame=cf(posfloor)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- game:GetService("Debris"):AddItem(actualgroundpart,10)
- game:GetService("Debris"):AddItem(groundpart,10)
- co_resume(co_create(function()
- wait(5)
- while true do
- FatEvent:wait()
- --groundpart.Size=Vector3.new(groundpart.Size.x+0.025,groundpart.Size.y+0.025,groundpart.Size.z+0.025)
- --actualgroundpart.Size=Vector3.new(actualgroundpart.Size.x+0.025,actualgroundpart.Size.y+0.025,actualgroundpart.Size.z+0.025)
- groundpart.Transparency=groundpart.Transparency+0.025
- actualgroundpart.Transparency=actualgroundpart.Transparency+0.05
- --JumpEffect(Col,cf(groundpart.Position),1,1,1,1,1,1,0.1)
- --JumpEffect(Col,cf(actualgroundpart.Position),1,1,1,1,1,1,0.1)
- end
- end))
- end
- so("http://roblox.com/asset/?id=200632875",Torso,1,1)
- so("http://roblox.com/asset/?id=263610131",Torso,1,1)
- so("http://roblox.com/asset/?id=263610111",Torso,1,1)
- JumpEffect(Col,cf(refpart.Position),1,1,1,1,1,4,0.05)
- JumpEffect(Col,cf(refpart.Position),1,1,1,1,1,1,0.025)
- MagniDamage(refpart,12,15,20,10,"Normal")
- for i=0,1,0.4 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 0*speed.Value
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*angles(rad(135+15*i),0,0),0.6)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-45-15*i),0,0),0.6)
- RW.C0=clerp(RW.C0,cf(1,0.75,-0.5)*angles(rad(205+15*i),0,rad(-15)),0.6)
- LW.C0=clerp(LW.C0,cf(-1,0.75,-0.5)*angles(rad(205+15*i),0,math_rad_15),0.6)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(rad(-20-15*i),math_rad_90,0)*angles(rad(-10),0,0),0.6)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-20-15*i),-math_rad_90,0)*angles(rad(-10),0,0),0.6)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- end
- for i=0,1,0.05 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 0*speed.Value
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math_rad_90,0,0),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-45),0,0),0.45)
- RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(rad(180),0,rad(-15)),0.45)
- LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(rad(180),0,math_rad_15),0.45)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(0,math_rad_90,0)*angles(rad(-5),0,0),0.45)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(0,-math_rad_90,0)*angles(rad(-5),0,0),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- end
- for i=0,1,0.15 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 0*speed.Value
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.1)*angles(math_rad_45,0,0),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-20),0,0),0.45)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math_rad_45,0,math_rad_15),0.45)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math_rad_45,0,rad(-15)),0.45)
- RH.C0=clerp(RH.C0,cf(0.9,-1,0)*angles(rad(-15),math_rad_90,0)*angles(0,0,0),0.45)
- LH.C0=clerp(LH.C0,cf(-1,0.8,-0.8)*angles(rad(35),-math_rad_90,0)*angles(0,0,0),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- Humanoid.WalkSpeed = 16*speed.Value
- canidle=true
- canwalk=true
- attack=false
- end
- function CometalBlast()
- attack=true
- canidle=false
- canwalk=false
- for i=0,1,0.12 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 0*speed.Value
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(rad(10),0,math_rad_30),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,-math_rad_30),0.45)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(rad(75),0,-math_rad_60),0.45)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(-15),0,-math_rad_30),0.45)
- RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(rad(10),math_rad_90,0)*angles(rad(-2.5),0,0),0.45)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-45),-math_rad_90,0)*angles(rad(-2.5),0,0),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- so("http://roblox.com/asset/?id=199145659",LeftArm,1,math.random(150,200)/100)
- for i=0,1,0.12 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 0*speed.Value
- OrbEffect(TorsoColor,LeftArm.CFrame*cf(0,-1,0),0.1,0.1,0.1,0.5,0.5,0.5,0.1)
- BlockShockwave(TorsoColor,LeftArm.CFrame*cf(0,-1,0),0.1,0.1,0.1,0.5,0.5,0.5,0.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(rad(10),0,math_rad_30),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,-math_rad_30),0.45)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(rad(75),0,-math_rad_60),0.45)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(-15),0,-math_rad_30),0.45)
- RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(rad(10),math_rad_90,0)*angles(rad(-2.5),0,0),0.45)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-45),-math_rad_90,0)*angles(rad(-2.5),0,0),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- canidle=true
- canwalk=true
- for i=0,1,0.08 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 16*speed.Value
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(0,0,rad(-75)),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(0,0,rad(75)),0.45)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(-15),0,math_rad_30),0.45)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(0,rad(-15),-math_rad_90),0.45)
- --RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(0,math_rad_90,0)*angles(rad(-2.5),0,0),0.45)
- --LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(0,-math_rad_90,0)*angles(rad(-2.5),0,0),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- canidle=false
- canwalk=false
- refpart=part(3,workspace,"SmoothPlastic",0,1,Col,"Effect",vt())
- refpart.Anchored=true
- refpart.CFrame=RootPart.CFrame*cf(0,0,-10)
- game:GetService("Debris"):AddItem(refpart,3)
- for i=1,20 do
- local groundpart=part(3,workspace,"SmoothPlastic",0,0,TorsoColor,"Ground",vt(math.random(100,200)/100,math.random(100,200)/100,math.random(100,200)/100))
- groundpart.Anchored=false
- groundpart.Material="Neon"
- groundpart.CanCollide=false
- groundpart.Friction = 0.1
- groundpart.Velocity=Vector3.new(math.random(-50,50),math.random(75,100),math.random(-50,50))
- groundpart.CFrame=cf(refpart.Position)*cf(math.random(-250,250)/100,0,math.random(-250,250)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- game:GetService("Debris"):AddItem(groundpart,5)
- co_resume(co_create(function()
- while true do
- FatEvent:wait()
- --groundpart.Size=Vector3.new(groundpart.Size.x+0.025,groundpart.Size.y+0.025,groundpart.Size.z+0.025)
- --actualgroundpart.Size=Vector3.new(actualgroundpart.Size.x+0.025,actualgroundpart.Size.y+0.025,actualgroundpart.Size.z+0.025)
- groundpart.Transparency=groundpart.Transparency+0.025
- --JumpEffect(Col,cf(groundpart.Position),1,1,1,1,1,1,0.1)
- --JumpEffect(Col,cf(actualgroundpart.Position),1,1,1,1,1,1,0.1)
- end
- end))
- end
- so("http://roblox.com/asset/?id=199145534",refpart,1,math.random(150,200)/100)
- for i=1,math.random(3,6) do
- OrbEffect(TorsoColor,cf(refpart.Position),1,1,1,1,1,1,0.025)
- Shockwave(TorsoColor,cf(refpart.Position),1,1,1,1,1,1,0.025)
- end
- MagniDamage(refpart,20,8,16,20,"Normal")
- Humanoid.Jump=true
- Torso.Velocity=Vector3.new(0,7.5,0)
- Torso.Velocity=RootPart.CFrame.lookVector*-75
- for i=1,math.random(3,6) do
- OrbEffect(TorsoColor,LeftArm.CFrame*cf(0,-1,0),0.1,0.1,0.1,0.5,0.5,0.5,0.075)
- BlockShockwave(TorsoColor,LeftArm.CFrame*cf(0,-1,0),0.1,0.1,0.1,0.5,0.5,0.5,0.075)
- end
- for i=0,1,0.08 do
- FatEvent:wait()
- Humanoid.WalkSpeed = 0*speed.Value
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,2,0)*angles(rad(-20-45*i),0,0),0.45)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(20),0,0),0.45)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(75),math_rad_45,math_rad_15),0.45)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(75),rad(-45),rad(-15)),0.45)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math_rad_45,math_rad_90,0)*angles(rad(-7.5),0,0),0.45)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math_rad_45,-math_rad_90,0)*angles(rad(-7.5),0,0),0.45)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- canidle=true
- canwalk=true
- attack=false
- end
- function BlackHole()
- if cloaked==true then
- UnCloak()
- end
- canidle=false
- canwalk=false
- attack=true
- Humanoid.Jump=true
- so("http://roblox.com/asset/?id=199145761",Torso,1,math.random(75,125)/100)
- for i=1,2 do
- for i=0,1,0.12 do
- FatEvent:wait()
- Torso.Velocity = vt(0, 20, 0)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(0,0,rad(0+360*i)),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-20),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(-10),0,math_rad_15),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(-10),0,rad(-15)),0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(rad(-10),math_rad_90,0)*angles(rad(-10),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-10),-math_rad_90,0)*angles(rad(-10),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- BlockShockwave(TorsoColor,LeftLeg.CFrame*cf(0,-1,0),1,1,1,0.5,0.5,0.5,0.1)
- BlockShockwave(TorsoColor,RightLeg.CFrame*cf(0,-1,0),1,1,1,0.5,0.5,0.5,0.1)
- end
- end
- so("http://roblox.com/asset/?id=199145659",RightArm,1,math.random(100,150)/100)
- for i=0,1,0.04 do
- FatEvent:wait()
- Torso.Velocity = vt(0, 4, 0)
- OrbEffect(TorsoColor,RightArm.CFrame*cf(0,-1,0),0.5,0.5,0.5,0.5,0.5,0.5,0.075)
- BlockShockwave(TorsoColor,RightArm.CFrame*cf(0,-1,0),0.5,0.5,0.5,0.5,0.5,0.5,0.075)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(rad(-10),0,rad(-45)),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,math_rad_45),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(105),0,rad(75)),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(75),0,math_rad_45),0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(rad(-15),math_rad_90,0)*angles(rad(-5),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math_rad_15,-math_rad_90,0)*angles(rad(-5),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- BlockShockwave(TorsoColor,LeftLeg.CFrame*cf(0,-1,0),1,1,1,0.5,0.5,0.5,0.1)
- BlockShockwave(TorsoColor,RightLeg.CFrame*cf(0,-1,0),1,1,1,0.5,0.5,0.5,0.1)
- end
- portal=true
- portalrefpart=part(3,workspace,"SmoothPlastic",0,1,Col,"Effect",vt())
- portalrefpart.Anchored=true
- portalrefpart.CFrame=Head.CFrame*cf(0,0,-15)
- game:GetService("Debris"):AddItem(portalrefpart,3)
- portalrefpart2=part(3,workspace,"SmoothPlastic",0,1,Col,"Effect",vt())
- portalrefpart2.Anchored=true
- portalrefpart2.CFrame=Head.CFrame*cf(0,0,-15)
- game:GetService("Debris"):AddItem(portalrefpart2,10)
- so("http://roblox.com/asset/?id=203691653",portalrefpart,1,math.random(100,150)/100)
- so("http://roblox.com/asset/?id=203691562",portalrefpart,1,math.random(100,150)/100)
- for i=1,math.random(3,6) do
- OrbEffect(TorsoColor,cf(portalrefpart.Position),2,2,2,2,2,2,0.025)
- BlockShockwave(TorsoColor,cf(portalrefpart.Position),2,2,2,2,2,2,0.025)
- end
- co_resume(co_create(function()
- while portalrefpart.Parent==workspace do
- FatEvent:wait()
- local PWN={}
- for _,v in pairs(workspace:children()) do
- if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
- if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
- if v~=Character and (v.Torso.Position-portalrefpart.Position).magnitude<=35 then
- table.insert(PWN,v.Torso)
- end
- end
- end
- end
- for _,t in pairs(PWN) do
- local Mag=(portalrefpart.Position-t.Position).magnitude/2
- --t.Parent.Humanoid:TakeDamage(1)
- rl=it("BodyAngularVelocity")
- rl.P=2000
- rl.maxTorque=vt(9999,9999,9999)
- rl.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
- rl.Parent=t
- game:GetService("Debris"):AddItem(rl,.1)
- if Mag<=2 then
- --t.Parent.Humanoid:TakeDamage(.5)
- else
- vl=it("BodyVelocity")
- vl.P=2000
- vl.maxForce=vt(9999,9999,9999)
- vl.velocity=(t.Position-portalrefpart.Position).unit*-(50/(Mag))
- vl.Parent=t
- game:GetService("Debris"):AddItem(vl,.1)
- end
- end
- so("http://roblox.com/asset/?id=203691610",portalrefpart,1,math.random(100,150)/100)
- MagniDamage(portalrefpart,35,1,2,1,"BlackHoleDamage")
- OrbEffect(TorsoColor,cf(portalrefpart.Position),2,2,2,2,2,2,0.075)
- BlockShockwave(TorsoColor,cf(portalrefpart.Position),2,2,2,2,2,2,0.05)
- end
- if portalrefpart.Parent~=workspace then
- end
- so("http://roblox.com/asset/?id=203691699",portalrefpart2,1,math.random(100,150)/100)
- for i=0,1,0.08 do
- FatEvent:wait()
- for i=1,math.random(3,6) do
- OrbEffect(TorsoColor,cf(portalrefpart2.Position),20,20,20,-1.5,-1.5,-1.5,0.075)
- BlockShockwave(TorsoColor,cf(portalrefpart2.Position),20,20,20,-1.5,-1.5,-1.5,0.075)
- end
- end
- wait(0.5)
- so("http://roblox.com/asset/?id=203691510",portalrefpart2,1,math.random(100,150)/100)
- so("http://roblox.com/asset/?id=199145534",portalrefpart2,1,math.random(100,150)/100)
- --MagniDamage(portalrefpart2,50,10,20,10,"BlackHoleDamage2")
- for i=1,math.random(3,6) do
- OrbEffect(TorsoColor,cf(portalrefpart2.Position),0.1,0.1,0.1,2,2,2,0.025)
- BlockShockwave(TorsoColor,cf(portalrefpart2.Position),0.1,0.1,0.1,2,2,2,0.025)
- end
- end))
- for i=0,1,0.08 do
- FatEvent:wait()
- Torso.Velocity = vt(0, 4, 0)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(rad(10),0,math_rad_45),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-10),0,rad(-45)),0.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(rad(75),0,rad(-45)),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math_rad_30,0,-math_rad_30),0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math_rad_15,math_rad_90,0)*angles(rad(-2.5),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-15),-math_rad_90,0)*angles(rad(-2.5),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- BlockShockwave(TorsoColor,LeftLeg.CFrame*cf(0,-1,0),1,1,1,0.5,0.5,0.5,0.1)
- BlockShockwave(TorsoColor,RightLeg.CFrame*cf(0,-1,0),1,1,1,0.5,0.5,0.5,0.1)
- end
- canidle=true
- canwalk=true
- attack=false
- end
- function DoubleJump()
- --candoublejump=false
- canidle=false
- canwalk=false
- attack=true
- Torso.Velocity = vt(0, 70, 0)
- JumpEffect("Light stone grey",cf(Torso.Position),0.1,0.1,0.75,0.75,0.75,0.5,0.075)
- so("http://roblox.com/asset/?id=161006221",Torso,0.5,math.random(150,200)/100)
- for i=0,1,0.12 do
- FatEvent:wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2)*angles(rad(0+360*i),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(20),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math_rad_90,0,-math_rad_30),0.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math_rad_90,0,math_rad_30),0.3)
- RH.C0=clerp(RH.C0,cf(1,0.5,-1)*angles(rad(-10),math_rad_90,0)*angles(rad(-5),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,0.5,-1)*angles(rad(-10),-math_rad_90,0)*angles(rad(-5),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- end
- canidle=true
- canwalk=true
- attack=false
- --wait(2)
- --candoublejump=true
- end
- kill_connections[2]=mouse.Button1Down:connect(function()
- if attack==false then
- if attacktype==1 then
- attacktype=2
- attackone()
- elseif attacktype==2 then
- attacktype=3
- attacktwo()
- elseif attacktype==3 then
- attacktype=4
- attackthree()
- elseif attacktype==4 then
- attacktype=1
- attackfour()
- end
- end
- co_resume(co_create(function()
- for i=1,50 do
- if attack==false then
- FatEvent:wait()
- end
- end
- if attack==false then
- attacktype=1
- end
- end))
- end)
- kill_connections[3]=mouse.KeyDown:connect(function(k)
- k=k:lower()
- if k=='e' and attack==false and usedstealth==false and invisible==false then
- if cloaked==false and stealth>=50 then
- usedstealth=true
- Cloak()
- wait(0.5)
- usedstealth=false
- elseif cloaked==true then
- usedstealth=true
- UnCloak()
- wait(0.5)
- usedstealth=false
- end
- while cloaked==true and stealth>=0 do
- FatEvent:wait()
- stealth = stealth-1/1.5
- if Humanoid.Health>30 then
- Torso.Velocity=RootPart.CFrame.lookVector*(25*Humanoid.Health/50)
- elseif Humanoid.Health<30 then
- Torso.Velocity=RootPart.CFrame.lookVector*20
- end
- end
- if stealth<=0 then
- UnCloak()
- end
- end
- --[[if k=='t' and attack==false then
- GottaFlip()
- end]]--
- if k=='z' then
- if attack==false and cloaked==true and cooldown1>=co1 and stamina>=skill1stam then
- cooldown1=0
- subtractstamina(skill1stam)
- SpiralDispursion()
- elseif attack==false and cloaked==false and cooldown1>=co1 and stamina>=skill1stam then
- cooldown1=cooldown1/2
- subtractstamina(skill1stam)
- GalacticLunge()
- end
- end
- if k=='x' and attack==false and stealth>=30 and cooldown2>=co2 and stamina>=skill2stam then
- cooldown2=0
- subtractstamina(skill2stam)
- stealth = stealth-30
- CelestialMatterDistortion()
- end
- if k=='c' then
- if attack==false and cloaked==true and cooldown3>=co3 and stamina>=skill3stam then
- cooldown3=0
- subtractstamina(skill3stam)
- DemolishingGroundPound()
- elseif attack==false and cloaked==false and cooldown3>=co3 and stamina>=skill3stam then
- cooldown3=cooldown3/2
- subtractstamina(skill3stam)
- CometalBlast()
- end
- end
- if k=='v' and attack==false and cooldown4>=co4 and stamina>=skill4stam then
- cooldown4=0
- subtractstamina(skill4stam)
- BlackHole()
- end
- if k==' ' and attack==false and cloaked==false and Anim=="Jump" and jumpstamina==100 then
- DoubleJump()
- jumpstamina=0
- end
- end)
- kill_connections[4]=mouse.KeyUp:connect(function(k)
- k=k:lower()
- end)
- local s2=c3(104/255,104/255,104/255)
- local inc=2
- local min=function(a,b)
- return a>b and b or a
- end
- function updateskills(dt)
- local add=inc*dt
- local ddt=1.5*dt
- cooldown1 = (cooldown1 <= co1 and cooldown1 + add) or cooldown1
- cooldown2 = (cooldown2 <= co2 and cooldown2 + add) or cooldown2
- cooldown3 = (cooldown3 <= co3 and cooldown3 + add) or cooldown3
- cooldown4 = (cooldown4 <= co4 and cooldown4 + add) or cooldown4
- bar4.BackgroundColor3=(stamina<=skill1stam and s2) or skillcolorscheme
- bar3.BackgroundColor3=(stamina<=skill2stam and s2) or skillcolorscheme
- bar2.BackgroundColor3=(stamina<=skill4stam and s2) or skillcolorscheme
- bar1.BackgroundColor3=(stamina<=skill3stam and s2) or skillcolorscheme
- stamina = (stamina <= maxstamina and stamina + recovermana * ddt) or maxstamina
- stealth = (stealth <= maxstealth and stealth + recoverstealth * ddt) or maxstealth
- jumpstamina = (jumpstamina <= maxjumpstamina and jumpstamina + recoverjumpstamina * ddt) or maxjumpstamina
- if stealth >= maxstealth then
- stealth=100
- end
- if cooldown1 >= co1 then
- cooldown1=20
- end
- if cooldown2 >= co2 then
- cooldown2=30
- end
- if cooldown3 >= co3 then
- cooldown3=40
- end
- if cooldown4 >= co4 then
- cooldown4=100
- end
- end
- local TS = healthcover.TweenSize
- kill_connections[5]=game:GetService'RunService'.Heartbeat:connect(function(dt)
- updateskills(dt)
- TS(healthcover, ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
- TS(staminacover, ud(1 * (stamina / maxstamina), 0, 1, 0), 'Out', 'Quad', .5)
- TS(stealthcover, ud(1 * (stealth / maxstealth), 0, 1, 0), 'Out', 'Quad', .5)
- TS(jumpstaminacover, ud(1 * (jumpstamina / maxjumpstamina), 0, 1, 0), 'Out', 'Quad', .5)
- TS(bar4,ud(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
- TS(bar3,ud(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
- TS(bar1,ud(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
- TS(bar2,ud(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
- end)
- local function Clean()
- for i = 1,#kill_connections do
- pcall(function()kill_connections[i]:disconnect()end)
- end
- for i,v in pairs(Character:GetChildren'') do
- if v.ClassName=='Model' then
- v.Parent=workspace
- v.Children.CanCollide = true
- end
- end
- error('script ended c:')
- end
- kill_connections[6]=Character.Humanoid.Died:connect(Clean)
- local sine = 0
- local change = 1
- local val = 0
- --[[local LastPoint=EffectReference.CFrame*cf(0,EffectReference.Size.Y/1.5,0)
- local Point=EffectReference.CFrame*cf(0,EffectReference.Size.Y/1.5,0)
- effect("Really black",0,LastPoint,Point)
- LastPoint=Point]]--
- FatEvent:connect(function()
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(cf(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if not bar1.Parent then
- Clean()
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false and cloaked==false then
- Humanoid.WalkSpeed=16*speed.Value
- change=2
- FatEvent:wait()
- --JumpEffect("Light stone grey",cf(Torso.Position),0.1,0.1,0.75,0.75,0.75,0.5,0.025)
- --Torso.Velocity = RootPart.Velocity*Vector3.new(0,1.5,0)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(rad(-10),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-10),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(-20),0,rad(20)),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(-20),0,rad(-20)),0.3)
- RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(rad(-10),math_rad_90,0)*angles(0,0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-20),-math_rad_90,0)*angles(rad(-5),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- else
- if attack==false and cloaked==true then
- FatEvent:wait()
- Humanoid.WalkSpeed=16*speed.Value
- change=2
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(rad(75),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-45),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(-15),-math_rad_30,rad(20)),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(-15),math_rad_30,rad(-20)),0.3)
- RH.C0=clerp(RH.C0,cf(1,-0.9,0.1)*angles(rad(-15),rad(75),0)*angles(rad(-10),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-0.9,0.1)*angles(rad(-15),rad(-75),0)*angles(rad(-10),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false and cloaked==false then
- FatEvent:wait()
- Humanoid.WalkSpeed=16*speed.Value
- change=2
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(rad(10),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.75,0)*angles(rad(-10),0,rad(135)),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.75,0)*angles(rad(-10),0,rad(-135)),0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(rad(-20),math_rad_90,0)*angles(rad(-20),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(rad(-20),-math_rad_90,0)*angles(rad(-20),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(-0.15,-0.15,-0.15)*angles(rad(-10),0,rad(10)),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(-0.25,-0.15,0)*angles(0,0,rad(20)),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(-0.45,-0.35,0.1)*angles(rad(10),0,math_rad_30),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-0.15,0,0)*angles(0,0,rad(10)),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0.15,-0.15,-0.15)*angles(rad(-10),0,rad(-10)),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0.25,-0.15,0)*angles(0,0,rad(-20)),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0.45,-0.35,0.1)*angles(rad(10),0,-math_rad_30),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0.15,0,0)*angles(0,0,rad(-10)),0.45)
- else
- if attack==false and cloaked==true then
- FatEvent:wait()
- Humanoid.WalkSpeed=16*speed.Value
- change=2
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(rad(75),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-45),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(-15),-math_rad_30,rad(20)),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(-15),math_rad_30,rad(-20)),0.3)
- RH.C0=clerp(RH.C0,cf(1,-0.9,0.1)*angles(rad(-15),rad(75),0)*angles(rad(-10),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-0.9,0.1)*angles(rad(-15),rad(-75),0)*angles(rad(-10),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false then
- FatEvent:wait()
- Humanoid.WalkSpeed=16*speed.Value
- change=2
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*cos(sine/15))*angles(rad(10-2.5*cos(sine/15)),0,rad(-45)),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(10-2.5*cos(sine/15))+ -sin(sine/15)/15,rad(0-2.5*cos(sine/15))+ -sin(sine/15)/15,math_rad_45),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.55+0.05*cos(sine/15)+ -sin(sine/15)/15,0)*angles(math_rad_15,0,rad(15+5*cos(sine/15))),0.3)
- LW.C0=clerp(LW.C0,cf(-1,0.55+0.05*cos(sine/15)+ sin(sine/15)/15,-0.5)*angles(rad(105+5*cos(sine/15))+ -sin(sine/15)/15,0,math_rad_45),0.3)
- RH.C0=clerp(RH.C0,cf(1.1,-0.9-0.05*cos(sine/15),0.1)*angles(rad(-10-2.5*cos(sine/15)),rad(75),0)*angles(rad(-5-2.5*cos(sine/15)),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1.2,-0.9-0.15*cos(sine/15),0.1)*angles(rad(15-2.5*cos(sine/15)),-math_rad_60,0)*angles(rad(-10+2.5*cos(sine/15)),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- else
- if attack==true and canidle==true then
- FatEvent:wait()
- Humanoid.WalkSpeed=16*speed.Value
- change=2
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(0,math_rad_90,0)*angles(rad(-5),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(0,-math_rad_90,0)*angles(rad(-5),0,0),0.3)
- end
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil then
- Anim="Walk"
- if attack==false and cloaked==false then
- FatEvent:wait()
- Humanoid.WalkSpeed=16*speed.Value
- change=2
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.25+0.2*cos(sine/3.5)+ -sin(sine/3.5)/7)*angles(rad(20),0+RootPart.RotVelocity.Y/30,rad(-60+5*cos(sine/7))),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0+0.05*cos(sine/3.5))*angles(0,rad(2.5*cos(sine/7)),rad(60-5*cos(sine/7))+Head.RotVelocity.Y/15),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.55+0.05*cos(sine/3.5)+ -sin(sine/3.5)/7,0)*angles(rad(10),-math_rad_30,rad(60+5*cos(sine/3.5))),0.3)
- LW.C0=clerp(LW.C0,cf(-1,0.55+0.05*cos(sine/3.5)+ sin(sine/3.5)/7,-0.5)*angles(rad(105+5*cos(sine/7)),0,math_rad_45),0.3)
- RH.C0=clerp(RH.C0,cf(0.9+0.25*cos(sine/7)/2,-1.1-0.25*cos(sine/7)/2,0.25*cos(sine/7)/2)*angles(rad(-15-45*cos(sine/7))+ -sin(sine/7)/2.5,rad(90-5*cos(sine/7)),0)*angles(rad(-20*cos(sine/7)),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1-0.25*cos(sine/7)/2,-0.65+0.25*cos(sine/7)/2,-0.25*cos(sine/7)/2)*angles(rad(-15+45*cos(sine/7))+ sin(sine/7)/2.5,rad(-90-5*cos(sine/7)),0)*angles(rad(-30*cos(sine/7)),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(-0.25,0,0)*angles(0,0,math_rad_15),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(-0.25,0,0)*angles(0,0,math_rad_15),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(-0.25,0,0)*angles(0,0,math_rad_15),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0.25,0,0)*angles(0,0,rad(-15)),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(-1.5,-0.6,0)*angles(0,0,math_rad_90),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(1.5,-0.6,0)*angles(0,0,-math_rad_90),0.45)
- else
- if attack==true and canwalk==true then
- FatEvent:wait()
- Humanoid.WalkSpeed=16*speed.Value
- change=2
- RH.C0=clerp(RH.C0,cf(1,-1-0.25*cos(sine/7)/2,0.5*cos(sine/7)/2)*angles(rad(-25-45*cos(sine/7))+ -sin(sine/7)/2.5,math_rad_90,0)*angles(0,0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-1+0.25*cos(sine/7)/2,-0.5*cos(sine/7)/2)*angles(rad(-25+45*cos(sine/7))+ sin(sine/7)/2.5,-math_rad_90,0)*angles(0,0,0),0.3)
- end
- end
- elseif torvel>=22 and hitfloor~=nil then
- Anim="Run"
- if attack==false and cloaked==true then
- FatEvent:wait()
- Humanoid.WalkSpeed=16*speed.Value
- change=2
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(rad(75),0,0),0.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(rad(-45),0,0),0.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(rad(-15),-math_rad_30,rad(20)),0.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(rad(-15),math_rad_30,rad(-20)),0.3)
- RH.C0=clerp(RH.C0,cf(1,-0.9,0.1)*angles(rad(-15),rad(75),0)*angles(rad(-10),0,0),0.3)
- LH.C0=clerp(LH.C0,cf(-1,-0.9,0.1)*angles(rad(-15),rad(-75),0)*angles(rad(-10),0,0),0.3)
- Finger1Handleweld.C0=clerp(Finger1Handleweld.C0,cf(0,0,0),0.45)
- Finger2Handleweld.C0=clerp(Finger2Handleweld.C0,cf(0,0,0),0.45)
- Finger3Handleweld.C0=clerp(Finger3Handleweld.C0,cf(0,0,0),0.45)
- Finger4Handleweld.C0=clerp(Finger4Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger1Handleweld.C0=clerp(Glove2Finger1Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger2Handleweld.C0=clerp(Glove2Finger2Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger3Handleweld.C0=clerp(Glove2Finger3Handleweld.C0,cf(0,0,0),0.45)
- Glove2Finger4Handleweld.C0=clerp(Glove2Finger4Handleweld.C0,cf(0,0,0),0.45)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement