Dark_EccentricYT

Untitled

Jun 22nd, 2018
1,774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.51 KB | None | 0 0
  1. local armmovments = false
  2. local plr = game:GetService('Players').LocalPlayer
  3. local chr = plr.Character
  4. local maus = plr:GetMouse()
  5. local PGui=plr.PlayerGui
  6. local lleg = chr["Left Leg"]
  7. local rleg = chr["Right Leg"]
  8. local larm = chr["Left Arm"]
  9. local rarm = chr["Right Arm"]
  10. local hed = chr.Head
  11. local rutprt = chr.HumanoidRootPart
  12. local torso = chr.Torso
  13. local otheranims=false
  14. local swimming=false
  15. chr.Animate.Disabled=true
  16. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  17. local RunSpeed=50
  18. local WlkSpeed=30
  19. local SwimSpeed=14
  20. local SwimDashSpeed=28
  21. local anim = "Idling"
  22. local lastanim = "Idling"
  23. local val = 0
  24. local syne = 0
  25. local num = 0
  26. local runtime = 0
  27. local pseudohead=hed:Clone()
  28. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  29. pseudohead.Name='PseudoHead'
  30. pseudohead.Parent=chr.Head
  31. local pseudoweld=Instance.new('Weld',torso)
  32. pseudoweld.Part0=hed
  33. pseudoweld.Name='PseudoHedWld'
  34. pseudoweld.Part1=pseudohead
  35. hed.Transparency=1
  36. local Player = game:GetService('Players').LocalPlayer
  37. local Character = Player.Character
  38. local Mouse = Player:GetMouse()
  39. local LeftArm = Character:WaitForChild("Left Arm")
  40. local RightArm = Character:WaitForChild("Right Arm")
  41. local LeftLeg = Character:WaitForChild("Left Leg")
  42. local RightLeg = Character:WaitForChild("Right Leg")
  43. local Head = Character:WaitForChild("Head")
  44. local Torso = Character:WaitForChild("Torso")
  45. z = Instance.new("Sound", torso)
  46. z.SoundId = "rbxassetid://" -- Put Music ID Here.
  47. z.Looped = true
  48. z.Pitch = 0.82
  49. z.Volume = 1
  50. wait(.1)
  51. z:Play()
  52. local RootPart = Character:WaitForChild("HumanoidRootPart")
  53. local Humanoid = Character:WaitForChild("Humanoid")
  54. local LeftShoulder = Torso:WaitForChild("Left Shoulder")
  55. local RightShoulder = Torso:WaitForChild("Right Shoulder")
  56. local LeftHip = Torso:WaitForChild("Left Hip")
  57. local RightHip = Torso:WaitForChild("Right Hip")
  58. local Neck = Torso:WaitForChild("Neck")
  59. local RootJoint = RootPart:WaitForChild("RootJoint")
  60. local Camera = workspace.CurrentCamera
  61. local FLeftShoulder, FRightShoulder = Instance.new("Weld", Torso), Instance.new("Weld", Torso)
  62. FLeftShoulder.Name = "LS"
  63. FRightShoulder.Name = "RS"
  64. local FLeftHip, FRightHip = Instance.new("Weld", Torso), Instance.new("Weld", Torso)
  65. FLeftHip.Name = "LH"
  66. FRightHip.Name = "RH"
  67. local FRootJoint = Instance.new("Weld", RootPart)
  68. FRootJoint.Name = "RJ"
  69. local F1, F2, F3 = Instance.new("Folder", Character), Instance.new("Folder"), Instance.new("Folder")
  70. F1.Name = "Parts Folder"
  71. F2.Parent = F1
  72. F2.Name = "Effects"
  73. F3.Parent = F1
  74. F3.Name = "Extra Parts"
  75. local Drag_To_Part = Instance.new("Part", F3)
  76. Drag_To_Part.Transparency = 1
  77. Drag_To_Part.Name = "Drag-to-part"
  78. Drag_To_Part.Size = Vector3.new(0.2, 0.2, 0.2)
  79. Drag_To_Part.Anchored = false
  80. Drag_To_Part.CanCollide = false
  81. Drag_To_Part.Locked = true
  82. local DTPWeld = Instance.new("Weld", Drag_To_Part)
  83. DTPWeld.Part0 = RootPart
  84. DTPWeld.Part1 = Drag_To_Part
  85. local WepWeld, WepWeld2, WepWeld3, SheWeld = nil, nil, nil, nil
  86. local NLSC0 = LeftShoulder.C0
  87. local NLSC1 = LeftShoulder.C1
  88. local NRSC0 = RightShoulder.C0
  89. local NRSC1 = RightShoulder.C1
  90. local NLHC0 = LeftHip.C0
  91. local NLHC1 = LeftHip.C1
  92. local NRHC0 = RightHip.C0
  93. local NRHC1 = RightHip.C1
  94. local NNC0 = Neck.C0
  95. local NNC1 = Neck.C1
  96. local NRJC0 = RootJoint.C0
  97. local NRJC1 = RootJoint.C1
  98. local Handle, Hit_Box, Handle2, Hit_Box2, TEHandle, TESHandle, TEHit_Box, CEP = nil, nil, nil, nil, nil, nil, nil, nil
  99. local chatServ = game:GetService("Chat")
  100. local runServ = game:GetService("RunService")
  101. local debServ = game:GetService("Debris")
  102. local CurrentSpeed = 16
  103. local Current_Anim = "Idle"
  104. local Attack_Num = 1
  105. local Damage_Buff = 0
  106. local Max_Health = 400
  107. local Last_Health = Max_Health
  108. local idle = 1
  109. local idlenum = 1
  110. local idlenum2 = 1
  111. local walk = 1
  112. local walknum = 1
  113. local walknum2 = 1
  114. local Effects = {}
  115. local DragTable = {}
  116. local InputTable = {}
  117. local InputFrameTable = {}
  118. local TEBladeP = {}
  119. local TEBEffect, c1, c2 = nil, nil, nil
  120. local RGyro = Instance.new("BodyGyro")
  121. RGyro.MaxTorque = Vector3.new(0, 0, 0)
  122. RGyro.P = 2000
  123. local LLCF = CFrame.new()
  124. local SWP = Instance.new("BoolValue")
  125. local ControlScript = Player.PlayerScripts:WaitForChild("ControlScript")
  126. local Z_Pressed = false
  127. local Debounces = {Equipped = false, Equipping = false, HasWep = false, DuelWielding = false, Attacking = false, Locked_On = false, Can_Double_Jump = false, AnimOverride = false, Guarding = false, Crouching = false, JumpAnim = false, DoubleJumpAnim = false, KeyStrokeEnabled = false, Successful_KeyStroke = false, KeyStroke_CoolDown = false, UIAction = false, ZeroGravity = false, DoubleJumping = false, Charging_Erupt = false, Guarding = false, Transformed = false, DisableJump = false, Dashing = false, Hovering = false, TEWield = false, TESWield = false, CanGuard = true, SpedUp = false, HurrSlash = false, Stompped = false}
  128. local rad = math.rad
  129. local huge = math.huge
  130. local rand = math.random
  131. local Vec = Vector3.new
  132. local Cf = CFrame.new
  133. local Euler = CFrame.fromEulerAnglesXYZ
  134. local BC = BrickColor.new
  135. local Col3 = Color3.new
  136. local Inst = Instance.new
  137. local Ud2 = UDim2.new
  138.  
  139.  
  140.  
  141. local FONT = "SourceSansLight"
  142.  
  143.  
  144. MakeText = function(text, font, duration, tcr, tcg, tcb, scr, scg, scb, cFrame)
  145. local tpart = Instance.new("Part")
  146. tpart.Parent = F2
  147. tpart.Transparency = 1
  148. tpart.Name = "hoi hoi"
  149. tpart.Anchored = true
  150. tpart.CanCollide = false
  151. tpart.Locked = true
  152. tpart.Size = Vector3.new(0.2, 0.2, 0.2)
  153. tpart.CFrame = cFrame * CFrame.new(math.random(-2, 2), 0, math.random(-2, 2))
  154. local bill = Instance.new("BillboardGui")
  155. bill.Parent = tpart
  156. bill.AlwaysOnTop = true
  157. bill.Name = "HUHHHHHNAAAA"
  158. bill.Size = UDim2.new(4, 0, 4, 0)
  159. bill.StudsOffset = Vector3.new(0, 1, 0)
  160. local counter = 0
  161. local textl = Instance.new("TextLabel")
  162. textl.Parent = bill
  163. textl.Name = "WHYYYYYYYY"
  164. textl.BackgroundTransparency = 1
  165. textl.Size = UDim2.new(1, 0, 1, 0)
  166. textl.Font = font
  167. textl.Text = text
  168. textl.TextColor3 = Color3.new(tcr / 255, tcg / 255, tcb / 255)
  169. textl.TextScaled = true
  170. textl.TextStrokeColor3 = Color3.new(scr / 255, scg / 255, scb / 255)
  171. textl.TextStrokeTransparency = 0
  172. coroutine.resume(coroutine.create(function()
  173. while textl.TextTransparency < 1 do
  174. swait()
  175. if bill.StudsOffset.Y >= 5 then
  176. if duration <= counter then
  177. textl.TextTransparency = textl.TextTransparency + 0.15
  178. textl.TextStrokeTransparency = textl.TextStrokeTransparency + 0.15
  179. end
  180. end
  181. counter = counter + 0.1
  182. bill.StudsOffset = Vector3.new(0, bill.StudsOffset.Y + 0.15, 0)
  183. end
  184. debServ:AddItem(bill, 0)
  185. debServ:AddItem(textl, 0)
  186. debServ:AddItem(tpart, 0)
  187. end))
  188. end
  189.  
  190. Apply_Buff = function(amount, duration)
  191.  
  192. coroutine.resume(coroutine.create(function()
  193.  
  194. if amount > 0 and duration > 0 then
  195. Damage_Buff = Damage_Buff + amount
  196. MakeText("+" .. amount .. " Damage", FONT, 0.3, 255, 0, 0, 0, 0, 0, RootPart.CFrame)
  197. wait(duration)
  198. Damage_Buff = Damage_Buff - amount
  199. MakeText("-" .. amount .. " Damage", FONT, 0.3, 255, 0, 0, 0, 0, 0, RootPart.CFrame)
  200. end
  201. end
  202. ))
  203. end
  204.  
  205. Apply_Health_Buff = function(amount, duration)
  206.  
  207. coroutine.resume(coroutine.create(function()
  208.  
  209. if amount > 0 and duration > 0 then
  210. Max_Health = Max_Health + amount
  211. coroutine.resume(coroutine.create(function()
  212.  
  213. wait()
  214. Humanoid.Health = Humanoid.Health + amount
  215. end
  216. ))
  217. MakeText("+" .. amount .. " Max Health", FONT, 0.3, 255, 170, 0, 0, 0, 0, RootPart.CFrame)
  218. wait(duration)
  219. Max_Health = Max_Health - amount
  220. MakeText("-" .. amount .. " Max Health", FONT, 0.3, 255, 170, 0, 0, 0, 0, RootPart.CFrame)
  221. end
  222. end
  223. ))
  224. end
  225.  
  226.  
  227. FindHum = function(parent)
  228.  
  229. local hm = nil
  230. for _,HM in pairs(parent:GetChildren()) do
  231. if HM:IsA("Humanoid") then
  232. hm = HM
  233. end
  234. end
  235. return hm
  236. end
  237.  
  238.  
  239. ArtificialHB = Instance.new("BindableEvent", script)
  240. ArtificialHB.Name = "Heartbeat"
  241. script:WaitForChild("Heartbeat")
  242. frame = 0.033333333333333
  243. tf = 0
  244. allowframeloss = false
  245. tossremainder = false
  246. lastframe = tick()
  247. script.Heartbeat:Fire()
  248. game:GetService("RunService").Heartbeat:connect(function(s, p)
  249. tf = tf + s
  250. if frame <= tf then
  251. if allowframeloss then
  252. script.Heartbeat:Fire()
  253. lastframe = tick()
  254. else
  255. for i = 1, math.floor(tf / frame) do
  256. script.Heartbeat:Fire()
  257. end
  258. lastframe = tick()
  259. end
  260. if tossremainder then
  261. tf = 0
  262. else
  263. tf = tf - frame * math.floor(tf / frame)
  264. end
  265. end
  266. end
  267. )
  268. swait = function(num)
  269. if num == 0 or num == nil then
  270. ArtificialHB.Event:wait()
  271. else
  272. for i = 0, num do
  273. ArtificialHB.Event:wait()
  274. end
  275. end
  276. end
  277.  
  278. local DamageFunction = function(Hit, IsRan, MinDam, MaxDam, HKB, Knockback, DamType, Property, Duration, HDrag, DragDuration, SoEff, SoID, SoPit, SoVol)
  279.  
  280. local humanoid = FindHum(Hit.Parent)
  281. if humanoid and humanoid ~= Humanoid then
  282. local IsSafe = true
  283. local Deb = humanoid:FindFirstChild("ChaosDebounce")
  284. if Deb then
  285. local Cre = Deb:FindFirstChild("Creator")
  286. if Cre and Cre.Value == Player.UserId then
  287. IsSafe = false
  288. end
  289. end
  290. if IsSafe then
  291. local deb = Inst("BoolValue", humanoid)
  292. deb.Name = "ChaosDebounce"
  293. local cre = Inst("NumberValue", deb)
  294. cre.Name = "Creator"
  295. cre.Value = Player.UserId
  296. debServ:AddItem(deb, Duration)
  297. debServ:AddItem(cre, Duration)
  298. local Damage = 1
  299. if IsRan then
  300. Damage = rand(MinDam, MaxDam)
  301. else
  302. Damage = MaxDam
  303. end
  304. local this_nigga_had_op_health = false
  305. if SoEff then
  306. local HitSound = Sound(Hit, "http://roblox.com/asset/?id=" .. SoID .. "", SoVol, SoPit, false)
  307. debServ:AddItem(HitSound, 6)
  308. end
  309. -- DECOMPILER ERROR at PC100: Unhandled construct in 'MakeBoolean' P1
  310.  
  311. if (DamType == "Compensate" or string.sub(DamType, 1, 10) == "Compensate") and (humanoid.MaxHealth >= 100000 or humanoid.MaxHealth == 0) then
  312. if humanoid.MaxHealth >= 1000000000 or humanoid.MaxHealth == 0 then
  313. humanoid.MaxHealth = 100
  314. this_nigga_had_op_health = true
  315. end
  316. Damage = Damage * (humanoid.MaxHealth / 100)
  317. end
  318. if humanoid.MaxHealth >= 100000000 or humanoid.MaxHealth == 0 then
  319. this_nigga_had_op_health = true
  320. humanoid.MaxHealth = 100
  321. end
  322. if Damage_Buff > 0 then
  323. Damage = Damage * Damage_Buff
  324. end
  325. humanoid.Health = humanoid.Health - Damage
  326. if humanoid.MaxHealth / 4 <= Damage then
  327. MakeText("-" .. Damage .. "", "SourceSansBold", 0.3, 170, 0, 0, 255, 85, 0, Hit.CFrame)
  328. else
  329. local mtc = BrickColor.new("Really black").Color
  330. MakeText("-" .. Damage .. "", FONT, 0.3, mtc.r * 255, mtc.g * 255, mtc.b * 255, 0, 0, 0, Hit.CFrame)
  331. end
  332. do
  333. if HKB and (DamType ~= "SkyRocket" or DamType ~= "Compensate-SkyRocket") then
  334. if Property.Name ~= "Point" then
  335. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  336. local KBCF = Cf(Hit.Position, Property.Position)
  337. Hit.Velocity = KBCF.lookVector * -Knockback
  338. else
  339. do
  340. Hit.Velocity = Property.CFrame.lookVector * Knockback
  341. if (DamType == "Normal" and DamType == "Stun") or DamType == "Compensate-Stun" then
  342. MakeText("Stunned", FONT, 0.3, 255, 255, 0, 0, 0, 0, Hit.CFrame)
  343. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  344. local pos = Inst("BodyPosition", Hit)
  345. pos.MaxForce = Vec(huge, huge, huge)
  346. pos.Position = Hit.Position
  347. debServ:AddItem(pos, Duration * 10)
  348. else
  349. do
  350. if DamType == "LifeSteal" or DamType == "Compensate-LifeSteal" then
  351. Humanoid.Health = Humanoid.Health + Damage / 2
  352. MakeText("+" .. Damage / 2, FONT, 0.4, 0, 0, 0, 0, 255, 0, RootPart.CFrame)
  353. else
  354. if DamType == "MomentumStopper" or DamType == "Compensate-MomentumStopper" then
  355. local vel = Inst("BodyVelocity", Hit)
  356. vel.Name = "MomentumStopper"
  357. vel.MaxForce = Vec(huge, huge, huge)
  358. vel.Velocity = Vec(0, 0, 0)
  359. debServ:AddItem(vel, 3)
  360. else
  361. do
  362. if DamType == "Knockdown" or DamType == "Compensate-Knockdown" then
  363. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  364. else
  365. if DamType == "SkyRocket" or DamType == "Compensate-SkyRocket" then
  366. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  367. Hit.Velocity = Vec(0, Knockback, 0)
  368. if rand(1, 4) == 1 then
  369. local Twista = Inst("BodyAngularVelocity", Hit)
  370. Twista.MaxTorque = Vec(1000000, 1000000, 1000000)
  371. Twista.AngularVelocity = Vec(rand(-2, 2) * (Knockback / 2), rand(-2, 2) * (Knockback / 2), rand(-2, 2) * (Knockback / 2))
  372. debServ:AddItem(Twista, 0.01)
  373. end
  374. else
  375. do
  376. if DamType == "FreezeStun" or DamType == "Compensate-FreezeStun" then
  377. MakeText("Stunned", FONT, 0.3, 0, 0, 0, 255, 170, 0, Hit.CFrame)
  378. coroutine.resume(coroutine.create(function()
  379.  
  380. local ti = 0
  381. local hHead = Hit.Parent:FindFirstChild("Head")
  382. if hHead then
  383. hHead = Hit
  384. local h = Inst("Part", F2)
  385. h.Size = Vec(0.2, 0.2, 0.2)
  386. h.CanCollide = false
  387. h.Transparency = 1
  388. h.Position = hHead.Position
  389. local hWELD = Inst("Weld", h)
  390. hWELD.Part0 = hHead
  391. hWELD.Part1 = h
  392. hWELD.C0 = Cf(0, -4, 0)
  393. repeat
  394. ti = ti + 0.1
  395. for _,p in pairs(humanoid.Parent:GetChildren()) do
  396. if p:IsA("BasePart") then
  397. p.Anchored = true
  398. end
  399. end
  400. swait()
  401. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  402. local p1 = hHead.Position + Vec(rand(-200, 200) / 100, -(hHead.Size.y * 1.5), rand(-200, 200) / 100)
  403. local p0 = h.Position
  404. Lightning(p0, p1, 5, 3, "Deep orange", "Neon", 0.1, 0.2, 0.2)
  405. until Duration * 12 <= ti
  406. for _,p in pairs(humanoid.Parent:GetChildren()) do
  407. if p:IsA("BasePart") then
  408. p.Anchored = false
  409. end
  410. end
  411. debServ:AddItem(h, 0)
  412. end
  413. end
  414. ))
  415. else
  416. if DamType == "KnockDownFreezeStun" or DamType == "Compensate-KnockDownFreezeStun" then
  417. MakeText("Stunned", FONT, 0.3, 0, 0, 0, 255, 64, 0, Hit.CFrame)
  418. coroutine.resume(coroutine.create(function()
  419.  
  420. local ti = 0
  421. local scf = nil
  422. local h = Inst("Part", F2)
  423. h.Size = Vec(0.2, 0.2, 0.2)
  424. h.CanCollide = false
  425. h.Anchored = true
  426. h.Transparency = 1
  427. h.Position = Hit.Position
  428. h.CFrame = h.CFrame * Euler(rad(-90), 0, 0)
  429. local IL = {Character, Hit.Parent}
  430. local Ground, Pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(h.Position, h.CFrame.lookVector.Unit * 999), IL, true, true)
  431. if Ground then
  432. Hit.CFrame = Cf(Pos) * Euler(rad(-90), 0, 0)
  433. scf = Cf(Pos) * Euler(rad(-90), 0, 0)
  434. end
  435. repeat
  436. ti = ti + 0.1
  437. for _,p in pairs(humanoid.Parent:GetChildren()) do
  438. if p:IsA("BasePart") then
  439. p.Anchored = true
  440. end
  441. end
  442. Hit.CFrame = scf
  443. swait()
  444. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  445. until Duration * 7 <= ti
  446. for _,p in pairs(humanoid.Parent:GetChildren()) do
  447. if p:IsA("BasePart") then
  448. p.Anchored = false
  449. end
  450. end
  451. debServ:AddItem(h, 0)
  452. end
  453. ))
  454. end
  455. end
  456. if HDrag then
  457. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  458. local pos = Inst("BodyPosition", Hit)
  459. pos.MaxForce = Vec(huge, huge, huge)
  460. pos.Position = Drag_To_Part.Position
  461. local d = Inst("NumberValue", pos)
  462. d.Name = "Duration"
  463. d.Value = DragDuration
  464. table.insert(DragTable, pos)
  465. end
  466. do
  467. if this_nigga_had_op_health then
  468. coroutine.resume(coroutine.create(function()
  469.  
  470. swait()
  471. Damage = Damage * 2
  472. humanoid.Health = humanoid.Health - Damage
  473. MakeText("-" .. Damage .. "", FONT, 0.4, 0, 0, 0, 0, 0, 91, Hit.CFrame)
  474. end
  475. ))
  476. end
  477. end
  478. end
  479. end
  480. end
  481. end
  482. end
  483. end
  484. end
  485. end
  486. end
  487. end
  488. end
  489. end
  490. end
  491. end
  492. end
  493.  
  494. MagniDamage = function(Part, range, isRan, mindam, maxdam, hkb, knock, DType, dur, hd, dd, soe, soid, sopit, sovol)
  495.  
  496. for _,c in pairs(workspace:GetChildren()) do
  497. local hum = FindHum(c)
  498. if hum and hum ~= Humanoid then
  499. local head = c:FindFirstChild("Head")
  500. local tor = c:FindFirstChild("Torso")
  501. local larm = c:FindFirstChild("Left Arm")
  502. local rarm = c:FindFirstChild("Right Arm")
  503. local lleg = c:FindFirstChild("Left Leg")
  504. local rleg = c:FindFirstChild("Right Leg")
  505. local Dis = range
  506. local Par = nil
  507. if head then
  508. local Mag = (head.Position - Part.Position).magnitude
  509. if Mag <= Dis then
  510. Dis = Mag
  511. Par = head
  512. end
  513. end
  514. if tor then
  515. local Mag = (tor.Position - Part.Position).magnitude
  516. if Mag <= Dis then
  517. Dis = Mag
  518. Par = tor
  519. end
  520. end
  521. if rarm then
  522. local Mag = (rarm.Position - Part.Position).magnitude
  523. if Mag <= Dis then
  524. Dis = Mag
  525. Par = rarm
  526. end
  527. end
  528. if larm then
  529. local Mag = (larm.Position - Part.Position).magnitude
  530. if Mag <= Dis then
  531. Dis = Mag
  532. Par = larm
  533. end
  534. end
  535. if rleg then
  536. local Mag = (rleg.Position - Part.Position).magnitude
  537. if Mag <= Dis then
  538. Dis = Mag
  539. Par = rleg
  540. end
  541. end
  542. if lleg then
  543. local Mag = (lleg.Position - Part.Position).magnitude
  544. if Mag <= Dis then
  545. Dis = Mag
  546. Par = lleg
  547. end
  548. end
  549. if Par then
  550. DamageFunction(Par, isRan, mindam, maxdam, hkb, knock, DType, Part, dur, hd, dd, soe, soid, sopit, sovol)
  551. end
  552. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  553.  
  554. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  555.  
  556. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  557.  
  558. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  559.  
  560. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  561.  
  562. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  563.  
  564. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out IF_THEN_STMT
  565.  
  566. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out IF_STMT
  567.  
  568. end
  569. end
  570. end
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577. CreatePart = function(className, parent, Brickcolor, Material, Transparency, Reflectance, Name, Size, Position, Rotation, MeshClass, MeshScale, MeshId, MeshType)
  578.  
  579. local Part = Instance.new(className, parent)
  580. Part.BrickColor = BrickColor.new(Brickcolor)
  581. Part.Transparency = Transparency
  582. Part.Reflectance = Reflectance
  583. Part.Material = Material
  584. Part.Name = Name
  585. Part.Anchored = true
  586. Part.CanCollide = false
  587. Part.Locked = true
  588. Part.Size = Size
  589. Part.Position = Position
  590. Part.Rotation = Rotation
  591. Part.TopSurface = "SmoothNoOutlines"
  592. Part.BottomSurface = "SmoothNoOutlines"
  593. Part.FrontSurface = "SmoothNoOutlines"
  594. Part.BackSurface = "SmoothNoOutlines"
  595. Part.RightSurface = "SmoothNoOutlines"
  596. Part.LeftSurface = "SmoothNoOutlines"
  597. local Mesh = Instance.new(MeshClass, Part)
  598. Mesh.Scale = MeshScale
  599. if MeshClass == "SpecialMesh" then
  600. Mesh.MeshId = MeshId
  601. Mesh.MeshType = MeshType
  602. end
  603. return Part
  604. end
  605.  
  606.  
  607.  
  608. rayCast = function(Pos, Dir, Max, Ignore)
  609.  
  610. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  611. end
  612.  
  613. local Point = Torso.CFrame * Cf(0, Torso.Size.Y, 0)
  614. LastPoint = Point
  615. effect = function(Color, Ref, LP, P1, returnn)
  616.  
  617. local effectsmsh = Instance.new("CylinderMesh")
  618. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  619. effectsmsh.Name = "Mesh"
  620. local effectsg = Instance.new("Part")
  621. effectsg.formFactor = 3
  622. effectsg.CanCollide = false
  623. effectsg.Name = "Eff"
  624. effectsg.Locked = true
  625. effectsg.Anchored = true
  626. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  627. effectsg.Parent = F2
  628. effectsmsh.Parent = effectsg
  629. effectsg.BrickColor = BrickColor.new(Color)
  630. effectsg.Reflectance = Ref
  631. local point1 = P1
  632. local mg = (LP.p - point1.p).magnitude
  633. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  634. effectsg.CFrame = Cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  635. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  636. game:GetService("Debris"):AddItem(effectsg, 2)
  637. if returnn then
  638. return effectsg
  639. end
  640. coroutine.resume(coroutine.create(function(Part, Mesh)
  641.  
  642. if not returnn then
  643. for i = 0, 1, 0.05 do
  644. swait()
  645. Part.Transparency = 1 * i
  646. Mesh.Scale = Vector3.new(0.5 - 0.5 * i, 1, 0.5 - 0.5 * i)
  647. end
  648. Part.Parent = nil
  649. end
  650. end
  651. ), effectsg, effectsmsh)
  652. end
  653.  
  654. local CFrameFromTopBack = function(at, top, back)
  655.  
  656. local right = top:Cross(back)
  657. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  658. end
  659.  
  660. NoOutline = function(Part)
  661.  
  662. Part.TopSurface = 10
  663. end
  664.  
  665. pert = function(parent, reflectance, transparency, brickcolor, name, size, material)
  666.  
  667. local fp = Inst("Part")
  668. fp.Parent = parent
  669. fp.Reflectance = reflectance
  670. fp.Transparency = transparency
  671. fp.CanCollide = false
  672. fp.Locked = true
  673. fp.BrickColor = brickcolor
  674. fp.Name = name
  675. fp.Size = size
  676. fp.Position = Torso.Position
  677. NoOutline(fp)
  678. fp.Material = material
  679. fp:BreakJoints()
  680. return fp
  681. end
  682.  
  683. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  684.  
  685. local mesh = Inst(Mesh)
  686. mesh.Parent = part
  687. if Mesh == "SpecialMesh" then
  688. mesh.MeshType = meshtype
  689. mesh.MeshId = meshid
  690. end
  691. mesh.Offset = offset
  692. mesh.Scale = scale
  693. return mesh
  694. end
  695.  
  696. MagicBlock = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  697.  
  698. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  699. prt.Anchored = true
  700. prt.CFrame = cframe
  701. local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  702. game:GetService("Debris"):AddItem(prt, 5)
  703. table.insert(Effects, {prt, "Block1", Delay, x3, y3, z3})
  704. end
  705.  
  706. MagicBlock2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  707.  
  708. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  709. prt.Anchored = true
  710. prt.CFrame = cframe
  711. local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  712. game:GetService("Debris"):AddItem(prt, 5)
  713. table.insert(Effects, {prt, "Disappear", Delay, x3, y3, z3})
  714. end
  715.  
  716. MagicSpikeBall = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  717.  
  718. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  719. prt.Anchored = true
  720. prt.CFrame = cframe
  721. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/Asset/?id=9982590", Vec(0, 0, 0), Vec(x1, y1, z1))
  722. game:GetService("Debris"):AddItem(prt, 5)
  723. table.insert(Effects, {prt, "Block1", Delay, x3, y3, z3})
  724. end
  725.  
  726. MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  727.  
  728. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  729. prt.Anchored = true
  730. prt.CFrame = cframe
  731. local msh = mesh("SpecialMesh", prt, "Sphere", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  732. game:GetService("Debris"):AddItem(prt, 5)
  733. table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
  734. end
  735.  
  736. MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  737.  
  738. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  739. prt.Anchored = true
  740. prt.CFrame = cframe
  741. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", Vec(0, 0, 0), Vec(x1, y1, z1))
  742. game:GetService("Debris"):AddItem(prt, 5)
  743. table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
  744. end
  745.  
  746. MagicWave2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  747.  
  748. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  749. prt.Anchored = true
  750. prt.CFrame = cframe
  751. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", Vec(0, 0, 0), Vec(x1, y1, z1))
  752. game:GetService("Debris"):AddItem(prt, 5)
  753. table.insert(Effects, {prt, "Wave", Delay, x3, y3, z3})
  754. end
  755.  
  756. MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  757.  
  758. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(0.2, 0.2, 0.2), material)
  759. prt.Anchored = true
  760. prt.CFrame = cframe
  761. local msh = mesh("SpecialMesh", prt, "Head", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  762. game:GetService("Debris"):AddItem(prt, 5)
  763. Effects[#Effects + 1] = {prt, "Cylinder", Delay, x3, y3, z3}
  764. end
  765.  
  766. MagicCylinder2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  767.  
  768. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(0.2, 0.2, 0.2), material)
  769. prt.Anchored = true
  770. prt.CFrame = cframe
  771. local msh = mesh("CylinderMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  772. game:GetService("Debris"):AddItem(prt, 5)
  773. Effects[#Effects + 1] = {prt, "Cylinder", Delay, x3, y3, z3}
  774. end
  775.  
  776. MagicBlood = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  777.  
  778. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  779. prt.Anchored = true
  780. prt.CFrame = cframe
  781. local msh = mesh("SpecialMesh", prt, "Sphere", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  782. game:GetService("Debris"):AddItem(prt, 5)
  783. table.insert(Effects, {prt, "Blood", Delay, x3, y3, z3})
  784. end
  785.  
  786. MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  787.  
  788. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  789. prt.Anchored = true
  790. prt.CFrame = cframe
  791. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vec(0, 0, 0), Vec(x1, y1, z1))
  792. game:GetService("Debris"):AddItem(prt, 5)
  793. table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
  794. end
  795.  
  796. MagicRing2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  797.  
  798. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  799. prt.Anchored = true
  800. prt.CFrame = cframe
  801. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vec(0, 0, 0), Vec(x1, y1, z1))
  802. game:GetService("Debris"):AddItem(prt, 5)
  803. table.insert(Effects, {prt, "Blood", Delay, x3, y3, z3})
  804. end
  805.  
  806. ElecEffect = function(brickCol, Mat, cff, x, y, z)
  807.  
  808. local prt = pert(F2, 0, 0, brickCol, "Part", Vec(1, 1, 1), Mat)
  809. prt.Anchored = true
  810. prt.CFrame = cff * Cf(rand(-x, x), rand(-y, y), rand(-z, z))
  811. prt.CFrame = Cf(prt.Position)
  812. debServ:AddItem(prt, 2)
  813. local xval = math.random() / 2
  814. local yval = math.random() / 2
  815. local zval = math.random() / 2
  816. local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(xval, yval, zval))
  817. Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  818. end
  819.  
  820. Lightning = function(p0, p1, tym, ofs, col, mat, th, tra, last)
  821.  
  822. local magz = (p0 - p1).magnitude
  823. local curpos = p0
  824. local trz = {-ofs, ofs}
  825. for i = 1, tym do
  826. local li = Instance.new("Part", F2)
  827. li.TopSurface = 0
  828. li.BottomSurface = 0
  829. li.Anchored = true
  830. li.Transparency = tra or 0.4
  831. li.BrickColor = BrickColor.new(col)
  832. li.Material = mat
  833. li.Material = "Neon"
  834. li.formFactor = "Custom"
  835. li.CanCollide = false
  836. li.Size = Vector3.new(th, th, magz / tym)
  837. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  838. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  839. if tym == i then
  840. local magz2 = (curpos - p1).magnitude
  841. li.Size = Vector3.new(th, th, magz2)
  842. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  843. game:GetService("Debris"):AddItem(li, last)
  844. else
  845. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  846. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  847. game:GetService("Debris"):AddItem(li, last)
  848. end
  849. end
  850. end
  851.  
  852. Triangle = function(a, b, c, tcol, tmat)
  853.  
  854. local edg1 = (c-a):Dot((b-a).unit)
  855. local edg2 = (a-b):Dot((c-b).unit)
  856. local edg3 = (b-c):Dot((a-c).unit)
  857. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  858. a = a
  859. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  860. a = b
  861. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  862. a = c
  863. else
  864. return
  865. end
  866. local len1 = (c-a):Dot((b-a).unit)
  867. local len2 = (b-a).magnitude - len1
  868. local width = (a + (b-a).unit*len1 - c).magnitude
  869. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  870. local list = {}
  871. if len1 > 0.01 then
  872. local w1 = Inst("WedgePart", F2)
  873. w1.Material = tmat
  874. w1.BrickColor = BC(tcol)
  875. w1.Transparency = 0
  876. w1.Reflectance = 0
  877. w1.CanCollide = false
  878. NoOutline(w1)
  879. local sz = Vec(0.2, width, len1)
  880. w1.Size = sz
  881. local sp = Inst("SpecialMesh", w1)
  882. sp.MeshType = "Wedge"
  883. sp.Scale = Vec(0, 1, 1) * sz / w1.Size
  884. w1:BreakJoints()
  885. w1.Anchored = true
  886. w1.Transparency = 0.7
  887. debServ:AddItem(w1, 25)
  888. table.insert(Effects, {w1, "Disappear", 0.045})
  889. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  890. table.insert(list, w1)
  891. end
  892. if len2 > 0.01 then
  893. local w2 = Inst("WedgePart", F2)
  894. w2.Material = tmat
  895. w2.BrickColor = BC(tcol)
  896. w2.Transparency = 0
  897. w2.Reflectance = 0
  898. w2.CanCollide = false
  899. NoOutline(w2)
  900. local sz = Vec(0.2, width, len2)
  901. w2.Size = sz
  902. local sp = Inst("SpecialMesh", w2)
  903. sp.MeshType = "Wedge"
  904. sp.Scale = Vec(0, 1, 1) * sz / w2.Size
  905. w2:BreakJoints()
  906. w2.Anchored = true
  907. w2.Transparency = 0.7
  908. debServ:AddItem(w2, 25)
  909. table.insert(Effects, {w2, "Disappear", 0.045})
  910. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  911. table.insert(list, w2)
  912. end
  913. return unpack(list)
  914. end
  915.  
  916.  
  917. runServ.RenderStepped:connect(function()
  918. if #Effects > 0 then
  919. for e = 1, #Effects do
  920. if Effects[e] ~= nil then
  921. local Thing = Effects[e]
  922. if Thing ~= nil then
  923. local Part = Thing[1]
  924. local Mode = Thing[2]
  925. local Delay = Thing[3]
  926. local IncX = Thing[4]
  927. local IncY = Thing[5]
  928. local IncZ = Thing[6]
  929. if Thing[1].Transparency <= 1 then
  930. if Thing[2] == "Block1" then
  931. Thing[1].CFrame = Thing[1].CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  932. Mesh = Thing[1]:FindFirstChild("Mesh")
  933. if not Mesh then
  934. Mesh = Instance.new("BlockMesh")
  935. end
  936. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  937. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  938. elseif Thing[2] == "Wave" then
  939. Thing[1].CFrame = Thing[1].CFrame * CFrame.Angles(0, rad(10), 0)
  940. Mesh = Thing[1]:FindFirstChild("Mesh")
  941. if not Mesh then
  942. Mesh = Instance.new("BlockMesh")
  943. end
  944. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  945. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  946. elseif Thing[2] == "Cylinder" then
  947. Mesh = Thing[1]:FindFirstChild("Mesh")
  948. if not Mesh then
  949. Mesh = Instance.new("BlockMesh")
  950. end
  951. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  952. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  953. elseif Thing[2] == "Blood" then
  954. Mesh = Thing[1]:FindFirstChild("Mesh")
  955. if not Mesh then
  956. Mesh = Instance.new("BlockMesh")
  957. end
  958. Thing[1].CFrame = Thing[1].CFrame * Cf(0, 0.5, 0)
  959. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  960. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  961. elseif Thing[2] == "Elec" then
  962. Mesh = Thing[1]:FindFirstChild("Mesh")
  963. if not Mesh then
  964. Mesh = Instance.new("BlockMesh")
  965. end
  966. Mesh.Scale = Mesh.Scale + Vec(Thing[7], Thing[8], Thing[9])
  967. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  968. elseif Thing[2] == "Disappear" then
  969. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  970. end
  971. else
  972. Part.Parent = nil
  973. debServ:AddItem(Part, 0)
  974. table.remove(Effects, e)
  975. end
  976. end
  977. end
  978. end
  979. end
  980. end)
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987. maus.KeyDown:connect(function(kei)
  988. if string.byte(kei)==48 and not otheranims then
  989. runnin=true
  990. end
  991. if kei=='w' then fldb.w=true end
  992. if kei=='a' then fldb.a=true end
  993. if kei=='s' then fldb.s=true end
  994. if kei=='d' then fldb.d=true end
  995. end)
  996. maus.KeyUp:connect(function(kei)
  997. if string.byte(kei)==48 and not otheranims then
  998. runnin=false
  999. end
  1000. if kei=='w' then fldb.w=false end
  1001. if kei=='a' then fldb.a=false end
  1002. if kei=='s' then fldb.s=false end
  1003. if kei=='d' then fldb.d=false end
  1004. end)
  1005.  
  1006.  
  1007.  
  1008. maus.KeyDown:connect(function(kei)
  1009. if kei=='z' and attack ~= "false" then
  1010.  
  1011. attackone()
  1012.  
  1013. elseif kei=='x' and attack ~= "false" then
  1014.  
  1015. attacktwo()
  1016.  
  1017. elseif kei=='c' and attack ~= "false" then
  1018.  
  1019. attackthree()
  1020.  
  1021. elseif kei=='v' and attack ~= "false" then
  1022.  
  1023. Untimatum()
  1024.  
  1025. end
  1026. end)
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032. coroutine.wrap(function()
  1033. for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
  1034. function Lerp(a, b, i)
  1035. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  1036. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  1037. local calx = com1[1] + (com2[1] - com1[1]) * i
  1038. local caly = com1[2] + (com2[2] - com1[2]) * i
  1039. local calz = com1[3] + (com2[3] - com1[3]) * i
  1040. local cala = com1[4] + (com2[4] - com1[4]) * i
  1041. local calb = com1[5] + (com2[5] - com1[5]) * i
  1042. local calc = com1[6] + (com2[6] - com1[6]) * i
  1043. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  1044. end
  1045. function TwnSingleNumber(s,f,m)
  1046. local wot=s+(f-s)*m
  1047. return wot
  1048. end
  1049. function TwnVector3(q,w,e)
  1050. local begin={q.x,q.y,q.z}
  1051. local ending={w.x,w.y,w.z}
  1052. local bgx=begin[1]+(ending[1]-begin[1])*e
  1053. local bgy=begin[2]+(ending[2]-begin[2])*e
  1054. local bgz=begin[3]+(ending[3]-begin[3])*e
  1055. return Vector3.new(bgx,bgy,bgz)
  1056. end
  1057. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  1058. wld = Instance.new("Weld", wp1)
  1059. wld.Part0 = wp0
  1060. wld.Part1 = wp1
  1061. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1062. end
  1063. newWeld(law, torso, larm, -1.5, 0.5, 0)
  1064. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  1065. newWeld(llw, torso, lleg, -.5, -2, 0)
  1066. newWeld(rlw, torso, rleg, .5, -2, 0)
  1067. newWeld(hw, torso, hed, 0, 1.5, 0)
  1068. local rutwald=Instance.new('Weld',rutprt)
  1069. rutwald.Part0=rutprt
  1070. rutwald.Part1=torso
  1071. rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  1072. larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  1073. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  1074. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  1075. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  1076.  
  1077. local function setupPart(part)
  1078. part.Anchored = true
  1079. part.FormFactor = 'Custom'
  1080. part.CanCollide = false
  1081. part.BrickColor = BrickColor.new("Dark indigo")
  1082. part.Material = "Neon"
  1083. part.TopSurface = 'SmoothNoOutlines'
  1084. part.BottomSurface = 'SmoothNoOutlines'
  1085. part.FrontSurface = 'SmoothNoOutlines'
  1086. part.BackSurface = 'SmoothNoOutlines'
  1087. part.LeftSurface = 'SmoothNoOutlines'
  1088. part.RightSurface = 'SmoothNoOutlines'
  1089. end
  1090.  
  1091. function CFrameFromTopBack(at, top, back)
  1092. local right = top:Cross(back)
  1093. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1094. end
  1095.  
  1096. function CreateTriangle(parent, a, b, c)
  1097. local this = {}
  1098. local mPart1 = Instance.new('WedgePart')
  1099. setupPart(mPart1)
  1100. local mPart2 = Instance.new('WedgePart')
  1101. setupPart(mPart2)
  1102. function this:Set(a, b, c) --[[ edg1 A ------|------>B --. '\ | / \ \part1|part2/ | \ cut / / Direction edges point in: edg3 \ / edg2 / (clockwise) \ / |/ \<- / ` \ / C --]]
  1103. local ab, bc, ca = b-a, c-b, a-c local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  1104. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  1105. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  1106. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  1107. if edg1 < edg2 then
  1108. if edg1 < edg3 then
  1109. -- nothing to change
  1110. else
  1111. a, b, c = c, a, b
  1112. ab, bc, ca = ca, ab, bc
  1113. abm = cam
  1114. end
  1115. else
  1116. if edg2 < edg3 then
  1117. a, b, c = b, c, a
  1118. ab, bc, ca = bc, ca, ab
  1119. abm = bcm
  1120. else
  1121. a, b, c = c, a, b
  1122. ab, bc, ca = ca, ab, bc
  1123. abm = cam
  1124. end
  1125. end
  1126.  
  1127. local len1 = -ca:Dot(ab)/abm local len2 = abm - len1 local width = (ca + ab.unit*len1).magnitude
  1128. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  1129.  
  1130. mPart1.Parent = parent
  1131. mPart1.Size = Vector3.new(1,1,1)
  1132. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1133. local Mesh = Instance.new("SpecialMesh",mPart1)
  1134. Mesh.MeshType = "Wedge"
  1135. Mesh.Scale = Vector3.new(0.005, width, len1)
  1136.  
  1137. mPart2.Parent = parent
  1138. mPart2.Size = Vector3.new(1,1,1)
  1139. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1140. local Mesh = Instance.new("SpecialMesh",mPart2)
  1141. Mesh.MeshType = "Wedge"
  1142. Mesh.Scale = Vector3.new(0.005, width, len2)
  1143. end
  1144.  
  1145. function this:SetProperty(prop, value)
  1146. mPart1[prop] = value
  1147. mPart2[prop] = value
  1148. end
  1149.  
  1150. function this:GetProperty(prop)
  1151. return mPart1[prop]
  1152. end
  1153.  
  1154. this:Set(a, b, c)
  1155. function this:Destroy()
  1156. mPart1:Destroy()
  1157. mPart2:Destroy()
  1158. end
  1159. return this
  1160. end
  1161. function CreateTrail(Adornee, Axis)
  1162. local Axis = Axis or "X"
  1163.  
  1164. local trail = {}
  1165. trail.Triangles = {}
  1166. trail.Adornee = Adornee
  1167. trail.Axis = Axis
  1168.  
  1169. local L1, L2
  1170.  
  1171. function trail:Fade(speed)
  1172. local speed = speed or 0.01
  1173.  
  1174. for n, v in pairs(trail.Triangles) do
  1175. v:SetProperty("Transparency", v:GetProperty("Transparency") + speed)
  1176. if v:GetProperty("Transparency") >= 1 then
  1177. v:Destroy()
  1178.  
  1179. table.remove(trail.Triangles, n)
  1180. end
  1181. end
  1182. end
  1183.  
  1184. function trail:Update()
  1185. local adornee = trail.Adornee
  1186.  
  1187. local axis = trail.Axis
  1188. local Size = Vector3.new((axis == "X" and adornee.Size.X or 0), (axis == "Y" and adornee.Size.Y or 0), (axis == "Z" and adornee.Size.Z or 0))
  1189. local P1 = adornee.CFrame * CFrame.new(Size / 2)
  1190. local P2 = adornee.CFrame * CFrame.new(Size / -2)
  1191.  
  1192. if L1 and L2 then
  1193. table.insert(trail.Triangles, CreateTriangle(adornee, L1.p, L2.p, P1.p))
  1194. table.insert(trail.Triangles, CreateTriangle(adornee, P1.p, P2.p, L2.p))
  1195. end
  1196.  
  1197. L1, L2 = P1, P2
  1198. end
  1199.  
  1200. return trail
  1201. end
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208. Player=game:GetService('Players').LocalPlayer
  1209. Character=Player.Character
  1210. Mouse=Player:GetMouse()
  1211. m=Instance.new('Model',Character)
  1212.  
  1213.  
  1214. local function weldBetween(a, b)
  1215. local weldd = Instance.new("ManualWeld")
  1216. weldd.Part0 = a
  1217. weldd.Part1 = b
  1218. weldd.C0 = CFrame.new()
  1219. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1220. weldd.Parent = a
  1221. return weldd
  1222. end
  1223.  
  1224. it=Instance.new
  1225.  
  1226. function nooutline(part)
  1227. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1228. end
  1229.  
  1230. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1231. local fp=it("Part")
  1232. fp.Shape=formfactor
  1233. fp.Parent=parent
  1234. fp.Reflectance=reflectance
  1235. fp.Transparency=transparency
  1236. fp.CanCollide=false
  1237. fp.Locked=true
  1238. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1239. fp.Name=name
  1240. fp.Size=size
  1241. fp.Position=torso.Position
  1242. nooutline(fp)
  1243. fp.Material=material
  1244. fp:BreakJoints()
  1245. return fp
  1246. end
  1247.  
  1248.  
  1249. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1250. local mesh=it(Mesh)
  1251. mesh.Parent=part
  1252. if Mesh=="SpecialMesh" then
  1253. mesh.MeshType=meshtype
  1254. mesh.MeshId=meshid
  1255. end
  1256. mesh.Offset=offset
  1257. mesh.Scale=scale
  1258. return mesh
  1259. end
  1260.  
  1261. function weld(parent,part0,part1,c0,c1)
  1262. local weld=it("Weld")
  1263. weld.Parent=parent
  1264. weld.Part0=part0
  1265. weld.Part1=part1
  1266. weld.C0=c0
  1267. weld.C1=c1
  1268. return weld
  1269. end
  1270.  
  1271. local Spheres = it("Model")
  1272. Spheres.Parent=Character
  1273.  
  1274.  
  1275. Main_Head=part(Enum.PartType.Ball,m,Enum.Material.Neon,0,0.4099999666214,"Mulberry","Handle",Vector3.new(2.96000004, 2.96000004, 2.96000004))
  1276. Main_Headweld=weld(m,Character["Torso"],Main_Head,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00997161865, 0.0349311829, -4.91999435, 1, 0, 0, 0, 0, -1, 0, 1, 0))
  1277. MainH_Part=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","MainH_Part",Vector3.new(1.7518369, 1.7518369, 1.7518369))
  1278. MainH_Partweld=weld(m,Main_Head,MainH_Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.0603561401, 1.62124634e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1279.  
  1280.  
  1281. Main_RH=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1282. Main_RHweld=weld(m,Character["Right Leg"],Main_RH,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.959936023, 0.0700092316, -0.0149731636, 0, 0.999999881, 0, -1, 0, 0, 0, 0, 1))
  1283. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1284. Partweld=weld(m,Main_RH,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950025678, -0.479959488, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1285. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1286. Partweld=weld(m,Main_RH,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950011849, 0.410047531, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1287. Sphere_RH1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Institutional white","Sphere_RH1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1288. Sphere_RH1weld=weld(m,Main_RH,Sphere_RH1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.190037251, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1289.  
  1290.  
  1291. TrailThingy1 = CreateTrail(Sphere_RH1,"Y")
  1292.  
  1293.  
  1294.  
  1295. Main_LH=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1296. Main_LHweld=weld(m,Character["Left Leg"],Main_LH,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.954887033, -7.62939453e-006, -0.0149731636, 0, 0.999999881, 0, -1, 0, 0, 0, 0, 1))
  1297. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1298. Partweld=weld(m,Main_LH,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.95002377, -0.479957581, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1299. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1300. Partweld=weld(m,Main_LH,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950009704, 0.410041809, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1301. Sphere_LH1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Institutional white","Sphere_LH1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1302. Sphere_LH1weld=weld(m,Main_LH,Sphere_LH1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.190037251, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1303.  
  1304. TrailThingy2 = CreateTrail(Sphere_LH1,"Y")
  1305.  
  1306.  
  1307. Main_RW=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1308. Main_RWweld=weld(m,Character["Right Arm"],Main_RW,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.964890003, -0.0200252533, -0.0149731636, 0, 0.999999881, 0, -1, 0, 0, 0, 0, 1))
  1309. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1310. Partweld=weld(m,Main_RW,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950019598, -0.479948044, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1311. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1312. Partweld=weld(m,Main_RW,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950009584, 0.460039902, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1313. Sphere_RW2=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW2",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1314. Sphere_RW2weld=weld(m,Main_RW,Sphere_RW2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.94488883, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1315. Sphere_RW1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1316. Sphere_RW1weld=weld(m,Main_RW,Sphere_RW1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.190035343, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1317.  
  1318.  
  1319. TrailThingy3 = CreateTrail(Sphere_RW1,"Y")
  1320.  
  1321.  
  1322. Main_LW=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1323. Main_LWweld=weld(m,Character["Left Arm"],Main_LW,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.974956036, 0.0399856567, -0.0149731636, 0, 0.999999881, 0, -1, 0, 0, 0, 0, 1))
  1324. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1325. Partweld=weld(m,Main_LW,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950020552, -0.479957581, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1326. Sphere_LW1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1327. Sphere_LW1weld=weld(m,Main_LW,Sphere_LW1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, 0.190036297, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1328. Sphere_LW2=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW2",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1329. Sphere_LW2weld=weld(m,Main_LW,Sphere_LW2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -1.98496461, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1330. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1331. Partweld=weld(m,Main_LW,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950009584, 0.410041809, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1332.  
  1333. TrailThingy5 = CreateTrail(Sphere_LW1,"Y")
  1334.  
  1335.  
  1336. local particleemitter = Instance.new("ParticleEmitter", MainH_Part)
  1337. PARSI = .5
  1338. particleemitter.Lifetime = NumberRange.new(0.2)
  1339. particleemitter.Speed = NumberRange.new(0)
  1340.  
  1341. game:service'RunService'.RenderStepped:connect(function()
  1342. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, PARSI), NumberSequenceKeypoint.new(1, PARSI)})
  1343. end)
  1344.  
  1345. particleemitter.Rate = 1000
  1346. particleemitter.Rotation = NumberRange.new(0, 360)
  1347. particleemitter.LightEmission = 1
  1348. particleemitter.Color = ColorSequence.new(Color3.new(0.639216, 0.227451, 1), Color3.new(0.639216, 0.227451, 1))
  1349. particleemitter.Texture = "http://www.roblox.com/asset/?id=243098098"
  1350. particleemitter.LockedToPart = true
  1351.  
  1352. local particleemitter = Instance.new("ParticleEmitter", MainH_Part)
  1353.  
  1354. particleemitter.Lifetime = NumberRange.new(0.2)
  1355. particleemitter.Speed = NumberRange.new(0)
  1356.  
  1357. game:service'RunService'.RenderStepped:connect(function()
  1358. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, PARSI), NumberSequenceKeypoint.new(1, PARSI)})
  1359. end)
  1360.  
  1361. particleemitter.Rate = 1000
  1362. particleemitter.Rotation = NumberRange.new(0, 360)
  1363. particleemitter.LightEmission = 1
  1364. particleemitter.Color = ColorSequence.new(Color3.new(0.639216, 0.227451, 1), Color3.new(0.639216, 0.227451, 1))
  1365. particleemitter.Texture = "http://www.roblox.com/asset/?id=243098098"
  1366. particleemitter.LockedToPart = true
  1367.  
  1368.  
  1369. local particleemitter = Instance.new("ParticleEmitter", MainH_Part)
  1370.  
  1371. particleemitter.Lifetime = NumberRange.new(0.2)
  1372. particleemitter.Speed = NumberRange.new(0)
  1373.  
  1374. game:service'RunService'.RenderStepped:connect(function()
  1375. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, PARSI), NumberSequenceKeypoint.new(1, PARSI)})
  1376. end)
  1377.  
  1378. particleemitter.Rate = 1000
  1379. particleemitter.Rotation = NumberRange.new(0, 360)
  1380. particleemitter.LightEmission = 1
  1381. particleemitter.Color = ColorSequence.new(Color3.new(0.639216, 0.227451, 1), Color3.new(0.639216, 0.227451, 1))
  1382. particleemitter.Texture = "http://www.roblox.com/asset/?id=243098098"
  1383. particleemitter.LockedToPart = true
  1384.  
  1385.  
  1386. local particleemitterglow = Instance.new("ParticleEmitter", MainH_Part)
  1387.  
  1388. particleemitterglow.Lifetime = NumberRange.new(1)
  1389. particleemitterglow.Speed = NumberRange.new(0)
  1390. particleemitterglow.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(0.102, 1), NumberSequenceKeypoint.new(0.353, 8.063), NumberSequenceKeypoint.new(0.56, 2.938), NumberSequenceKeypoint.new(0.703, 8.563), NumberSequenceKeypoint.new(1, 0)})
  1391. particleemitterglow.Rate = 5
  1392. particleemitterglow.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.1, 0.5), NumberSequenceKeypoint.new(0.8, 0.5), NumberSequenceKeypoint.new(1, 1)})
  1393. particleemitterglow.Name = "ParticleEmitterGlow"
  1394. particleemitterglow.LightEmission = 1
  1395. particleemitterglow.Color = ColorSequence.new(Color3.new(0.333333, 0, 0), Color3.new(0.333333, 0, 0))
  1396. particleemitterglow.Texture = "http://www.roblox.com/asset/?id=243660373"
  1397. particleemitterglow.LockedToPart = true
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403. game:service'RunService'.RenderStepped:connect(function()
  1404.  
  1405. if anim == "Sprinting" then
  1406. TrailThingy3:Update()
  1407. TrailThingy3:Fade(0.2)
  1408. TrailThingy5:Update()
  1409. TrailThingy5:Fade(0.2)
  1410. TrailThingy1:Update()
  1411. TrailThingy1:Fade(0.2)
  1412. TrailThingy2:Update()
  1413. TrailThingy2:Fade(0.2)
  1414. end
  1415.  
  1416. if anim ~= "Sprinting" then
  1417. TrailThingy3:Update()
  1418. TrailThingy3:Fade(1)
  1419. TrailThingy5:Update()
  1420. TrailThingy5:Fade(1)
  1421. TrailThingy1:Update()
  1422. TrailThingy1:Fade(1)
  1423. TrailThingy2:Update()
  1424. TrailThingy2:Fade(1)
  1425. end
  1426.  
  1427. if anim~=lastanim then
  1428. runtime=0
  1429. end
  1430. lastanim=anim
  1431. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  1432. syne=syne+.95
  1433. if not otheranims and not swimming then
  1434. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1435. anim="Idling"
  1436. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1437. anim="Walking"
  1438. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1439. anim="Sprinting"
  1440. elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
  1441. anim='Jumping'
  1442. elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
  1443. anim='Falling'
  1444. end
  1445. end
  1446.  
  1447. if otheranims then return end
  1448. if anim=="Idling" then
  1449. idlesineinc=35
  1450. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,3-1*math.cos(syne/10),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1451.  
  1452. if not armmovments then
  1453. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(3)),.1)
  1454. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-3)),.1)
  1455. end
  1456.  
  1457. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.55, -1.4-0.1*math.cos(syne/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(syne/10)), math.rad(10), math.rad(-0-2*math.cos(syne/10))), 0.4)
  1458. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.55, -2-0.1*math.cos(syne/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(syne/10))), 0.4)
  1459. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
  1460. end
  1461.  
  1462. if anim=="Walking" then
  1463.  
  1464. if not armmovments then
  1465. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  1466. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)* CFrame.Angles(math.rad(-30), math.rad(0), math.rad(40)), 0.3)
  1467. end
  1468.  
  1469. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
  1470. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
  1471. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),0,0),.1)
  1472. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/2.5)/10+math.rad(-25),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
  1473. end
  1474.  
  1475. if anim=="Sprinting" then
  1476. ArmsTrail = true
  1477.  
  1478. if not armmovments then
  1479. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(12.5)),.1)
  1480. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(-12.5)),.1)
  1481. end
  1482.  
  1483. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.6-math.cos(syne/4)/4,-(math.cos(syne/4)*2)-math.rad(10))*CFrame.Angles(math.cos(syne/4)*2+math.rad(10),0,math.rad(-2.5)),.1)
  1484. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.6-math.cos(syne/4)/4,math.cos(syne/4)*2-math.rad(10))*CFrame.Angles(-(math.cos(syne/4)*2)+math.rad(10),0,math.rad(2.5)),.1)
  1485. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),0,0),.1)
  1486. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/3)/15+math.rad(-40),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
  1487. ArmsTrail = false
  1488. end
  1489.  
  1490. if anim=="Jumping" then
  1491.  
  1492. if not armmovments then
  1493. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  1494. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  1495. end
  1496.  
  1497. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
  1498. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
  1499. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
  1500. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
  1501. end
  1502.  
  1503. if anim=="Falling" then
  1504.  
  1505. if not armmovments then
  1506. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
  1507. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
  1508. end
  1509.  
  1510. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
  1511. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
  1512. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
  1513. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
  1514. end
  1515.  
  1516.  
  1517.  
  1518.  
  1519. if runnin and not otheranims and not swimming then
  1520. chr.Humanoid.WalkSpeed=RunSpeed
  1521. elseif not runnin and not otheranims and not swimming then
  1522. chr.Humanoid.WalkSpeed=WlkSpeed
  1523. end
  1524. end)
  1525.  
  1526.  
  1527. --[[]]----[[Moves]]----[[]]--
  1528. attackone = function()
  1529.  
  1530. attack = true
  1531. armmovments=true
  1532.  
  1533. for i = 0, 1, 0.13 do
  1534. swait()
  1535. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0) * CFrame.Angles(math.rad(160), math.rad(0), math.rad(-40)), 0.3)
  1536. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)* CFrame.Angles(math.rad(160), math.rad(0), math.rad(40)), 0.3)
  1537. PARSI = PARSI + i/2--i + i/.5
  1538. end
  1539. wait(1)
  1540. for i = 0, 1, 0.13 do
  1541. swait()
  1542. PARSI = PARSI - i/2--i + i/.5
  1543. end
  1544.  
  1545. attack = false
  1546. armmovments=false
  1547. end
  1548.  
  1549.  
  1550.  
  1551.  
  1552. attacktwo = function()
  1553. attack = true
  1554. armmovments=true
  1555.  
  1556. for i = 0, 20, 0.13 do
  1557. swait()
  1558. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1559. MagniDamage(RootPart, 12, true, 1, 2, true, 10, "Compensate-Knockdown", 0.01, false, 0, false, _, "", "")
  1560. local rnum = 20
  1561. local Rand1, Rand2, Rand3, Rand4 = {rand(-rnum, rnum), rand(-rnum, rnum), rand(-rnum, rnum)}, {rand(-rnum, rnum), rand(-rnum, rnum), rand(-rnum, rnum)}, {rand(-360, 360), rand(-360, 360), rand(-360, 360)}, {rand(-rnum, rnum), rand(-rnum, rnum), rand(-rnum, rnum)}
  1562. MagicSpikeBall(BrickColor.new("Royal purple"), "Neon", rarm.CFrame + Vector3.new(0,15,0), 0, 0, 0, 0.3, 0.3, 0.3, 0.1)
  1563. MagicCircle(BrickColor.new("Really black"), "Neon", rarm.CFrame + Vector3.new(0,15,0), 0, 0, 0, 0.3, 0.3, 0.3, 0.1)
  1564. end
  1565.  
  1566. for i = 0, 1, 0.1 do
  1567. swait()
  1568.  
  1569. end
  1570.  
  1571. attack = false
  1572. armmovments=false
  1573. end
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579. attackthree = function()
  1580.  
  1581. attack = true
  1582. otheranims=true
  1583.  
  1584. for i = 0, 1, 0.13 do
  1585. swait()
  1586.  
  1587. end
  1588.  
  1589. for i = 0, 1, 0.1 do
  1590. swait()
  1591.  
  1592. end
  1593. otheranims=false
  1594. attack = false
  1595.  
  1596. end
  1597.  
  1598.  
  1599.  
  1600.  
  1601. Untimatum = function()
  1602.  
  1603. attack = true
  1604. otheranims=true
  1605.  
  1606.  
  1607.  
  1608. otheranims=false
  1609. attack = false
  1610. end
  1611. --[[]]----[[Moves]]----[[]]--
  1612.  
  1613.  
  1614. for i = 0, 1, 0.1 do
  1615. swait()
  1616. MagicBlock(BrickColor.new("Really black"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1617. MagicBlock(BrickColor.new("Really black"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1618. MagicBlock(BrickColor.new("Really black"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1619.  
  1620. MagicBlock(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1621. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1622. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1623. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1624. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1625.  
  1626. MagicBlock(BrickColor.new("Royal purple"), "SmoothPlastic", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1627. MagicBlock(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.02)
  1628.  
  1629. MagicSpikeBall(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1630. MagicSpikeBall(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1631.  
  1632. MagicCircle(BrickColor.new("Really black"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1633. MagicCircle(BrickColor.new("Really black"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1634. end
  1635.  
  1636. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  1637. local magz = (Part0 - Part1).magnitude
  1638. local curpos = Part0
  1639. local trz = {-Offset,Offset}
  1640. for i=1,Times do
  1641. local li = Instance.new("Part", torso)
  1642. li.Name = "Lightning"
  1643. li.TopSurface =0
  1644. li.Material = "Neon"
  1645. li.BottomSurface = 0
  1646. li.Anchored = true
  1647. li.Locked = true
  1648. li.Transparency = Trans or 0.4
  1649. li.BrickColor = BrickColor.new(Color)
  1650. li.formFactor = "Custom"
  1651. li.CanCollide = false
  1652. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  1653. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1654. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1655. if Times == i then
  1656. local magz2 = (curpos - Part1).magnitude
  1657. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1658. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1659. else
  1660. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1661. end
  1662. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1663. game.Debris:AddItem(li,.1)
  1664. end
  1665. end
  1666.  
  1667. BodyParts = {} -- Parts to emit lightning effects from
  1668. for _, v in pairs(Spheres:GetChildren()) do
  1669. if v:IsA("Part") then
  1670. table.insert(BodyParts, v)
  1671. end
  1672. end
  1673.  
  1674. Bounding = {} -- Calculate the bounding boxes
  1675. for _, v in pairs(BodyParts) do
  1676. local temp = {X=nil, Y=nil, Z=nil}
  1677. temp.X = v.Size.X/2 * 10
  1678. temp.Y = v.Size.Y/2 * 10
  1679. temp.Z = v.Size.Z/2 * 10
  1680. Bounding[v.Name] = temp
  1681. --table.insert(Bounding, v.Name, temp)
  1682. end
  1683.  
  1684. while wait(math.random(1,10)/10) do -- Emit the Lightning effects randomly
  1685. local Body1 = BodyParts[math.random(#BodyParts)]
  1686. local Body2 = BodyParts[math.random(#BodyParts)]
  1687. local Pos1 = Vector3.new(
  1688. math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10,
  1689. math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10,
  1690. math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10
  1691. )
  1692. local Pos2 = Vector3.new(
  1693. math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10,
  1694. math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10,
  1695. math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10
  1696. )
  1697. local SPos1 = Body1.Position + Pos1
  1698. local SPos2 = Body2.Position + Pos2
  1699. Lightning(SPos1, SPos2, 6, 5, "Dark indigo", .03, .56)
  1700. end
  1701.  
  1702.  
  1703. if #Effects > 0 then
  1704. for e = 1, #Effects do
  1705. if Effects[e] ~= nil then
  1706. local Thing = Effects[e]
  1707. if Thing ~= nil then
  1708. local Part = Thing[1]
  1709. local Mode = Thing[2]
  1710. local Delay = Thing[3]
  1711. local IncX = Thing[4]
  1712. local IncY = Thing[5]
  1713. local IncZ = Thing[6]
  1714. if Thing[1].Transparency <= 1 then
  1715. if Thing[2] == "Block1" then
  1716. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1717. Mesh = Thing[1].Mesh
  1718. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1719. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1720. elseif Thing[2] == "Block2" then
  1721. Thing[1].CFrame = Thing[1].CFrame
  1722. Mesh = Thing[7]
  1723. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1724. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1725. elseif Thing[2] == "Cylinder" then
  1726. Mesh = Thing[1].Mesh
  1727. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1728. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1729. elseif Thing[2] == "Blood" then
  1730. Mesh = Thing[7]
  1731. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1732. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1733. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1734. elseif Thing[2] == "Elec" then
  1735. Mesh = Thing[1].Mesh
  1736. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1737. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1738. elseif Thing[2] == "Disappear" then
  1739. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1740. elseif Thing[2] == "Shatter" then
  1741. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1742. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1743. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1744. Thing[6] = Thing[6] + Thing[5]
  1745. end
  1746. else
  1747. Part.Parent = nil
  1748. table.remove(Effects, e)
  1749. end
  1750. end
  1751. end
  1752. end
  1753. end
Add Comment
Please, Sign In to add comment