Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --local remote = NS ([=[
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- Player = game:GetService("Players").LocalPlayer
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- Backpack = Player.Backpack
- mouse = Player:GetMouse()
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- ch = Character
- RootPart = Character.HumanoidRootPart
- RootJoint = RootPart.RootJoint
- local Anim="Idle"
- local inAir = false
- local inAir2 = false
- local attack = false
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- local cn = CFrame.new
- mr=math.rad
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local Anim="Idle"
- local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
- local Neck = Character.Torso:FindFirstChild("Neck")
- function weld(parent,part0,part1,c0)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- local Effects = it("Folder", Character)
- Effects.Name = "Effects"
- local inairvel=0
- local sine = 0
- local change = 1
- local nextstep=0
- local CanUseWalkSound = true
- local isruning = false
- local s2=Instance.new("Sound",Torso)
- local CurId = 0
- s2.EmitterSize = 30
- local s2c=s2:Clone()
- local lastid= "http://www.roblox.com/asset/?id=737822107"
- omegawait = false
- playsong = false
- s2.SoundId = lastid
- if playsong == true then
- s2:play()
- elseif playsong == false then
- s2:stop()
- end
- lastsongpos= 0
- function stopAnimations()
- coroutine.resume(coroutine.create(function()
- Character.Animate:Destroy()
- end))
- coroutine.resume(coroutine.create(function()
- for _,v in pairs(Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- end))
- end
- stopAnimations()
- coroutine.resume(coroutine.create(function()
- Character:WaitForChild("Sound")
- Character.Sound:Destroy()
- end))
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- local Ang=Instance.new("Model")
- Ang.Name="Angles"
- Ang.Parent=Character
- local rrx=Instance.new("NumberValue")
- rrx.Name="X"
- rrx.Parent=Ang
- rrx.Value=0
- local rry=Instance.new("NumberValue")
- rry.Name="Y"
- rry.Parent=Ang
- rry.Value=0
- local rrz=Instance.new("NumberValue")
- rrz.Name="Z"
- rrz.Parent=Ang
- rrz.Value=0
- function Acthing(Part00,Mid,MScale,MBC,MMT,MTran,WCF,MCL,Par,mode)
- local RoHead = Instance.new("Part")
- RoHead.Reflectance = 0
- RoHead.Transparency = MTran
- RoHead.CanCollide = false
- RoHead.Locked = true
- RoHead.Anchored=false
- RoHead.BrickColor = MBC
- RoHead.Name = "FakeAccessory"
- RoHead.Size = Vector3.new()
- RoHead.Material = MMT
- RoHead:BreakJoints()
- if Par ~= nil then
- RoHead.Parent = Par
- else
- RoHead.Parent = Character
- end
- local mesh = Instance.new("SpecialMesh",RoHead)
- mesh.MeshId = "rbxassetid://"..Mid
- mesh.Scale = MScale
- local weld2en = Instance.new("Motor6D")
- weld2en.Parent = Part00
- weld2en.Part0 = RoHead
- weld2en.Part1 = Part00
- weld2en.C1 = WCF
- if MCL ~= nil then
- RoHead.Color = MCL
- end
- RoHead.Archivable = false
- end
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- Model = New("Model",Character,"HeadModel",{})
- ClosedEye = New("Part",Model,"ClosedEye",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.657000065, 0.0800000057, 0.887999952),CFrame = CFrame.new(83.8328247, 4.671, 70.3116302, -0.857167363, 0.0269549564, 0.514332294, 0, 0.99862957, -0.0523358472, -0.515038133, -0.0448605791, -0.855992675),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",ClosedEye,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- Scar = New("Part",Model,"Scar",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.235000119, 0.0790000036, 0.309999943),CFrame = CFrame.new(84.2261581, 4.5109477, 70.0660706, -0.279842377, -0.545186341, -0.79022795, -0.26287359, 0.835170925, -0.483101726, 0.923355818, 0.0725377202, -0.377031326),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- Scar = New("Part",Model,"Scar",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.236000106, 0.0790000036, 0.322999954),CFrame = CFrame.new(84.1136551, 4.51439953, 70.0296097, -0.140042394, 0.0800183415, -0.986906886, -0.172471941, 0.979520082, 0.10389328, 0.975008607, 0.184763253, -0.123373419),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- Scar = New("Part",Model,"Scar",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.2330001, 0.0790000036, 0.322999954),CFrame = CFrame.new(84.196579, 4.5483489, 70.0506744, -0.279842377, -0.258210659, -0.924670577, -0.26287359, 0.946951985, -0.184876546, 0.923355818, 0.191335201, -0.332874089),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- Scar = New("Part",Model,"Scar",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.220000103, 0.0790000036, 0.322999954),CFrame = CFrame.new(84.2624969, 4.58219767, 70.0797348, -0.405663967, -0.638642013, -0.653890848, -0.325913131, 0.769442677, -0.549307525, 0.853942394, -0.0097226575, -0.520277023),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- Scar = New("Part",Model,"Scar",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.2110001, 0.0790000036, 0.322999954),CFrame = CFrame.new(84.3150482, 4.58735228, 70.1113815, -0.405663967, -0.849389911, -0.337599903, -0.325913131, 0.479497373, -0.81477797, 0.853942394, -0.220497817, -0.471342146),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- Scar = New("Part",Model,"Scar",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.258000135, 0.0560000017, 0.111999959),CFrame = CFrame.new(83.7404633, 4.63765049, 70.0976944, 0.259960175, 0.811267912, -0.523703337, -0.0409914553, 0.551132321, 0.833410382, 0.964749038, -0.195186153, 0.176527441),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- Scar = New("Part",Model,"Scar",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.263000131, 0.0560000017, 0.206999958),CFrame = CFrame.new(83.9439926, 4.64610767, 70.0304413, 0.259960145, -0.348504573, 0.90053612, -0.0409914516, -0.935741603, -0.350295842, 0.964748979, 0.0541487411, -0.257541239),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- Scar = New("Part",Model,"Scar",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.276000142, 0.0560000017, 0.23299998),CFrame = CFrame.new(83.785408, 4.63820314, 70.0842819, 0.259960175, 0.148454577, 0.954139411, -0.0409914553, -0.985523939, 0.164506078, 0.964749038, -0.0818765312, -0.25011158),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- NeonMid = New("Part",Model,"NeonMid",{BrickColor = BrickColor.new("White"),Material = Enum.Material.Neon,Size = Vector3.new(0.620000005, 0.455000013, 0.550000012),CFrame = CFrame.new(84.1202011, 4.68996763, 70.1767426, 0.913300812, -0.258819044, -0.314474553, 0.244718224, 0.965925813, -0.0842632055, 0.32556802, 0, 0.945518613),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("SpecialMesh",NeonMid,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- Mid = New("Part",Model,"Mid",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Glass,Transparency = 0.69999998807907,Transparency = 0.69999998807907,Size = Vector3.new(0.660000026, 0.5, 0.560000002),CFrame = CFrame.new(84.1199875, 4.69000006, 70.1799927, 0.913300812, -0.258819044, -0.314474553, 0.244718224, 0.965925813, -0.0842632055, 0.32556802, 0, 0.945518613),Anchored = true,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("SpecialMesh",Mid,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- Handle = New("Part",Model,"Handle",{Size = Vector3.new(0.200000003, 0.100000001, 0.100000001),CFrame = CFrame.new(84, 4.5, 70.5, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("SpecialMesh",Handle,"Mesh",{Scale = Vector3.new(12.5, 12.5, 12.5),})
- RMid = New("Part",Model,"RMid",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Size = Vector3.new(0.160000026, 0.360000014, 0.579999983),CFrame = CFrame.new(84.1685867, 4.70302391, 70.1882401, 0.991963387, -0.121951267, 0.0337104797, 0.121713221, 0.992524147, 0.00903268903, -0.03455998, -0.00485708844, 0.999390841),Anchored = true,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0, 0),})
- Mesh = New("SpecialMesh",RMid,"Mesh",{MeshType = Enum.MeshType.Sphere,})
- HeadModel = Model
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- CFuncs = {
- Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
- RemoveOutlines(Part)
- return Part
- end
- }
- ,
- Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- }
- ,
- Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- }
- ,
- Weld = {Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
- return Weld
- end
- }
- ,
- Sound = {Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end
- ))
- end
- }
- ,
- ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
- return fp
- end
- }
- }
- local Particle0 = Create("ParticleEmitter"){
- Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (0, 0, 0)),
- Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,.8),NumberSequenceKeypoint.new(0.3,.6),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,.8)}),
- Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.65),NumberSequenceKeypoint.new(0.25,.20),NumberSequenceKeypoint.new(0.7,.18),NumberSequenceKeypoint.new(1,0)}),
- Texture = "rbxassetid://118641183",
- Lifetime = NumberRange.new(0.95),
- Rate = 100,
- VelocitySpread = 60,
- Rotation = NumberRange.new(0),
- RotSpeed = NumberRange.new(-200,200),
- Speed = NumberRange.new(8.0),
- LightEmission = .6,
- LockedToPart = false,
- Acceleration = Vector3.new(0, 4, 0),
- EmissionDirection = "Top",
- Drag = 4,
- Enabled = false
- }
- local Particle1 = Create("ParticleEmitter"){
- Color = ColorSequence.new(Color3.new (0,0,0), Color3.new (.5, .5, .5)),
- Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.8),NumberSequenceKeypoint.new(.5,.8),NumberSequenceKeypoint.new(1,1)}),
- Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(.5,1),NumberSequenceKeypoint.new(1,.5)}),
- Texture = "rbxassetid://688705835",
- Lifetime = NumberRange.new(.8),
- Rate = 0,
- VelocitySpread = 50,
- ZOffset = .5,
- Rotation = NumberRange.new(0),
- RotSpeed = NumberRange.new(-200,200),
- Speed = NumberRange.new(5.0),
- LightEmission = 0,
- LockedToPart = false,
- Acceleration = Vector3.new(0, -10, 0),
- EmissionDirection = "Top",
- Drag = 1,
- Enabled = false
- }
- local Fire1 = Create("ParticleEmitter"){
- Color = ColorSequence.new(Color3.new (1, .3, 0), Color3.new (.5, 0, 0)),
- Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.2,.5),NumberSequenceKeypoint.new(1,1)}),
- Size = NumberSequence.new(3,0),
- Texture = "rbxassetid://248625108",
- Lifetime = NumberRange.new(0,.8),
- Rate = 0,
- VelocitySpread = 360,
- Rotation = NumberRange.new(4,9),
- Speed = NumberRange.new(1,2),
- LightEmission = 0.86,
- LockedToPart = false,
- Acceleration = Vector3.new(0, 10, 0),
- EmissionDirection = "Top",
- RotSpeed = NumberRange.new(-100,100),
- Enabled = false
- }
- local Fire2 = Create("ParticleEmitter"){
- Color = ColorSequence.new(Color3.new (1, .5, 0), Color3.new (.5, 0, 0)),
- Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.2,.5),NumberSequenceKeypoint.new(1,1)}),
- Size = NumberSequence.new(1.5,0),
- Texture = "rbxassetid://248625108",
- Lifetime = NumberRange.new(0,0.6),
- Rate = 0,
- VelocitySpread = 360,
- Rotation = NumberRange.new(4,9),
- Speed = NumberRange.new(0,2),
- LightEmission = 0.96,
- LockedToPart = false,
- Acceleration = Vector3.new(0, 5, 0),
- EmissionDirection = "Top",
- RotSpeed = NumberRange.new(-100,100),
- Enabled = false
- }
- so = function(id, par, vol, pit)
- CFuncs.Sound.Create(id, par, vol, pit)
- end
- rayCast = function(Pos, Dir, Max, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function swait(num)
- if num==0 or num==nil then
- --if Stagger.Value==false or Stun.Value<=100 then
- --Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
- script.Heartbeat.Event:wait()
- --end
- else
- for i=0,num do
- --Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
- script.Heartbeat.Event:wait()
- --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end]]
- end
- end
- end
- script:WaitForChild("Heartbeat")
- ScriptSpeed = 1
- frame = 1/(60/ScriptSpeed)
- tf = 0
- 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 frame2 or greater.
- tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
- lastframe = tick()
- script.Heartbeat:Fire() --ayy lmao
- game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe=tick()
- else
- ----print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame(math.floor(t/frame))))
- for i=1, math.floor(tf/frame) do
- script.Heartbeat:Fire()
- end
- lastframe=tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf/frame)
- end
- end
- end)
- Quan = nil
- local fail = false
- local Quantumn = New("Model",nil,"Quantumn",{})
- local EffectHolder = New("Part",Quantumn,"EffectHolder",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.05, 0.05, 0.05),CFrame = CFrame.new(0, 5.5000329, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,})
- EffectHolder.CanCollide = false
- Attachment01 = New("Attachment",EffectHolder,"Attachment01",{CFrame = CFrame.new(1.80000019, -1.34110451e-07, -1.80000019, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
- Attachment02 = New("Attachment",EffectHolder,"Attachment02",{CFrame = CFrame.new(-1.7999866, 4.47034836e-08, 1.80000019, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
- Attachment03 = New("Attachment",EffectHolder,"Attachment03",{CFrame = CFrame.new(-1.80000007, -1.34110451e-07, -1.80000019, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
- Attachment04 = New("Attachment",EffectHolder,"Attachment04",{CFrame = CFrame.new(1.80001354, 4.47034836e-08, 1.80000019, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
- Attachment05 = New("Attachment",EffectHolder,"Attachment05",{CFrame = CFrame.new(2.60000038, -1.34110451e-07, -2.98023224e-08, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
- Attachment06 = New("Attachment",EffectHolder,"Attachment06",{CFrame = CFrame.new(-2.59998679, 4.47034836e-08, 1.49011612e-08, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
- Attachment07 = New("Attachment",EffectHolder,"Attachment07",{CFrame = CFrame.new(1.49011612e-08, -1.34110451e-07, -2.60000038, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
- Attachment08 = New("Attachment",EffectHolder,"Attachment08",{CFrame = CFrame.new(1.34855509e-05, 4.47034836e-08, 2.60000038, 1, 0, 0, 0, -5.96046377e-08, -1, 0, 1, -5.96046377e-08),})
- local Beams = New("Model",EffectHolder,"Beams",{})
- --local badcombo = {{1,7}, {1,5}, {2,8}, {2,6}, {3,7}, {3,6}, {4,5}, {4,8},{1,2},{3,4},{5,6},{7,8},{1,4},{2,4},{3,2},{1,3},{7,6},{5,8},{6,8},{5,7}}
- --local badcombo = {{1,7}, {1,5}, {2,8}, {2,6}, {3,7}, {3,6}, {4,5}, {4,8},{1,4},{2,4},{3,2},{1,3},{7,6},{5,8},{6,8},{5,7}}
- local badcombo = {{1,7}, {1,5}, {2,8}, {2,6}, {3,7}, {3,6}, {4,5}, {4,8}}
- --local badcombo = {}
- function scan(scannum1,scannum2)
- for i = 1,#badcombo do
- local comb = badcombo[i]
- if scannum1 == comb[1] and scannum2 == comb[2]then
- fail = true
- end
- if scannum1 == comb[2] and scannum2 == comb[1]then
- fail = true
- end
- --swait()
- end
- end
- function GatherAllInstances(Parent,ig)
- local Instances = {}
- local Ignore=nil
- if ig ~= nil then
- Ignore = ig
- end
- local function GatherInstances(Parent,Ignore)
- for i, v in pairs(Parent:GetChildren()) do
- if v ~= Ignore then
- GatherInstances(v,Ignore)
- table.insert(Instances, v) end
- end
- end
- GatherInstances(Parent,Ignore)
- return Instances
- end
- coroutine.resume(coroutine.create(function()
- wait(1)
- for i, v2 in pairs(GatherAllInstances(Character)) do
- if v2:IsA("BasePart") then
- v2.Locked = true
- end end
- end))
- local AttachmentSelect = function(BeamSelect,Value1,Value2)
- local Select1 = 0
- local Select2 = 0
- scan(Value1,Value2)
- if fail == false then
- if Value1 == 1 then
- Select1=Attachment01
- elseif Value1 == 2 then
- Select1=Attachment02
- elseif Value1 == 3 then
- Select1=Attachment03
- elseif Value1 == 4 then
- Select1=Attachment04
- elseif Value1 == 5 then
- Select1=Attachment05
- elseif Value1 == 6 then
- Select1=Attachment06
- elseif Value1 == 7 then
- Select1=Attachment07
- elseif Value1 == 8 then
- Select1=Attachment08
- elseif Value1 == 0 or 9 then
- Select1=nil
- end
- if Value2 == 1 then
- Select2=Attachment01
- elseif Value2 == 2 then
- Select2=Attachment02
- elseif Value2 == 3 then
- Select2=Attachment03
- elseif Value2 == 4 then
- Select2=Attachment04
- elseif Value2 == 5 then
- Select2=Attachment05
- elseif Value2 == 6 then
- Select2=Attachment06
- elseif Value2 == 7 then
- Select2=Attachment07
- elseif Value2 == 8 then
- Select2=Attachment08
- elseif Value2 == 0 or 9 then
- Select2=nil
- end
- BeamSelect.Attachment0 = Select1
- BeamSelect.Attachment1 = Select2
- else
- fail = false
- BeamSelect:Destroy()
- end
- end
- local Glow1 = Color3.new(255/255, 184/255, 56/255)
- local Glow2 = Color3.new(1,0,0)
- for i = 1,8 do
- swait()
- for v = 1,8 do
- --swait()
- if i ~= v then
- swait()
- local Beam = New("Beam",Beams,"Beam",{Texture = "rbxassetid://1191605952",})
- Beam.Parent = Beams
- Beam.Width0 = .1
- Beam.Width1 = .1
- Beam.FaceCamera = true
- Beam.Color = ColorSequence.new(Glow1,Glow2)
- Beam.Transparency = NumberSequence.new(0,0)
- Beam.TextureLength = 1
- Beam.LightEmission = 1
- AttachmentSelect(Beam,i,v)
- end
- end
- end
- print("quan save")
- --Quan = Quantumn:Clone()
- function MakeQuanEffect(QPlayer,CFPos,QLifeTime,NumberV1,NumberV2,Scale1,T1,MoveCF)
- coroutine.resume(coroutine.create(function()
- local CQuan = Quantumn:Clone()
- CQuan.Parent = QPlayer
- game:GetService("Debris"):AddItem(CQuan, 20)
- CQuan.EffectHolder.CFrame = CFrame.new(CFPos)
- for i, v in pairs(GatherAllInstances(CQuan)) do
- coroutine.resume(coroutine.create(function()
- coroutine.resume(coroutine.create(function()
- if v:isA("Beam") then
- for i = 0,1.5*QLifeTime,NumberV2/(1+T1) do swait()
- v.Transparency = NumberSequence.new(i/(1.5*QLifeTime),i/(1.5*QLifeTime))
- v.Width0 = (1 - i/(1.5*QLifeTime))/2
- v.Width1 = (i/(1.5*QLifeTime))/2
- end
- v.Transparency = NumberSequence.new(1,1)
- wait()
- CQuan:Destroy()
- end
- end))
- coroutine.resume(coroutine.create(function()
- if v:isA("Attachment") then
- local QX = v.CFrame.X*Scale1
- local QY = v.CFrame.Y*Scale1
- local QZ = v.CFrame.Z*Scale1
- v.CFrame = CFrame.new(QX*0 ,QY* 0,QZ*0)
- for i = 1.5 + NumberV1,1.5 + (1.5*QLifeTime),NumberV2 do swait()
- v.CFrame = CFrame.new(QX* math.cos(i) ,QY* math.cos(i),QZ* math.cos(i))
- end
- end
- end))
- end))
- end
- local CFPos2 = CFrame.new(CFPos)
- local endloop=false
- while endloop==false do
- CQuan.EffectHolder.CFrame = clerp(CQuan.EffectHolder.CFrame,CFPos2*MoveCF ,.1)
- CFPos2= CQuan.EffectHolder.CFrame
- swait() if CQuan == nil or CQuan.Parent == nil then
- endloop=true
- end end end))
- end
- BeamRing = New("Model",nil,"BeamRing",{})
- Beaamstart2 = New("Part",BeamRing,"BeamHolder",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(77.3999939, 5.40723991, 119.900009, 0, 0, -1, 0, -1, 0, -1, 0, 0),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Attachment0 = New("Attachment",Beaamstart2,"Attachment0",{CFrame = CFrame.new(0, 0, .75, 1, 0, 0, 0, -1, 0, 0, 0, -1),})
- Attachment1 = New("Attachment",Beaamstart2,"Attachment1",{CFrame = CFrame.new(0, 0, -.75, 1, 0, 0, 0, -1, 0, 0, 0, -1),})
- Beaamstart2.CanCollide = false
- local Beam2 = New("Beam",Beams,"Beam",{Texture = "rbxassetid://457102813",})
- Beam2.Parent = BeamRing
- Beam2.Width0 = 1.5
- Beam2.Width1 = 1.5
- Beam2.FaceCamera = false
- Beam2.Transparency = NumberSequence.new(0,0)
- Beam2.TextureLength = .05
- Beam2.LightEmission = 1
- Beam2.CurveSize0 = 1
- Beam2.CurveSize1 = -1
- Beam2.Attachment0 = Beaamstart2.Attachment0
- Beam2.Attachment1 = Beaamstart2.Attachment1
- local Beam2 = New("Beam",Beams,"Beam",{Texture = "rbxassetid://457102813",})
- Beam2.Parent = BeamRing
- Beam2.Width0 = 1.5
- Beam2.Width1 = 1.5
- Beam2.FaceCamera = false
- Beam2.Transparency = NumberSequence.new(0,0)
- Beam2.TextureLength = .05
- Beam2.LightEmission = 1
- Beam2.CurveSize0 = -1
- Beam2.CurveSize1 = 1
- Beam2.Attachment0 = Beaamstart2.Attachment0
- Beam2.Attachment1 = Beaamstart2.Attachment1
- Beam2.TextureSpeed = -1
- function MakeBeamWaveEffect(QPlayer,BeamColor,CFPos,QLifeTime,NumberV1,NumberV2,Scale1,T1,BSize,MoveCF)
- QStart = 1.6
- coroutine.resume(coroutine.create(function()
- local CQuan = BeamRing:Clone()
- CQuan.Parent = QPlayer
- game:GetService("Debris"):AddItem(CQuan, 20)
- CQuan.BeamHolder.CFrame = CFrame.new(CFPos)
- for i, v in pairs(GatherAllInstances(CQuan)) do
- coroutine.resume(coroutine.create(function()
- coroutine.resume(coroutine.create(function()
- if v:isA("Beam") then
- v.Color = ColorSequence.new(BeamColor,BeamColor)
- coroutine.resume(coroutine.create(function()
- local CS0S=v.CurveSize0*Scale1
- local CS1S=v.CurveSize1*Scale1
- for i = QStart + NumberV1,QStart + (QStart*QLifeTime),NumberV2 do swait()
- v.CurveSize0=CS0S* math.cos(i)
- v.CurveSize1=CS1S* math.cos(i)
- end
- end))
- for i = 0,QStart*QLifeTime,NumberV2/(1+T1) do swait()
- v.Transparency = NumberSequence.new(i/(QStart*QLifeTime),i/(QStart*QLifeTime))
- v.Width0 = (1 - i/(QStart*QLifeTime))*BSize
- v.Width1 = (1 - i/(QStart*QLifeTime))*BSize
- end
- v.Transparency = NumberSequence.new(1,1)
- wait()
- CQuan:Destroy()
- end
- end))
- coroutine.resume(coroutine.create(function()
- if v:isA("Attachment") then
- local QX = v.CFrame.X*Scale1
- local QY = v.CFrame.Y*Scale1
- local QZ = v.CFrame.Z*Scale1
- v.CFrame = CFrame.new(QX*0 ,QY* 0,QZ*0)
- for i = QStart + NumberV1,QStart + (QStart*QLifeTime),NumberV2 do swait()
- v.CFrame = CFrame.new(QX* math.cos(i) ,QY* math.cos(i),QZ* math.cos(i))
- end
- end
- end))
- end))
- end
- local CFPos2 = CFrame.new(CFPos)
- local endloop=false
- while endloop==false do
- CQuan.BeamHolder.CFrame = clerp(CQuan.BeamHolder.CFrame,CFPos2*MoveCF ,.1)
- CFPos2= CQuan.BeamHolder.CFrame
- swait() if CQuan == nil or CQuan.Parent == nil then
- endloop=true
- end end end))
- end
- function WeldAllTo(Part1,Part2,Extra)
- local EXCF = Part2.CFrame * Extra
- for i, v3 in pairs(GatherAllInstances(Part2)) do
- if v3:isA("BasePart") then
- local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
- v3.Anchored=false
- --v3.Transparency=0
- v3.CanCollide=false
- v3.Parent = Part1
- end
- end
- end
- for i, v in pairs(GatherAllInstances(HeadModel)) do
- if v:IsA("BasePart") then
- v.Anchored = true
- v.CanCollide = false
- v.Locked = true
- if v:findFirstChild("Mesh")then
- v.Mesh.Scale = v.Size*10
- v.Size = Vector3.new(.1,.1,.1)
- elseif not v:findFirstChild("Mesh") then
- local RobotPart = Create("SpecialMesh"){
- Parent = v,
- --TextureId = "http://www.roblox.com/asset/?id=1374149",
- --MeshId = "http://www.roblox.com/asset/?id=430080097",
- MeshType = "Brick",
- Scale = v.Size*10,
- Offset = vt(0,0,0)
- }
- if v.Shape.Name == "Cylinder" then
- RobotPart.MeshType = "Cylinder"
- end
- v.Size = Vector3.new(.1,.1,.1)
- end
- end
- if v:IsA("BasePart")and v.Name == "Handle" then
- local ParentS = v.Parent
- v.Parent = nil
- local vC = v:Clone()
- vC.Name = "Part"
- vC.Parent = ParentS
- for _,v2 in pairs(ParentS:GetChildren()) do
- v2.Parent = v
- end
- v.Name = ParentS.Name
- v.Parent = ParentS.Parent
- vC:Destroy()
- ParentS:Destroy()
- end
- end
- WeldAllTo(Head,Character.HeadModel,cn(0,0,0))
- Character.HeadModel:Destroy()
- 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
- 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 CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end
- function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- -----------------------------------------------------------------------------------
- Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
- coroutine.resume(coroutine.create(function()
- if h.Health >999999999999999 and minim <9999999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away") then
- h.Parent:BreakJoints()
- end
- end))
- if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
- return
- end
- local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
- game:GetService("Debris"):AddItem(c, 0.5)
- if HitSound ~= nil and HitPitch ~= nil then
- so(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil and block.className == "IntValue" and block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- if blocked == false then
- h.Health = h.Health - Damage
- ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
- else
- h.Health = h.Health - Damage / 2
- ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
- end
- if Type == "Knockdown" then
- local hum = h
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(.2)
- HHumanoid.PlatformStand = false
- end
- ), hum)
- local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
- local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
- local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
- game:GetService("Debris"):AddItem(bodvol, 0.2)
- game:GetService("Debris"):AddItem(rl, 0.2)
- elseif Type == "Knockdown2" then
- local hum = h
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- Combo = 1 swait(.2)
- HHumanoid.PlatformStand = false
- end
- ), hum)
- local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
- local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
- local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
- game:GetService("Debris"):AddItem(bodvol, 0.2)
- game:GetService("Debris"):AddItem(rl, 0.2)
- local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
- game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
- if knockback > 0 then
- local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
- vp.Parent = HTorso
- end
- game:GetService("Debris"):AddItem(vp, 0.25)
- elseif Type == "Normal2" then
- local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
- if knockback > 0 then
- local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
- vp.Parent = HTorso
- coroutine.resume(coroutine.create(function()
- end))
- local SValue = 1.5
- local randomcf = cn(math.random(-1, 1)/7,math.random(-1, 1)/7,0)
- end
- game:GetService("Debris"):AddItem(vp, 0.5)
- elseif Type == "Impale" then
- CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
- hit.Parent.Humanoid.PlatformStand = true
- swait(1)
- hit.Parent.Humanoid.PlatformStand = false
- elseif Type == "IgnoreType" then
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
- game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
- local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
- game:GetService("Debris"):AddItem(bodyVelocity, .1)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze2" then
- local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
- local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end
- ), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- c.Parent = h
- game:GetService("Debris"):AddItem(c, 0.5)
- end
- end
- --Value1=MaybeOk(1,"29,30,31,10,12,29,30,31,0")
- --if Player:IsFriendsWith(game.Players:GetUserIdFromNameAsync(Value1)) then
- --Tim = "1" else Tim = "0" end
- ShowDamage = function(Pos, Text, Time, Color)
- local Rate = 0.033333333333333
- if not Pos then
- local Pos = Vector3.new(0, 0, 0)
- end
- local Text = Text or ""
- local Time = Time or 2
- if not Color then
- local Color = Color3.new(1, 0, 1)
- end
- local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
- local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
- game.Debris:AddItem(EffectPart, Time + 0.1)
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = Time / Rate
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = Frame / Frames
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end
- )
- end
- MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
- for _,c in pairs(workspace:children()) do
- local hum = c:FindFirstChild("Humanoid")
- for _,v in pairs(c:children()) do
- if v:IsA("Humanoid") then
- hum = v
- end
- end
- if hum ~= nil then
- local head = c:findFirstChild("Head")
- 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, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2)
- end
- end
- end
- end
- end
- function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type)
- local DGP = Instance.new("Part")
- DGP.Parent = Character
- DGP.Size = Vector3.new(0.05, 0.05, 0.05)
- DGP.Transparency = 1
- DGP.CanCollide = false
- DGP.Anchored = true
- RemoveOutlines(DGP)
- DGP.Position=DGP.Position + Vector3.new(0,-.1,0)
- DGP.CFrame = HTCF
- coroutine.resume(coroutine.create(function()
- MagniDamage(DGP, magni, mindam, maxdam, knock, Type)
- end))
- game:GetService("Debris"):AddItem(DGP, .05)
- DGP.Archivable = false
- end
- -----------------------------------------------------------------------------------
- local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
- local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
- local RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
- local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
- RW.C1 = cn(0, 0.5, 0)
- LW.C1 = cn(0, 0.5, 0)
- RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- --[[
- for i = 0,5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- --]]
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 100
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= Character) then
- temp = (temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso"))
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- function FireSoul(SpawnCF)
- local GhostHolder = Instance.new("Part")
- GhostHolder.Reflectance = 0
- GhostHolder.Transparency = 1
- GhostHolder.CanCollide = false
- GhostHolder.Locked = true
- GhostHolder.Anchored=false
- GhostHolder.BrickColor = BrickColor.new("Gold")
- GhostHolder.Name = "FireSoul"
- GhostHolder.Size = Vector3.new()
- GhostHolder.Material = "Neon"
- GhostHolder:BreakJoints()
- GhostHolder.Parent = Effects
- GhostHolder.CFrame = SpawnCF
- game:GetService("Debris"):AddItem(GhostHolder, 60)
- coroutine.resume(coroutine.create(function()
- for i = 0,1,.05 do
- swait()
- if GhostHolder.Parent == Effects then
- GhostHolder.Transparency = 1-i
- end
- end
- GhostHolder.Transparency = 0
- end))
- local function onTouch(part)
- if part.Parent ~= Character and part.Parent.Parent ~= Character then
- local ExplotionPart = Instance.new("Part")
- ExplotionPart.Reflectance = 0
- ExplotionPart.Transparency = 1
- ExplotionPart.CanCollide = false
- ExplotionPart.Locked = true
- ExplotionPart.Anchored=true
- ExplotionPart.BrickColor = BrickColor.new("Really blue")
- ExplotionPart.Name = "Explotion"
- ExplotionPart.Size = Vector3.new()
- ExplotionPart.Material = "SmoothPlastic"
- ExplotionPart:BreakJoints()
- ExplotionPart.Parent = Effects
- ExplotionPart.CFrame = GhostHolder.CFrame
- game:GetService("Debris"):AddItem(ExplotionPart, 3)
- so("335657174", ExplotionPart,1.5, 1.5)
- GhostHolder.Parent = nil
- GhostHolder:Destroy()
- MakeBeamWaveEffect(Effects,Color3.new(1, 0.25, 0),ExplotionPart.Position- Vector3.new(0, 0, 0),2.0,0,0.06,5,0,2,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0))*angles(math.rad(math.random(-6,6)),math.rad(math.random(-6,6)),math.rad(math.random(-6,6))))
- MagniDamage(ExplotionPart, 8, 20, 35, 0, "Knockdown")
- local NewParticle = Particle1:Clone()
- NewParticle.Parent = ExplotionPart
- NewParticle.Acceleration = Vector3.new(0,0,0)
- NewParticle:Emit(20)
- NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,5)})
- NewParticle.Color = ColorSequence.new(Color3.new (1, .69019608, 0), Color3.new (1, .69019608, 0))
- NewParticle.Lifetime = NumberRange.new(.4,.5)
- NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.1,.5),NumberSequenceKeypoint.new(1,1)})
- NewParticle.Speed = NumberRange.new(0)
- NewParticle.ZOffset = 2
- NewParticle.RotSpeed = NumberRange.new(-100,100)
- NewParticle.Rotation = NumberRange.new(-0,0)
- NewParticle.LightEmission = 1
- NewParticle.Texture = "rbxassetid://288978836"
- end
- end
- GhostHolder.Touched:connect(onTouch)
- local NewParticle = Fire2:Clone()
- NewParticle.Parent = GhostHolder
- NewParticle.VelocitySpread = 180
- NewParticle.Speed = NumberRange.new(0.0)
- NewParticle.Acceleration = Vector3.new(0, 0, 0)
- NewParticle.Rotation = NumberRange.new(-360,360)
- NewParticle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.5,.5),NumberSequenceKeypoint.new(1,1)})
- NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.25),NumberSequenceKeypoint.new(.5,2),NumberSequenceKeypoint.new(1,.25)})
- NewParticle.Lifetime = NumberRange.new(1.3)
- NewParticle.Texture = "rbxassetid://2120313592"
- NewParticle.Enabled = true
- NewParticle.Rate = 20
- NewParticle.LightEmission = 1
- NewParticle.Color = ColorSequence.new(Color3.new (1, 0, 0), Color3.new (1, .69019608, 0))
- NewParticle.LockedToPart = true
- --GhostHolder:BreakJoints()
- --GhostHolder.Anchored = false
- local GhostMesh1 = Create("SpecialMesh"){
- Parent = GhostHolder,
- MeshType = "Sphere",
- Scale = vt(8,8,8)*2,
- Offset = vt(0,0,0)
- }
- --Acthing(GhostHolder,"1698327723",Vector3.new(1.41,1.42,1.41),BrickColor.new("Really black"),"Glass",0.0,cn(0,.0325,0)*angles(math.rad(0), math.rad(180), math.rad(0)),Color3.new(0,0,0),GhostHolder,2)
- local GhostTarget=nil
- local GhostForce = Create("BodyVelocity")({velocity = Vector3.new(0, 0, 0) , P = 5000, maxForce = Vector3.new(math.huge, math.huge, math.huge), Parent = GhostHolder})
- coroutine.resume(coroutine.create(function()
- wait(0.25)
- while GhostHolder.Parent == Effects do wait()
- GhostTarget = findNearestTorso(GhostHolder.Position)
- if GhostTarget ~=nil then
- GhostForce.velocity =Vector3.new(0, 0, 0)+CFrame.new(GhostHolder.Position,GhostTarget.Position).lookVector *20
- else
- GhostForce.velocity = Vector3.new(0, 0, 0)
- local RandomPart = Instance.new("Part")
- RandomPart.Reflectance = 0
- RandomPart.Transparency = 1
- RandomPart.CanCollide = false
- RandomPart.Locked = true
- RandomPart.Anchored=true
- RandomPart.BrickColor = BrickColor.new("Really blue")
- RandomPart.Name = "MUDA"
- RandomPart.Size = Vector3.new()
- RandomPart.Material = "SmoothPlastic"
- RandomPart:BreakJoints()
- RandomPart.Parent = workspace
- RandomPart.CFrame = GhostHolder.CFrame
- onTouch(RandomPart)
- game:GetService("Debris"):AddItem(RandomPart, .5)
- end
- --wait(1.35)
- end
- GhostHolder:Destroy()
- end))
- end
- function Attack1()
- attack=true
- so("331888777", RightLeg,1.15, 1.4)
- for i = 0,.7,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-40)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(40 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(-45 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-15.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(12.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(10.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,1,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-40)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(40 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(-45 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-45.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(12.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(10.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,.2,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-40)), .2)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(40 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(-45 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-15.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(12.5- 0.0 * math.cos(sine / 8))),.2)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(10.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5- 0.0 * math.cos(sine / 8))),.2)
- end
- for i = 0,.3,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(40)), .2)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-40 - 0 * math.cos(sine / 8/3))), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(-45 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(95.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(12.5- 0.0 * math.cos(sine / 8))),.2)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(0.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.2)
- end
- for i = 0,.3,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-65 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(40)), .2)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-40 - 0 * math.cos(sine / 8/3))), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(-45 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(95.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(12.5- 0.0 * math.cos(sine / 8))),.2)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-40.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-40.5- 0.0 * math.cos(sine / 8))),.2)
- end
- for i = 0,1,.06 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, i, 1.15+i*3) * angles(math.rad(-45-360*i), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(40)), .2)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(-43.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-40 - 0 * math.cos(sine / 8/3))), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(-0-180*i), math.rad(0), math.rad(20 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(-0-180*i - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-20 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(95.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(12.5- 0.0 * math.cos(sine / 8))),.2)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-40.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-40.5- 0.0 * math.cos(sine / 8))),.2)
- end
- for i = 0,1.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 1, 4 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-50 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20)), .2)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(43.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(20 - 0 * math.cos(sine / 8/3))), .2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(-15 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(10 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(-15 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-20 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(100 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.2)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-30.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.2)
- end
- so("331888892", RightLeg,1.5, 1)
- coroutine.resume(coroutine.create(function() swait(5)
- for i, v in pairs(GatherAllInstances(Character,Effects)) do
- if v.Parent ~= Head and v:isA("BasePart") and v ~= RootPart then
- coroutine.resume(coroutine.create(function()
- local NewParticle = Fire2:Clone()
- NewParticle.Parent = v
- NewParticle:Emit(30)
- game:GetService("Debris"):AddItem(NewParticle, 3)
- end))
- end
- end
- end))
- MakeQuanEffect(Effects,RootPart.Position- Vector3.new(0, 3, 0) + RootPart.CFrame.lookVector*2 ,1.6,0,0.05,6,0,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0))*angles(0,math.rad(20),0))
- --MagniDamage(MiniGun.BHandle, 10, 25, 35, 0, "Knockdown")
- CFMagniDamage(CFrame.new(RootPart.Position- Vector3.new(0, 3, 0) + RootPart.CFrame.lookVector*2 ),15, 45, 55, 20, "Snare")
- for i = 0,2.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -0.55 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20)), .3)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(53.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-20 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(20 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-20 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.50- 0.0 * math.cos(sine / 8), -0.3) * CFrame.Angles(math.rad(10 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.3)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.50- 0.0 * math.cos(sine / 8), -.2) * CFrame.Angles(math.rad(-10.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.3)
- end
- --------------------
- attack=false
- end
- function Attack2()
- attack=true
- for i = 0,1,.1 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-30)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(30 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(45 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(15 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(45 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-15 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,1,.1 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45 , 0.6, -.2) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.6, -.2) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- MakeBeamWaveEffect(Effects,Color3.new(1, 0.5, 0),Torso.Position- Vector3.new(0, 12, 0),2.0,0,0.1,15,.1,6,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 4, 0))*angles(0,math.rad(40),0))
- coroutine.resume(coroutine.create(function()
- swait(10)
- so("438666077", RootPart,2, 1)
- end))
- for i = 0,14,.4 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 -i*5), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45 , 0.6, -.2) * angles(math.rad(90+i*5), math.rad(0), math.rad(-0 -i*2)), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.6, -.2) * angles(math.rad(90+i*5), math.rad(-0), math.rad(0+i*2)), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i, v in pairs(GatherAllInstances(Character,Effects)) do
- if v.Parent ~= Head and v:isA("BasePart") and v ~= RootPart then
- coroutine.resume(coroutine.create(function()
- local NewParticle = Fire1:Clone()
- NewParticle.Parent = v
- NewParticle:Emit(40)
- game:GetService("Debris"):AddItem(NewParticle, 3)
- end))
- end
- end
- MakeBeamWaveEffect(Effects,Color3.new(1, 0.35, 0),RootPart.Position- Vector3.new(0, 4.5, 0),0.8,0,0.1,15,.5,190,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, .125, 0))*angles(0,math.rad(40),0))
- MakeBeamWaveEffect(Effects,Color3.new(1, 0, 0),RootPart.Position- Vector3.new(0, 4, 0),0.85,0,0.0575,65,0,70,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, .125, 0))*angles(0,math.rad(40),0))
- MakeBeamWaveEffect(Effects,Color3.new(1, 0.25, 0),RootPart.Position- Vector3.new(0, 3, 0),1,0,0.05,75,0,20,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0))*angles(0,math.rad(40),0))
- --CFMagniDamage(CFrame.new(RootPart.Position),55, 45, 55, 0, "Knockdown")
- MagniDamage(RootPart, 55, 65, 75, 0, "Knockdown")
- for i = 0,3,.1 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.85 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(43.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(25 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-25 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.2- 0.0 * math.cos(sine / 8), -.25) * CFrame.Angles(math.rad(-10.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -1.25- 0.0 * math.cos(sine / 8), -.7) * CFrame.Angles(math.rad(-85 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,1,.1 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.75 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(33.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .25)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(25 + 0 * math.cos(sine / 8))), 0.25)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-25 - 0 * math.cos(sine / 8))), 0.25)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.25- 0.0 * math.cos(sine / 8), -.25) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -1.25- 0.0 * math.cos(sine / 8), -.7) * CFrame.Angles(math.rad(-75 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,1,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(20 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(15 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-15 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- attack=false
- end
- function Attack3()
- attack=true
- for i = 0,1.5,.1 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.85 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(43.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(25 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-25 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.2- 0.0 * math.cos(sine / 8), -.25) * CFrame.Angles(math.rad(-10.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -1.25- 0.0 * math.cos(sine / 8), -.7) * CFrame.Angles(math.rad(-85 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- so("331888892", RootPart,2, 0.8)
- MakeBeamWaveEffect(Effects,Color3.new(1, 0.25, 0),RootPart.Position- Vector3.new(0, 3, 0),1.5,0,0.1,10,0,10,CFrame.new(0,-1,0)*angles(0,math.rad(20),0))
- for i = 0,1,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.15+i*6) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(360*i)), .25)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(-33.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- so("160867463", Torso,1.5, 2)
- for i = 0,1,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 6) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(33.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(0 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-0 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.85+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.08)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.35+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-25 +1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
- end
- coroutine.resume(coroutine.create(function()
- local NewParticle = Fire2:Clone()
- NewParticle.Parent = Torso
- NewParticle.VelocitySpread = 180
- NewParticle.Speed = NumberRange.new(0.0)
- NewParticle.Acceleration = Vector3.new(0, 0, 0)
- NewParticle:Emit(4)
- NewParticle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.5,0),NumberSequenceKeypoint.new(1,1)})
- NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4),NumberSequenceKeypoint.new(.5,6.5),NumberSequenceKeypoint.new(1,5)})
- NewParticle.Lifetime = NumberRange.new(.6)
- NewParticle.Texture = "rbxassetid://321556991"
- NewParticle.Enabled = false
- game:GetService("Debris"):AddItem(NewParticle, 5)
- end))
- MakeBeamWaveEffect(Effects,Color3.new(1, 0.25, 0),Torso.Position- Vector3.new(0, 0, 0),1.5,0,0.03,20,0,3,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0))*angles(math.rad(math.random(-6,6)),math.rad(math.random(-6,6)),math.rad(math.random(-6,6))))
- MakeBeamWaveEffect(Effects,Color3.new(1, 0.25, 0),Torso.Position- Vector3.new(0, 0, 0),1.5,0,0.035,20,0,2,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0))*angles(math.rad(math.random(-6,6)),math.rad(math.random(-6,6)),math.rad(math.random(-6,6))))
- MakeBeamWaveEffect(Effects,Color3.new(1, 0.25, 0),Torso.Position- Vector3.new(0, 0, 0),1.5,0,0.04,20,0,1,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0))*angles(math.rad(math.random(-6,6)),math.rad(math.random(-6,6)),math.rad(math.random(-6,6))))
- coroutine.resume(coroutine.create(function()
- FireSoul(Torso.CFrame*cn(5,0,0))
- FireSoul(Torso.CFrame*cn(-5,0,0))
- end))
- for i, v in pairs(GatherAllInstances(Character,Effects)) do
- if v.Parent ~= Head and v:isA("BasePart") and v ~= RootPart then
- coroutine.resume(coroutine.create(function()
- local NewParticle = Fire1:Clone()
- NewParticle.Parent = v
- NewParticle:Emit(10)
- game:GetService("Debris"):AddItem(NewParticle, 3)
- end))
- end
- end
- for i = 0,4,.1 do swait()
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 6) * angles(math.rad(-30 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(-33.5 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(-0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.15)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-90 - 0 * math.cos(sine / 8))), 0.15)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.85+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.08)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.35+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-25 +1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
- end
- for i = 0,1.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.85 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .25)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(43.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(25 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-25 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.2- 0.0 * math.cos(sine / 8), -.25) * CFrame.Angles(math.rad(-10.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -1.25- 0.0 * math.cos(sine / 8), -.7) * CFrame.Angles(math.rad(-85 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- attack=false
- end
- function Attack4()
- attack=true
- for i = 0,1.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.85 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(53.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(-20 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(40 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-5 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.2- 0.0 * math.cos(sine / 8), -.25) * CFrame.Angles(math.rad(-10.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -1.25- 0.0 * math.cos(sine / 8), -.7) * CFrame.Angles(math.rad(-85 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,1.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.85 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-10 - 0 * math.cos(sine / 8)), math.rad((-20 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(33.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(-45 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(20 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-5 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.2- 0.0 * math.cos(sine / 8), -.25) * CFrame.Angles(math.rad(30.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(20.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -1.25- 0.0 * math.cos(sine / 8), -.7) * CFrame.Angles(math.rad(-65 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,1.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(00 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-5 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-20.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,1.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(13.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.4, -.0) * angles(math.rad(120 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(00 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-5 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-20.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,1.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(23.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(140 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(00 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-5 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-20.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- for i = 0,1.5,.1 do swait()
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -0.15 + 0.0 * math.cos(sine / 8)) * angles(math.rad(-0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-0)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(43.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6, -.0) * angles(math.rad(90 - 0 * math.cos(sine / 8)), math.rad(0), math.rad(90 + 0 * math.cos(sine / 8))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad(-0), math.rad(-5 - 0 * math.cos(sine / 8))), 0.2)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.90- 0.0 * math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-20.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- end
- attack=false
- end
- function JumpAfterEffect()
- if attack == false then
- attack = true
- if isruning == true then
- Humanoid.WalkSpeed= 10
- else
- Humanoid.WalkSpeed= 3
- end
- Humanoid.JumpPower= 0
- coroutine.resume(coroutine.create(function()
- local NewParticle = Particle1:Clone()
- local EffectFloor,PosFloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
- local EffectHolder = Instance.new("Part")
- EffectHolder.Parent = Character
- EffectHolder.Size = Vector3.new(0.05, 0.05, 0.05)
- EffectHolder.Transparency = 1
- EffectHolder.Anchored=true
- EffectHolder.Material = "Neon"
- EffectHolder.CanCollide = false
- EffectHolder.CFrame = cn(PosFloor)
- NewParticle.Color = ColorSequence.new(EffectFloor.Color, Color3.new (.5, .5, .5))
- NewParticle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,EffectFloor.Transparency+.3),NumberSequenceKeypoint.new(.5,EffectFloor.Transparency+.8),NumberSequenceKeypoint.new(1,1)})
- NewParticle.Parent = EffectHolder
- NewParticle:Emit(30)
- so("1161221108", EffectHolder,.7, math.random(100,120)/100)
- game:GetService("Debris"):AddItem(EffectHolder, 3)
- end))
- for i = 1,2.4,.1 do
- swait()
- Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(25-3 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
- RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, .3, -.6 +-.05 * math.cos(sine / 15.5)) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.60, -.0) * angles(math.rad(20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(15 + 0 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(-15 - 2 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.65+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.65+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
- end
- attack = false
- end
- end
- KeyUpF=function(key)
- if key == "02" then
- if isruning == true then
- isruning=false
- end
- end
- end
- KeyDownF=function(key)
- if key == "z" and attack == false then
- Attack1()
- end
- if key == "x" and attack == false then
- Attack2()
- end
- if key == "c" and attack == false then
- Attack3()
- end
- if key == "v" and attack == false then
- Attack4()
- end
- if key == "0" then
- if isruning == false then
- isruning=true
- end
- end
- if key == "m" then
- if playsong == true then
- playsong = false
- s2:stop()
- elseif playsong == false then
- playsong = true
- s2:play()
- end
- end
- if key == "n" then
- CurId = CurId + 1
- if CurId > 10 then
- CurId = 1
- end
- warn("now playing song Nr"..CurId)
- if CurId == 1 then
- lastid= "http://www.roblox.com/asset/?id=737822107"
- elseif CurId == 2 then
- lastid= "http://www.roblox.com/asset/?id=896506559"
- elseif CurId == 3 then
- lastid= "http://www.roblox.com/asset/?id=601578010"
- elseif CurId == 4 then
- lastid= "http://www.roblox.com/asset/?id=142655178"
- elseif CurId == 5 then
- lastid= "http://www.roblox.com/asset/?id=1301441081"
- elseif CurId == 6 then
- lastid= "http://www.roblox.com/asset/?id=1051156548"
- elseif CurId == 7 then
- lastid= "http://www.roblox.com/asset/?id=552945114"
- elseif CurId == 8 then
- lastid= "http://www.roblox.com/asset/?id=1524536019"
- elseif CurId == 9 then
- lastid= "http://www.roblox.com/asset/?id=803373182"
- elseif CurId == 10 then
- lastid= "http://www.roblox.com/asset/?id=1718958911"
- end
- lastsongpos = 0
- s2.TimePosition = lastsongpos
- end
- end
- Qwait=false
- coroutine.resume(coroutine.create(function()
- so("181004957", Character,2, 1.2)
- wait(.5)
- playsong = true
- s2:play()
- end))
- coroutine.resume(coroutine.create(function()
- while Humanoid.Health>0 do
- swait()
- sine = sine + change
- hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
- coroutine.resume(coroutine.create(function()
- if hitfloor ~= nil and Qwait == false then
- Qwait =true
- --MakeQuanEffect(Effects,RootPart.Position- Vector3.new(0, 3, 0),2.7,0,0.05,2,0,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0)))
- --MakeBeamWaveEffect(Effects,Color3.new(1, 0.5, 0),RootPart.Position- Vector3.new(0, 3, 0),1.2,0,0.02,15,0,5,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0))*angles(0,math.rad(20),0))
- swait(30)
- Qwait=false
- end end))
- coroutine.resume(coroutine.create(function()
- if Head:FindFirstChildOfClass("Decal") then
- Head:FindFirstChildOfClass("Decal"):Destroy()
- end
- end))
- coroutine.resume(coroutine.create(function()
- if s2.Parent == nil or s2 == nil then
- s2 = s2c:Clone()
- s2.Parent = Torso
- s2.Name = "BGMusic"
- -- s2.SoundId = lastid
- s2.Pitch = 1
- s2.Volume = 1.5
- s2.Looped = true
- s2.archivable = false
- s2.TimePosition = lastsongpos
- if playsong == true then
- s2:play()
- elseif playsong == false then
- s2:stop()
- end
- else
- lastsongpos=s2.TimePosition
- s2.Pitch = 1
- s2.Volume = 1.5
- s2.Looped = true
- s2.SoundId = lastid
- s2.EmitterSize = 30
- end
- end))
- if hitfloor ~= nil then
- inAir = true
- else
- inAir = false
- end
- if inAir == true then
- if inAir2 == false then
- JumpAfterEffect()
- end
- end
- if hitfloor ~= nil then
- inAir2 = true
- else
- inAir2 = false
- end
- local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velderp = RootPart.Velocity.y
- inairvel=torvel
- if inairvel > 30 then
- inairvel=30
- end
- inairvel=inairvel/50
- if RootPart.Velocity.y > 1 and hitfloor == nil then
- Anim = "Jump"
- elseif RootPart.Velocity.y < -1 and hitfloor == nil then
- Anim = "Fall"
- elseif Humanoid.Sit == true then
- Anim = "Sit"
- elseif torvel < 1 and hitfloor ~= nil then
- Anim = "Idle"
- elseif torvel > 2 and hitfloor ~= nil then
- Anim = "Walk"
- else
- Anim = ""
- end
- if attack == false then
- if Anim == "Walk" then
- if hitfloor ~= nil and CanUseWalkSound == true then
- nextstep = math.cos(sine / 8)
- if nextstep > -0.0 and nextstep < 0.2 then
- CanUseWalkSound = false
- local MaterialName = hitfloor.Material.Name
- if MaterialName =="Plastic"or MaterialName =="SmoothPlastic"then
- so("379483672", Torso,.5, math.random(30,60)/100)
- elseif MaterialName =="Pebble"then
- so("267882971", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="Marble"or MaterialName =="Granite"then
- so("379483672", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="Grass"then
- so("267882764", Torso,.35, math.random(90,100)/100)
- elseif MaterialName =="Ice"then
- so("265653271", Torso,.8, math.random(70,90)/100)
- elseif MaterialName =="Foil"then
- so("265653271", Torso,.5, math.random(40,60)/100)
- elseif MaterialName =="Concrete"or MaterialName =="Slate"or MaterialName =="Brick" then
- so("267454199", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="Wood" or MaterialName =="WoodPlanks"then
- so("267454275", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="Sand" then
- so("265653329", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="CorrodedMetal"or MaterialName =="Metal" or MaterialName =="DiamondPlate" then
- so("267882776", Torso,.5, math.random(80,100)/100)
- elseif MaterialName =="Neon" or hitfloor.Transparency >0.1 then
- so("145180170", Torso,.5, math.random(80,100)/100)
- end
- --nextstep = Humanoid.WalkSpeed
- coroutine.resume(coroutine.create(function()
- wait(.15)
- CanUseWalkSound = true
- end))
- else
- -- nextstep = nextstep - 1
- end
- end
- end
- end
- if attack == false then
- if Anim == "Jump" then
- change = 0.5
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(-2.5 - 1.5 * math.cos(sine / 8))+inairvel/2, math.rad(0), math.rad(0)), .10)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.60, -.0) * angles(math.rad(-20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(10 + 0 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.0) * angles(math.rad(-20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(-10 - 2 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.85+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.08)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.35+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-25 +1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
- elseif Anim == "Fall" then
- change = 0.5
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(5.5 - 1.5 * math.cos(sine / 8))-inairvel, math.rad(0), math.rad(0)), .10)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.2 , 0.50, .20) * angles(math.rad(140 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(45 + 0 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, .20) * angles(math.rad(140 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(-45 - 2 * math.cos(sine / 8))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.15+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.55+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-0 +1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
- elseif Anim == "Idle" then
- change = 0.60
- local ADNum = .25
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.0395 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(0 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20)), .15)
- Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(13.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(20 - 6.5 * math.cos(sine / 15 +.4* math.cos(sine / 10)))), .15)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5 , 0.6 + .02 * math.cos(sine / 8), -.0) * angles(math.rad(1 - 2 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(7), math.rad(10 + 3 * math.cos(sine / 8))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6 + .02 * math.cos(sine / 8), -.0) * angles(math.rad(1 - 2 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(-7), math.rad(-10 - 3 * math.cos(sine / 8 ))), 0.1)
- RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.95- .04 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8))),.15)
- LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.95- .04 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), 0) * CFrame.Angles(math.rad(1.5 - 0 * math.cos(sine / 8)),math.rad(20),math.rad(-2.5- 0.0 * math.cos(sine / 8))),.15)
- elseif Anim == "Walk" then
- if isruning == false then
- change = 1.2
- Humanoid.WalkSpeed = 12
- Humanoid.JumpPower = 60
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0 + 0.0395 * math.cos(sine / 4), -0.185 + 0.055 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad(10 - 6 * math.cos(sine / 4)), math.rad(0) + RootPart.RotVelocity.Y / 70, math.rad(8 * math.cos(sine / 8))), 0.2)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.new(0, 0, 0 + 0.025 * math.cos(sine / 4)) * angles(math.rad(10 + 6.5 * math.cos(sine / 4)), math.rad(0 - 0 * math.cos(sine / 4)), math.rad(-8 * math.cos(sine / 8)) + RootPart.RotVelocity.Y / 16), 0.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, 0) * angles(math.rad(15 * math.cos(sine / 8)) + math.sin(sine / 8) / 2.5, math.rad(0) + RootPart.RotVelocity.Y / 80, math.rad(10) - RootPart.RotVelocity.Y / 90), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0) * angles(math.rad(-15 * math.cos(sine / 8)) + -math.sin(sine / 8) / 2.5, math.rad(0) + RootPart.RotVelocity.Y / 80, math.rad(-10) - RootPart.RotVelocity.Y / 90), 0.2)
- RH.C0 = RH.C0:lerp( cf(.5, -0.825 - 0.55 * math.cos(sine / 8) / 2,-0.1+ 0.5 * math.cos(sine / 8) / 2) * CFrame.Angles(math.rad(-1.5 - 40 * math.cos(sine / 8)) + -math.sin(sine / 8) / 2.5, math.rad(90 - 10 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(0 + 2.5 * math.cos(sine / 8)), math.rad(-90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8))), 0.2)
- LH.C0 = LH.C0:lerp( cf(-.5, -0.825 + 0.55 * math.cos(sine / 8) / 2,-0.1+ -0.5 * math.cos(sine / 8) / 2) * CFrame.Angles(math.rad(-1.5 + 40 * math.cos(sine / 8)) + math.sin(sine / 8) / 2.5, math.rad(-90 - 10 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(0 - 2.5 * math.cos(sine / 8)), math.rad(90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8))), 0.2)
- else
- local ADNum = .5
- local RunSpeed = 1
- change = 1.6*RunSpeed
- Humanoid.WalkSpeed = 32*RunSpeed
- Humanoid.JumpPower = 70
- RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, -.2 + 0.3 * math.cos(sine / 4), -0.42 - 0.45 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad(35 - 14 * math.cos(sine / 4 +ADNum* math.cos(sine / 8*2))), math.rad(0) + RootPart.RotVelocity.Y / 70, math.rad(-18 * math.cos(sine / 8))), 0.2*RunSpeed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.new(0, 0, 0 + 0.025 * math.cos(sine / 4)) * angles(math.rad(-20 + 14 * math.cos(sine / 4 +ADNum* math.cos(sine / 8*2))), math.rad(0 - 0 * math.cos(sine / 4)), math.rad(18 * math.cos(sine / 8)) + RootPart.RotVelocity.Y / 16), 0.2*RunSpeed)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45 - 0.05 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), 0.6, -.1- 0.05 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(20)+math.rad(75 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + math.sin(sine / 8) / 2.5, math.rad(0) + RootPart.RotVelocity.Y / 80, math.rad(-0 - 25 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.2*RunSpeed)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45- 0.05 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), 0.6, -.1+ 0.05 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(20)+math.rad(-75 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + -math.sin(sine / 8) / 2.5, math.rad(0) + RootPart.RotVelocity.Y / 80, math.rad(0 - 25 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.2*RunSpeed)
- RH.C0 = RH.C0:lerp( cf(.5, -0.525 - 1.05 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)) / 2,-0.2+ .2 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)) / 2) * CFrame.Angles(math.rad(12.5 - 55 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + -math.sin(sine / 8 +ADNum* math.cos(sine / 8*2)) / 2.5, math.rad(90 - 10 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(0)) * CFrame.Angles(math.rad(0 - 2.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(-90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.2*RunSpeed)
- LH.C0 = LH.C0:lerp( cf(-.5, -0.525 + 1.05 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)) / 2,-0.2+ -.2 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)) / 2) * CFrame.Angles(math.rad(12.5 + 55 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + math.sin(sine / 8 +ADNum* math.cos(sine / 8*2)) / 2.5, math.rad(-90 - 10 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(0)) * CFrame.Angles(math.rad(0 + 2.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)))), 0.2*RunSpeed)
- end
- end
- end
- end
- end))
- remote = Instance.new 'RemoteFunction';
- remote.Parent = Character;
- remote.OnServerInvoke = function (player, request, ...)
- if (player ~= Player) then
- return error ('You cannot invoke this remote', 0);
- end;
- if (request == 1) then
- local k = ...;
- KeyDownF(k)
- KeyUpF(k)
- end;
- end;
- remote.Name = 'ServerRemote';
- --]=], Player.Character):WaitForChild 'ServerRemote';
- localscript = script.Keys
- localscript.Name = Player.Name
- localscript.Parent = Character
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement