Advertisement
TheClassicMeme

Untitled

Jun 3rd, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. end
  580.  
  581.  
  582.  
  583. rayCast = function(Pos, Dir, Max, Ignore)
  584.  
  585. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  586. end
  587.  
  588. local Point = Torso.CFrame * Cf(0, Torso.Size.Y, 0)
  589. LastPoint = Point
  590. effect = function(Color, Ref, LP, P1, returnn)
  591.  
  592. local effectsmsh = Instance.new("CylinderMesh")
  593. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  594. effectsmsh.Name = "Mesh"
  595. local effectsg = Instance.new("Part")
  596. effectsg.formFactor = 3
  597. effectsg.CanCollide = false
  598. effectsg.Name = "Eff"
  599. effectsg.Locked = true
  600. effectsg.Anchored = true
  601. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  602. effectsg.Parent = F2
  603. effectsmsh.Parent = effectsg
  604. effectsg.BrickColor = BrickColor.new(Color)
  605. effectsg.Reflectance = Ref
  606. local point1 = P1
  607. local mg = (LP.p - point1.p).magnitude
  608. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  609. effectsg.CFrame = Cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  610. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  611. game:GetService("Debris"):AddItem(effectsg, 2)
  612. if returnn then
  613. return effectsg
  614. end
  615. coroutine.resume(coroutine.create(function(Part, Mesh)
  616.  
  617. if not returnn then
  618. for i = 0, 1, 0.05 do
  619. swait()
  620. Part.Transparency = 1 * i
  621. Mesh.Scale = Vector3.new(0.5 - 0.5 * i, 1, 0.5 - 0.5 * i)
  622. end
  623. Part.Parent = nil
  624. end
  625. end
  626. ), effectsg, effectsmsh)
  627. end
  628.  
  629. local CFrameFromTopBack = function(at, top, back)
  630.  
  631. local right = top:Cross(back)
  632. 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)
  633. end
  634.  
  635. NoOutline = function(Part)
  636.  
  637. Part.TopSurface = 10
  638. end
  639.  
  640. pert = function(parent, reflectance, transparency, brickcolor, name, size, material)
  641.  
  642. local fp = Inst("Part")
  643. fp.Parent = parent
  644. fp.Reflectance = reflectance
  645. fp.Transparency = transparency
  646. fp.CanCollide = false
  647. fp.Locked = true
  648. fp.BrickColor = brickcolor
  649. fp.Name = name
  650. fp.Size = size
  651. fp.Position = Torso.Position
  652. NoOutline(fp)
  653. fp.Material = material
  654. fp:BreakJoints()
  655. return fp
  656. end
  657.  
  658. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  659.  
  660. local mesh = Inst(Mesh)
  661. mesh.Parent = part
  662. if Mesh == "SpecialMesh" then
  663. mesh.MeshType = meshtype
  664. mesh.MeshId = meshid
  665. end
  666. mesh.Offset = offset
  667. mesh.Scale = scale
  668. return mesh
  669. end
  670.  
  671. MagicBlock = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  672.  
  673. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  674. prt.Anchored = true
  675. prt.CFrame = cframe
  676. local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  677. game:GetService("Debris"):AddItem(prt, 5)
  678. table.insert(Effects, {prt, "Block1", Delay, x3, y3, z3})
  679. end
  680.  
  681. MagicBlock2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  682.  
  683. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  684. prt.Anchored = true
  685. prt.CFrame = cframe
  686. local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  687. game:GetService("Debris"):AddItem(prt, 5)
  688. table.insert(Effects, {prt, "Disappear", Delay, x3, y3, z3})
  689. end
  690.  
  691. MagicSpikeBall = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  692.  
  693. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  694. prt.Anchored = true
  695. prt.CFrame = cframe
  696. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/Asset/?id=9982590", Vec(0, 0, 0), Vec(x1, y1, z1))
  697. game:GetService("Debris"):AddItem(prt, 5)
  698. table.insert(Effects, {prt, "Block1", Delay, x3, y3, z3})
  699. end
  700.  
  701. MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  702.  
  703. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  704. prt.Anchored = true
  705. prt.CFrame = cframe
  706. local msh = mesh("SpecialMesh", prt, "Sphere", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  707. game:GetService("Debris"):AddItem(prt, 5)
  708. table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
  709. end
  710.  
  711. MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  712.  
  713. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  714. prt.Anchored = true
  715. prt.CFrame = cframe
  716. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", Vec(0, 0, 0), Vec(x1, y1, z1))
  717. game:GetService("Debris"):AddItem(prt, 5)
  718. table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
  719. end
  720.  
  721. MagicWave2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  722.  
  723. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  724. prt.Anchored = true
  725. prt.CFrame = cframe
  726. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", Vec(0, 0, 0), Vec(x1, y1, z1))
  727. game:GetService("Debris"):AddItem(prt, 5)
  728. table.insert(Effects, {prt, "Wave", Delay, x3, y3, z3})
  729. end
  730.  
  731. MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  732.  
  733. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(0.2, 0.2, 0.2), material)
  734. prt.Anchored = true
  735. prt.CFrame = cframe
  736. local msh = mesh("SpecialMesh", prt, "Head", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  737. game:GetService("Debris"):AddItem(prt, 5)
  738. Effects[#Effects + 1] = {prt, "Cylinder", Delay, x3, y3, z3}
  739. end
  740.  
  741. MagicCylinder2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  742.  
  743. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(0.2, 0.2, 0.2), material)
  744. prt.Anchored = true
  745. prt.CFrame = cframe
  746. local msh = mesh("CylinderMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  747. game:GetService("Debris"):AddItem(prt, 5)
  748. Effects[#Effects + 1] = {prt, "Cylinder", Delay, x3, y3, z3}
  749. end
  750.  
  751. MagicBlood = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  752.  
  753. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  754. prt.Anchored = true
  755. prt.CFrame = cframe
  756. local msh = mesh("SpecialMesh", prt, "Sphere", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  757. game:GetService("Debris"):AddItem(prt, 5)
  758. table.insert(Effects, {prt, "Blood", Delay, x3, y3, z3})
  759. end
  760.  
  761. MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  762.  
  763. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  764. prt.Anchored = true
  765. prt.CFrame = cframe
  766. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vec(0, 0, 0), Vec(x1, y1, z1))
  767. game:GetService("Debris"):AddItem(prt, 5)
  768. table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
  769. end
  770.  
  771. MagicRing2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  772.  
  773. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  774. prt.Anchored = true
  775. prt.CFrame = cframe
  776. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vec(0, 0, 0), Vec(x1, y1, z1))
  777. game:GetService("Debris"):AddItem(prt, 5)
  778. table.insert(Effects, {prt, "Blood", Delay, x3, y3, z3})
  779. end
  780.  
  781. ElecEffect = function(brickCol, Mat, cff, x, y, z)
  782.  
  783. local prt = pert(F2, 0, 0, brickCol, "Part", Vec(1, 1, 1), Mat)
  784. prt.Anchored = true
  785. prt.CFrame = cff * Cf(rand(-x, x), rand(-y, y), rand(-z, z))
  786. prt.CFrame = Cf(prt.Position)
  787. debServ:AddItem(prt, 2)
  788. local xval = math.random() / 2
  789. local yval = math.random() / 2
  790. local zval = math.random() / 2
  791. local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(xval, yval, zval))
  792. Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  793. end
  794.  
  795. Lightning = function(p0, p1, tym, ofs, col, mat, th, tra, last)
  796. end
  797. end
  798. end
  799.  
  800. Triangle = function(a, b, c, tcol, tmat)
  801.  
  802. local edg1 = (c-a):Dot((b-a).unit)
  803. local edg2 = (a-b):Dot((c-b).unit)
  804. local edg3 = (b-c):Dot((a-c).unit)
  805. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  806. a = a
  807. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  808. a = b
  809. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  810. a = c
  811. else
  812. return
  813. end
  814. local len1 = (c-a):Dot((b-a).unit)
  815. local len2 = (b-a).magnitude - len1
  816. local width = (a + (b-a).unit*len1 - c).magnitude
  817. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  818. local list = {}
  819. if len1 > 0.01 then
  820. local w1 = Inst("WedgePart", F2)
  821. w1.Material = tmat
  822. w1.BrickColor = BC(tcol)
  823. w1.Transparency = 0
  824. w1.Reflectance = 0
  825. w1.CanCollide = false
  826. NoOutline(w1)
  827. local sz = Vec(0.2, width, len1)
  828. w1.Size = sz
  829. local sp = Inst("SpecialMesh", w1)
  830. sp.MeshType = "Wedge"
  831. sp.Scale = Vec(0, 1, 1) * sz / w1.Size
  832. w1:BreakJoints()
  833. w1.Anchored = true
  834. w1.Transparency = 0.7
  835. debServ:AddItem(w1, 25)
  836. table.insert(Effects, {w1, "Disappear", 0.045})
  837. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  838. table.insert(list, w1)
  839. end
  840. if len2 > 0.01 then
  841. local w2 = Inst("WedgePart", F2)
  842. w2.Material = tmat
  843. w2.BrickColor = BC(tcol)
  844. w2.Transparency = 0
  845. w2.Reflectance = 0
  846. w2.CanCollide = false
  847. NoOutline(w2)
  848. local sz = Vec(0.2, width, len2)
  849. w2.Size = sz
  850. local sp = Inst("SpecialMesh", w2)
  851. sp.MeshType = "Wedge"
  852. sp.Scale = Vec(0, 1, 1) * sz / w2.Size
  853. w2:BreakJoints()
  854. w2.Anchored = true
  855. w2.Transparency = 0.7
  856. debServ:AddItem(w2, 25)
  857. table.insert(Effects, {w2, "Disappear", 0.045})
  858. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  859. table.insert(list, w2)
  860. end
  861. return unpack(list)
  862. end
  863.  
  864.  
  865. runServ.RenderStepped:connect(function()
  866. if #Effects > 0 then
  867. for e = 1, #Effects do
  868. if Effects[e] ~= nil then
  869. local Thing = Effects[e]
  870. if Thing ~= nil then
  871. local Part = Thing[1]
  872. local Mode = Thing[2]
  873. local Delay = Thing[3]
  874. local IncX = Thing[4]
  875. local IncY = Thing[5]
  876. local IncZ = Thing[6]
  877. if Thing[1].Transparency <= 1 then
  878. if Thing[2] == "Block1" then
  879. Thing[1].CFrame = Thing[1].CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  880. Mesh = Thing[1]:FindFirstChild("Mesh")
  881. if not Mesh then
  882. Mesh = Instance.new("BlockMesh")
  883. end
  884. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  885. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  886. elseif Thing[2] == "Wave" then
  887. Thing[1].CFrame = Thing[1].CFrame * CFrame.Angles(0, rad(10), 0)
  888. Mesh = Thing[1]:FindFirstChild("Mesh")
  889. if not Mesh then
  890. Mesh = Instance.new("BlockMesh")
  891. end
  892. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  893. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  894. elseif Thing[2] == "Cylinder" then
  895. Mesh = Thing[1]:FindFirstChild("Mesh")
  896. if not Mesh then
  897. Mesh = Instance.new("BlockMesh")
  898. end
  899. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  900. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  901. elseif Thing[2] == "Blood" then
  902. Mesh = Thing[1]:FindFirstChild("Mesh")
  903. if not Mesh then
  904. Mesh = Instance.new("BlockMesh")
  905. end
  906. Thing[1].CFrame = Thing[1].CFrame * Cf(0, 0.5, 0)
  907. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  908. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  909. elseif Thing[2] == "Elec" then
  910. Mesh = Thing[1]:FindFirstChild("Mesh")
  911. if not Mesh then
  912. Mesh = Instance.new("BlockMesh")
  913. end
  914. Mesh.Scale = Mesh.Scale + Vec(Thing[7], Thing[8], Thing[9])
  915. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  916. elseif Thing[2] == "Disappear" then
  917. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  918. end
  919. else
  920. Part.Parent = nil
  921. debServ:AddItem(Part, 0)
  922. table.remove(Effects, e)
  923. end
  924. end
  925. end
  926. end
  927. end
  928. end)
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935. maus.KeyDown:connect(function(kei)
  936. if string.byte(kei)==48 and not otheranims then
  937. runnin=true
  938. end
  939. if kei=='w' then fldb.w=true end
  940. if kei=='a' then fldb.a=true end
  941. if kei=='s' then fldb.s=true end
  942. if kei=='d' then fldb.d=true end
  943. end)
  944. maus.KeyUp:connect(function(kei)
  945. if string.byte(kei)==48 and not otheranims then
  946. runnin=false
  947. end
  948. if kei=='w' then fldb.w=false end
  949. if kei=='a' then fldb.a=false end
  950. if kei=='s' then fldb.s=false end
  951. if kei=='d' then fldb.d=false end
  952. end)
  953.  
  954.  
  955.  
  956. maus.KeyDown:connect(function(kei)
  957. if kei=='z' and attack ~= "false" then
  958.  
  959. attackone()
  960.  
  961. elseif kei=='x' and attack ~= "false" then
  962.  
  963. attacktwo()
  964.  
  965. elseif kei=='c' and attack ~= "false" then
  966.  
  967. attackthree()
  968.  
  969. elseif kei=='v' and attack ~= "false" then
  970.  
  971. Untimatum()
  972.  
  973. end
  974. end)
  975.  
  976.  
  977.  
  978.  
  979.  
  980. coroutine.wrap(function()
  981. for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
  982. function Lerp(a, b, i)
  983. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  984. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  985. local calx = com1[1] + (com2[1] - com1[1]) * i
  986. local caly = com1[2] + (com2[2] - com1[2]) * i
  987. local calz = com1[3] + (com2[3] - com1[3]) * i
  988. local cala = com1[4] + (com2[4] - com1[4]) * i
  989. local calb = com1[5] + (com2[5] - com1[5]) * i
  990. local calc = com1[6] + (com2[6] - com1[6]) * i
  991. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  992. end
  993. function TwnSingleNumber(s,f,m)
  994. local wot=s+(f-s)*m
  995. return wot
  996. end
  997. function TwnVector3(q,w,e)
  998. local begin={q.x,q.y,q.z}
  999. local ending={w.x,w.y,w.z}
  1000. local bgx=begin[1]+(ending[1]-begin[1])*e
  1001. local bgy=begin[2]+(ending[2]-begin[2])*e
  1002. local bgz=begin[3]+(ending[3]-begin[3])*e
  1003. return Vector3.new(bgx,bgy,bgz)
  1004. end
  1005. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  1006. wld = Instance.new("Weld", wp1)
  1007. wld.Part0 = wp0
  1008. wld.Part1 = wp1
  1009. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1010. end
  1011. newWeld(law, torso, larm, -1.5, 0.5, 0)
  1012. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  1013. newWeld(llw, torso, lleg, -.5, -2, 0)
  1014. newWeld(rlw, torso, rleg, .5, -2, 0)
  1015. newWeld(hw, torso, hed, 0, 1.5, 0)
  1016. local rutwald=Instance.new('Weld',rutprt)
  1017. rutwald.Part0=rutprt
  1018. rutwald.Part1=torso
  1019. rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  1020. larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  1021. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  1022. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  1023. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  1024.  
  1025. local function setupPart(part)
  1026. part.Anchored = true
  1027. part.FormFactor = 'Custom'
  1028. part.CanCollide = false
  1029. part.BrickColor = BrickColor.new("Dark indigo")
  1030. part.Material = "Neon"
  1031. part.TopSurface = 'SmoothNoOutlines'
  1032. part.BottomSurface = 'SmoothNoOutlines'
  1033. part.FrontSurface = 'SmoothNoOutlines'
  1034. part.BackSurface = 'SmoothNoOutlines'
  1035. part.LeftSurface = 'SmoothNoOutlines'
  1036. part.RightSurface = 'SmoothNoOutlines'
  1037. end
  1038.  
  1039. function CFrameFromTopBack(at, top, back)
  1040. local right = top:Cross(back)
  1041. 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)
  1042. end
  1043.  
  1044. function CreateTriangle(parent, a, b, c)
  1045. local this = {}
  1046. local mPart1 = Instance.new('WedgePart')
  1047. setupPart(mPart1)
  1048. local mPart2 = Instance.new('WedgePart')
  1049. setupPart(mPart2)
  1050. function this:Set(a, b, c) --[[ edg1 A ------|------>B --. '\ | / \ \part1|part2/ | \ cut / / Direction edges point in: edg3 \ / edg2 / (clockwise) \ / |/ \<- / ` \ / C --]]
  1051. local ab, bc, ca = b-a, c-b, a-c local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  1052. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  1053. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  1054. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  1055. if edg1 < edg2 then
  1056. if edg1 < edg3 then
  1057. -- nothing to change
  1058. else
  1059. a, b, c = c, a, b
  1060. ab, bc, ca = ca, ab, bc
  1061. abm = cam
  1062. end
  1063. else
  1064. if edg2 < edg3 then
  1065. a, b, c = b, c, a
  1066. ab, bc, ca = bc, ca, ab
  1067. abm = bcm
  1068. else
  1069. a, b, c = c, a, b
  1070. ab, bc, ca = ca, ab, bc
  1071. abm = cam
  1072. end
  1073. end
  1074.  
  1075. local len1 = -ca:Dot(ab)/abm local len2 = abm - len1 local width = (ca + ab.unit*len1).magnitude
  1076. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  1077.  
  1078. mPart1.Parent = parent
  1079. mPart1.Size = Vector3.new(1,1,1)
  1080. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1081. local Mesh = Instance.new("SpecialMesh",mPart1)
  1082. Mesh.MeshType = "Wedge"
  1083. Mesh.Scale = Vector3.new(0.005, width, len1)
  1084.  
  1085. mPart2.Parent = parent
  1086. mPart2.Size = Vector3.new(1,1,1)
  1087. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1088. local Mesh = Instance.new("SpecialMesh",mPart2)
  1089. Mesh.MeshType = "Wedge"
  1090. Mesh.Scale = Vector3.new(0.005, width, len2)
  1091. end
  1092.  
  1093. function this:SetProperty(prop, value)
  1094. mPart1[prop] = value
  1095. mPart2[prop] = value
  1096. end
  1097.  
  1098. function this:GetProperty(prop)
  1099. return mPart1[prop]
  1100. end
  1101.  
  1102. this:Set(a, b, c)
  1103. function this:Destroy()
  1104. mPart1:Destroy()
  1105. mPart2:Destroy()
  1106. end
  1107. return this
  1108. end
  1109. function CreateTrail(Adornee, Axis)
  1110. local Axis = Axis or "X"
  1111.  
  1112. local trail = {}
  1113. trail.Triangles = {}
  1114. trail.Adornee = Adornee
  1115. trail.Axis = Axis
  1116.  
  1117. local L1, L2
  1118.  
  1119. function trail:Fade(speed)
  1120. local speed = speed or 0.01
  1121.  
  1122. for n, v in pairs(trail.Triangles) do
  1123. v:SetProperty("Transparency", v:GetProperty("Transparency") + speed)
  1124. if v:GetProperty("Transparency") >= 1 then
  1125. v:Destroy()
  1126.  
  1127. table.remove(trail.Triangles, n)
  1128. end
  1129. end
  1130. end
  1131.  
  1132. function trail:Update()
  1133. local adornee = trail.Adornee
  1134.  
  1135. local axis = trail.Axis
  1136. 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))
  1137. local P1 = adornee.CFrame * CFrame.new(Size / 2)
  1138. local P2 = adornee.CFrame * CFrame.new(Size / -2)
  1139.  
  1140. if L1 and L2 then
  1141. table.insert(trail.Triangles, CreateTriangle(adornee, L1.p, L2.p, P1.p))
  1142. table.insert(trail.Triangles, CreateTriangle(adornee, P1.p, P2.p, L2.p))
  1143. end
  1144.  
  1145. L1, L2 = P1, P2
  1146. end
  1147.  
  1148. return trail
  1149. end
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156. Player=game:GetService('Players').LocalPlayer
  1157. Character=Player.Character
  1158. Mouse=Player:GetMouse()
  1159. m=Instance.new('Model',Character)
  1160.  
  1161.  
  1162. local function weldBetween(a, b)
  1163. local weldd = Instance.new("ManualWeld")
  1164. weldd.Part0 = a
  1165. weldd.Part1 = b
  1166. weldd.C0 = CFrame.new()
  1167. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1168. weldd.Parent = a
  1169. return weldd
  1170. end
  1171.  
  1172. it=Instance.new
  1173.  
  1174. function nooutline(part)
  1175. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1176. end
  1177.  
  1178. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1179. local fp=it("Part")
  1180. fp.Shape=formfactor
  1181. fp.Parent=parent
  1182. fp.Reflectance=reflectance
  1183. fp.Transparency=transparency
  1184. fp.CanCollide=false
  1185. fp.Locked=true
  1186. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1187. fp.Name=name
  1188. fp.Size=size
  1189. fp.Position=torso.Position
  1190. nooutline(fp)
  1191. fp.Material=material
  1192. fp:BreakJoints()
  1193. return fp
  1194. end
  1195.  
  1196.  
  1197. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1198. local mesh=it(Mesh)
  1199. mesh.Parent=part
  1200. if Mesh=="SpecialMesh" then
  1201. mesh.MeshType=meshtype
  1202. mesh.MeshId=meshid
  1203. end
  1204. mesh.Offset=offset
  1205. mesh.Scale=scale
  1206. return mesh
  1207. end
  1208.  
  1209. function weld(parent,part0,part1,c0,c1)
  1210. local weld=it("Weld")
  1211. weld.Parent=parent
  1212. weld.Part0=part0
  1213. weld.Part1=part1
  1214. weld.C0=c0
  1215. weld.C1=c1
  1216. return weld
  1217. end
  1218.  
  1219. local Spheres = it("Model")
  1220. Spheres.Parent=Character
  1221.  
  1222.  
  1223. Main_Head=part(Enum.PartType.Ball,m,Enum.Material.Neon,0,0.4099999666214,"Mulberry","Handle",Vector3.new(2.96000004, 2.96000004, 2.96000004))
  1224. 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))
  1225. MainH_Part=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","MainH_Part",Vector3.new(1.7518369, 1.7518369, 1.7518369))
  1226. 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))
  1227.  
  1228.  
  1229. Main_RH=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1230. 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))
  1231. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1232. 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))
  1233. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1234. 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))
  1235. Sphere_RH1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Institutional white","Sphere_RH1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1236. 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))
  1237.  
  1238.  
  1239. TrailThingy1 = CreateTrail(Sphere_RH1,"Y")
  1240.  
  1241.  
  1242.  
  1243. Main_LH=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1244. 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))
  1245. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1246. 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))
  1247. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1248. 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))
  1249. Sphere_LH1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Institutional white","Sphere_LH1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1250. 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))
  1251.  
  1252. TrailThingy2 = CreateTrail(Sphere_LH1,"Y")
  1253.  
  1254.  
  1255. Main_RW=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1256. 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))
  1257. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1258. 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))
  1259. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1260. 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))
  1261. Sphere_RW2=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW2",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1262. 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))
  1263. Sphere_RW1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1264. 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))
  1265.  
  1266.  
  1267. TrailThingy3 = CreateTrail(Sphere_RW1,"Y")
  1268.  
  1269.  
  1270. Main_LW=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1271. 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))
  1272. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1273. 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))
  1274. Sphere_LW1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1275. 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))
  1276. Sphere_LW2=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW2",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1277. 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))
  1278. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1279. 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))
  1280.  
  1281. TrailThingy5 = CreateTrail(Sphere_LW1,"Y")
  1282.  
  1283.  
  1284. local particleemitter = Instance.new("ParticleEmitter", MainH_Part)
  1285. PARSI = .5
  1286. particleemitter.Lifetime = NumberRange.new(0.2)
  1287. particleemitter.Speed = NumberRange.new(0)
  1288.  
  1289. game:service'RunService'.RenderStepped:connect(function()
  1290. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, PARSI), NumberSequenceKeypoint.new(1, PARSI)})
  1291. end)
  1292.  
  1293. particleemitter.Rate = 1000
  1294. particleemitter.Rotation = NumberRange.new(0, 360)
  1295. particleemitter.LightEmission = 1
  1296. particleemitter.Color = ColorSequence.new(Color3.new(0.639216, 0.227451, 1), Color3.new(0.639216, 0.227451, 1))
  1297. particleemitter.Texture = "http://www.roblox.com/asset/?id=243098098"
  1298. particleemitter.LockedToPart = true
  1299.  
  1300. local particleemitter = Instance.new("ParticleEmitter", MainH_Part)
  1301.  
  1302. particleemitter.Lifetime = NumberRange.new(0.2)
  1303. particleemitter.Speed = NumberRange.new(0)
  1304.  
  1305. game:service'RunService'.RenderStepped:connect(function()
  1306. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, PARSI), NumberSequenceKeypoint.new(1, PARSI)})
  1307. end)
  1308.  
  1309. particleemitter.Rate = 1000
  1310. particleemitter.Rotation = NumberRange.new(0, 360)
  1311. particleemitter.LightEmission = 1
  1312. particleemitter.Color = ColorSequence.new(Color3.new(0.639216, 0.227451, 1), Color3.new(0.639216, 0.227451, 1))
  1313. particleemitter.Texture = "http://www.roblox.com/asset/?id=243098098"
  1314. particleemitter.LockedToPart = true
  1315.  
  1316.  
  1317. local particleemitter = Instance.new("ParticleEmitter", MainH_Part)
  1318.  
  1319. particleemitter.Lifetime = NumberRange.new(0.2)
  1320. particleemitter.Speed = NumberRange.new(0)
  1321.  
  1322. game:service'RunService'.RenderStepped:connect(function()
  1323. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, PARSI), NumberSequenceKeypoint.new(1, PARSI)})
  1324. end)
  1325.  
  1326. particleemitter.Rate = 1000
  1327. particleemitter.Rotation = NumberRange.new(0, 360)
  1328. particleemitter.LightEmission = 1
  1329. particleemitter.Color = ColorSequence.new(Color3.new(0.639216, 0.227451, 1), Color3.new(0.639216, 0.227451, 1))
  1330. particleemitter.Texture = "http://www.roblox.com/asset/?id=243098098"
  1331. particleemitter.LockedToPart = true
  1332.  
  1333.  
  1334. local particleemitterglow = Instance.new("ParticleEmitter", MainH_Part)
  1335.  
  1336. particleemitterglow.Lifetime = NumberRange.new(1)
  1337. particleemitterglow.Speed = NumberRange.new(0)
  1338. 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)})
  1339. particleemitterglow.Rate = 5
  1340. particleemitterglow.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.1, 0.5), NumberSequenceKeypoint.new(0.8, 0.5), NumberSequenceKeypoint.new(1, 1)})
  1341. particleemitterglow.Name = "ParticleEmitterGlow"
  1342. particleemitterglow.LightEmission = 1
  1343. particleemitterglow.Color = ColorSequence.new(Color3.new(0.333333, 0, 0), Color3.new(0.333333, 0, 0))
  1344. particleemitterglow.Texture = "http://www.roblox.com/asset/?id=243660373"
  1345. particleemitterglow.LockedToPart = true
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351. game:service'RunService'.RenderStepped:connect(function()
  1352.  
  1353. if anim == "Sprinting" then
  1354. TrailThingy3:Update()
  1355. TrailThingy3:Fade(0.2)
  1356. TrailThingy5:Update()
  1357. TrailThingy5:Fade(0.2)
  1358. TrailThingy1:Update()
  1359. TrailThingy1:Fade(0.2)
  1360. TrailThingy2:Update()
  1361. TrailThingy2:Fade(0.2)
  1362. end
  1363.  
  1364. if anim ~= "Sprinting" then
  1365. TrailThingy3:Update()
  1366. TrailThingy3:Fade(1)
  1367. TrailThingy5:Update()
  1368. TrailThingy5:Fade(1)
  1369. TrailThingy1:Update()
  1370. TrailThingy1:Fade(1)
  1371. TrailThingy2:Update()
  1372. TrailThingy2:Fade(1)
  1373. end
  1374.  
  1375. if anim~=lastanim then
  1376. runtime=0
  1377. end
  1378. lastanim=anim
  1379. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  1380. syne=syne+.95
  1381. if not otheranims and not swimming then
  1382. 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
  1383. anim="Idling"
  1384. 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
  1385. anim="Walking"
  1386. 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
  1387. anim="Sprinting"
  1388. elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
  1389. anim='Jumping'
  1390. elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
  1391. anim='Falling'
  1392. end
  1393. end
  1394.  
  1395. if otheranims then return end
  1396. if anim=="Idling" then
  1397. idlesineinc=35
  1398. 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)
  1399.  
  1400. if not armmovments then
  1401. 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)
  1402. 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)
  1403. end
  1404.  
  1405. 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)
  1406. 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)
  1407. 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)
  1408. end
  1409.  
  1410. if anim=="Walking" then
  1411.  
  1412. if not armmovments then
  1413. 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)
  1414. 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)
  1415. end
  1416.  
  1417. 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)
  1418. 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)
  1419. 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)
  1420. 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)
  1421. end
  1422.  
  1423. if anim=="Sprinting" then
  1424. ArmsTrail = true
  1425.  
  1426. if not armmovments then
  1427. 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)
  1428. 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)
  1429. end
  1430.  
  1431. 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)
  1432. 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)
  1433. 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)
  1434. 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)
  1435. ArmsTrail = false
  1436. end
  1437.  
  1438. if anim=="Jumping" then
  1439.  
  1440. if not armmovments then
  1441. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  1442. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  1443. end
  1444.  
  1445. 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)
  1446. 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)
  1447. 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)
  1448. 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)
  1449. end
  1450.  
  1451. if anim=="Falling" then
  1452.  
  1453. if not armmovments then
  1454. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
  1455. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
  1456. end
  1457.  
  1458. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
  1459. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
  1460. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
  1461. 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)
  1462. end
  1463.  
  1464.  
  1465.  
  1466.  
  1467. if runnin and not otheranims and not swimming then
  1468. chr.Humanoid.WalkSpeed=RunSpeed
  1469. elseif not runnin and not otheranims and not swimming then
  1470. chr.Humanoid.WalkSpeed=WlkSpeed
  1471. end
  1472. end)
  1473.  
  1474.  
  1475. --[[]]----[[Moves]]----[[]]--
  1476. attackone = function()
  1477.  
  1478. attack = true
  1479. armmovments=true
  1480.  
  1481. for i = 0, 1, 0.13 do
  1482. swait()
  1483. 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)
  1484. 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)
  1485. PARSI = PARSI + i/2--i + i/.5
  1486. end
  1487. wait(1)
  1488. for i = 0, 1, 0.13 do
  1489. swait()
  1490. PARSI = PARSI - i/2--i + i/.5
  1491. end
  1492.  
  1493. attack = false
  1494. armmovments=false
  1495. end
  1496.  
  1497.  
  1498.  
  1499.  
  1500. attacktwo = function()
  1501. attack = true
  1502. armmovments=true
  1503.  
  1504. for i = 0, 20, 0.13 do
  1505. swait()
  1506. 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)
  1507. MagniDamage(RootPart, 12, true, 1, 2, true, 10, "Compensate-Knockdown", 0.01, false, 0, false, _, "", "")
  1508. local rnum = 20
  1509. 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)}
  1510. MagicSpikeBall(BrickColor.new("Royal purple"), "Neon", rarm.CFrame + Vector3.new(0,15,0), 0, 0, 0, 0.3, 0.3, 0.3, 0.1)
  1511. MagicCircle(BrickColor.new("Really black"), "Neon", rarm.CFrame + Vector3.new(0,15,0), 0, 0, 0, 0.3, 0.3, 0.3, 0.1)
  1512. end
  1513.  
  1514. for i = 0, 1, 0.1 do
  1515. swait()
  1516.  
  1517. end
  1518.  
  1519. attack = false
  1520. armmovments=false
  1521. end
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527. attackthree = function()
  1528.  
  1529. attack = true
  1530. otheranims=true
  1531.  
  1532. for i = 0, 1, 0.13 do
  1533. swait()
  1534.  
  1535. end
  1536.  
  1537. for i = 0, 1, 0.1 do
  1538. swait()
  1539.  
  1540. end
  1541. otheranims=false
  1542. attack = false
  1543.  
  1544. end
  1545.  
  1546.  
  1547.  
  1548.  
  1549. Untimatum = function()
  1550.  
  1551. attack = true
  1552. otheranims=true
  1553.  
  1554.  
  1555.  
  1556. otheranims=false
  1557. attack = false
  1558. end
  1559. --[[]]----[[Moves]]----[[]]--
  1560.  
  1561.  
  1562. for i = 0, 1, 0.1 do
  1563. swait()
  1564. MagicBlock(BrickColor.new("Really black"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1565. MagicBlock(BrickColor.new("Really black"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1566. MagicBlock(BrickColor.new("Really black"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1567.  
  1568. MagicBlock(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1569. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1570. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1571. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1572. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1573.  
  1574. MagicBlock(BrickColor.new("Royal purple"), "SmoothPlastic", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1575. MagicBlock(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.02)
  1576.  
  1577. MagicSpikeBall(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1578. MagicSpikeBall(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1579.  
  1580. MagicCircle(BrickColor.new("Really black"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1581. MagicCircle(BrickColor.new("Really black"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1582. end
  1583.  
  1584. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  1585. local magz = (Part0 - Part1).magnitude
  1586. local curpos = Part0
  1587. local trz = {-Offset,Offset}
  1588. for i=1,Times do
  1589. local li = Instance.new("Part", torso)
  1590. li.Name = "Lightning"
  1591. li.TopSurface =0
  1592. li.Material = "Neon"
  1593. li.BottomSurface = 0
  1594. li.Anchored = true
  1595. li.Locked = true
  1596. li.Transparency = Trans or 0.4
  1597. li.BrickColor = BrickColor.new(Color)
  1598. li.formFactor = "Custom"
  1599. li.CanCollide = false
  1600. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  1601. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1602. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1603. if Times == i then
  1604. local magz2 = (curpos - Part1).magnitude
  1605. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1606. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1607. else
  1608. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1609. end
  1610. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1611. game.Debris:AddItem(li,.1)
  1612. end
  1613. end
  1614.  
  1615. BodyParts = {} -- Parts to emit lightning effects from
  1616. for _, v in pairs(Spheres:GetChildren()) do
  1617. if v:IsA("Part") then
  1618. table.insert(BodyParts, v)
  1619. end
  1620. end
  1621.  
  1622. Bounding = {} -- Calculate the bounding boxes
  1623. for _, v in pairs(BodyParts) do
  1624. local temp = {X=nil, Y=nil, Z=nil}
  1625. temp.X = v.Size.X/2 * 10
  1626. temp.Y = v.Size.Y/2 * 10
  1627. temp.Z = v.Size.Z/2 * 10
  1628. Bounding[v.Name] = temp
  1629. --table.insert(Bounding, v.Name, temp)
  1630. end
  1631.  
  1632. while wait(math.random(1,10)/10) do -- Emit the Lightning effects randomly
  1633. local Body1 = BodyParts[math.random(#BodyParts)]
  1634. local Body2 = BodyParts[math.random(#BodyParts)]
  1635. local Pos1 = Vector3.new(
  1636. math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10,
  1637. math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10,
  1638. math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10
  1639. )
  1640. local Pos2 = Vector3.new(
  1641. math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10,
  1642. math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10,
  1643. math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10
  1644. )
  1645. local SPos1 = Body1.Position + Pos1
  1646. local SPos2 = Body2.Position + Pos2
  1647. Lightning(SPos1, SPos2, 6, 5, "Dark indigo", .03, .56)
  1648. end
  1649.  
  1650.  
  1651. if #Effects > 0 then
  1652. for e = 1, #Effects do
  1653. if Effects[e] ~= nil then
  1654. local Thing = Effects[e]
  1655. if Thing ~= nil then
  1656. local Part = Thing[1]
  1657. local Mode = Thing[2]
  1658. local Delay = Thing[3]
  1659. local IncX = Thing[4]
  1660. local IncY = Thing[5]
  1661. local IncZ = Thing[6]
  1662. if Thing[1].Transparency <= 1 then
  1663. if Thing[2] == "Block1" then
  1664. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1665. Mesh = Thing[1].Mesh
  1666. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1667. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1668. elseif Thing[2] == "Block2" then
  1669. Thing[1].CFrame = Thing[1].CFrame
  1670. Mesh = Thing[7]
  1671. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1672. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1673. elseif Thing[2] == "Cylinder" then
  1674. Mesh = Thing[1].Mesh
  1675. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1676. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1677. elseif Thing[2] == "Blood" then
  1678. Mesh = Thing[7]
  1679. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1680. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1681. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1682. elseif Thing[2] == "Elec" then
  1683. Mesh = Thing[1].Mesh
  1684. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1685. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1686. elseif Thing[2] == "Disappear" then
  1687. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1688. elseif Thing[2] == "Shatter" then
  1689. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1690. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1691. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1692. Thing[6] = Thing[6] + Thing[5]
  1693. end
  1694. else
  1695. Part.Parent = nil
  1696. table.remove(Effects, e)
  1697. end
  1698. end
  1699. end
  1700. end
  1701. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement