metilol

Untitled

Mar 11th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[Nemessis.Inc]]--
  2. --[[Nemessis.Inc Members]]--
  3. --[[Ki_tchen [Owner] ]]--
  4. --[[Mewy23 CO-OWNER]]--
  5. --[[Unknown]]--
  6. --[[Unknown]]--
  7. --[[Unknown]]--
  8. --[[Unknown]]--
  9. --[[Unknown]]--
  10. --[[Unknown]]--
  11. --[[Unknown]]--
  12.  
  13. --[[Every Script we release a new member will be shown.]]--
  14.  
  15. --[[Nemessis.Inc Out.]]--
  16.  
  17. wait(1 / 60)
  18. -- Trail Made by Gallizur
  19. --R15 Compatible in TrailSettings
  20. local Player = game:GetService('Players').LocalPlayer
  21. repeat wait() until Player.Character
  22. local Character = Player.Character
  23. Head = Character["Head"]
  24.  
  25. Head.face.Texture = "http://www.roblox.com/asset/?id=638471026"
  26.  
  27. --All The Settings for Trails in this Script
  28. TrailSettings = {
  29. Lifetime = 1.7,
  30. Texture = 'rbxassetid://31270182',
  31. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  32. Color1 = ColorSequence.new(BrickColor.new('Really blue').Color,BrickColor.new('Cyan').Color),
  33. Color2 = ColorSequence.new(BrickColor.new('Sea green').Color,BrickColor.new('Pastel green').Color),
  34. AllBody = true,
  35. UpperBodyOnly = false,
  36. LowerBodyOnly = false,
  37. Accessories = true,
  38. Extras = true,
  39. R15 = false, --Change to true if you're using R15
  40. R15Parts = {
  41. 'UpperTorso',
  42. 'LowerTorso',
  43. }
  44. }
  45.  
  46. local Trail; --Making other Trails uses this in this Script
  47.  
  48. --UpperBody Function
  49. UpperBody = function()
  50. if TrailSettings.R15 == false then
  51. A0 = Instance.new('Attachment',Character.Torso)
  52. A1 = Instance.new('Attachment',Character.Head)
  53. A2 = Instance.new('Attachment',Character['Right Arm'])
  54. A3 = Instance.new('Attachment',Character['Left Arm'])
  55. Trail = Instance.new('Trail',Character)
  56. Trail.Attachment0 = A0
  57. Trail.Attachment1 = A1
  58. Trail.Texture = TrailSettings.Texture
  59. Trail.Color = TrailSettings.Color1
  60. Trail.Lifetime = TrailSettings.Lifetime
  61. local Trail2 = Trail:Clone()
  62. Trail2.Parent = Character
  63. Trail2.Attachment1 = A2
  64. local Trail3 = Trail:Clone()
  65. Trail3.Parent = Character
  66. Trail3.Attachment1 = A3
  67. local Trail6 = Trail:Clone()
  68. Trail6.Parent = Character
  69. Trail6.Attachment0 = A1
  70. Trail6.Attachment1 = A2
  71. local Trail7 = Trail:Clone()
  72. Trail7.Parent = Character
  73. Trail7.Attachment0 = A1
  74. Trail7.Attachment1 = A3
  75. else
  76. A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
  77. A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
  78. A1 = Instance.new('Attachment',Character.Head)
  79. A2 = Instance.new('Attachment',Character['RightUpperArm'])
  80. A2R = Instance.new('Attachment',Character['RightLowerArm'])
  81. A3 = Instance.new('Attachment',Character['LeftUpperArm'])
  82. A3R = Instance.new('Attachment',Character['LeftLowerArm'])
  83. Trail = Instance.new('Trail',Character)
  84. Trail.Attachment0 = A0
  85. Trail.Attachment1 = A1
  86. Trail.Texture = TrailSettings.Texture
  87. Trail.Color = TrailSettings.Color1
  88. Trail.Lifetime = TrailSettings.Lifetime
  89. local Trail2 = Trail:Clone()
  90. Trail2.Parent = Character
  91. Trail2.Attachment1 = A2
  92. local Trail3 = Trail:Clone()
  93. Trail3.Parent = Character
  94. Trail3.Attachment1 = A3
  95. local Trail6 = Trail:Clone()
  96. Trail6.Parent = Character
  97. Trail6.Attachment0 = A1
  98. Trail6.Attachment1 = A2
  99. local Trail7 = Trail:Clone()
  100. Trail7.Parent = Character
  101. Trail7.Attachment0 = A1
  102. Trail7.Attachment1 = A3
  103. --R15 Trails
  104. local Trail1R = Trail:Clone()
  105. Trail1R.Parent = Character
  106. Trail1R.Attachment1 = A2R
  107. local Trail2R = Trail:Clone()
  108. Trail2R.Parent = Character
  109. Trail2R.Attachment1 = A3R
  110. local Trail6R = Trail:Clone()
  111. Trail6.Parent = Character
  112. Trail6.Attachment0 = A1
  113. Trail6.Attachment1 = A2R
  114. local Trail7R = Trail:Clone()
  115. Trail7.Parent = Character
  116. Trail7.Attachment0 = A1
  117. Trail7.Attachment1 = A3R
  118. end
  119. end
  120.  
  121. --Lower Body Function
  122. LowerBody = function()
  123. if TrailSettings.R15 == false then
  124. A4 = Instance.new('Attachment',Character['Right Leg'])
  125. A5 = Instance.new('Attachment',Character['Left Leg'])
  126. local Trail4 = Trail:Clone()
  127. Trail4.Parent = Character
  128. Trail4.Attachment1 = A4
  129. local Trail5 = Trail:Clone()
  130. Trail5.Parent = Character
  131. Trail5.Attachment1 = A5
  132. local Trail8 = Trail:Clone()
  133. Trail8.Parent = Character
  134. Trail8.Attachment0 = A2
  135. Trail8.Attachment1 = A4
  136. Trail8.Color = TrailSettings.Color2
  137. local Trail9 = Trail:Clone()
  138. Trail9.Parent = Character
  139. Trail9.Attachment0 = A3
  140. Trail9.Attachment1 = A5
  141. Trail9.Color = TrailSettings.Color2
  142. local FT = Trail:Clone()
  143. FT.Parent = Character
  144. FT.Attachment0 = A4
  145. FT.Attachment1 = A5
  146. FT.Color = TrailSettings.Color2
  147. else
  148. A4 = Instance.new('Attachment',Character['RightLowerLeg'])
  149. A4R = Instance.new('Attachment',Character['RightUpperLeg'])
  150. A5 = Instance.new('Attachment',Character['LeftLowerLeg'])
  151. A5R = Instance.new('Attachment',Character['LeftUpperLeg'])
  152. local Trail4 = Trail:Clone()
  153. Trail4.Parent = Character
  154. Trail4.Attachment1 = A4
  155. local Trail5 = Trail:Clone()
  156. Trail5.Parent = Character
  157. Trail5.Attachment1 = A5
  158. local Trail8 = Trail:Clone()
  159. Trail8.Parent = Character
  160. Trail8.Attachment0 = A2
  161. Trail8.Attachment1 = A4
  162. Trail8.Color = TrailSettings.Color2
  163. local Trail9 = Trail:Clone()
  164. Trail9.Parent = Character
  165. Trail9.Attachment0 = A3
  166. Trail9.Attachment1 = A5
  167. Trail9.Color = TrailSettings.Color2
  168. local FT = Trail:Clone()
  169. FT.Parent = Character
  170. FT.Attachment0 = A4
  171. FT.Attachment1 = A5
  172. FT.Color = TrailSettings.Color2
  173. --R15 Trails
  174. local Trail3R = Trail:Clone()
  175. Trail3R.Parent = Character
  176. Trail3R.Attachment1 = A4R
  177. local Trail4R = Trail:Clone()
  178. Trail4R.Parent = Character
  179. Trail4R.Attachment1 = A5R
  180. local Trail8 = Trail:Clone()
  181. Trail8.Parent = Character
  182. Trail8.Attachment0 = A2R
  183. Trail8.Attachment1 = A4R
  184. Trail8.Color = TrailSettings.Color2
  185. local Trail9 = Trail:Clone()
  186. Trail9.Parent = Character
  187. Trail9.Attachment0 = A3R
  188. Trail9.Attachment1 = A5R
  189. Trail9.Color = TrailSettings.Color2
  190. local FT2R = Trail:Clone()
  191. FT2R.Parent = Character
  192. FT2R.Attachment0 = A4R
  193. FT2R.Attachment1 = A5R
  194. FT2R.Color = TrailSettings.Color2
  195. end
  196. end
  197.  
  198. --All Body Function calling Both Functions
  199. AllBody = function()
  200. UpperBody()
  201. LowerBody()
  202. end
  203.  
  204. --Checking to make sure that Only some Variables are Selected else do All Body
  205. if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  206. TrailSettings.UpperBodyOnly = false
  207. TrailSettings.LowerBodyOnly = false
  208. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
  209. TrailSettings.UpperBodyOnly = false
  210. TrailSettings.LowerBodyOnly = false
  211. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
  212. TrailSettings.UpperBodyOnly = false
  213. TrailSettings.LowerBodyOnly = false
  214. elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  215. TrailSettings.AllBody = true
  216. TrailSettings.UpperBodyOnly = false
  217. TrailSettings.LowerBodyOnly = false
  218. end
  219.  
  220. --Call Trail Functions
  221. if TrailSettings.UpperBodyOnly == true then
  222. UpperBody()
  223. print('Called Upper Body Trail')
  224. elseif TrailSettings.LowerBodyOnly == true then
  225. LowerBody()
  226. print('Called Lower Body Trail')
  227. elseif TrailSettings.AllBody == true then
  228. AllBody()
  229. print('Called Full Body Trail')
  230. end
  231.  
  232. --Trails for Accessories
  233. if TrailSettings.Accessories == true then
  234. for Index,Item in pairs(Character:GetChildren()) do
  235. if Item:IsA'Accessory' then
  236. local AA = Instance.new('Attachment',Item.Handle)
  237. local ATrail = Trail:Clone()
  238. ATrail.Parent = Character
  239. ATrail.Attachment1 = AA
  240. end
  241. end
  242. end
  243.  
  244. --Extras
  245. if TrailSettings.Extras == true then
  246. --Making an Invisible Platform Part
  247. local a = Instance.new('Part',Character)
  248. a.CanCollide = false
  249. a.Size = Vector3.new(2,.2,2)
  250. a.Transparency = 1
  251.  
  252. --Constantly putting it under your feet
  253. if TrailSettings.R15 == false then
  254. spawn(function()
  255. game:GetService('RunService').RenderStepped:connect(function()
  256. a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0)
  257. end)
  258. end)
  259. else
  260. spawn(function()
  261. game:GetService('RunService').RenderStepped:connect(function()
  262. a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0)
  263. end)
  264. end)
  265. end
  266.  
  267. --Make a Trail from both feet to the Platform
  268. spawn(function()
  269. repeat wait() until Trail
  270. local AB = Instance.new('Attachment',a)
  271. local ABT = Trail:Clone()
  272. ABT.Parent = Character
  273. ABT.Attachment0 = A4
  274. ABT.Attachment1 = AB
  275. ABT.Color = TrailSettings.Color2
  276. local ABT2 = Trail:Clone()
  277. ABT2.Parent = Character
  278. ABT2.Attachment0 = A5
  279. ABT2.Attachment1 = AB
  280. ABT2.Color = TrailSettings.Color2
  281. end)
  282. end
  283.  
  284. Effects = { }
  285. local Player = game.Players.localPlayer
  286. local Character = Player.Character
  287. local Humanoid = Character.Humanoid
  288. local Mouse = Player:GetMouse()
  289. local LeftArm = Character["Left Arm"]
  290. local RightArm = Character["Right Arm"]
  291. local LeftLeg = Character["Left Leg"]
  292. local RightLeg = Character["Right Leg"]
  293. local Head = Character.Head
  294. local Torso = Character.Torso
  295. local Camera = game.Workspace.CurrentCamera
  296. local RootPart = Character.HumanoidRootPart
  297. local RootJoint = RootPart.RootJoint
  298. local attack = false
  299. local Anim = 'Idle'
  300. local attacktype = 1
  301. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  302. local velocity = RootPart.Velocity.y
  303. local sine = 0
  304. local change = 1
  305. local Create = LoadLibrary("RbxUtility").Create
  306. local sick = Instance.new("Sound",Character.Torso)
  307. sick.SoundId = "rbxassetid://869000977"
  308. sick.Looped = true
  309. sick.Pitch = 1
  310. sick.Volume = 1
  311. sick:Play()
  312.  
  313. local m = Create("Model"){
  314. Parent = Character,
  315. Name = "WeaponModel",
  316. }
  317.  
  318. Humanoid.Animator.Parent = nil
  319. Character.Animate.Parent = nil
  320.  
  321. local newMotor = function(part0, part1, c0, c1)
  322. local w = Create('Motor'){
  323. Parent = part0,
  324. Part0 = part0,
  325. Part1 = part1,
  326. C0 = c0,
  327. C1 = c1,
  328. }
  329. return w
  330. end
  331.  
  332. function clerp(a, b, t)
  333. return a:lerp(b, t)
  334. end
  335.  
  336. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  337. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  338.  
  339. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  340. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  341. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  342. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  343. RootJoint.C1 = CFrame.new(0, 0, 0)
  344. RootJoint.C0 = CFrame.new(0, 0, 0)
  345. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  346. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  347.  
  348. local rarmc1 = RW.C1
  349. local larmc1 = LW.C1
  350. local rlegc1 = RH.C1
  351. local llegc1 = LH.C1
  352.  
  353. local resetc1 = false
  354.  
  355. function PlayAnimationFromTable(table, speed, bool)
  356. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  357. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  358. RW.C0 = clerp(RW.C0, table[3], speed)
  359. LW.C0 = clerp(LW.C0, table[4], speed)
  360. RH.C0 = clerp(RH.C0, table[5], speed)
  361. LH.C0 = clerp(LH.C0, table[6], speed)
  362. if bool == true then
  363. if resetc1 == false then
  364. resetc1 = true
  365. RootJoint.C1 = RootJoint.C1
  366. Torso.Neck.C1 = Torso.Neck.C1
  367. RW.C1 = rarmc1
  368. LW.C1 = larmc1
  369. RH.C1 = rlegc1
  370. LH.C1 = llegc1
  371. end
  372. end
  373. end
  374.  
  375. ArtificialHB = Create("BindableEvent", script){
  376. Parent = script,
  377. Name = "Heartbeat",
  378. }
  379.  
  380. script:WaitForChild("Heartbeat")
  381.  
  382. frame = 1 / 30
  383. tf = 0
  384. allowframeloss = false
  385. tossremainder = false
  386. lastframe = tick()
  387. script.Heartbeat:Fire()
  388.  
  389. game:GetService("RunService").Heartbeat:connect(function(s, p)
  390. tf = tf + s
  391. if tf >= frame then
  392. if allowframeloss then
  393. script.Heartbeat:Fire()
  394. lastframe = tick()
  395. else
  396. for i = 1, math.floor(tf / frame) do
  397. script.Heartbeat:Fire()
  398. end
  399. lastframe = tick()
  400. end
  401. if tossremainder then
  402. tf = 0
  403. else
  404. tf = tf - frame * math.floor(tf / frame)
  405. end
  406. end
  407. end)
  408.  
  409. function swait(num)
  410. if num == 0 or num == nil then
  411. ArtificialHB.Event:wait()
  412. else
  413. for i = 0, num do
  414. ArtificialHB.Event:wait()
  415. end
  416. end
  417. end
  418.  
  419. function RemoveOutlines(part)
  420. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  421. end
  422.  
  423. CFuncs = {
  424. Part = {
  425. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  426. local Part = Create("Part"){
  427. Parent = Parent,
  428. Reflectance = Reflectance,
  429. Transparency = Transparency,
  430. CanCollide = false,
  431. Locked = true,
  432. BrickColor = BrickColor.new(tostring(BColor)),
  433. Name = Name,
  434. Size = Size,
  435. Material = Material,
  436. }
  437. RemoveOutlines(Part)
  438. return Part
  439. end;
  440. };
  441.  
  442. Mesh = {
  443. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  444. local Msh = Create(Mesh){
  445. Parent = Part,
  446. Offset = OffSet,
  447. Scale = Scale,
  448. }
  449. if Mesh == "SpecialMesh" then
  450. Msh.MeshType = MeshType
  451. Msh.MeshId = MeshId
  452. end
  453. return Msh
  454. end;
  455. };
  456.  
  457. Weld = {
  458. Create = function(Parent, Part0, Part1, C0, C1)
  459. local Weld = Create("Weld"){
  460. Parent = Parent,
  461. Part0 = Part0,
  462. Part1 = Part1,
  463. C0 = C0,
  464. C1 = C1,
  465. }
  466. return Weld
  467. end;
  468. };
  469.  
  470. Sound = {
  471. Create = function(id, par, vol, pit)
  472. coroutine.resume(coroutine.create(function()
  473. local Sound = Create("Sound"){
  474. Volume = vol,
  475. Pitch = pit or 1,
  476. SoundId = "rbxassetid://" .. id,
  477. Parent = par or workspace,
  478. }
  479. Sound:play()
  480. game:GetService("Debris"):AddItem(Sound, 10)
  481. end))
  482. end;
  483. };
  484.  
  485. Decal = {
  486. Create = function(Color, Texture, Transparency, Name, Parent)
  487. local Decal = Create("Decal"){
  488. Color3 = Color,
  489. Texture = "rbxassetid://" .. Texture,
  490. Transparency = Transparency,
  491. Name = Name,
  492. Parent = Parent,
  493. }
  494. return Decal
  495. end;
  496. };
  497.  
  498. BillboardGui = {
  499. Create = function(Parent, Image, Position, Size)
  500. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  501. BillPar.CFrame = CFrame.new(Position)
  502. local Bill = Create("BillboardGui"){
  503. Parent = BillPar,
  504. Adornee = BillPar,
  505. Size = UDim2.new(1, 0, 1, 0),
  506. SizeOffset = Vector2.new(Size, Size),
  507. }
  508. local d = Create("ImageLabel", Bill){
  509. Parent = Bill,
  510. BackgroundTransparency = 1,
  511. Size = UDim2.new(1, 0, 1, 0),
  512. Image = "rbxassetid://" .. Image,
  513. }
  514. return BillPar
  515. end
  516. };
  517.  
  518. ParticleEmitter = {
  519. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  520. local Particle = Create("ParticleEmitter"){
  521. Parent = Parent,
  522. Color = ColorSequence.new(Color1, Color2),
  523. LightEmission = LightEmission,
  524. Size = Size,
  525. Texture = Texture,
  526. Transparency = Transparency,
  527. ZOffset = ZOffset,
  528. Acceleration = Accel,
  529. Drag = Drag,
  530. LockedToPart = LockedToPart,
  531. VelocityInheritance = VelocityInheritance,
  532. EmissionDirection = EmissionDirection,
  533. Enabled = Enabled,
  534. Lifetime = LifeTime,
  535. Rate = Rate,
  536. Rotation = Rotation,
  537. RotSpeed = RotSpeed,
  538. Speed = Speed,
  539. VelocitySpread = VelocitySpread,
  540. }
  541. return Particle
  542. end;
  543. };
  544.  
  545. CreateTemplate = {
  546.  
  547. };
  548. }
  549.  
  550. function rayCast(Position, Direction, Range, Ignore)
  551. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  552. end
  553.  
  554. FindNearestTorso = function(pos)
  555. local list = (game.Workspace:children())
  556. local torso = nil
  557. local dist = 1000
  558. local temp, human, temp2 = nil, nil, nil
  559. for x = 1, #list do
  560. temp2 = list[x]
  561. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  562. temp = temp2:findFirstChild("Torso")
  563. human = temp2:findFirstChild("Humanoid")
  564. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  565. local dohit = true
  566. if dohit == true then
  567. torso = temp
  568. dist = (temp.Position - pos).magnitude
  569. end
  570. end
  571. end
  572. end
  573. return torso, dist
  574. end
  575.  
  576. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  577. if hit.Parent == nil then
  578. return
  579. end
  580. local h = hit.Parent:FindFirstChild("Humanoid")
  581. for _, v in pairs(hit.Parent:children()) do
  582. if v:IsA("Humanoid") then
  583. h = v
  584. end
  585. end
  586. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  587. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  588. if hit.Parent.DebounceHit.Value == true then
  589. return
  590. end
  591. end
  592. local c = Create("ObjectValue"){
  593. Name = "creator",
  594. Value = game:service("Players").LocalPlayer,
  595. Parent = h,
  596. }
  597. game:GetService("Debris"):AddItem(c, .5)
  598. if HitSound ~= nil and HitPitch ~= nil then
  599. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  600. end
  601. local Damage = math.random(minim, maxim)
  602. local blocked = false
  603. local block = hit.Parent:findFirstChild("Block")
  604. if block ~= nil then
  605. if block.className == "IntValue" then
  606. if block.Value > 0 then
  607. blocked = true
  608. block.Value = block.Value - 1
  609. print(block.Value)
  610. end
  611. end
  612. end
  613. if blocked == false then
  614. h.Health = h.Health - Damage
  615. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  616. else
  617. h.Health = h.Health - (Damage / 2)
  618. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  619. end
  620. if Type == "Knockdown" then
  621. local hum = hit.Parent.Humanoid
  622. hum.PlatformStand = true
  623. coroutine.resume(coroutine.create(function(HHumanoid)
  624. swait(1)
  625. HHumanoid.PlatformStand = false
  626. end), hum)
  627. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  628. local bodvol = Create("BodyVelocity"){
  629. velocity = angle * knockback,
  630. P = 5000,
  631. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  632. Parent = hit,
  633. }
  634. local rl = Create("BodyAngularVelocity"){
  635. P = 3000,
  636. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  637. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  638. Parent = hit,
  639. }
  640. game:GetService("Debris"):AddItem(bodvol, .5)
  641. game:GetService("Debris"):AddItem(rl, .5)
  642. elseif Type == "Normal" then
  643. local vp = Create("BodyVelocity"){
  644. P = 500,
  645. maxForce = Vector3.new(math.huge, 0, math.huge),
  646. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  647. }
  648. if knockback > 0 then
  649. vp.Parent = hit.Parent.Torso
  650. end
  651. game:GetService("Debris"):AddItem(vp, .5)
  652. elseif Type == "Up" then
  653. local bodyVelocity = Create("BodyVelocity"){
  654. velocity = Vector3.new(0, 20, 0),
  655. P = 5000,
  656. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  657. Parent = hit,
  658. }
  659. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  660. elseif Type == "DarkUp" then
  661. coroutine.resume(coroutine.create(function()
  662. for i = 0, 1, 0.1 do
  663. swait()
  664. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  665. end
  666. end))
  667. local bodyVelocity = Create("BodyVelocity"){
  668. velocity = Vector3.new(0, 20, 0),
  669. P = 5000,
  670. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  671. Parent = hit,
  672. }
  673. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  674. elseif Type == "Snare" then
  675. local bp = Create("BodyPosition"){
  676. P = 2000,
  677. D = 100,
  678. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  679. position = hit.Parent.Torso.Position,
  680. Parent = hit.Parent.Torso,
  681. }
  682. game:GetService("Debris"):AddItem(bp, 1)
  683. elseif Type == "Freeze" then
  684. local BodPos = Create("BodyPosition"){
  685. P = 50000,
  686. D = 1000,
  687. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  688. position = hit.Parent.Torso.Position,
  689. Parent = hit.Parent.Torso,
  690. }
  691. local BodGy = Create("BodyGyro") {
  692. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  693. P = 20e+003,
  694. Parent = hit.Parent.Torso,
  695. cframe = hit.Parent.Torso.CFrame,
  696. }
  697. hit.Parent.Torso.Anchored = true
  698. coroutine.resume(coroutine.create(function(Part)
  699. swait(1.5)
  700. Part.Anchored = false
  701. end), hit.Parent.Torso)
  702. game:GetService("Debris"):AddItem(BodPos, 3)
  703. game:GetService("Debris"):AddItem(BodGy, 3)
  704. end
  705. local debounce = Create("BoolValue"){
  706. Name = "DebounceHit",
  707. Parent = hit.Parent,
  708. Value = true,
  709. }
  710. game:GetService("Debris"):AddItem(debounce, Delay)
  711. c = Create("ObjectValue"){
  712. Name = "creator",
  713. Value = Player,
  714. Parent = h,
  715. }
  716. game:GetService("Debris"):AddItem(c, .5)
  717. end
  718. end
  719.  
  720. function ShowDamage(Pos, Text, Time, Color)
  721. local Rate = (1 / 30)
  722. local Pos = (Pos or Vector3.new(0, 0, 0))
  723. local Text = (Text or "")
  724. local Time = (Time or 2)
  725. local Color = (Color or Color3.new(1, 0, 1))
  726. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  727. EffectPart.Anchored = true
  728. local BillboardGui = Create("BillboardGui"){
  729. Size = UDim2.new(3, 0, 3, 0),
  730. Adornee = EffectPart,
  731. Parent = EffectPart,
  732. }
  733. local TextLabel = Create("TextLabel"){
  734. BackgroundTransparency = 1,
  735. Size = UDim2.new(1, 0, 1, 0),
  736. Text = Text,
  737. Font = "SciFi",
  738. TextColor3 = Color,
  739. TextScaled = true,
  740. Parent = BillboardGui,
  741. }
  742. game.Debris:AddItem(EffectPart, (Time))
  743. EffectPart.Parent = game:GetService("Workspace")
  744. delay(0, function()
  745. local Frames = (Time / Rate)
  746. for Frame = 1, Frames do
  747. wait(Rate)
  748. local Percent = (Frame / Frames)
  749. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  750. TextLabel.TextTransparency = Percent
  751. end
  752. if EffectPart and EffectPart.Parent then
  753. EffectPart:Destroy()
  754. end
  755. end)
  756. end
  757.  
  758. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  759. for _, c in pairs(workspace:children()) do
  760. local hum = c:findFirstChild("Humanoid")
  761. if hum ~= nil then
  762. local head = c:findFirstChild("Torso")
  763. if head ~= nil then
  764. local targ = head.Position - Part.Position
  765. local mag = targ.magnitude
  766. if mag <= Magnitude and c.Name ~= Player.Name then
  767. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  768. end
  769. end
  770. end
  771. end
  772. end
  773.  
  774. --headlol----
  775. Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Hot pink","Handle",Vector3.new(1, 0.800000012, 2))
  776. HandleWeld=CFuncs.Weld.Create(m,Character["Head"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0050201416, -0.737044811, 0.0650024414, -0.999626577, 5.26573444e-21, -0.0273229256, 5.2506392e-21, 1, 6.24212331e-22, 0.0273229256, 4.80515498e-22, -0.999626577))
  777. CFuncs.Mesh.Create("SpecialMesh",Handle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11185882",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.800000012, 0.800000012))
  778. f=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Bright yellow","f",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  779. fWeld=CFuncs.Weld.Create(m,Handle,f,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0264434814, -0.524188995, -0.543628693, -0.999751627, 5.25372174e-21, 0.0222777594, -0.0194845516, -0.484811008, -0.874401748, 0.0108005032, -0.874619007, 0.484690607))
  780. CFuncs.Mesh.Create("SpecialMesh",f,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=118974072 ",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 1, 1))
  781. f=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Bright blue","f",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  782. fWeld=CFuncs.Weld.Create(m,Handle,f,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0264434814, -0.524188995, -0.543628693, -0.999751627, 5.25372174e-21, 0.0222777594, -0.0194845516, -0.484811008, -0.874401748, 0.0108005032, -0.874619007, 0.484690607))
  783. CFuncs.Mesh.Create("SpecialMesh",f,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=118974072 ",Vector3.new(0, 0, 0),Vector3.new(1.14999998, 0.99000001, 0.99000001))
  784. f=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0.89999997615814,"Really red","f",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  785. fWeld=CFuncs.Weld.Create(m,Handle,f,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.016456604, 0.539620876, 0.465080261, -0.999751627, 5.25372174e-21, 0.0222777594, 5.26573444e-21, 1, 4.80515498e-22, -0.0222777594, 5.97705948e-22, -0.999751627))
  786. CFuncs.Mesh.Create("SpecialMesh",f,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=134030318 ",Vector3.new(0, 0, 0),Vector3.new(1.03999996, 1.03999996, 1.03999996))
  787. f=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0.89999997615814,"New yeller","f",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  788. fWeld=CFuncs.Weld.Create(m,Handle,f,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.016456604, 0.539620876, 0.465080261, -0.999751627, 5.25372174e-21, 0.0222777594, 5.26573444e-21, 1, 4.80515498e-22, -0.0222777594, 5.97705948e-22, -0.999751627))
  789. CFuncs.Mesh.Create("SpecialMesh",f,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=134030318 ",Vector3.new(0, 0, 0),Vector3.new(1.01999998, 1.01999998, 1.01999998))
  790. f=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0.60000002384186,"Lime green","f",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  791. fWeld=CFuncs.Weld.Create(m,Handle,f,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.016456604, 0.539620876, 0.465080261, -0.999751627, 5.25372174e-21, 0.0222777594, 5.26573444e-21, 1, 4.80515498e-22, -0.0222777594, 5.97705948e-22, -0.999751627))
  792. CFuncs.Mesh.Create("SpecialMesh",f,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=134030318 ",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  793.  
  794.  
  795. EffectModel = Create("Model"){
  796. Parent = Character,
  797. Name = "Effects",
  798. }
  799.  
  800. Effects = {
  801. Block = {
  802. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  803. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  804. prt.Anchored = true
  805. prt.CFrame = cframe
  806. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  807. game:GetService("Debris"):AddItem(prt, 10)
  808. if Type == 1 or Type == nil then
  809. table.insert(Effects, {
  810. prt,
  811. "Block1",
  812. delay,
  813. x3,
  814. y3,
  815. z3,
  816. msh
  817. })
  818. elseif Type == 2 then
  819. table.insert(Effects, {
  820. prt,
  821. "Block2",
  822. delay,
  823. x3,
  824. y3,
  825. z3,
  826. msh
  827. })
  828. end
  829. end;
  830. };
  831.  
  832. Cylinder = {
  833. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  834. local prt = CFuncs.Part..Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  835. prt.Anchored = true
  836. prt.CFrame = cframe
  837. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  838. game:GetService("Debris"):AddItem(prt, 2)
  839. Effects[#Effects + 1] = {
  840. prt,
  841. "Cylinder",
  842. delay,
  843. x3,
  844. y3,
  845. z3
  846. }
  847. end;
  848. };
  849.  
  850. Head = {
  851. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  852. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  853. prt.Anchored = true
  854. prt.CFrame = cframe
  855. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  856. game:GetService("Debris"):AddItem(prt, 10)
  857. table.insert(Effects, {
  858. prt,
  859. "Cylinder",
  860. delay,
  861. x3,
  862. y3,
  863. z3,
  864. msh
  865. })
  866. end;
  867. };
  868.  
  869. Sphere = {
  870. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  871. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  872. prt.Anchored = true
  873. prt.CFrame = cframe
  874. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  875. game:GetService("Debris"):AddItem(prt, 10)
  876. table.insert(Effects, {
  877. prt,
  878. "Cylinder",
  879. delay,
  880. x3,
  881. y3,
  882. z3,
  883. msh
  884. })
  885. end;
  886. };
  887.  
  888. Elect = {
  889. Create = function(cff, x, y, z)
  890. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  891. prt.Anchored = true
  892. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  893. prt.CFrame = CFrame.new(prt.Position)
  894. game:GetService("Debris"):AddItem(prt, 2)
  895. local xval = math.random() / 2
  896. local yval = math.random() / 2
  897. local zval = math.random() / 2
  898. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  899. table.insert(Effects, {
  900. prt,
  901. "Elec",
  902. 0.1,
  903. x,
  904. y,
  905. z,
  906. xval,
  907. yval,
  908. zval
  909. })
  910. end;
  911.  
  912. };
  913.  
  914. Ring = {
  915. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  916. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  917. prt.Anchored = true
  918. prt.CFrame = cframe
  919. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  920. game:GetService("Debris"):AddItem(prt, 10)
  921. table.insert(Effects, {
  922. prt,
  923. "Cylinder",
  924. delay,
  925. x3,
  926. y3,
  927. z3,
  928. msh
  929. })
  930. end;
  931. };
  932.  
  933.  
  934. Wave = {
  935. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  936. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  937. prt.Anchored = true
  938. prt.CFrame = cframe
  939. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  940. game:GetService("Debris"):AddItem(prt, 10)
  941. table.insert(Effects, {
  942. prt,
  943. "Cylinder",
  944. delay,
  945. x3,
  946. y3,
  947. z3,
  948. msh
  949. })
  950. end;
  951. };
  952.  
  953. Break = {
  954. Create = function(brickcolor, cframe, x1, y1, z1)
  955. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  956. prt.Anchored = true
  957. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  958. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  959. local num = math.random(10, 50) / 1000
  960. game:GetService("Debris"):AddItem(prt, 10)
  961. table.insert(Effects, {
  962. prt,
  963. "Shatter",
  964. num,
  965. prt.CFrame,
  966. math.random() - math.random(),
  967. 0,
  968. math.random(50, 100) / 100
  969. })
  970. end;
  971. };
  972.  
  973. Fire = {
  974. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  975. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  976. prt.Anchored = true
  977. prt.CFrame = cframe
  978. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  979. game:GetService("Debris"):AddItem(prt, 10)
  980. table.insert(Effects, {
  981. prt,
  982. "Fire",
  983. delay,
  984. 1,
  985. 1,
  986. 1,
  987. msh
  988. })
  989. end;
  990. };
  991.  
  992. FireWave = {
  993. Create = function(brickcolor, cframe, x1, y1, z1)
  994. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  995. prt.Anchored = true
  996. prt.CFrame = cframe
  997. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  998. local d = Create("Decal"){
  999. Parent = prt,
  1000. Texture = "rbxassetid://26356434",
  1001. Face = "Top",
  1002. }
  1003. local d = Create("Decal"){
  1004. Parent = prt,
  1005. Texture = "rbxassetid://26356434",
  1006. Face = "Bottom",
  1007. }
  1008. game:GetService("Debris"):AddItem(prt, 10)
  1009. table.insert(Effects, {
  1010. prt,
  1011. "FireWave",
  1012. 1,
  1013. 30,
  1014. math.random(400, 600) / 100,
  1015. msh
  1016. })
  1017. end;
  1018. };
  1019.  
  1020. Lightning = {
  1021. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1022. local magz = (p0 - p1).magnitude
  1023. local curpos = p0
  1024. local trz = {
  1025. -ofs,
  1026. ofs
  1027. }
  1028. for i = 1, tym do
  1029. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1030. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1031. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1032. li.Material = "Neon"
  1033. if tym == i then
  1034. local magz2 = (curpos - p1).magnitude
  1035. li.Size = Vector3.new(th, th, magz2)
  1036. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1037. table.insert(Effects, {
  1038. li,
  1039. "Disappear",
  1040. last
  1041. })
  1042. else
  1043. do
  1044. do
  1045. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1046. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1047. game.Debris:AddItem(li, 10)
  1048. table.insert(Effects, {
  1049. li,
  1050. "Disappear",
  1051. last
  1052. })
  1053. end
  1054. end
  1055. end
  1056. end
  1057. end
  1058. };
  1059.  
  1060. EffectTemplate = {
  1061.  
  1062. };
  1063. }
  1064.  
  1065. function attackone()
  1066. attack = true
  1067. for i = 0, 1, 0.1 do
  1068. swait()
  1069. PlayAnimationFromTable({
  1070. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1071. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1072. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1073. CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1074. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1075. CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1076. }, .3, false)
  1077. end
  1078. attack = false
  1079. end
  1080.  
  1081. Mouse.Button1Down:connect(function()
  1082. if attack == false and attacktype == 1 then
  1083. attackone()
  1084. end
  1085. end)
  1086.  
  1087. Mouse.KeyDown:connect(function(k)
  1088. k = k:lower()
  1089. if attack == false and k == '' then
  1090.  
  1091. end
  1092. end)
  1093.  
  1094. while true do
  1095. swait()
  1096. for i, v in pairs(Character:GetChildren()) do
  1097. if v:IsA("Part") then
  1098. v.Material = "SmoothPlastic"
  1099. elseif v:IsA("Accessory") then
  1100. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1101. end
  1102. end
  1103. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1104. velocity = RootPart.Velocity.y
  1105. sine = sine + change
  1106. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1107. if RootPart.Velocity.y > 1 and hit == nil then
  1108. Anim = "Jump"
  1109. if attack == false then
  1110. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1111. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1112. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1113. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1114. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1115. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1116. end
  1117. elseif RootPart.Velocity.y < -1 and hit == nil then
  1118. Anim = "Fall"
  1119. if attack == false then
  1120. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1121. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1122. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1123. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1124. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1125. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1126. end
  1127. elseif Torsovelocity < 1 and hit ~= nil then
  1128. Anim = "Idle"
  1129. if attack == false then
  1130. change = 1
  1131. PlayAnimationFromTable({
  1132. CFrame.new(0.0305537544, 0.101244226, -0.110436231, 0.751921654, -2.69948202e-07, 0.659252584, 2.48371833e-07, 1, 1.26191509e-07, -0.659252584, 6.88536517e-08, 0.751921654) * CFrame.new(0, -0.1 + .1 * math.cos(sine / 20), 0) * CFrame.Angles(0, 0, 0),
  1133. CFrame.new(0.133692384, 1.49995291, -0.122152172, 0.751921654, 0.118821487, -0.648456573, -2.85284614e-07, 0.983623922, 0.18023634, 0.659252584, -0.135523424, 0.739608109) * CFrame.Angles(math.rad(0 + 1 * math.cos(sine / 20)), 0, 0),
  1134. CFrame.new(1.56342208, 0.082565181, 0.184068531, 0.944978952, -0.210362762, -0.250524461, 0.217591718, 0.976039171, 0.00118678785, 0.244271994, -0.0556335375, 0.968109608) * CFrame.new(0, 0, 0 - 0.1 * math.cos(sine / 20)) * CFrame.Angles(0 + 0.1 * math.cos(sine / 20), 0, 0),
  1135. CFrame.new(-1.43761444, 0.138237804, 0.339363664, 0.86690402, 0.278344274, 0.413524032, -0.320227653, 0.946727693, 0.0340739228, -0.3820104, -0.161960647, 0.909855604) * CFrame.new(0, 0, 0) * CFrame.new(0, 0, 0 - 0.1 * math.cos(sine / 20)) * CFrame.Angles(0 + 0.1 * math.cos(sine / 20), 0, 0),
  1136. CFrame.new(0.620094717, -1.99999762, -0.161182314, 0.97460556, -0.0876395851, -0.206067026, 0.0712375641, 0.993768871, -0.0857243761, 0.21229586, 0.0688677281, 0.974775851) * CFrame.new(0, 0, 0) * CFrame.new(0 - 0.01 * math.cos(sine / 20), 0 - .1 * math.cos(sine / 20), 0) * CFrame.Angles(0 + 0.02 * math.cos(sine / 20), 0, 0 - 0.01 * math.cos(sine / 20)),
  1137. CFrame.new(-0.646371901, -1.99999869, 0.0849364698, 0.992579937, 0.118687555, 0.0264309049, -0.120671012, 0.988230288, 0.0940183029, -0.0149610043, -0.0965101048, 0.995219648) * CFrame.new(0 + 0.01 * math.cos(sine / 20), 0 - .1 * math.cos(sine / 20), 0) * CFrame.Angles(0 - 0.02 * math.cos(sine / 20), 0, 0 + 0.01 * math.cos(sine / 20)),
  1138. }, .3, false)
  1139. end
  1140.  
  1141. elseif Torsovelocity > 2 and hit ~= nil then
  1142. Anim = "Walk"
  1143. if attack == false then
  1144. Character.Humanoid.WalkSpeed = 110
  1145. PlayAnimationFromTable({
  1146. CFrame.new(0, -0.0193441566, -0.137761548, 1, 0, 0, 0, 0.961308897, 0.275472969, 0, -0.275472969, 0.961308897) * CFrame.new(0, 0+ .1 * math.cos((sine) / 2), 0) * CFrame.Angles(0, 0, 0),
  1147. CFrame.new(0, 1.44159341, 0.0451771915, 1, 0, 0, 0, 0.98646307, -0.163984656, 0, 0.163984656, 0.98646307) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1148. CFrame.new(1.63363111, 0.0754526258, -2.72151652e-007, 0.985570133, -0.16926825, 1.56980732e-007, 0.16926825, 0.985570133, 2.38418579e-007, -1.86264515e-007, -1.49011612e-007, 1.00000024) * CFrame.new(0-.2+.5 * math.cos((sine) / 4), 0.2+ .65 * math.cos((sine) / 2), 0+ 1.1 * math.cos((sine) / 4)) * CFrame.Angles(math.rad(0- 120 * math.cos((sine) / 4)),0, math.rad(0+ 60 * math.cos((sine) / 4))),
  1149. CFrame.new(-1.61827064, 0.111134544, 1.51569429e-006, 0.978242338, 0.207465827, 7.76345075e-007, -0.207465842, 0.978242397, -2.41398811e-006, -1.25542283e-006, 2.20537186e-006, 1.00000012) * CFrame.new(0.2+.5 * math.cos((sine) / 4), 0.2+ .65 * math.cos((sine) / 2), 0- 1.1 * math.cos((sine) / 4)) * CFrame.Angles(math.rad(0+ 120 * math.cos((sine) / 4)), 0, math.rad(0+ 60 * math.cos((sine) / 4))),
  1150. CFrame.new(0.5, -2.00000334, 2.67028881e-005, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, 0+ .4 * math.cos((sine) / 2), 0 + 1 * math.cos((sine) / 4)) * CFrame.Angles(math.rad(0 - 50 * math.cos((sine) / 4)), math.rad(0), math.rad(0)),
  1151. CFrame.new(-0.5, -2.00000334, 2.67028881e-005, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, 0+ .4 * math.cos((sine) / 2), 0 - 1 * math.cos((sine) / 4)) * CFrame.Angles(math.rad(0 + 50 * math.cos((sine) / 4)), math.rad(0), math.rad(0)),
  1152. }, .9, false)
  1153. end
  1154. end
  1155. if 0 < #Effects then
  1156. for e = 1, #Effects do
  1157. if Effects[e] ~= nil then
  1158. local Thing = Effects[e]
  1159. if Thing ~= nil then
  1160. local Part = Thing[1]
  1161. local Mode = Thing[2]
  1162. local Delay = Thing[3]
  1163. local IncX = Thing[4]
  1164. local IncY = Thing[5]
  1165. local IncZ = Thing[6]
  1166. if Thing[2] == "Shoot" then
  1167. local Look = Thing[1]
  1168. local move = 30
  1169. if Thing[8] == 3 then
  1170. move = 10
  1171. end
  1172. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1173. if Thing[10] ~= nil then
  1174. da = pos
  1175. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1176. cfa = CFrame.new(Thing[4], pos)
  1177. tehCF = cfa:lerp(cf2, 0.2)
  1178. Thing[1] = tehCF.lookVector
  1179. end
  1180. local mag = (Thing[4] - pos).magnitude
  1181. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  1182. if Thing[8] == 2 then
  1183. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  1184. end
  1185. Thing[4] = Thing[4] + Look * move
  1186. Thing[3] = Thing[3] - 1
  1187. if 2 < Thing[5] then
  1188. Thing[5] = Thing[5] - 0.3
  1189. Thing[6] = Thing[6] - 0.3
  1190. end
  1191. if hit ~= nil then
  1192. Thing[3] = 0
  1193. if Thing[8] == 1 or Thing[8] == 3 then
  1194. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1195. else
  1196. if Thing[8] == 2 then
  1197. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1198. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1199. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1200. ref.Anchored = true
  1201. ref.CFrame = CFrame.new(pos)
  1202. CFuncs["Sound"].Create("", ref, 1, 1.2)
  1203. game:GetService("Debris"):AddItem(ref, 0.2)
  1204. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  1205. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  1206. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1207. end
  1208. end
  1209. end
  1210. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1211. ref.Anchored = true
  1212. ref.CFrame = CFrame.new(pos)
  1213. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1214. game:GetService("Debris"):AddItem(ref, 1)
  1215. end
  1216. if Thing[3] <= 0 then
  1217. table.remove(Effects, e)
  1218. end
  1219. end
  1220. do
  1221. do
  1222. if Thing[2] == "FireWave" then
  1223. if Thing[3] <= Thing[4] then
  1224. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1225. Thing[3] = Thing[3] + 1
  1226. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1227. else
  1228. Part.Parent = nil
  1229. table.remove(Effects, e)
  1230. end
  1231. end
  1232. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1233. if Thing[1].Transparency <= 1 then
  1234. if Thing[2] == "Block1" then
  1235. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1236. Mesh = Thing[7]
  1237. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1238. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1239. else
  1240. if Thing[2] == "Block2" then
  1241. Thing[1].CFrame = Thing[1].CFrame
  1242. Mesh = Thing[7]
  1243. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1244. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1245. else
  1246. if Thing[2] == "Fire" then
  1247. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1248. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1249. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1250. else
  1251. if Thing[2] == "Cylinder" then
  1252. Mesh = Thing[7]
  1253. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1254. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1255. else
  1256. if Thing[2] == "Blood" then
  1257. Mesh = Thing[7]
  1258. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1259. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1260. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1261. else
  1262. if Thing[2] == "Elec" then
  1263. Mesh = Thing[10]
  1264. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1265. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1266. else
  1267. if Thing[2] == "Disappear" then
  1268. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1269. end
  1270. end
  1271. end
  1272. end
  1273. end
  1274. end
  1275. end
  1276. else
  1277. Part.Parent = nil
  1278. table.remove(Effects, e)
  1279. end
  1280. end
  1281. end
  1282. end
  1283. end
  1284. end
  1285. end
  1286. end
  1287. end
  1288.  
  1289. music = Instance.new("Sound", Torso)
  1290. music.SoundId = "http://www.roblox.com/asset/?id=226284753"
  1291. music.Volume = math.huge
  1292. music.Looped = true
  1293. wait(0.1)
  1294. music:Play()
Add Comment
Please, Sign In to add comment