Advertisement
yabagaba

Untitled

Jul 13th, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 97.19 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. --local remote = NS ([=[
  8.  
  9.  
  10. ArtificialHB = Instance.new("BindableEvent", script)
  11. ArtificialHB.Name = "Heartbeat"
  12. script:WaitForChild("Heartbeat")
  13.  
  14.  
  15.  
  16. Player = game:GetService("Players").LocalPlayer
  17.  
  18.  
  19. Character = Player.Character
  20. PlayerGui = Player.PlayerGui
  21. Backpack = Player.Backpack
  22. mouse = Player:GetMouse()
  23. Torso = Character.Torso
  24. Head = Character.Head
  25. Humanoid = Character.Humanoid
  26. LeftArm = Character["Left Arm"]
  27. LeftLeg = Character["Left Leg"]
  28. RightArm = Character["Right Arm"]
  29. RightLeg = Character["Right Leg"]
  30. ch = Character
  31. RootPart = Character.HumanoidRootPart
  32. RootJoint = RootPart.RootJoint
  33. local Anim="Idle"
  34. local inAir = false
  35. local inAir2 = false
  36. local attack = false
  37. it=Instance.new
  38. vt=Vector3.new
  39. cf=CFrame.new
  40. euler=CFrame.fromEulerAnglesXYZ
  41. angles=CFrame.Angles
  42. local cn = CFrame.new
  43. mr=math.rad
  44.  
  45. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  46. local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  47. local Anim="Idle"
  48. local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
  49. local Neck = Character.Torso:FindFirstChild("Neck")
  50. function weld(parent,part0,part1,c0)
  51. local weld=it("Weld")
  52. weld.Parent=parent
  53. weld.Part0=part0
  54. weld.Part1=part1
  55. weld.C0=c0
  56. return weld
  57. end
  58. local Effects = it("Folder", Character)
  59. Effects.Name = "Effects"
  60. local inairvel=0
  61. local sine = 0
  62. local change = 1
  63. local nextstep=0
  64. local CanUseWalkSound = true
  65. local isruning = false
  66. local s2=Instance.new("Sound",Torso)
  67. local CurId = 0
  68. s2.EmitterSize = 30
  69. local s2c=s2:Clone()
  70. local lastid= "http://www.roblox.com/asset/?id=737822107"
  71. omegawait = false
  72. playsong = false
  73.  
  74. s2.SoundId = lastid
  75. if playsong == true then
  76. s2:play()
  77. elseif playsong == false then
  78. s2:stop()
  79. end
  80. lastsongpos= 0
  81.  
  82.  
  83.  
  84.  
  85. function stopAnimations()
  86. coroutine.resume(coroutine.create(function()
  87. Character.Animate:Destroy()
  88. end))
  89. coroutine.resume(coroutine.create(function()
  90. for _,v in pairs(Humanoid:GetPlayingAnimationTracks()) do
  91. v:Stop()
  92.  
  93. end
  94. end))
  95. end
  96.  
  97.  
  98. stopAnimations()
  99. coroutine.resume(coroutine.create(function()
  100. Character:WaitForChild("Sound")
  101. Character.Sound:Destroy()
  102. end))
  103.  
  104. local RbxUtility = LoadLibrary("RbxUtility")
  105. local Create = RbxUtility.Create
  106. local Ang=Instance.new("Model")
  107. Ang.Name="Angles"
  108. Ang.Parent=Character
  109.  
  110. local rrx=Instance.new("NumberValue")
  111. rrx.Name="X"
  112. rrx.Parent=Ang
  113. rrx.Value=0
  114. local rry=Instance.new("NumberValue")
  115. rry.Name="Y"
  116. rry.Parent=Ang
  117. rry.Value=0
  118. local rrz=Instance.new("NumberValue")
  119. rrz.Name="Z"
  120. rrz.Parent=Ang
  121. rrz.Value=0
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. function Acthing(Part00,Mid,MScale,MBC,MMT,MTran,WCF,MCL,Par,mode)
  130. local RoHead = Instance.new("Part")
  131. RoHead.Reflectance = 0
  132. RoHead.Transparency = MTran
  133. RoHead.CanCollide = false
  134. RoHead.Locked = true
  135. RoHead.Anchored=false
  136. RoHead.BrickColor = MBC
  137. RoHead.Name = "FakeAccessory"
  138. RoHead.Size = Vector3.new()
  139. RoHead.Material = MMT
  140. RoHead:BreakJoints()
  141. if Par ~= nil then
  142. RoHead.Parent = Par
  143. else
  144. RoHead.Parent = Character
  145.  
  146. end
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164. local mesh = Instance.new("SpecialMesh",RoHead)
  165. mesh.MeshId = "rbxassetid://"..Mid
  166. mesh.Scale = MScale
  167.  
  168. local weld2en = Instance.new("Motor6D")
  169. weld2en.Parent = Part00
  170.  
  171. weld2en.Part0 = RoHead
  172. weld2en.Part1 = Part00
  173.  
  174. weld2en.C1 = WCF
  175. if MCL ~= nil then
  176. RoHead.Color = MCL
  177.  
  178. end
  179. RoHead.Archivable = false
  180. end
  181.  
  182.  
  183.  
  184.  
  185.  
  186. New = function(Object, Parent, Name, Data)
  187. local Object = Instance.new(Object)
  188. for Index, Value in pairs(Data or {}) do
  189. Object[Index] = Value
  190. end
  191. Object.Parent = Parent
  192. Object.Name = Name
  193. return Object
  194. end
  195.  
  196. Model = New("Model",Character,"HeadModel",{})
  197. 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),})
  198. Mesh = New("SpecialMesh",ClosedEye,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  199. 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),})
  200. Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  201. 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),})
  202. Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  203. 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),})
  204. Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  205. 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),})
  206. Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  207. 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),})
  208. Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  209. 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),})
  210. Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  211. 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),})
  212. Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  213. 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),})
  214. Mesh = New("SpecialMesh",Scar,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  215. 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,})
  216. Mesh = New("SpecialMesh",NeonMid,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  217. 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,})
  218. Mesh = New("SpecialMesh",Mid,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  219. 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,})
  220. Mesh = New("SpecialMesh",Handle,"Mesh",{Scale = Vector3.new(12.5, 12.5, 12.5),})
  221. 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),})
  222. Mesh = New("SpecialMesh",RMid,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  223. HeadModel = Model
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230. function RemoveOutlines(part)
  231. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  232. end
  233.  
  234.  
  235.  
  236.  
  237. CFuncs = {
  238. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  239.  
  240. 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})
  241. RemoveOutlines(Part)
  242. return Part
  243. end
  244. }
  245. ,
  246. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  247.  
  248. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  249. if Mesh == "SpecialMesh" then
  250. Msh.MeshType = MeshType
  251. Msh.MeshId = MeshId
  252. end
  253. return Msh
  254. end
  255. }
  256. ,
  257. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  258.  
  259. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  260. if Mesh == "SpecialMesh" then
  261. Msh.MeshType = MeshType
  262. Msh.MeshId = MeshId
  263. end
  264. return Msh
  265. end
  266. }
  267. ,
  268. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  269.  
  270. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  271. return Weld
  272. end
  273. }
  274. ,
  275. Sound = {Create = function(id, par, vol, pit)
  276.  
  277. coroutine.resume(coroutine.create(function()
  278.  
  279. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  280. wait()
  281. S:play()
  282. game:GetService("Debris"):AddItem(S, 6)
  283. end
  284. ))
  285. end
  286. }
  287. ,
  288. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  289.  
  290. 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})
  291. return fp
  292. end
  293. }
  294. }
  295.  
  296. local Particle0 = Create("ParticleEmitter"){
  297. Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (0, 0, 0)),
  298. 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)}),
  299. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.65),NumberSequenceKeypoint.new(0.25,.20),NumberSequenceKeypoint.new(0.7,.18),NumberSequenceKeypoint.new(1,0)}),
  300. Texture = "rbxassetid://118641183",
  301. Lifetime = NumberRange.new(0.95),
  302. Rate = 100,
  303. VelocitySpread = 60,
  304. Rotation = NumberRange.new(0),
  305. RotSpeed = NumberRange.new(-200,200),
  306. Speed = NumberRange.new(8.0),
  307. LightEmission = .6,
  308. LockedToPart = false,
  309. Acceleration = Vector3.new(0, 4, 0),
  310. EmissionDirection = "Top",
  311. Drag = 4,
  312. Enabled = false
  313. }
  314. local Particle1 = Create("ParticleEmitter"){
  315. Color = ColorSequence.new(Color3.new (0,0,0), Color3.new (.5, .5, .5)),
  316. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.8),NumberSequenceKeypoint.new(.5,.8),NumberSequenceKeypoint.new(1,1)}),
  317. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(.5,1),NumberSequenceKeypoint.new(1,.5)}),
  318. Texture = "rbxassetid://688705835",
  319. Lifetime = NumberRange.new(.8),
  320. Rate = 0,
  321. VelocitySpread = 50,
  322. ZOffset = .5,
  323. Rotation = NumberRange.new(0),
  324. RotSpeed = NumberRange.new(-200,200),
  325. Speed = NumberRange.new(5.0),
  326. LightEmission = 0,
  327. LockedToPart = false,
  328. Acceleration = Vector3.new(0, -10, 0),
  329. EmissionDirection = "Top",
  330. Drag = 1,
  331. Enabled = false
  332. }
  333. local Fire1 = Create("ParticleEmitter"){
  334.  
  335. Color = ColorSequence.new(Color3.new (1, .3, 0), Color3.new (.5, 0, 0)),
  336. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.2,.5),NumberSequenceKeypoint.new(1,1)}),
  337. Size = NumberSequence.new(3,0),
  338. Texture = "rbxassetid://248625108",
  339. Lifetime = NumberRange.new(0,.8),
  340. Rate = 0,
  341. VelocitySpread = 360,
  342. Rotation = NumberRange.new(4,9),
  343. Speed = NumberRange.new(1,2),
  344. LightEmission = 0.86,
  345. LockedToPart = false,
  346. Acceleration = Vector3.new(0, 10, 0),
  347. EmissionDirection = "Top",
  348. RotSpeed = NumberRange.new(-100,100),
  349. Enabled = false
  350. }
  351. local Fire2 = Create("ParticleEmitter"){
  352.  
  353. Color = ColorSequence.new(Color3.new (1, .5, 0), Color3.new (.5, 0, 0)),
  354. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.2,.5),NumberSequenceKeypoint.new(1,1)}),
  355. Size = NumberSequence.new(1.5,0),
  356. Texture = "rbxassetid://248625108",
  357. Lifetime = NumberRange.new(0,0.6),
  358. Rate = 0,
  359. VelocitySpread = 360,
  360. Rotation = NumberRange.new(4,9),
  361. Speed = NumberRange.new(0,2),
  362. LightEmission = 0.96,
  363. LockedToPart = false,
  364. Acceleration = Vector3.new(0, 5, 0),
  365. EmissionDirection = "Top",
  366. RotSpeed = NumberRange.new(-100,100),
  367. Enabled = false
  368. }
  369.  
  370. so = function(id, par, vol, pit)
  371.  
  372. CFuncs.Sound.Create(id, par, vol, pit)
  373.  
  374.  
  375. end
  376.  
  377. rayCast = function(Pos, Dir, Max, Ignore)
  378.  
  379. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  380. end
  381.  
  382.  
  383. function swait(num)
  384. if num==0 or num==nil then
  385. --if Stagger.Value==false or Stun.Value<=100 then
  386. --Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  387. script.Heartbeat.Event:wait()
  388. --end
  389. else
  390. for i=0,num do
  391. --Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  392. script.Heartbeat.Event:wait()
  393. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  394. break
  395. end]]
  396. end
  397. end
  398. end
  399. script:WaitForChild("Heartbeat")
  400. ScriptSpeed = 1
  401. frame = 1/(60/ScriptSpeed)
  402. tf = 0
  403. 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.
  404. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  405. lastframe = tick()
  406. script.Heartbeat:Fire() --ayy lmao
  407.  
  408. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  409. tf = tf + s
  410. if tf >= frame then
  411. if allowframeloss then
  412. script.Heartbeat:Fire()
  413. lastframe=tick()
  414. else
  415. ----print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame(math.floor(t/frame))))
  416. for i=1, math.floor(tf/frame) do
  417. script.Heartbeat:Fire()
  418. end
  419. lastframe=tick()
  420. end
  421. if tossremainder then
  422. tf = 0
  423. else
  424. tf = tf - frame * math.floor(tf/frame)
  425. end
  426. end
  427. end)
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438. Quan = nil
  439. local fail = false
  440. local Quantumn = New("Model",nil,"Quantumn",{})
  441. 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,})
  442. EffectHolder.CanCollide = false
  443. 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),})
  444. 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),})
  445. 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),})
  446. 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),})
  447. 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),})
  448. 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),})
  449. 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),})
  450. 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),})
  451. local Beams = New("Model",EffectHolder,"Beams",{})
  452. --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}}
  453. --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}}
  454. local badcombo = {{1,7}, {1,5}, {2,8}, {2,6}, {3,7}, {3,6}, {4,5}, {4,8}}
  455. --local badcombo = {}
  456. function scan(scannum1,scannum2)
  457. for i = 1,#badcombo do
  458. local comb = badcombo[i]
  459. if scannum1 == comb[1] and scannum2 == comb[2]then
  460. fail = true
  461. end
  462. if scannum1 == comb[2] and scannum2 == comb[1]then
  463. fail = true
  464. end
  465. --swait()
  466. end
  467. end
  468.  
  469. function GatherAllInstances(Parent,ig)
  470. local Instances = {}
  471. local Ignore=nil
  472. if ig ~= nil then
  473. Ignore = ig
  474. end
  475.  
  476. local function GatherInstances(Parent,Ignore)
  477. for i, v in pairs(Parent:GetChildren()) do
  478.  
  479. if v ~= Ignore then
  480. GatherInstances(v,Ignore)
  481. table.insert(Instances, v) end
  482. end
  483. end
  484. GatherInstances(Parent,Ignore)
  485. return Instances
  486. end
  487. coroutine.resume(coroutine.create(function()
  488. wait(1)
  489. for i, v2 in pairs(GatherAllInstances(Character)) do
  490. if v2:IsA("BasePart") then
  491. v2.Locked = true
  492. end end
  493. end))
  494.  
  495. local AttachmentSelect = function(BeamSelect,Value1,Value2)
  496. local Select1 = 0
  497. local Select2 = 0
  498. scan(Value1,Value2)
  499. if fail == false then
  500. if Value1 == 1 then
  501. Select1=Attachment01
  502. elseif Value1 == 2 then
  503. Select1=Attachment02
  504. elseif Value1 == 3 then
  505. Select1=Attachment03
  506. elseif Value1 == 4 then
  507. Select1=Attachment04
  508. elseif Value1 == 5 then
  509. Select1=Attachment05
  510. elseif Value1 == 6 then
  511. Select1=Attachment06
  512. elseif Value1 == 7 then
  513. Select1=Attachment07
  514. elseif Value1 == 8 then
  515. Select1=Attachment08
  516. elseif Value1 == 0 or 9 then
  517. Select1=nil
  518. end
  519. if Value2 == 1 then
  520. Select2=Attachment01
  521. elseif Value2 == 2 then
  522. Select2=Attachment02
  523. elseif Value2 == 3 then
  524. Select2=Attachment03
  525. elseif Value2 == 4 then
  526. Select2=Attachment04
  527. elseif Value2 == 5 then
  528. Select2=Attachment05
  529. elseif Value2 == 6 then
  530. Select2=Attachment06
  531. elseif Value2 == 7 then
  532. Select2=Attachment07
  533. elseif Value2 == 8 then
  534. Select2=Attachment08
  535. elseif Value2 == 0 or 9 then
  536. Select2=nil
  537. end
  538. BeamSelect.Attachment0 = Select1
  539. BeamSelect.Attachment1 = Select2
  540. else
  541. fail = false
  542. BeamSelect:Destroy()
  543. end
  544. end
  545.  
  546. local Glow1 = Color3.new(255/255, 184/255, 56/255)
  547. local Glow2 = Color3.new(1,0,0)
  548. for i = 1,8 do
  549. swait()
  550. for v = 1,8 do
  551. --swait()
  552. if i ~= v then
  553. swait()
  554. local Beam = New("Beam",Beams,"Beam",{Texture = "rbxassetid://1191605952",})
  555. Beam.Parent = Beams
  556. Beam.Width0 = .1
  557. Beam.Width1 = .1
  558. Beam.FaceCamera = true
  559. Beam.Color = ColorSequence.new(Glow1,Glow2)
  560. Beam.Transparency = NumberSequence.new(0,0)
  561. Beam.TextureLength = 1
  562. Beam.LightEmission = 1
  563. AttachmentSelect(Beam,i,v)
  564. end
  565. end
  566. end
  567. print("quan save")
  568. --Quan = Quantumn:Clone()
  569.  
  570.  
  571. function MakeQuanEffect(QPlayer,CFPos,QLifeTime,NumberV1,NumberV2,Scale1,T1,MoveCF)
  572. coroutine.resume(coroutine.create(function()
  573. local CQuan = Quantumn:Clone()
  574. CQuan.Parent = QPlayer
  575. game:GetService("Debris"):AddItem(CQuan, 20)
  576. CQuan.EffectHolder.CFrame = CFrame.new(CFPos)
  577.  
  578. for i, v in pairs(GatherAllInstances(CQuan)) do
  579. coroutine.resume(coroutine.create(function()
  580.  
  581.  
  582. coroutine.resume(coroutine.create(function()
  583. if v:isA("Beam") then
  584. for i = 0,1.5*QLifeTime,NumberV2/(1+T1) do swait()
  585.  
  586.  
  587. v.Transparency = NumberSequence.new(i/(1.5*QLifeTime),i/(1.5*QLifeTime))
  588.  
  589.  
  590.  
  591.  
  592. v.Width0 = (1 - i/(1.5*QLifeTime))/2
  593. v.Width1 = (i/(1.5*QLifeTime))/2
  594.  
  595.  
  596. end
  597. v.Transparency = NumberSequence.new(1,1)
  598. wait()
  599. CQuan:Destroy()
  600. end
  601. end))
  602.  
  603. coroutine.resume(coroutine.create(function()
  604. if v:isA("Attachment") then
  605. local QX = v.CFrame.X*Scale1
  606. local QY = v.CFrame.Y*Scale1
  607. local QZ = v.CFrame.Z*Scale1
  608. v.CFrame = CFrame.new(QX*0 ,QY* 0,QZ*0)
  609.  
  610. for i = 1.5 + NumberV1,1.5 + (1.5*QLifeTime),NumberV2 do swait()
  611. v.CFrame = CFrame.new(QX* math.cos(i) ,QY* math.cos(i),QZ* math.cos(i))
  612.  
  613.  
  614. end
  615.  
  616.  
  617. end
  618.  
  619. end))
  620.  
  621. end))
  622. end
  623. local CFPos2 = CFrame.new(CFPos)
  624. local endloop=false
  625. while endloop==false do
  626.  
  627.  
  628. CQuan.EffectHolder.CFrame = clerp(CQuan.EffectHolder.CFrame,CFPos2*MoveCF ,.1)
  629.  
  630.  
  631.  
  632. CFPos2= CQuan.EffectHolder.CFrame
  633.  
  634. swait() if CQuan == nil or CQuan.Parent == nil then
  635. endloop=true
  636. end end end))
  637. end
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645. BeamRing = New("Model",nil,"BeamRing",{})
  646. 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,})
  647. Attachment0 = New("Attachment",Beaamstart2,"Attachment0",{CFrame = CFrame.new(0, 0, .75, 1, 0, 0, 0, -1, 0, 0, 0, -1),})
  648. Attachment1 = New("Attachment",Beaamstart2,"Attachment1",{CFrame = CFrame.new(0, 0, -.75, 1, 0, 0, 0, -1, 0, 0, 0, -1),})
  649. Beaamstart2.CanCollide = false
  650. local Beam2 = New("Beam",Beams,"Beam",{Texture = "rbxassetid://457102813",})
  651. Beam2.Parent = BeamRing
  652. Beam2.Width0 = 1.5
  653. Beam2.Width1 = 1.5
  654. Beam2.FaceCamera = false
  655.  
  656. Beam2.Transparency = NumberSequence.new(0,0)
  657. Beam2.TextureLength = .05
  658. Beam2.LightEmission = 1
  659. Beam2.CurveSize0 = 1
  660. Beam2.CurveSize1 = -1
  661. Beam2.Attachment0 = Beaamstart2.Attachment0
  662. Beam2.Attachment1 = Beaamstart2.Attachment1
  663. local Beam2 = New("Beam",Beams,"Beam",{Texture = "rbxassetid://457102813",})
  664. Beam2.Parent = BeamRing
  665. Beam2.Width0 = 1.5
  666. Beam2.Width1 = 1.5
  667. Beam2.FaceCamera = false
  668.  
  669. Beam2.Transparency = NumberSequence.new(0,0)
  670. Beam2.TextureLength = .05
  671. Beam2.LightEmission = 1
  672. Beam2.CurveSize0 = -1
  673. Beam2.CurveSize1 = 1
  674. Beam2.Attachment0 = Beaamstart2.Attachment0
  675. Beam2.Attachment1 = Beaamstart2.Attachment1
  676. Beam2.TextureSpeed = -1
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684. function MakeBeamWaveEffect(QPlayer,BeamColor,CFPos,QLifeTime,NumberV1,NumberV2,Scale1,T1,BSize,MoveCF)
  685. QStart = 1.6
  686. coroutine.resume(coroutine.create(function()
  687. local CQuan = BeamRing:Clone()
  688. CQuan.Parent = QPlayer
  689. game:GetService("Debris"):AddItem(CQuan, 20)
  690. CQuan.BeamHolder.CFrame = CFrame.new(CFPos)
  691.  
  692. for i, v in pairs(GatherAllInstances(CQuan)) do
  693. coroutine.resume(coroutine.create(function()
  694.  
  695.  
  696. coroutine.resume(coroutine.create(function()
  697. if v:isA("Beam") then
  698.  
  699.  
  700. v.Color = ColorSequence.new(BeamColor,BeamColor)
  701.  
  702.  
  703.  
  704. coroutine.resume(coroutine.create(function()
  705. local CS0S=v.CurveSize0*Scale1
  706. local CS1S=v.CurveSize1*Scale1
  707. for i = QStart + NumberV1,QStart + (QStart*QLifeTime),NumberV2 do swait()
  708. v.CurveSize0=CS0S* math.cos(i)
  709. v.CurveSize1=CS1S* math.cos(i)
  710. end
  711. end))
  712.  
  713.  
  714. for i = 0,QStart*QLifeTime,NumberV2/(1+T1) do swait()
  715.  
  716.  
  717. v.Transparency = NumberSequence.new(i/(QStart*QLifeTime),i/(QStart*QLifeTime))
  718.  
  719.  
  720.  
  721.  
  722. v.Width0 = (1 - i/(QStart*QLifeTime))*BSize
  723. v.Width1 = (1 - i/(QStart*QLifeTime))*BSize
  724.  
  725.  
  726. end
  727. v.Transparency = NumberSequence.new(1,1)
  728. wait()
  729. CQuan:Destroy()
  730. end
  731. end))
  732.  
  733. coroutine.resume(coroutine.create(function()
  734. if v:isA("Attachment") then
  735. local QX = v.CFrame.X*Scale1
  736. local QY = v.CFrame.Y*Scale1
  737. local QZ = v.CFrame.Z*Scale1
  738. v.CFrame = CFrame.new(QX*0 ,QY* 0,QZ*0)
  739.  
  740. for i = QStart + NumberV1,QStart + (QStart*QLifeTime),NumberV2 do swait()
  741. v.CFrame = CFrame.new(QX* math.cos(i) ,QY* math.cos(i),QZ* math.cos(i))
  742.  
  743.  
  744. end
  745.  
  746.  
  747. end
  748.  
  749. end))
  750.  
  751. end))
  752. end
  753. local CFPos2 = CFrame.new(CFPos)
  754. local endloop=false
  755. while endloop==false do
  756.  
  757.  
  758. CQuan.BeamHolder.CFrame = clerp(CQuan.BeamHolder.CFrame,CFPos2*MoveCF ,.1)
  759.  
  760.  
  761.  
  762. CFPos2= CQuan.BeamHolder.CFrame
  763.  
  764. swait() if CQuan == nil or CQuan.Parent == nil then
  765. endloop=true
  766. end end end))
  767. end
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777. function WeldAllTo(Part1,Part2,Extra)
  778.  
  779. local EXCF = Part2.CFrame * Extra
  780.  
  781. for i, v3 in pairs(GatherAllInstances(Part2)) do
  782. if v3:isA("BasePart") then
  783.  
  784.  
  785. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  786.  
  787.  
  788. v3.Anchored=false
  789. --v3.Transparency=0
  790. v3.CanCollide=false
  791.  
  792. v3.Parent = Part1
  793.  
  794. end
  795. end
  796. end
  797.  
  798.  
  799.  
  800.  
  801.  
  802. for i, v in pairs(GatherAllInstances(HeadModel)) do
  803. if v:IsA("BasePart") then
  804. v.Anchored = true
  805. v.CanCollide = false
  806. v.Locked = true
  807.  
  808.  
  809. if v:findFirstChild("Mesh")then
  810.  
  811. v.Mesh.Scale = v.Size*10
  812. v.Size = Vector3.new(.1,.1,.1)
  813.  
  814.  
  815.  
  816. elseif not v:findFirstChild("Mesh") then
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826. local RobotPart = Create("SpecialMesh"){
  827. Parent = v,
  828. --TextureId = "http://www.roblox.com/asset/?id=1374149",
  829. --MeshId = "http://www.roblox.com/asset/?id=430080097",
  830. MeshType = "Brick",
  831. Scale = v.Size*10,
  832. Offset = vt(0,0,0)
  833. }
  834.  
  835. if v.Shape.Name == "Cylinder" then
  836.  
  837.  
  838. RobotPart.MeshType = "Cylinder"
  839.  
  840. end
  841.  
  842.  
  843. v.Size = Vector3.new(.1,.1,.1)
  844. end
  845.  
  846.  
  847.  
  848. end
  849.  
  850.  
  851.  
  852. if v:IsA("BasePart")and v.Name == "Handle" then
  853.  
  854. local ParentS = v.Parent
  855. v.Parent = nil
  856. local vC = v:Clone()
  857. vC.Name = "Part"
  858. vC.Parent = ParentS
  859. for _,v2 in pairs(ParentS:GetChildren()) do
  860. v2.Parent = v
  861. end
  862. v.Name = ParentS.Name
  863. v.Parent = ParentS.Parent
  864. vC:Destroy()
  865. ParentS:Destroy()
  866. end
  867.  
  868.  
  869.  
  870.  
  871.  
  872. end
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879. WeldAllTo(Head,Character.HeadModel,cn(0,0,0))
  880.  
  881. Character.HeadModel:Destroy()
  882.  
  883.  
  884.  
  885.  
  886. function clerp(a,b,t)
  887. local qa = {QuaternionFromCFrame(a)}
  888. local qb = {QuaternionFromCFrame(b)}
  889. local ax, ay, az = a.x, a.y, a.z
  890. local bx, by, bz = b.x, b.y, b.z
  891. local _t = 1-t
  892. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  893. end
  894.  
  895. function QuaternionFromCFrame(cf)
  896. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  897. local trace = m00 + m11 + m22
  898. if trace > 0 then
  899. local s = math.sqrt(1 + trace)
  900. local recip = 0.5/s
  901. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  902. else
  903. local i = 0
  904. if m11 > m00 then
  905. i = 1
  906. end
  907. if m22 > (i == 0 and m00 or m11) then
  908. i = 2
  909. end
  910. if i == 0 then
  911. local s = math.sqrt(m00-m11-m22+1)
  912. local recip = 0.5/s
  913. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  914. elseif i == 1 then
  915. local s = math.sqrt(m11-m22-m00+1)
  916. local recip = 0.5/s
  917. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  918. elseif i == 2 then
  919. local s = math.sqrt(m22-m00-m11+1)
  920. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  921. end
  922. end
  923. end
  924. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  925. local xs, ys, zs = x + x, y + y, z + z
  926. local wx, wy, wz = w*xs, w*ys, w*zs
  927. local xx = x*xs
  928. local xy = x*ys
  929. local xz = x*zs
  930. local yy = y*ys
  931. local yz = y*zs
  932. local zz = z*zs
  933. 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))
  934. end
  935. function QuaternionSlerp(a, b, t)
  936. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  937. local startInterp, finishInterp;
  938. if cosTheta >= 0.0001 then
  939. if (1 - cosTheta) > 0.0001 then
  940. local theta = math.acos(cosTheta)
  941. local invSinTheta = 1/math.sin(theta)
  942. startInterp = math.sin((1-t)*theta)*invSinTheta
  943. finishInterp = math.sin(t*theta)*invSinTheta
  944. else
  945. startInterp = 1-t
  946. finishInterp = t
  947. end
  948. else
  949. if (1+cosTheta) > 0.0001 then
  950. local theta = math.acos(-cosTheta)
  951. local invSinTheta = 1/math.sin(theta)
  952. startInterp = math.sin((t-1)*theta)*invSinTheta
  953. finishInterp = math.sin(t*theta)*invSinTheta
  954. else
  955. startInterp = t-1
  956. finishInterp = t
  957. end
  958. end
  959. 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
  960. end
  961. function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  962. local Part = Create("Part"){
  963.  
  964. Parent = Parent,
  965. Reflectance = Reflectance,
  966. Transparency = Transparency,
  967. CanCollide = false,
  968. Locked = true,
  969. BrickColor = BrickColor.new(tostring(BColor)),
  970. Name = Name,
  971. Size = Size,
  972. Material = Material,
  973. }
  974. RemoveOutlines(Part)
  975. return Part
  976. end
  977. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  978. local Msh = Create(Mesh){
  979. Parent = Part,
  980. Offset = OffSet,
  981. Scale = Scale,
  982. }
  983. if Mesh == "SpecialMesh" then
  984. Msh.MeshType = MeshType
  985. Msh.MeshId = MeshId
  986. end
  987. return Msh
  988. end
  989.  
  990. -----------------------------------------------------------------------------------
  991.  
  992.  
  993. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  994.  
  995. if hit.Parent == nil then
  996. return
  997. end
  998. local h = hit.Parent:FindFirstChild("Humanoid")
  999. for _,v in pairs(hit.Parent:children()) do
  1000. if v:IsA("Humanoid") then
  1001. h = v
  1002. end
  1003. end
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009. --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1010. coroutine.resume(coroutine.create(function()
  1011. 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
  1012.  
  1013.  
  1014. h.Parent:BreakJoints()
  1015.  
  1016.  
  1017.  
  1018. end
  1019.  
  1020.  
  1021. end))
  1022. if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1023. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1024. return
  1025. end
  1026. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1027. game:GetService("Debris"):AddItem(c, 0.5)
  1028. if HitSound ~= nil and HitPitch ~= nil then
  1029. so(HitSound, hit, 1, HitPitch)
  1030. end
  1031. local Damage = math.random(minim, maxim)
  1032. local blocked = false
  1033. local block = hit.Parent:findFirstChild("Block")
  1034. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1035. blocked = true
  1036. block.Value = block.Value - 1
  1037. print(block.Value)
  1038. end
  1039. if blocked == false then
  1040. h.Health = h.Health - Damage
  1041. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1042. else
  1043. h.Health = h.Health - Damage / 2
  1044. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1045. end
  1046.  
  1047. if Type == "Knockdown" then
  1048. local hum = h
  1049.  
  1050. hum.PlatformStand = true
  1051. coroutine.resume(coroutine.create(function(HHumanoid)
  1052.  
  1053. swait(.2)
  1054. HHumanoid.PlatformStand = false
  1055. end
  1056. ), hum)
  1057. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1058. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
  1059. 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})
  1060. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1061. game:GetService("Debris"):AddItem(rl, 0.2)
  1062.  
  1063.  
  1064.  
  1065. elseif Type == "Knockdown2" then
  1066. local hum = h
  1067.  
  1068. hum.PlatformStand = true
  1069. coroutine.resume(coroutine.create(function(HHumanoid)
  1070.  
  1071.  
  1072. Combo = 1 swait(.2)
  1073. HHumanoid.PlatformStand = false
  1074. end
  1075. ), hum)
  1076. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1077. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
  1078. 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})
  1079. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1080. game:GetService("Debris"):AddItem(rl, 0.2)
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  1088. game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  1089.  
  1090. elseif Type == "Normal" then
  1091. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
  1092. if knockback > 0 then
  1093.  
  1094. local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1095. vp.Parent = HTorso
  1096. end
  1097. game:GetService("Debris"):AddItem(vp, 0.25)
  1098. elseif Type == "Normal2" then
  1099.  
  1100.  
  1101. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
  1102. if knockback > 0 then
  1103. local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1104. vp.Parent = HTorso
  1105. coroutine.resume(coroutine.create(function()
  1106.  
  1107. end))
  1108.  
  1109. local SValue = 1.5
  1110.  
  1111. local randomcf = cn(math.random(-1, 1)/7,math.random(-1, 1)/7,0)
  1112.  
  1113. end
  1114. game:GetService("Debris"):AddItem(vp, 0.5)
  1115. elseif Type == "Impale" then
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  1125. hit.Parent.Humanoid.PlatformStand = true
  1126.  
  1127.  
  1128. swait(1)
  1129. hit.Parent.Humanoid.PlatformStand = false
  1130. elseif Type == "IgnoreType" then
  1131.  
  1132.  
  1133. elseif Type == "Up" then
  1134. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1135. game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1136. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1137. game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145. elseif Type == "Snare" then
  1146. 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})
  1147. game:GetService("Debris"):AddItem(bp, 1)
  1148.  
  1149.  
  1150.  
  1151. elseif Type == "Freeze2" then
  1152. 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})
  1153. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1154. hit.Parent.Torso.Anchored = true
  1155. coroutine.resume(coroutine.create(function(Part)
  1156.  
  1157. swait(1.5)
  1158. Part.Anchored = false
  1159. end
  1160. ), hit.Parent.Torso)
  1161. game:GetService("Debris"):AddItem(BodPos, 3)
  1162. game:GetService("Debris"):AddItem(BodGy, 3)
  1163. end
  1164. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1165. game:GetService("Debris"):AddItem(debounce, Delay)
  1166. c = Instance.new("ObjectValue")
  1167. c.Name = "creator"
  1168. c.Value = Player
  1169. c.Parent = h
  1170. game:GetService("Debris"):AddItem(c, 0.5)
  1171. end
  1172. end
  1173.  
  1174.  
  1175.  
  1176. --Value1=MaybeOk(1,"29,30,31,10,12,29,30,31,0")
  1177. --if Player:IsFriendsWith(game.Players:GetUserIdFromNameAsync(Value1)) then
  1178. --Tim = "1" else Tim = "0" end
  1179.  
  1180.  
  1181.  
  1182. ShowDamage = function(Pos, Text, Time, Color)
  1183.  
  1184. local Rate = 0.033333333333333
  1185. if not Pos then
  1186. local Pos = Vector3.new(0, 0, 0)
  1187. end
  1188. local Text = Text or ""
  1189. local Time = Time or 2
  1190. if not Color then
  1191. local Color = Color3.new(1, 0, 1)
  1192. end
  1193. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1194. EffectPart.Anchored = true
  1195. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1196. 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})
  1197. game.Debris:AddItem(EffectPart, Time + 0.1)
  1198. EffectPart.Parent = game:GetService("Workspace")
  1199. delay(0, function()
  1200.  
  1201. local Frames = Time / Rate
  1202. for Frame = 1, Frames do
  1203. wait(Rate)
  1204. local Percent = Frame / Frames
  1205. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1206. TextLabel.TextTransparency = Percent
  1207. end
  1208. if EffectPart and EffectPart.Parent then
  1209. EffectPart:Destroy()
  1210. end
  1211. end
  1212. )
  1213. end
  1214.  
  1215. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1216.  
  1217. for _,c in pairs(workspace:children()) do
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223. local hum = c:FindFirstChild("Humanoid")
  1224. for _,v in pairs(c:children()) do
  1225. if v:IsA("Humanoid") then
  1226. hum = v
  1227. end
  1228. end
  1229.  
  1230.  
  1231.  
  1232.  
  1233. if hum ~= nil then
  1234. local head = c:findFirstChild("Head")
  1235. if head ~= nil then
  1236. local targ = head.Position - Part.Position
  1237. local mag = targ.magnitude
  1238. if mag <= magni and c.Name ~= Player.Name then
  1239. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2)
  1240. end
  1241. end
  1242. end
  1243. end
  1244. end
  1245.  
  1246.  
  1247.  
  1248. function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type)
  1249. local DGP = Instance.new("Part")
  1250.  
  1251. DGP.Parent = Character
  1252. DGP.Size = Vector3.new(0.05, 0.05, 0.05)
  1253. DGP.Transparency = 1
  1254. DGP.CanCollide = false
  1255. DGP.Anchored = true
  1256. RemoveOutlines(DGP)
  1257. DGP.Position=DGP.Position + Vector3.new(0,-.1,0)
  1258. DGP.CFrame = HTCF
  1259.  
  1260. coroutine.resume(coroutine.create(function()
  1261. MagniDamage(DGP, magni, mindam, maxdam, knock, Type)
  1262. end))
  1263. game:GetService("Debris"):AddItem(DGP, .05)
  1264.  
  1265.  
  1266. DGP.Archivable = false
  1267. end
  1268.  
  1269. -----------------------------------------------------------------------------------
  1270.  
  1271.  
  1272.  
  1273. local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
  1274.  
  1275. local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
  1276.  
  1277. local RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
  1278.  
  1279. local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
  1280.  
  1281.  
  1282.  
  1283. RW.C1 = cn(0, 0.5, 0)
  1284. LW.C1 = cn(0, 0.5, 0)
  1285. RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1286. LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1287.  
  1288.  
  1289. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1290. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1291. --[[
  1292. for i = 0,5,.1 do swait()
  1293. Humanoid.WalkSpeed = 12
  1294. Humanoid.JumpPower = 60
  1295.  
  1296. 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)
  1297. 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)
  1298. 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)
  1299. 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)
  1300. 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)
  1301. 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)
  1302.  
  1303.  
  1304.  
  1305.  
  1306. end
  1307. --]]
  1308.  
  1309.  
  1310. function findNearestTorso(pos)
  1311. local list = game.Workspace:children()
  1312. local torso = nil
  1313. local dist = 100
  1314. local temp = nil
  1315. local human = nil
  1316. local temp2 = nil
  1317. for x = 1, #list do
  1318. temp2 = list[x]
  1319. if (temp2.className == "Model") and (temp2 ~= Character) then
  1320. temp = (temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso"))
  1321. human = temp2:findFirstChild("Humanoid")
  1322. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1323. if (temp.Position - pos).magnitude < dist then
  1324. torso = temp
  1325. dist = (temp.Position - pos).magnitude
  1326. end
  1327. end
  1328. end
  1329. end
  1330. return torso
  1331. end
  1332.  
  1333.  
  1334. function FireSoul(SpawnCF)
  1335.  
  1336.  
  1337. local GhostHolder = Instance.new("Part")
  1338. GhostHolder.Reflectance = 0
  1339. GhostHolder.Transparency = 1
  1340. GhostHolder.CanCollide = false
  1341. GhostHolder.Locked = true
  1342. GhostHolder.Anchored=false
  1343. GhostHolder.BrickColor = BrickColor.new("Gold")
  1344. GhostHolder.Name = "FireSoul"
  1345. GhostHolder.Size = Vector3.new()
  1346. GhostHolder.Material = "Neon"
  1347. GhostHolder:BreakJoints()
  1348. GhostHolder.Parent = Effects
  1349. GhostHolder.CFrame = SpawnCF
  1350.  
  1351.  
  1352.  
  1353.  
  1354.  
  1355. game:GetService("Debris"):AddItem(GhostHolder, 60)
  1356.  
  1357. coroutine.resume(coroutine.create(function()
  1358.  
  1359.  
  1360. for i = 0,1,.05 do
  1361.  
  1362. swait()
  1363. if GhostHolder.Parent == Effects then
  1364. GhostHolder.Transparency = 1-i
  1365. end
  1366. end
  1367.  
  1368.  
  1369.  
  1370. GhostHolder.Transparency = 0
  1371.  
  1372.  
  1373.  
  1374.  
  1375. end))
  1376.  
  1377.  
  1378. local function onTouch(part)
  1379. if part.Parent ~= Character and part.Parent.Parent ~= Character then
  1380.  
  1381.  
  1382. local ExplotionPart = Instance.new("Part")
  1383. ExplotionPart.Reflectance = 0
  1384. ExplotionPart.Transparency = 1
  1385. ExplotionPart.CanCollide = false
  1386. ExplotionPart.Locked = true
  1387. ExplotionPart.Anchored=true
  1388. ExplotionPart.BrickColor = BrickColor.new("Really blue")
  1389. ExplotionPart.Name = "Explotion"
  1390. ExplotionPart.Size = Vector3.new()
  1391. ExplotionPart.Material = "SmoothPlastic"
  1392. ExplotionPart:BreakJoints()
  1393. ExplotionPart.Parent = Effects
  1394. ExplotionPart.CFrame = GhostHolder.CFrame
  1395. game:GetService("Debris"):AddItem(ExplotionPart, 3)
  1396. so("335657174", ExplotionPart,1.5, 1.5)
  1397. GhostHolder.Parent = nil
  1398. GhostHolder:Destroy()
  1399. 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))))
  1400. MagniDamage(ExplotionPart, 8, 20, 35, 0, "Knockdown")
  1401. local NewParticle = Particle1:Clone()
  1402. NewParticle.Parent = ExplotionPart
  1403. NewParticle.Acceleration = Vector3.new(0,0,0)
  1404. NewParticle:Emit(20)
  1405. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,5)})
  1406. NewParticle.Color = ColorSequence.new(Color3.new (1, .69019608, 0), Color3.new (1, .69019608, 0))
  1407. NewParticle.Lifetime = NumberRange.new(.4,.5)
  1408. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.1,.5),NumberSequenceKeypoint.new(1,1)})
  1409. NewParticle.Speed = NumberRange.new(0)
  1410. NewParticle.ZOffset = 2
  1411. NewParticle.RotSpeed = NumberRange.new(-100,100)
  1412. NewParticle.Rotation = NumberRange.new(-0,0)
  1413. NewParticle.LightEmission = 1
  1414. NewParticle.Texture = "rbxassetid://288978836"
  1415.  
  1416.  
  1417.  
  1418.  
  1419. end
  1420. end
  1421.  
  1422. GhostHolder.Touched:connect(onTouch)
  1423. local NewParticle = Fire2:Clone()
  1424. NewParticle.Parent = GhostHolder
  1425. NewParticle.VelocitySpread = 180
  1426. NewParticle.Speed = NumberRange.new(0.0)
  1427. NewParticle.Acceleration = Vector3.new(0, 0, 0)
  1428. NewParticle.Rotation = NumberRange.new(-360,360)
  1429. NewParticle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.5,.5),NumberSequenceKeypoint.new(1,1)})
  1430. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.25),NumberSequenceKeypoint.new(.5,2),NumberSequenceKeypoint.new(1,.25)})
  1431. NewParticle.Lifetime = NumberRange.new(1.3)
  1432. NewParticle.Texture = "rbxassetid://2120313592"
  1433. NewParticle.Enabled = true
  1434. NewParticle.Rate = 20
  1435. NewParticle.LightEmission = 1
  1436. NewParticle.Color = ColorSequence.new(Color3.new (1, 0, 0), Color3.new (1, .69019608, 0))
  1437. NewParticle.LockedToPart = true
  1438. --GhostHolder:BreakJoints()
  1439. --GhostHolder.Anchored = false
  1440. local GhostMesh1 = Create("SpecialMesh"){
  1441. Parent = GhostHolder,
  1442. MeshType = "Sphere",
  1443. Scale = vt(8,8,8)*2,
  1444. Offset = vt(0,0,0)
  1445. }
  1446.  
  1447. --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)
  1448. local GhostTarget=nil
  1449. local GhostForce = Create("BodyVelocity")({velocity = Vector3.new(0, 0, 0) , P = 5000, maxForce = Vector3.new(math.huge, math.huge, math.huge), Parent = GhostHolder})
  1450. coroutine.resume(coroutine.create(function()
  1451. wait(0.25)
  1452. while GhostHolder.Parent == Effects do wait()
  1453.  
  1454.  
  1455. GhostTarget = findNearestTorso(GhostHolder.Position)
  1456.  
  1457.  
  1458. if GhostTarget ~=nil then
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465. GhostForce.velocity =Vector3.new(0, 0, 0)+CFrame.new(GhostHolder.Position,GhostTarget.Position).lookVector *20
  1466.  
  1467.  
  1468. else
  1469.  
  1470. GhostForce.velocity = Vector3.new(0, 0, 0)
  1471. local RandomPart = Instance.new("Part")
  1472. RandomPart.Reflectance = 0
  1473. RandomPart.Transparency = 1
  1474. RandomPart.CanCollide = false
  1475. RandomPart.Locked = true
  1476. RandomPart.Anchored=true
  1477. RandomPart.BrickColor = BrickColor.new("Really blue")
  1478. RandomPart.Name = "MUDA"
  1479. RandomPart.Size = Vector3.new()
  1480. RandomPart.Material = "SmoothPlastic"
  1481. RandomPart:BreakJoints()
  1482. RandomPart.Parent = workspace
  1483. RandomPart.CFrame = GhostHolder.CFrame
  1484. onTouch(RandomPart)
  1485. game:GetService("Debris"):AddItem(RandomPart, .5)
  1486.  
  1487. end
  1488.  
  1489. --wait(1.35)
  1490. end
  1491. GhostHolder:Destroy()
  1492. end))
  1493.  
  1494.  
  1495. end
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504. function Attack1()
  1505. attack=true
  1506. so("331888777", RightLeg,1.15, 1.4)
  1507. for i = 0,.7,.1 do swait()
  1508. Humanoid.WalkSpeed = 12
  1509. Humanoid.JumpPower = 60
  1510.  
  1511. 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)
  1512. 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)
  1513. 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)
  1514. 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)
  1515. 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)
  1516. 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)
  1517.  
  1518.  
  1519.  
  1520.  
  1521. end
  1522. for i = 0,1,.1 do swait()
  1523. Humanoid.WalkSpeed = 12
  1524. Humanoid.JumpPower = 60
  1525.  
  1526. 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)
  1527. 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)
  1528. 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)
  1529. 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)
  1530. 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)
  1531. 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)
  1532.  
  1533.  
  1534.  
  1535.  
  1536. end
  1537. for i = 0,.2,.1 do swait()
  1538. Humanoid.WalkSpeed = 12
  1539. Humanoid.JumpPower = 60
  1540.  
  1541. 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)
  1542. 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)
  1543. 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)
  1544. 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)
  1545. 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)
  1546. 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)
  1547.  
  1548.  
  1549.  
  1550.  
  1551. end
  1552.  
  1553. for i = 0,.3,.1 do swait()
  1554. Humanoid.WalkSpeed = 12
  1555. Humanoid.JumpPower = 60
  1556.  
  1557. 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)
  1558. 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)
  1559. 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)
  1560. 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)
  1561. 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)
  1562. 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)
  1563.  
  1564.  
  1565.  
  1566.  
  1567. end
  1568. for i = 0,.3,.1 do swait()
  1569. Humanoid.WalkSpeed = 12
  1570. Humanoid.JumpPower = 60
  1571.  
  1572. 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)
  1573. 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)
  1574. 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)
  1575. 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)
  1576. 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)
  1577. 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)
  1578.  
  1579.  
  1580.  
  1581.  
  1582. end
  1583. for i = 0,1,.06 do swait()
  1584. Humanoid.WalkSpeed = 12
  1585. Humanoid.JumpPower = 60
  1586.  
  1587. 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)
  1588. 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)
  1589. 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)
  1590. 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)
  1591. 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)
  1592. 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)
  1593.  
  1594.  
  1595.  
  1596.  
  1597. end
  1598. for i = 0,1.5,.1 do swait()
  1599. Humanoid.WalkSpeed = 12
  1600. Humanoid.JumpPower = 60
  1601.  
  1602. 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)
  1603. 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)
  1604. 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)
  1605. 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)
  1606. 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)
  1607. 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)
  1608.  
  1609.  
  1610.  
  1611.  
  1612. end
  1613. so("331888892", RightLeg,1.5, 1)
  1614. coroutine.resume(coroutine.create(function() swait(5)
  1615. for i, v in pairs(GatherAllInstances(Character,Effects)) do
  1616. if v.Parent ~= Head and v:isA("BasePart") and v ~= RootPart then
  1617. coroutine.resume(coroutine.create(function()
  1618. local NewParticle = Fire2:Clone()
  1619.  
  1620.  
  1621.  
  1622.  
  1623. NewParticle.Parent = v
  1624. NewParticle:Emit(30)
  1625.  
  1626. game:GetService("Debris"):AddItem(NewParticle, 3)
  1627.  
  1628.  
  1629. end))
  1630.  
  1631.  
  1632.  
  1633.  
  1634. end
  1635.  
  1636. end
  1637.  
  1638. end))
  1639. 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))
  1640. --MagniDamage(MiniGun.BHandle, 10, 25, 35, 0, "Knockdown")
  1641. CFMagniDamage(CFrame.new(RootPart.Position- Vector3.new(0, 3, 0) + RootPart.CFrame.lookVector*2 ),15, 45, 55, 20, "Snare")
  1642.  
  1643.  
  1644.  
  1645. for i = 0,2.5,.1 do swait()
  1646. Humanoid.WalkSpeed = 12
  1647. Humanoid.JumpPower = 60
  1648.  
  1649. 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)
  1650. 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)
  1651. 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)
  1652. 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)
  1653. 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)
  1654. 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)
  1655.  
  1656.  
  1657.  
  1658.  
  1659. end
  1660.  
  1661.  
  1662. --------------------
  1663.  
  1664.  
  1665. attack=false
  1666. end
  1667.  
  1668. function Attack2()
  1669. attack=true
  1670.  
  1671. for i = 0,1,.1 do swait()
  1672. Humanoid.WalkSpeed = 0
  1673. Humanoid.JumpPower = 0
  1674.  
  1675. 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)
  1676. 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)
  1677. 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)
  1678. 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)
  1679. 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)
  1680. 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)
  1681.  
  1682.  
  1683.  
  1684.  
  1685. end
  1686.  
  1687.  
  1688.  
  1689. for i = 0,1,.1 do swait()
  1690. Humanoid.WalkSpeed = 0
  1691. Humanoid.JumpPower = 0
  1692.  
  1693. 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)
  1694. 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)
  1695. 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)
  1696. 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)
  1697. 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)
  1698. 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)
  1699.  
  1700.  
  1701.  
  1702.  
  1703. end
  1704. 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))
  1705. coroutine.resume(coroutine.create(function()
  1706.  
  1707. swait(10)
  1708. so("438666077", RootPart,2, 1)
  1709. end))
  1710. for i = 0,14,.4 do swait()
  1711. Humanoid.WalkSpeed = 0
  1712. Humanoid.JumpPower = 0
  1713.  
  1714. 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)
  1715. 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)
  1716. 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)
  1717. 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)
  1718. 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)
  1719. 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)
  1720.  
  1721.  
  1722.  
  1723.  
  1724. end
  1725.  
  1726. for i, v in pairs(GatherAllInstances(Character,Effects)) do
  1727. if v.Parent ~= Head and v:isA("BasePart") and v ~= RootPart then
  1728. coroutine.resume(coroutine.create(function()
  1729. local NewParticle = Fire1:Clone()
  1730.  
  1731.  
  1732.  
  1733.  
  1734. NewParticle.Parent = v
  1735. NewParticle:Emit(40)
  1736.  
  1737. game:GetService("Debris"):AddItem(NewParticle, 3)
  1738.  
  1739.  
  1740. end))
  1741.  
  1742.  
  1743.  
  1744.  
  1745. end
  1746.  
  1747. end
  1748.  
  1749.  
  1750.  
  1751.  
  1752. 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))
  1753. 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))
  1754. 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))
  1755. --CFMagniDamage(CFrame.new(RootPart.Position),55, 45, 55, 0, "Knockdown")
  1756. MagniDamage(RootPart, 55, 65, 75, 0, "Knockdown")
  1757. for i = 0,3,.1 do swait()
  1758. Humanoid.WalkSpeed = 0
  1759. Humanoid.JumpPower = 0
  1760.  
  1761. 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)
  1762. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(43.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
  1763. 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)
  1764. 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)
  1765. 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)
  1766. 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)
  1767.  
  1768.  
  1769.  
  1770.  
  1771. end
  1772.  
  1773.  
  1774.  
  1775. for i = 0,1,.1 do swait()
  1776. Humanoid.WalkSpeed = 0
  1777. Humanoid.JumpPower = 0
  1778.  
  1779. 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)
  1780. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(33.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .25)
  1781. 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)
  1782. 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)
  1783. 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)
  1784. 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)
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790. end
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798. for i = 0,1,.1 do swait()
  1799. Humanoid.WalkSpeed = 12
  1800. Humanoid.JumpPower = 60
  1801.  
  1802. 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)
  1803. 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)
  1804. 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)
  1805. 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)
  1806. 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)
  1807. 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)
  1808.  
  1809.  
  1810.  
  1811.  
  1812. end
  1813.  
  1814. attack=false
  1815. end
  1816.  
  1817. function Attack3()
  1818. attack=true
  1819.  
  1820.  
  1821. for i = 0,1.5,.1 do swait()
  1822. Humanoid.WalkSpeed = 0
  1823. Humanoid.JumpPower = 0
  1824.  
  1825. 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)
  1826. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(43.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
  1827. 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)
  1828. 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)
  1829. 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)
  1830. 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)
  1831.  
  1832.  
  1833.  
  1834.  
  1835. end
  1836. so("331888892", RootPart,2, 0.8)
  1837. 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))
  1838.  
  1839. for i = 0,1,.1 do swait()
  1840. Humanoid.WalkSpeed = 12
  1841. Humanoid.JumpPower = 0
  1842.  
  1843. 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)
  1844. 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)
  1845. 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)
  1846. 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)
  1847. 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)
  1848. 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)
  1849.  
  1850.  
  1851.  
  1852.  
  1853. end
  1854. so("160867463", Torso,1.5, 2)
  1855. for i = 0,1,.1 do swait()
  1856. Humanoid.WalkSpeed = 12
  1857. Humanoid.JumpPower = 0
  1858.  
  1859. 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)
  1860. 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)
  1861. 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)
  1862. 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)
  1863. 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)
  1864. 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)
  1865.  
  1866.  
  1867.  
  1868.  
  1869. end
  1870.  
  1871.  
  1872. coroutine.resume(coroutine.create(function()
  1873. local NewParticle = Fire2:Clone()
  1874. NewParticle.Parent = Torso
  1875. NewParticle.VelocitySpread = 180
  1876. NewParticle.Speed = NumberRange.new(0.0)
  1877. NewParticle.Acceleration = Vector3.new(0, 0, 0)
  1878. NewParticle:Emit(4)
  1879. NewParticle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.5,0),NumberSequenceKeypoint.new(1,1)})
  1880. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4),NumberSequenceKeypoint.new(.5,6.5),NumberSequenceKeypoint.new(1,5)})
  1881. NewParticle.Lifetime = NumberRange.new(.6)
  1882. NewParticle.Texture = "rbxassetid://321556991"
  1883. NewParticle.Enabled = false
  1884. game:GetService("Debris"):AddItem(NewParticle, 5)
  1885. end))
  1886.  
  1887. 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))))
  1888.  
  1889. 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))))
  1890.  
  1891. 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))))
  1892.  
  1893. coroutine.resume(coroutine.create(function()
  1894.  
  1895. FireSoul(Torso.CFrame*cn(5,0,0))
  1896.  
  1897. FireSoul(Torso.CFrame*cn(-5,0,0))
  1898.  
  1899. end))
  1900.  
  1901. for i, v in pairs(GatherAllInstances(Character,Effects)) do
  1902. if v.Parent ~= Head and v:isA("BasePart") and v ~= RootPart then
  1903. coroutine.resume(coroutine.create(function()
  1904. local NewParticle = Fire1:Clone()
  1905.  
  1906.  
  1907.  
  1908.  
  1909. NewParticle.Parent = v
  1910. NewParticle:Emit(10)
  1911.  
  1912. game:GetService("Debris"):AddItem(NewParticle, 3)
  1913.  
  1914.  
  1915. end))
  1916.  
  1917.  
  1918.  
  1919.  
  1920. end
  1921.  
  1922. end
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929. for i = 0,4,.1 do swait()
  1930. Humanoid.WalkSpeed = 0
  1931. Humanoid.JumpPower = 0
  1932.  
  1933. 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)
  1934. 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)
  1935. 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)
  1936. 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)
  1937. 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)
  1938. 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)
  1939.  
  1940.  
  1941.  
  1942.  
  1943. end
  1944.  
  1945.  
  1946. for i = 0,1.5,.1 do swait()
  1947. Humanoid.WalkSpeed = 12
  1948. Humanoid.JumpPower = 60
  1949.  
  1950. 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)
  1951. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(43.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
  1952. 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)
  1953. 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)
  1954. 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)
  1955. 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)
  1956.  
  1957.  
  1958.  
  1959.  
  1960. end
  1961.  
  1962. attack=false
  1963. end
  1964.  
  1965. function Attack4()
  1966. attack=true
  1967. for i = 0,1.5,.1 do swait()
  1968. Humanoid.WalkSpeed = 12
  1969. Humanoid.JumpPower = 60
  1970.  
  1971. 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)
  1972. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(53.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
  1973. 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)
  1974. 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)
  1975. 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)
  1976. 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)
  1977.  
  1978.  
  1979.  
  1980.  
  1981. end
  1982.  
  1983.  
  1984. for i = 0,1.5,.1 do swait()
  1985. Humanoid.WalkSpeed = 12
  1986. Humanoid.JumpPower = 60
  1987.  
  1988. 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)
  1989. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(33.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
  1990. 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)
  1991. 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)
  1992. 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)
  1993. 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)
  1994.  
  1995.  
  1996.  
  1997.  
  1998. end
  1999.  
  2000.  
  2001.  
  2002. for i = 0,1.5,.1 do swait()
  2003. Humanoid.WalkSpeed = 12
  2004. Humanoid.JumpPower = 60
  2005.  
  2006. 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)
  2007. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(3.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
  2008. 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)
  2009. 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)
  2010. 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)
  2011. 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)
  2012.  
  2013.  
  2014.  
  2015.  
  2016. end
  2017.  
  2018. for i = 0,1.5,.1 do swait()
  2019. Humanoid.WalkSpeed = 12
  2020. Humanoid.JumpPower = 60
  2021.  
  2022. 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)
  2023. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(13.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
  2024. 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)
  2025. 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)
  2026. 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)
  2027. 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)
  2028.  
  2029.  
  2030.  
  2031.  
  2032. end
  2033. for i = 0,1.5,.1 do swait()
  2034. Humanoid.WalkSpeed = 12
  2035. Humanoid.JumpPower = 60
  2036.  
  2037. 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)
  2038. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(23.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
  2039. 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)
  2040. 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)
  2041. 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)
  2042. 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)
  2043.  
  2044.  
  2045.  
  2046.  
  2047. end
  2048. for i = 0,1.5,.1 do swait()
  2049. Humanoid.WalkSpeed = 12
  2050. Humanoid.JumpPower = 60
  2051.  
  2052. 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)
  2053. Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(43.5 ), math.rad(0), math.rad(0 - 0 * math.cos(sine / 8/3))), .15)
  2054. 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)
  2055. 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)
  2056. 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)
  2057. 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)
  2058.  
  2059.  
  2060.  
  2061.  
  2062. end
  2063.  
  2064. attack=false
  2065. end
  2066.  
  2067.  
  2068.  
  2069. function JumpAfterEffect()
  2070. if attack == false then
  2071. attack = true
  2072.  
  2073.  
  2074.  
  2075. if isruning == true then
  2076. Humanoid.WalkSpeed= 10
  2077. else
  2078. Humanoid.WalkSpeed= 3
  2079. end
  2080. Humanoid.JumpPower= 0
  2081. coroutine.resume(coroutine.create(function()
  2082. local NewParticle = Particle1:Clone()
  2083.  
  2084.  
  2085. local EffectFloor,PosFloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2086.  
  2087. local EffectHolder = Instance.new("Part")
  2088. EffectHolder.Parent = Character
  2089. EffectHolder.Size = Vector3.new(0.05, 0.05, 0.05)
  2090. EffectHolder.Transparency = 1
  2091. EffectHolder.Anchored=true
  2092.  
  2093. EffectHolder.Material = "Neon"
  2094. EffectHolder.CanCollide = false
  2095.  
  2096.  
  2097. EffectHolder.CFrame = cn(PosFloor)
  2098.  
  2099. NewParticle.Color = ColorSequence.new(EffectFloor.Color, Color3.new (.5, .5, .5))
  2100. NewParticle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,EffectFloor.Transparency+.3),NumberSequenceKeypoint.new(.5,EffectFloor.Transparency+.8),NumberSequenceKeypoint.new(1,1)})
  2101. NewParticle.Parent = EffectHolder
  2102. NewParticle:Emit(30)
  2103. so("1161221108", EffectHolder,.7, math.random(100,120)/100)
  2104. game:GetService("Debris"):AddItem(EffectHolder, 3)
  2105.  
  2106.  
  2107. end))
  2108.  
  2109. for i = 1,2.4,.1 do
  2110. swait()
  2111. 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)
  2112. 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)
  2113. 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)
  2114. 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)
  2115. 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)
  2116. 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)
  2117. end
  2118.  
  2119.  
  2120. attack = false
  2121. end
  2122. end
  2123.  
  2124. KeyUpF=function(key)
  2125.  
  2126. if key == "02" then
  2127. if isruning == true then
  2128. isruning=false
  2129. end
  2130. end
  2131.  
  2132.  
  2133. end
  2134.  
  2135. KeyDownF=function(key)
  2136. if key == "z" and attack == false then
  2137. Attack1()
  2138.  
  2139.  
  2140. end
  2141. if key == "x" and attack == false then
  2142. Attack2()
  2143. end
  2144.  
  2145. if key == "c" and attack == false then
  2146. Attack3()
  2147. end
  2148. if key == "v" and attack == false then
  2149. Attack4()
  2150. end
  2151.  
  2152.  
  2153.  
  2154.  
  2155. if key == "0" then
  2156. if isruning == false then
  2157. isruning=true
  2158. end
  2159. end
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166. if key == "m" then
  2167.  
  2168. if playsong == true then
  2169. playsong = false
  2170. s2:stop()
  2171. elseif playsong == false then
  2172. playsong = true
  2173.  
  2174.  
  2175. s2:play()
  2176. end
  2177.  
  2178. end
  2179.  
  2180.  
  2181.  
  2182. if key == "n" then
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189. CurId = CurId + 1
  2190.  
  2191. if CurId > 10 then
  2192. CurId = 1
  2193.  
  2194. end
  2195. warn("now playing song Nr"..CurId)
  2196. if CurId == 1 then
  2197. lastid= "http://www.roblox.com/asset/?id=737822107"
  2198.  
  2199.  
  2200. elseif CurId == 2 then
  2201. lastid= "http://www.roblox.com/asset/?id=896506559"
  2202.  
  2203.  
  2204. elseif CurId == 3 then
  2205. lastid= "http://www.roblox.com/asset/?id=601578010"
  2206. elseif CurId == 4 then
  2207. lastid= "http://www.roblox.com/asset/?id=142655178"
  2208. elseif CurId == 5 then
  2209. lastid= "http://www.roblox.com/asset/?id=1301441081"
  2210. elseif CurId == 6 then
  2211. lastid= "http://www.roblox.com/asset/?id=1051156548"
  2212. elseif CurId == 7 then
  2213. lastid= "http://www.roblox.com/asset/?id=552945114"
  2214.  
  2215. elseif CurId == 8 then
  2216. lastid= "http://www.roblox.com/asset/?id=1524536019"
  2217. elseif CurId == 9 then
  2218. lastid= "http://www.roblox.com/asset/?id=803373182"
  2219.  
  2220.  
  2221. elseif CurId == 10 then
  2222. lastid= "http://www.roblox.com/asset/?id=1718958911"
  2223.  
  2224.  
  2225. end
  2226.  
  2227.  
  2228. lastsongpos = 0
  2229. s2.TimePosition = lastsongpos
  2230.  
  2231.  
  2232. end
  2233.  
  2234.  
  2235. end
  2236.  
  2237.  
  2238. Qwait=false
  2239. coroutine.resume(coroutine.create(function()
  2240. so("181004957", Character,2, 1.2)
  2241.  
  2242.  
  2243. wait(.5)
  2244. playsong = true
  2245. s2:play()
  2246. end))
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252. coroutine.resume(coroutine.create(function()
  2253. while Humanoid.Health>0 do
  2254. swait()
  2255. sine = sine + change
  2256. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2257.  
  2258.  
  2259.  
  2260. coroutine.resume(coroutine.create(function()
  2261. if hitfloor ~= nil and Qwait == false then
  2262. Qwait =true
  2263. --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)))
  2264.  
  2265. --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))
  2266.  
  2267. swait(30)
  2268. Qwait=false
  2269. end end))
  2270.  
  2271. coroutine.resume(coroutine.create(function()
  2272. if Head:FindFirstChildOfClass("Decal") then
  2273. Head:FindFirstChildOfClass("Decal"):Destroy()
  2274. end
  2275. end))
  2276.  
  2277.  
  2278. coroutine.resume(coroutine.create(function()
  2279.  
  2280.  
  2281. if s2.Parent == nil or s2 == nil then
  2282.  
  2283. s2 = s2c:Clone()
  2284. s2.Parent = Torso
  2285. s2.Name = "BGMusic"
  2286. -- s2.SoundId = lastid
  2287. s2.Pitch = 1
  2288. s2.Volume = 1.5
  2289. s2.Looped = true
  2290. s2.archivable = false
  2291. s2.TimePosition = lastsongpos
  2292. if playsong == true then
  2293. s2:play()
  2294. elseif playsong == false then
  2295. s2:stop()
  2296. end
  2297.  
  2298.  
  2299. else
  2300. lastsongpos=s2.TimePosition
  2301. s2.Pitch = 1
  2302.  
  2303. s2.Volume = 1.5
  2304.  
  2305. s2.Looped = true
  2306. s2.SoundId = lastid
  2307. s2.EmitterSize = 30
  2308. end
  2309.  
  2310.  
  2311.  
  2312. end))
  2313.  
  2314.  
  2315. if hitfloor ~= nil then
  2316. inAir = true
  2317. else
  2318. inAir = false
  2319. end
  2320.  
  2321. if inAir == true then
  2322. if inAir2 == false then
  2323.  
  2324.  
  2325. JumpAfterEffect()
  2326.  
  2327. end
  2328. end
  2329.  
  2330. if hitfloor ~= nil then
  2331. inAir2 = true
  2332. else
  2333. inAir2 = false
  2334. end
  2335.  
  2336.  
  2337.  
  2338.  
  2339. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2340. local velderp = RootPart.Velocity.y
  2341.  
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349. inairvel=torvel
  2350.  
  2351.  
  2352. if inairvel > 30 then
  2353. inairvel=30
  2354. end
  2355. inairvel=inairvel/50
  2356. if RootPart.Velocity.y > 1 and hitfloor == nil then
  2357. Anim = "Jump"
  2358. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  2359. Anim = "Fall"
  2360. elseif Humanoid.Sit == true then
  2361. Anim = "Sit"
  2362. elseif torvel < 1 and hitfloor ~= nil then
  2363. Anim = "Idle"
  2364. elseif torvel > 2 and hitfloor ~= nil then
  2365.  
  2366. Anim = "Walk"
  2367.  
  2368. else
  2369. Anim = ""
  2370.  
  2371. end
  2372.  
  2373.  
  2374. if attack == false then
  2375. if Anim == "Walk" then
  2376.  
  2377.  
  2378. if hitfloor ~= nil and CanUseWalkSound == true then
  2379. nextstep = math.cos(sine / 8)
  2380.  
  2381. if nextstep > -0.0 and nextstep < 0.2 then
  2382. CanUseWalkSound = false
  2383. local MaterialName = hitfloor.Material.Name
  2384.  
  2385.  
  2386. if MaterialName =="Plastic"or MaterialName =="SmoothPlastic"then
  2387. so("379483672", Torso,.5, math.random(30,60)/100)
  2388.  
  2389. elseif MaterialName =="Pebble"then
  2390. so("267882971", Torso,.5, math.random(80,100)/100)
  2391.  
  2392. elseif MaterialName =="Marble"or MaterialName =="Granite"then
  2393. so("379483672", Torso,.5, math.random(80,100)/100)
  2394.  
  2395.  
  2396. elseif MaterialName =="Grass"then
  2397. so("267882764", Torso,.35, math.random(90,100)/100)
  2398.  
  2399. elseif MaterialName =="Ice"then
  2400. so("265653271", Torso,.8, math.random(70,90)/100)
  2401.  
  2402. elseif MaterialName =="Foil"then
  2403. so("265653271", Torso,.5, math.random(40,60)/100)
  2404.  
  2405.  
  2406.  
  2407. elseif MaterialName =="Concrete"or MaterialName =="Slate"or MaterialName =="Brick" then
  2408. so("267454199", Torso,.5, math.random(80,100)/100)
  2409.  
  2410.  
  2411.  
  2412. elseif MaterialName =="Wood" or MaterialName =="WoodPlanks"then
  2413. so("267454275", Torso,.5, math.random(80,100)/100)
  2414.  
  2415. elseif MaterialName =="Sand" then
  2416. so("265653329", Torso,.5, math.random(80,100)/100)
  2417.  
  2418. elseif MaterialName =="CorrodedMetal"or MaterialName =="Metal" or MaterialName =="DiamondPlate" then
  2419. so("267882776", Torso,.5, math.random(80,100)/100)
  2420.  
  2421. elseif MaterialName =="Neon" or hitfloor.Transparency >0.1 then
  2422. so("145180170", Torso,.5, math.random(80,100)/100)
  2423.  
  2424.  
  2425. end
  2426. --nextstep = Humanoid.WalkSpeed
  2427.  
  2428. coroutine.resume(coroutine.create(function()
  2429. wait(.15)
  2430. CanUseWalkSound = true
  2431.  
  2432. end))
  2433. else
  2434. -- nextstep = nextstep - 1
  2435.  
  2436. end
  2437.  
  2438.  
  2439.  
  2440. end
  2441.  
  2442.  
  2443.  
  2444. end
  2445. end
  2446.  
  2447.  
  2448.  
  2449. if attack == false then
  2450. if Anim == "Jump" then
  2451.  
  2452.  
  2453. change = 0.5
  2454. 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)
  2455. 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)
  2456. 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)
  2457. 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)
  2458. 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)
  2459. 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)
  2460. elseif Anim == "Fall" then
  2461.  
  2462.  
  2463. change = 0.5
  2464. 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)
  2465. 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)
  2466. 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)
  2467. 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)
  2468. 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)
  2469. 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)
  2470.  
  2471. elseif Anim == "Idle" then
  2472. change = 0.60
  2473.  
  2474. local ADNum = .25
  2475. Humanoid.WalkSpeed = 12
  2476. Humanoid.JumpPower = 60
  2477. 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)
  2478. 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)
  2479. 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)
  2480. 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)
  2481. 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)
  2482. 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)
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488. elseif Anim == "Walk" then
  2489.  
  2490. if isruning == false then
  2491. change = 1.2
  2492. Humanoid.WalkSpeed = 12
  2493. Humanoid.JumpPower = 60
  2494. 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)
  2495. 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)
  2496. 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)
  2497. 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)
  2498. 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)
  2499. 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)
  2500.  
  2501. else
  2502. local ADNum = .5
  2503. local RunSpeed = 1
  2504. change = 1.6*RunSpeed
  2505. Humanoid.WalkSpeed = 32*RunSpeed
  2506. Humanoid.JumpPower = 70
  2507. 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)
  2508. 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)
  2509. 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)
  2510. 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)
  2511. 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)
  2512. 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)
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518. end
  2519.  
  2520.  
  2521. end
  2522. end
  2523. end
  2524.  
  2525.  
  2526.  
  2527.  
  2528. end))
  2529. remote = Instance.new 'RemoteFunction';
  2530. remote.Parent = Character;
  2531. remote.OnServerInvoke = function (player, request, ...)
  2532. if (player ~= Player) then
  2533. return error ('You cannot invoke this remote', 0);
  2534. end;
  2535.  
  2536. if (request == 1) then
  2537. local k = ...;
  2538.  
  2539. KeyDownF(k)
  2540. KeyUpF(k)
  2541.  
  2542.  
  2543. end;
  2544.  
  2545.  
  2546. end;
  2547. remote.Name = 'ServerRemote';
  2548. --]=], Player.Character):WaitForChild 'ServerRemote';
  2549. localscript = script.Keys
  2550. localscript.Name = Player.Name
  2551. localscript.Parent = Character
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement