Orangeplayer1431

spinna

Sep 20th, 2017
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.03 KB | None | 0 0
  1. --[["Niak niak"
  2. N3xul by Salvo_Starly.
  3. A
  4. A A
  5. A C A
  6. A A
  7. A
  8. ]]--
  9. wait(1 / 60)
  10. Effects = { }
  11. local Player = game.Players.localPlayer
  12. local Character = Player.Character
  13. local Humanoid = Character.Humanoid
  14. local Mouse = Player:GetMouse()
  15. local LeftArm = Character["Left Arm"]
  16. local RightArm = Character["Right Arm"]
  17. local LeftLeg = Character["Left Leg"]
  18. local RightLeg = Character["Right Leg"]
  19. local Head = Character.Head
  20. local Torso = Character.Torso
  21. local Camera = game.Workspace.CurrentCamera
  22. local RootPart = Character.HumanoidRootPart
  23. local RootJoint = RootPart.RootJoint
  24. local attack = false
  25. local Anim = 'Idle'
  26. local attacktype = 1
  27. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  28. local velocity = RootPart.Velocity.y
  29. local sine = 0
  30. local change = 1
  31. local doe = 0
  32. local value = 0
  33. local N3x = false
  34. local Create = LoadLibrary("RbxUtility").Create
  35. Humanoid.JumpPower = 0
  36. Humanoid.WalkSpeed = 22
  37. local m = Create("Model"){
  38. Parent = Character,
  39. Name = "WeaponModel",
  40. }
  41.  
  42. Humanoid.Animator.Parent = nil
  43. Character.Animate.Parent = nil
  44.  
  45. local newMotor = function(part0, part1, c0, c1)
  46. local w = Create('Motor'){
  47. Parent = part0,
  48. Part0 = part0,
  49. Part1 = part1,
  50. C0 = c0,
  51. C1 = c1,
  52. }
  53. return w
  54. end
  55.  
  56. function clerp(a, b, t)
  57. return a:lerp(b, t)
  58. end
  59.  
  60. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  61. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  62.  
  63. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  64. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  65. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  66. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  67. RootJoint.C1 = CFrame.new(0, 0, 0)
  68. RootJoint.C0 = CFrame.new(0, 0, 0)
  69. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  70. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  71.  
  72. local rarmc1 = RW.C1
  73. local larmc1 = LW.C1
  74. local rlegc1 = RH.C1
  75. local llegc1 = LH.C1
  76.  
  77. local resetc1 = false
  78.  
  79. function PlayAnimationFromTable(table, speed, bool)
  80. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  81. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  82. RW.C0 = clerp(RW.C0, table[3], speed)
  83. LW.C0 = clerp(LW.C0, table[4], speed)
  84. RH.C0 = clerp(RH.C0, table[5], speed)
  85. LH.C0 = clerp(LH.C0, table[6], speed)
  86. if bool == true then
  87. if resetc1 == false then
  88. resetc1 = true
  89. RootJoint.C1 = RootJoint.C1
  90. Torso.Neck.C1 = Torso.Neck.C1
  91. RW.C1 = rarmc1
  92. LW.C1 = larmc1
  93. RH.C1 = rlegc1
  94. LH.C1 = llegc1
  95. end
  96. end
  97. end
  98.  
  99. ArtificialHB = Create("BindableEvent", script){
  100. Parent = script,
  101. Name = "Heartbeat",
  102. }
  103.  
  104. script:WaitForChild("Heartbeat")
  105.  
  106. frame = 1 / 30
  107. tf = 0
  108. allowframeloss = false
  109. tossremainder = false
  110. lastframe = tick()
  111. script.Heartbeat:Fire()
  112.  
  113. game:GetService("RunService").Heartbeat:connect(function(s, p)
  114. tf = tf + s
  115. if tf >= frame then
  116. if allowframeloss then
  117. script.Heartbeat:Fire()
  118. lastframe = tick()
  119. else
  120. for i = 1, math.floor(tf / frame) do
  121. script.Heartbeat:Fire()
  122. end
  123. lastframe = tick()
  124. end
  125. if tossremainder then
  126. tf = 0
  127. else
  128. tf = tf - frame * math.floor(tf / frame)
  129. end
  130. end
  131. end)
  132.  
  133. function swait(num)
  134. if num == 0 or num == nil then
  135. ArtificialHB.Event:wait()
  136. else
  137. for i = 0, num do
  138. ArtificialHB.Event:wait()
  139. end
  140. end
  141. end
  142.  
  143. function RemoveOutlines(part)
  144. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  145. end
  146.  
  147. CFuncs = {
  148. ["Part"] = {
  149. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  150. local Part = Create("Part"){
  151. Parent = Parent,
  152. Reflectance = Reflectance,
  153. Transparency = Transparency,
  154. CanCollide = false,
  155. Locked = true,
  156. BrickColor = BrickColor.new(tostring(BColor)),
  157. Name = Name,
  158. Size = Size,
  159. Material = Material,
  160. }
  161. RemoveOutlines(Part)
  162. return Part
  163. end;
  164. };
  165.  
  166. ["Mesh"] = {
  167. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  168. local Msh = Create(Mesh){
  169. Parent = Part,
  170. Offset = OffSet,
  171. Scale = Scale,
  172. }
  173. if Mesh == "SpecialMesh" then
  174. Msh.MeshType = MeshType
  175. Msh.MeshId = MeshId
  176. end
  177. return Msh
  178. end;
  179. };
  180.  
  181. ["Mesh"] = {
  182. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  183. local Msh = Create(Mesh){
  184. Parent = Part,
  185. Offset = OffSet,
  186. Scale = Scale,
  187. }
  188. if Mesh == "SpecialMesh" then
  189. Msh.MeshType = MeshType
  190. Msh.MeshId = MeshId
  191. end
  192. return Msh
  193. end;
  194. };
  195.  
  196. ["Weld"] = {
  197. Create = function(Parent, Part0, Part1, C0, C1)
  198. local Weld = Create("Weld"){
  199. Parent = Parent,
  200. Part0 = Part0,
  201. Part1 = Part1,
  202. C0 = C0,
  203. C1 = C1,
  204. }
  205. return Weld
  206. end;
  207. };
  208.  
  209. ["Sound"] = {
  210. Create = function(id, par, vol, pit)
  211. coroutine.resume(coroutine.create(function()
  212. local S = Create("Sound"){
  213. Volume = vol,
  214. Pitch = pit or 1,
  215. SoundId = id,
  216. Parent = par or workspace,
  217. }
  218. wait()
  219. S:play()
  220. game:GetService("Debris"):AddItem(S, 6)
  221. end))
  222. end;
  223. };
  224.  
  225. ["ParticleEmitter"] = {
  226. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  227. local fp = Create("ParticleEmitter"){
  228. Parent = Parent,
  229. Color = ColorSequence.new(Color1, Color2),
  230. LightEmission = LightEmission,
  231. Size = Size,
  232. Texture = Texture,
  233. Transparency = Transparency,
  234. ZOffset = ZOffset,
  235. Acceleration = Accel,
  236. Drag = Drag,
  237. LockedToPart = LockedToPart,
  238. VelocityInheritance = VelocityInheritance,
  239. EmissionDirection = EmissionDirection,
  240. Enabled = Enabled,
  241. Lifetime = LifeTime,
  242. Rate = Rate,
  243. Rotation = Rotation,
  244. RotSpeed = RotSpeed,
  245. Speed = Speed,
  246. VelocitySpread = VelocitySpread,
  247. }
  248. return fp
  249. end;
  250. };
  251.  
  252. CreateTemplate = {
  253.  
  254. };
  255. }
  256.  
  257. New = function(Object, Parent, Name, Data)
  258. local Object = Instance.new(Object)
  259. for Index, Value in pairs(Data or {}) do
  260. Object[Index] = Value
  261. end
  262. Object.Parent = Parent
  263. Object.Name = Name
  264. return Object
  265. end
  266.  
  267. Handle = New("Part",m,"Handle",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.699999988, 0.400000006, 0.699999988),CFrame = CFrame.new(-34.8798256, 3.31016231, 9.30002022, 0, 1, 0, 0.500005305, 0, 0.866033554, 0.866033554, 0, -0.500005305),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
  268. moter = New("Weld",Handle,"mot",{Part0 = RootPart,Part1 = Handle,})
  269. Hitbox = New("Part",m,"Hitbox",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(5, 0.400000006, 5),CFrame = CFrame.new(-17.6798229, 5.28994846, 11.4285469, 0, 1, 0, 0, 0, 1.00002098, 1.00002098, 0, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
  270. mot = New("Weld",Hitbox,"mot",{Part0 = Hitbox,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1.00000095, 1, 0, 0, 0, 1.00000095, 0),C1 = CFrame.new(-0.0250005722, 0, -0.0433020592, 0, 0.500004888, 0.866034091, 1, 0, 0, 0, 0.866034091, -0.500004888),})
  271. FidgetSpinnerMesh = New("SpecialMesh",Hitbox,"FidgetSpinnerMesh",{Offset = Vector3.new(0, 0, -0.135000005),Scale = Vector3.new(12, 25, 12),MeshId = "rbxassetid://785024366",MeshType = Enum.MeshType.FileMesh,TextureId = "http://www.roblox.com/asset/?id=165961571",})
  272. SpinnerWeightOverlay = New("Decal",Hitbox,"SpinnerWeightOverlay",{Face = Enum.NormalId.Top,Texture = "rbxassetid://785492382",})
  273.  
  274. for _,v in pairs(m:children()) do
  275. if v:IsA("Part") then
  276. v.CanCollide = false
  277. end
  278. end
  279.  
  280. ScreenGui = New("ScreenGui",Player.PlayerGui,"ScreenGui",{})
  281. Frame = New("Frame",ScreenGui,"Frame",{Size = UDim2.new(0, 150, 0, 200),Position = UDim2.new(1,0,.5,0),AnchorPoint = Vector2.new(1,0)})
  282. ColourLabel = New("TextLabel",Frame,"ColourLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Size = UDim2.new(1, 0, 0.1, 0),Text = "Spinner BrickColor"})
  283. BrickColorBox = New("TextBox",Frame,"BrickColorBox",{Size = UDim2.new(0.8, 0, 0.1, 0),Position = UDim2.new(.1,0,.1,0),Text = "(BrickColor here)"})
  284. TextureBox = New("TextBox",Frame,"TextureBox",{Size = UDim2.new(0.8, 0, 0.1, 0),Position = UDim2.new(.1,0,.3,0),Text = "(Decal ID here)"})
  285. TextureLabel = New("TextLabel",Frame,"TextureLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Size = UDim2.new(1, 0, 0.1, 0),Position = UDim2.new(0,0,.2,0),Text = "Spinner Texture"})
  286. RefTraLabel = New("TextLabel",Frame,"RefTraLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Size = UDim2.new(1, 0, 0.1, 0),Position = UDim2.new(0,0,.4,0),Text = "Reflect/Transparent"})
  287. ReflectBox = New("TextBox",Frame,"ReflectBox",{Size = UDim2.new(0.4, 0, 0.1, 0),Position = UDim2.new(.1,0,.5,0),Text = "0"})
  288. TransBox = New("TextBox",Frame,"TransBox",{Size = UDim2.new(0.4, 0, 0.1, 0),Position = UDim2.new(.5,0,.5,0),Text = "0"})
  289. CloseButton = New("TextButton",ScreenGui,"CloseButton",{Size = UDim2.new(0, 50, 0, 25),Position = UDim2.new(),AnchorPoint = Vector2.new(1,1),Position = UDim2.new(1,0,.5,0),Text = "Close"})
  290.  
  291. CloseButton.MouseButton1Click:connect(function()
  292. if Frame.Visible == true then
  293. Frame.Visible = false
  294. CloseButton.Text = "Open"
  295. elseif Frame.Visible == false then
  296. Frame.Visible = true
  297. CloseButton.Text = "Close"
  298. end
  299. end)
  300.  
  301. TextureBox.Changed:connect(function()
  302. sprayid=tonumber(tostring(TextureBox.Text)) or 0
  303. FidgetSpinnerMesh.TextureId = "http://www.roblox.com/asset/?id="..tostring(sprayid-1)
  304. end)
  305.  
  306. BrickColorBox.Changed:connect(function()
  307. Hitbox.BrickColor = BrickColor.new(BrickColorBox.Text)
  308. FidgetSpinnerMesh.TextureId = ""
  309. end)
  310.  
  311. ReflectBox.Changed:connect(function()
  312. Hitbox.Reflectance = ReflectBox.Text
  313. end)
  314.  
  315. TransBox.Changed:connect(function()
  316. Hitbox.Transparency = TransBox.Text
  317. end)
  318.  
  319.  
  320. function rayCast(Position, Direction, Range, Ignore)
  321. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  322. end
  323.  
  324. FindNearestTorso = function(pos)
  325. local list = (game.Workspace:children())
  326. local torso = nil
  327. local dist = 1000
  328. local temp, human, temp2 = nil, nil, nil
  329. for x = 1, #list do
  330. temp2 = list[x]
  331. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  332. temp = temp2:findFirstChild("Torso")
  333. human = temp2:findFirstChild("Humanoid")
  334. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  335. local dohit = true
  336. if dohit == true then
  337. torso = temp
  338. dist = (temp.Position - pos).magnitude
  339. end
  340. end
  341. end
  342. end
  343. return torso, dist
  344. end
  345.  
  346. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  347. if hit.Parent == nil then
  348. return
  349. end
  350. local h = hit.Parent:FindFirstChild("Humanoid")
  351. for _, v in pairs(hit.Parent:children()) do
  352. if v:IsA("Humanoid") then
  353. h = v
  354. end
  355. end
  356. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil or h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  357.  
  358. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  359. if hit.Parent.DebounceHit.Value == true then
  360. return
  361. end
  362. end
  363. local c = Create("ObjectValue"){
  364. Name = "creator",
  365. Value = game:service("Players").LocalPlayer,
  366. Parent = h,
  367. }
  368. game:GetService("Debris"):AddItem(c, .5)
  369. if HitSound ~= nil and HitPitch ~= nil then
  370. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  371. end
  372. local Damage = math.random(minim, maxim)
  373. local blocked = false
  374. local block = hit.Parent:findFirstChild("Block")
  375. if block ~= nil then
  376. if block.className == "IntValue" then
  377. if block.Value > 0 then
  378. blocked = true
  379. block.Value = block.Value - 1
  380. print(block.Value)
  381. end
  382. end
  383. end
  384. if blocked == false then
  385. h.Health = h.Health - Damage
  386. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really red").Color)
  387. else
  388. h.Health = h.Health - (Damage / 2)
  389. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really red").Color)
  390. end
  391. if Type == "Knockdown" then
  392. local hum = hit.Parent.Humanoid
  393.  
  394. hum.PlatformStand = true
  395. coroutine.resume(coroutine.create(function(HHumanoid)
  396. swait(1)
  397. HHumanoid.PlatformStand = false
  398. end), hum)
  399. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  400. local bodvol = Create("BodyVelocity"){
  401. velocity = angle * knockback,
  402. P = 5000,
  403. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  404. Parent = hit,
  405. }
  406. local rl = Create("BodyAngularVelocity"){
  407. P = 3000,
  408. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  409. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  410. Parent = hit,
  411. }
  412. game:GetService("Debris"):AddItem(bodvol, .5)
  413. game:GetService("Debris"):AddItem(rl, .5)
  414. elseif Type == "Normal" then
  415. local vp = Create("BodyVelocity"){
  416. P = 500,
  417. maxForce = Vector3.new(math.huge, 0, math.huge),
  418. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  419. }
  420. if knockback > 0 then
  421. if hit == hit.Parent:findFirstChild("Torso") then
  422. vp.Parent = hit.Parent.Torso
  423. elseif hit == hit.Parent:findFirstChild("UpperTorso") then
  424. vp.Parent = hit.Parent.UpperYorso
  425. end
  426. end
  427. game:GetService("Debris"):AddItem(vp, .5)
  428. elseif Type == "Up" then
  429. local bodyVelocity = Create("BodyVelocity"){
  430. velocity = Vector3.new(0, 20, 0),
  431. P = 5000,
  432. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  433. Parent = hit,
  434. }
  435. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  436. elseif Type == "DarkUp" then
  437. coroutine.resume(coroutine.create(function()
  438. for i = 0, 1, 0.1 do
  439. swait()
  440. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  441. end
  442. end))
  443. local bodyVelocity = Create("BodyVelocity"){
  444. velocity = Vector3.new(0, 20, 0),
  445. P = 5000,
  446. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  447. Parent = hit,
  448. }
  449. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  450. elseif Type == "Snare" then
  451. local bp = Create("BodyPosition"){
  452. P = 2000,
  453. D = 100,
  454. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  455. }
  456. if hit == hit.Parent:findFirstChild("Torso") then
  457. bp.Parent = hit.Parent.Torso
  458. bp.position = hit.Parent.Torso.Position
  459. elseif hit == hit.Parent:findFirstChild("UpperTorso") then
  460. bp.Parent = hit.Parent.UpperYorso
  461. bp.position = hit.Parent.UpperYorso.Position
  462. end
  463. game:GetService("Debris"):AddItem(bp, 1)
  464. elseif Type == "Freeze" then
  465. local BodPos = Create("BodyPosition"){
  466. P = 50000,
  467. D = 1000,
  468. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  469. }
  470. if hit == hit.Parent:findFirstChild("Torso") then
  471. BodPos.Parent = hit.Parent.Torso
  472. BodPos.position = hit.Parent.Torso.Position
  473. elseif hit == hit.Parent:findFirstChild("UpperTorso") then
  474. BodPos.Parent = hit.Parent.UpperYorso
  475. BodPos.position = hit.Parent.Torso.Position
  476. end
  477. local BodGy = Create("BodyGyro") {
  478. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  479. P = 20e+003,
  480. Parent = hit.Parent.Torso,
  481. cframe = hit.Parent.Torso.CFrame,
  482. }
  483. if hit == hit.Parent:findFirstChild("Torso") then
  484. BodGy.Parent = hit.Parent.Torso
  485. BodGy.cframe = hit.Parent.Torso.CFrame
  486. hit.Parent.Torso.Anchored = true
  487. elseif hit == hit.Parent:findFirstChild("UpperTorso") then
  488. BodGy.Parent = hit.Parent.UpperYorso
  489. BodGy.cframe = hit.Parent.UpperYorso.CFrame
  490. hit.Parent.UpperTorso.Anchored = true
  491. end
  492. coroutine.resume(coroutine.create(function(Part)
  493. swait(1.5)
  494. Part.Anchored = false
  495. end), hit.Parent.Torso)
  496. game:GetService("Debris"):AddItem(BodPos, 3)
  497. game:GetService("Debris"):AddItem(BodGy, 3)
  498. end
  499. local debounce = Create("BoolValue"){
  500. Name = "DebounceHit",
  501. Parent = hit.Parent,
  502. Value = true,
  503. }
  504. game:GetService("Debris"):AddItem(debounce, Delay)
  505. c = Create("ObjectValue"){
  506. Name = "creator",
  507. Value = Player,
  508. Parent = h,
  509. }
  510. game:GetService("Debris"):AddItem(c, .5)
  511. end
  512. end
  513.  
  514. function ShowDamage(Pos, Text, Time, Color)
  515. local Rate = (1 / 30)
  516. local Pos = (Pos or Vector3.new(0, 0, 0))
  517. local Text = (Text or "")
  518. local Time = (Time or 2)
  519. local Color = (Color or Color3.new(1, 0, 1))
  520. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  521. EffectPart.Anchored = true
  522. local BillboardGui = Create("BillboardGui"){
  523. Size = UDim2.new(3, 0, 3, 0),
  524. Adornee = EffectPart,
  525. Parent = EffectPart,
  526. }
  527. local TextLabel = Create("TextLabel"){
  528. BackgroundTransparency = 1,
  529. Size = UDim2.new(1, 0, 1, 0),
  530. Text = Text,
  531. Font = "SciFi",
  532. TextColor3 = Color,
  533. TextScaled = true,
  534. Parent = BillboardGui,
  535. }
  536. game.Debris:AddItem(EffectPart, (Time))
  537. EffectPart.Parent = game:GetService("Workspace")
  538. delay(0, function()
  539. local Frames = (Time / Rate)
  540. for Frame = 1, Frames do
  541. wait(Rate)
  542. local Percent = (Frame / Frames)
  543. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  544. TextLabel.TextTransparency = Percent
  545. end
  546. if EffectPart and EffectPart.Parent then
  547. EffectPart:Destroy()
  548. end
  549. end)
  550. end
  551.  
  552. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  553. for _, c in pairs(workspace:children()) do
  554. local hum = c:findFirstChild("Humanoid")
  555. if hum ~= nil then
  556. local head = c:findFirstChild("Torso")
  557. local heady = c:findFirstChild("UpperTorso")
  558. if head ~= nil then
  559. local targ = head.Position - Part.Position
  560. local mag = targ.magnitude
  561. if mag <= Magnitude and c.Name ~= Player.Name then
  562. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  563. end
  564. elseif heady ~= nil then
  565. local targ = heady.Position - Part.Position
  566. local mag = targ.magnitude
  567. if mag <= Magnitude and c.Name ~= Player.Name then
  568. Damage(heady, heady, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  569. end
  570. end
  571. end
  572. end
  573. end
  574. EffectModel = Create("Model"){
  575. Parent = Character,
  576. Name = "Effects",
  577. }
  578.  
  579. Effects = {
  580. Block = {
  581. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  582. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  583. prt.Anchored = true
  584. prt.CFrame = cframe
  585. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  586. game:GetService("Debris"):AddItem(prt, 10)
  587. if Type == 1 or Type == nil then
  588. table.insert(Effects, {
  589. prt,
  590. "Block1",
  591. delay,
  592. x3,
  593. y3,
  594. z3,
  595. msh
  596. })
  597. elseif Type == 2 then
  598. table.insert(Effects, {
  599. prt,
  600. "Block2",
  601. delay,
  602. x3,
  603. y3,
  604. z3,
  605. msh
  606. })
  607. end
  608. end;
  609. };
  610.  
  611. Cylinder = {
  612. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  613. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  614. prt.Anchored = true
  615. prt.CFrame = cframe
  616. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  617. game:GetService("Debris"):AddItem(prt, 10)
  618. table.insert(Effects, {
  619. prt,
  620. "Cylinder",
  621. delay,
  622. x3,
  623. y3,
  624. z3,
  625. msh
  626. })
  627. end;
  628. };
  629. Head = {
  630. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  631. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  632. prt.Anchored = true
  633. prt.CFrame = cframe
  634. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  635. game:GetService("Debris"):AddItem(prt, 10)
  636. table.insert(Effects, {
  637. prt,
  638. "Cylinder",
  639. delay,
  640. x3,
  641. y3,
  642. z3,
  643. msh
  644. })
  645. end;
  646. };
  647.  
  648. Sphere = {
  649. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  650. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  651. prt.Anchored = true
  652. prt.CFrame = cframe
  653. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  654. game:GetService("Debris"):AddItem(prt, 10)
  655. table.insert(Effects, {
  656. prt,
  657. "Cylinder",
  658. delay,
  659. x3,
  660. y3,
  661. z3,
  662. msh
  663. })
  664. end;
  665. };
  666.  
  667. Elect = {
  668. Create = function(cff, x, y, z)
  669. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  670. prt.Anchored = true
  671. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  672. prt.CFrame = CFrame.new(prt.Position)
  673. game:GetService("Debris"):AddItem(prt, 2)
  674. local xval = math.random() / 2
  675. local yval = math.random() / 2
  676. local zval = math.random() / 2
  677. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  678. table.insert(Effects, {
  679. prt,
  680. "Elec",
  681. 0.1,
  682. x,
  683. y,
  684. z,
  685. xval,
  686. yval,
  687. zval
  688. })
  689. end;
  690.  
  691. };
  692.  
  693. Ring = {
  694. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  695. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  696. prt.Anchored = true
  697. prt.CFrame = cframe
  698. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  699. game:GetService("Debris"):AddItem(prt, 10)
  700. table.insert(Effects, {
  701. prt,
  702. "Cylinder",
  703. delay,
  704. x3,
  705. y3,
  706. z3,
  707. msh
  708. })
  709. end;
  710. };
  711.  
  712.  
  713. Wave = {
  714. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  715. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  716. prt.Anchored = true
  717. prt.CFrame = cframe
  718. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  719. game:GetService("Debris"):AddItem(prt, 10)
  720. table.insert(Effects, {
  721. prt,
  722. "Cylinder",
  723. delay,
  724. x3,
  725. y3,
  726. z3,
  727. msh
  728. })
  729. end;
  730. };
  731.  
  732. Break = {
  733. Create = function(brickcolor, cframe, x1, y1, z1)
  734. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  735. prt.Anchored = true
  736. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  737. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  738. local num = math.random(10, 50) / 1000
  739. game:GetService("Debris"):AddItem(prt, 10)
  740. table.insert(Effects, {
  741. prt,
  742. "Shatter",
  743. num,
  744. prt.CFrame,
  745. math.random() - math.random(),
  746. 0,
  747. math.random(50, 100) / 100
  748. })
  749. end;
  750. };
  751.  
  752. Fire = {
  753. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  754. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  755. prt.Anchored = true
  756. prt.CFrame = cframe
  757. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  758. game:GetService("Debris"):AddItem(prt, 10)
  759. table.insert(Effects, {
  760. prt,
  761. "Fire",
  762. delay,
  763. 1,
  764. 1,
  765. 1,
  766. msh
  767. })
  768. end;
  769. };
  770.  
  771. FireWave = {
  772. Create = function(brickcolor, cframe, x1, y1, z1)
  773. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  774. prt.Anchored = true
  775. prt.CFrame = cframe
  776. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  777. local d = Create("Decal"){
  778. Parent = prt,
  779. Texture = "rbxassetid://26356434",
  780. Face = "Top",
  781. }
  782. local d = Create("Decal"){
  783. Parent = prt,
  784. Texture = "rbxassetid://26356434",
  785. Face = "Bottom",
  786. }
  787. game:GetService("Debris"):AddItem(prt, 10)
  788. table.insert(Effects, {
  789. prt,
  790. "FireWave",
  791. 1,
  792. 30,
  793. math.random(400, 600) / 100,
  794. msh
  795. })
  796. end;
  797. };
  798.  
  799. Lightning = {
  800. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  801. local magz = (p0 - p1).magnitude
  802. local curpos = p0
  803. local trz = {
  804. -ofs,
  805. ofs
  806. }
  807. for i = 1, tym do
  808. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  809. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  810. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  811. li.Material = "Neon"
  812. if tym == i then
  813. local magz2 = (curpos - p1).magnitude
  814. li.Size = Vector3.new(th, th, magz2)
  815. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  816. table.insert(Effects, {
  817. li,
  818. "Disappear",
  819. last
  820. })
  821. else
  822. do
  823. do
  824. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  825. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  826. game.Debris:AddItem(li, 10)
  827. table.insert(Effects, {
  828. li,
  829. "Disappear",
  830. last
  831. })
  832. end
  833. end
  834. end
  835. end
  836. end
  837. };
  838.  
  839. EffectTemplate = {
  840.  
  841. };
  842. }
  843.  
  844. function attackone()
  845. attack = true
  846. local con = Hitbox.Touched:connect(function(hit)
  847. Damage(Hitbox, hit, 15, 20, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149186", 1)
  848. end)
  849. for i = 0, 1, 0.1 do
  850. swait()
  851. PlayAnimationFromTable({
  852. CFrame.new(0.0247611944, 0.395599604, 0.0614117533, 0.999999762, -8.29032787e-10, 7.40431316e-09, -1.19500548e-21, 0.99379009, 0.111270897, -7.4505806e-09, -0.111270867, 0.993789852) * CFrame.new(0, 0+ .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  853. CFrame.new(1.03574791e-14, 1.51392162, 0.0322225429, 0.999999762, 6.8278716e-15, 1.0658141e-14, -6.66133815e-15, 0.999800324, -0.020144701, -1.0658141e-14, 0.0201447532, 0.999800086) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  854. CFrame.new(1.60279191, 0.868783593, 0.538308918, -0.518517137, -0.659889758, 0.543769836, -0.234152421, -0.502049327, -0.832536578, 0.822381794, -0.559009671, 0.105806865) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  855. CFrame.new(-1.67177606, 0.150433719, 2.42363035e-06, 0.959645748, 0.281210065, -1.96716968e-07, -0.281210154, 0.959646165, -5.5283308e-06, -1.3973289e-06, 5.47825903e-06, 0.999999464) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  856. CFrame.new(0.520074844, -1.08606076, -0.234062612, 0.998314202, -0.0580326766, -7.03613807e-07, 0.0562185496, 0.967103302, 0.248093575, -0.0143968463, -0.2476753, 0.968735516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  857. CFrame.new(-0.499999762, -1.99266648, 0.315881968, 0.999999523, 0, -4.4408921e-16, 0, 0.957916379, 0.287047207, 0, -0.287046999, 0.957915962) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  858. }, .3, false)
  859. moter.C0 = clerp(moter.C0, CFrame.new(5.54231071, 4.06374073, 2.81215429, 0.574745774, -0.318629563, -0.753752351, 0.55404377, 0.829379797, 0.0718662962, 0.602248251, -0.458916634, 0.653217196) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 15), 0), 0.3)
  860. end
  861. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=199145095", RootPart, 1, 1)
  862. for i = 0, .1, 0.1 do
  863. swait()
  864. PlayAnimationFromTable({
  865. CFrame.new(0.0247611944, 0.395598143, 0.0614119172, 0.999999762, -8.29032787e-10, 7.40431316e-09, -1.19500548e-21, 0.99379009, 0.111270897, -7.4505806e-09, -0.111270867, 0.993789852) * CFrame.new(0, 0+ .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  866. CFrame.new(1.03575002e-14, 1.51392162, 0.0322244503, 0.999999762, 6.8278716e-15, 1.0658141e-14, -6.66133815e-15, 0.999800324, -0.020144701, -1.0658141e-14, 0.0201447532, 0.999800086) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  867. CFrame.new(2.10011482, 0.708091974, -0.322557241, 0.339084744, -0.915282845, 0.217436597, 0.288635552, -0.118763849, -0.950044513, 0.895382881, 0.384905636, 0.22391212) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  868. CFrame.new(-1.6717757, 0.15043509, 4.33098558e-06, 0.959645748, 0.281210065, -1.96716968e-07, -0.281210154, 0.959646165, -5.5283308e-06, -1.3973289e-06, 5.47825903e-06, 0.999999464) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  869. CFrame.new(0.520072758, -1.08605731, -0.234060526, 0.998314202, -0.0580326766, -7.03613807e-07, 0.0562185496, 0.967103302, 0.248093575, -0.0143968463, -0.2476753, 0.968735516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  870. CFrame.new(-0.499999762, -1.99266195, 0.315883577, 0.999999523, 0, -4.4408921e-16, 0, 0.957916379, 0.287047207, 0, -0.287046999, 0.957915962) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  871. }, .3, false)
  872. moter.C0 = clerp(moter.C0, CFrame.new(6.83724022, 2.01833153, -2.47121024, 0.648828268, -0.289196938, -0.703838944, 0.366921872, 0.929230988, -0.043564409, 0.666627347, -0.229987398, 0.70902288) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 15), 0), 0.3)
  873. end
  874. for i = 0, 1, 0.1 do
  875. swait()
  876. PlayAnimationFromTable({
  877. CFrame.new(0.0247611944, 0.395596266, 0.0614121258, 0.999999762, -8.29032787e-10, 7.40431316e-09, -1.19500548e-21, 0.99379009, 0.111270897, -7.4505806e-09, -0.111270867, 0.993789852) * CFrame.new(0, 0+ .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  878. CFrame.new(1.04592958e-14, 1.55167508, -0.229172319, 0.999999762, -2.88657986e-15, 3.64153152e-14, -1.17128529e-14, 0.917395175, 0.397977769, -3.46389584e-14, -0.39797768, 0.917394996) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  879. CFrame.new(0.718009889, 0.505484223, -1.09626853, 0.670046806, 0.733065605, 0.116839856, 0.0408146195, 0.120778717, -0.991840065, -0.741195679, 0.669348001, 0.0510075539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  880. CFrame.new(-1.67177618, 0.150433272, 5.28464898e-06, 0.959645748, 0.281210065, -1.96716968e-07, -0.281210154, 0.959646165, -5.5283308e-06, -1.3973289e-06, 5.47825903e-06, 0.999999464) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  881. CFrame.new(0.520072699, -1.08605576, -0.234061927, 0.998314202, -0.0580326766, -7.03613807e-07, 0.0562185496, 0.967103302, 0.248093575, -0.0143968463, -0.2476753, 0.968735516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  882. CFrame.new(-0.499999762, -1.99266088, 0.315881282, 0.999999523, 0, -4.4408921e-16, 0, 0.957916379, 0.287047207, 0, -0.287046999, 0.957915962) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  883. }, .3, false)
  884. moter.C0 = clerp(moter.C0, CFrame.new(-1.69986296, 0.246855974, -5.41825294, 0.694845855, -0.0881403461, -0.713738203, 0.118121654, 0.992972016, -0.0076283589, 0.709393084, -0.0790075138, 0.700372756) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 15), 0), 0.3)
  885. end
  886. attack = false
  887. con:Disconnect()
  888. end
  889. function attacktwo()
  890. attack = true
  891. local con = Hitbox.Touched:connect(function(hit)
  892. Damage(Hitbox, hit, 15, 20, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149186", 1)
  893. end)
  894. for i = 0, 1, 0.1 do
  895. swait()
  896. PlayAnimationFromTable({
  897. CFrame.new(0.0247611944, 0.39560315, 0.0614113547, 0.999999762, -8.29032787e-10, 7.40431316e-09, -1.19500548e-21, 0.99379009, 0.111270897, -7.4505806e-09, -0.111270867, 0.993789852) * CFrame.new(0, 0+ .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  898. CFrame.new(-1.68204226e-16, 1.51587749, -0.0656896234, 0.999999523, -1.11022302e-16, 0, 0, 0.995222509, 0.0976322517, 0, -0.0976320878, 0.995222092) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  899. CFrame.new(1.56885242, 1.35940528, 0.107976064, 0.953258991, -0.26212126, 0.150297329, -0.263772905, -0.964540958, -0.00920015574, 0.147379458, -0.0308742989, -0.98859781) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  900. CFrame.new(-1.67177784, 0.150434703, 2.42363558e-06, 0.959645748, 0.281210065, -1.96716968e-07, -0.281210154, 0.959646165, -5.5283308e-06, -1.3973289e-06, 5.47825903e-06, 0.999999464) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  901. CFrame.new(0.520072937, -1.08606005, -0.234059811, 0.998314202, -0.0580326766, -7.03613807e-07, 0.0562185496, 0.967103302, 0.248093575, -0.0143968463, -0.2476753, 0.968735516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  902. CFrame.new(-0.499999762, -1.99266672, 0.315883011, 0.999999523, 0, -4.4408921e-16, 0, 0.957916379, 0.287047207, 0, -0.287046999, 0.957915962) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  903. }, .3, false)
  904. moter.C0 = clerp(moter.C0, CFrame.new(-0.0100110481, 6.92017365, 0.269746065, 6.55651093e-06, -0.999999344, 3.18512321e-06, 0.49998796, 6.03909393e-06, 0.866032362, -0.866031826, -4.06801701e-06, 0.499987662) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 15), 0), 0.3)
  905. end
  906. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=199145095", RootPart, 1, 1.25)
  907. for i = 0, .1, 0.1 do
  908. moter.C0 = clerp(moter.C0, CFrame.new(-0.00998020824, 4.83337784, -3.82615471, 6.55651093e-06, -0.999999344, 3.18512321e-06, 0.49998796, 6.03909393e-06, 0.866032362, -0.866031826, -4.06801701e-06, 0.499987662) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 15), 0), 0.3)
  909. end
  910. for i = 0, 1, 0.1 do
  911. swait()
  912. PlayAnimationFromTable({
  913. CFrame.new(0.0247611944, 0.39560315, 0.0614113547, 0.999999762, -8.29032787e-10, 7.40431316e-09, -1.19500548e-21, 0.99379009, 0.111270897, -7.4505806e-09, -0.111270867, 0.993789852) * CFrame.new(0, 0+ .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  914. CFrame.new(4.14477616e-15, 1.55280709, -0.17542538, 0.999999762, 2.88657986e-15, -8.8817842e-16, -2.72004641e-15, 0.951519728, 0.307593107, 1.33226763e-15, -0.307592988, 0.951519608) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  915. CFrame.new(1.18234992, 0.0166931748, -0.446400583, 0.9432199, 0.187122002, -0.274446726, -0.315012991, 0.765998185, -0.560369015, 0.105368309, 0.615005612, 0.781450629) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  916. CFrame.new(-1.67177784, 0.150434703, 2.42363558e-06, 0.959645748, 0.281210065, -1.96716968e-07, -0.281210154, 0.959646165, -5.5283308e-06, -1.3973289e-06, 5.47825903e-06, 0.999999464) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  917. CFrame.new(0.520072937, -1.08606005, -0.234059811, 0.998314202, -0.0580326766, -7.03613807e-07, 0.0562185496, 0.967103302, 0.248093575, -0.0143968463, -0.2476753, 0.968735516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  918. CFrame.new(-0.499999762, -1.99266672, 0.315883011, 0.999999523, 0, -4.4408921e-16, 0, 0.957916379, 0.287047207, 0, -0.287046999, 0.957915962) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  919. }, .3, false)
  920. moter.C0 = clerp(moter.C0, CFrame.new(-0.0099725714, 0.347075582, -4.85451031, 6.55651093e-06, -0.999999344, 3.18512321e-06, 0.49998796, 6.03909393e-06, 0.866032362, -0.866031826, -4.06801701e-06, 0.499987662) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 15), 0), 0.3)
  921. end
  922. attack = false
  923. con:Disconnect()
  924. end
  925. function attackthree()
  926. attack = true
  927. local con = Hitbox.Touched:connect(function(hit)
  928. Damage(Hitbox, hit, 15, 20, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149186", 1)
  929. end)
  930. moter.Part0 = Torso
  931. for i = 1,2 do
  932. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=199145095", RootPart, 1, 1.1)
  933. for i = 0, 1.5, 0.1 do
  934. swait()
  935. PlayAnimationFromTable({
  936. CFrame.new(-0.00769102061, 5.94347, 0.111671507, -0.000619999948, -0.999995768, -0.00285095745, 0.999999881, -0.000619806291, -6.87673237e-05, 6.69999936e-05, -0.00285099936, 0.999996006) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 18), 0),
  937. CFrame.new(-3.81460882e-06, 1.51588571, -0.0656834096, 1.00000012, 5.82076609e-11, 7.27595761e-12, 5.82076609e-11, 0.995222807, 0.0976300314, 1.47792889e-12, -0.0976300389, 0.995222867) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  938. CFrame.new(1.91323066, 0.557871044, 1.84733858e-06, -0.0400272459, -0.999198735, -4.43312956e-07, 0.999198675, -0.0400272422, -1.79116614e-06, 1.7718412e-06, -5.14657586e-07, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  939. CFrame.new(-2.0011692, 0.367786586, 4.40213944e-06, 0.0874899179, 0.996165752, -1.020475e-06, -0.996165693, 0.0874898955, -7.14836642e-06, -7.03264959e-06, 1.64197991e-06, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  940. CFrame.new(0.610739172, -1.8573885, 0.353014052, 0.998314798, -0.0580324233, -7.3784031e-07, 0.0562183075, 0.967103839, 0.248091936, -0.0143966628, -0.247673839, 0.968736589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  941. CFrame.new(-0.514956951, -1.99168193, 0.315591782, 0.997732282, 0.0673074946, -9.25181666e-07, -0.0644749701, 0.955748498, 0.287032813, 0.0193203408, -0.286381692, 0.957921028) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  942. }, .3, false)
  943. moter.C0 = clerp(moter.C0, CFrame.new(-6.5103631, -0.139183253, 0.0864479542, 0.499878854, 0.000624308188, 0.866095185, -0.0723953694, 0.996531665, 0.0410656519, -0.863064647, -0.0832300186, 0.498189658) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 15), 0), 0.3)
  944. end
  945. end
  946. moter.Part0 = RootPart
  947. attack = false
  948. con:Disconnect()
  949. end
  950. function N3xy_Saw()
  951. attack = true
  952. for i = 0, 1, 0.1 do
  953. swait()
  954. PlayAnimationFromTable({
  955. CFrame.new(0.137931556, 0.395607829, 0.00834273547, 0.938806534, -0.0383267738, 0.342305869, -6.77565026e-22, 0.99379009, 0.111271158, -0.344444811, -0.104462095, 0.932976663) * CFrame.new(0, 0+ .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  956. CFrame.new(-0.0362863913, 1.50892043, 0.0237983987, 0.925071418, -0.0613906533, -0.374799401, 0.0370833129, 0.996736109, -0.0717329085, 0.377978414, 0.0524592921, 0.924328625) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  957. CFrame.new(1.56098926, 0.0719422549, 1.40516795e-06, 0.981725693, -0.190301389, -3.4570694e-06, 0.190301403, 0.981725752, 2.89361924e-06, 2.86102295e-06, -3.51667404e-06, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  958. CFrame.new(-2.0290966, 0.598032176, 0.154399544, -0.12235336, 0.99005264, 0.0694645345, -0.992486954, -0.122051507, -0.00858841836, -2.4786219e-05, -0.0699933767, 0.997547686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  959. CFrame.new(0.53684926, -1.08471763, -0.228560537, 0.947472453, -0.00304228067, -0.319823891, 0.0763792396, 0.973177195, 0.217015892, 0.310584217, -0.230044141, 0.922290623) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  960. CFrame.new(-0.701872647, -1.92240238, 0.301058829, 0.937067807, 0.137104467, -0.321114004, -0.0474750251, 0.961174607, 0.271846056, 0.345916092, -0.239493132, 0.907189608) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  961. }, .3, false)
  962. moter.C0 = clerp(moter.C0, CFrame.new(-6.47915268, 1.98922193, 1.50078607, 0.804076374, 0.276369572, -0.526386261, -0.335363388, 0.941921949, -0.0177408606, 0.490911543, 0.190795571, 0.850061178) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 3), 0), 0.3)
  963. end
  964. local con = Hitbox.Touched:connect(function(hit)
  965. Damage(Hitbox, hit, 8, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149186", 1)
  966. end)
  967. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=199145095", RootPart, 1, 1.1)
  968. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=248088589", RootPart, 1.2, .9)
  969. N3x = true
  970. while N3x == true do
  971. swait()
  972. PlayAnimationFromTable({
  973. CFrame.new(-0.0214186162, 0.277443081, 0.00464951992, 0.67465806, 0.0821333528, -0.733546674, 0.185470015, 0.943043292, 0.27617076, 0.714449048, -0.322371721, 0.620998502) * CFrame.new(0, 0+ .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  974. CFrame.new(0.0238638818, 1.51567161, -0.0341850966, 0.717614353, 0.00556445308, 0.696418583, 0.0806082934, 0.992583871, -0.0909924507, -0.691760182, 0.121434592, 0.711843908) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  975. CFrame.new(1.8163296, 0.242457017, 0.183517694, 0.880944848, -0.467268437, -0.0748110414, 0.473219097, 0.869866431, 0.139271826, -1.81794167e-06, -0.158092976, 0.987424374) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  976. CFrame.new(-1.84985387, 0.725304842, -0.93970865, -0.186417878, 0.59939599, -0.77844274, -0.979000211, -0.179869071, 0.0959484279, -0.0825066492, 0.77998203, 0.620339394) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  977. CFrame.new(0.536842346, -1.08471298, -0.228559569, 0.999983311, -0.0030502528, 0.00495830178, 0.00182783604, 0.97317642, 0.230054021, -0.0055270493, -0.230041206, 0.973165393) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  978. CFrame.new(-0.530440271, -1.93428946, 0.232037365, 0.925719976, -0.00586517155, 0.378164083, -0.0643104091, 0.982877851, 0.172671542, -0.372701854, -0.184165448, 0.909492493) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  979. }, .3, false)
  980. moter.C0 = clerp(moter.C0, CFrame.new(-0.33060503, -0.102687478, -7.5675416, 0.883653164, -0.0242217965, -0.467514902, 0.00151341502, 0.998803377, -0.0488871336, 0.468139559, 0.0424917415, 0.882632375) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 15), 0), 0.3)
  981. end
  982. attack = false
  983. con:Disconnect()
  984. end
  985. function RunnyN3xul()
  986. attack = true
  987. ref1 = New("Part",EffectModel,"ref1",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-25.2282906, 0.65063858, 51.0955696, 0.999617279, 0.0276308171, -1.34855509e-06, 1.35600567e-06, 2.40824875e-07, 1.00000322, 0.0276307911, -0.999618232, 1.99303031e-07),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
  988. mot = New("Motor",ref1,"mot",{Part0 = ref1,Part1 = RootPart,C0 = CFrame.new(0, 0, 0, 0.999617279, 1.35600567e-06, 0.0276307911, 0.0276308171, 2.40824875e-07, -0.999618232, -1.34855509e-06, 1.00000322, 1.99303031e-07) * CFrame.Angles(math.rad(90),math.rad(90),0),C1 = CFrame.new(0.225543976, -2.01487637, -6.64178467, 4.49431016e-21, 4.72249953e-22, 1, -6.79974573e-22, 1, -4.72249953e-22, -1, -6.79974573e-22, 4.49431016e-21),})
  989. for i = 0, 1, 0.1 do
  990. swait()
  991. PlayAnimationFromTable({
  992. CFrame.new(-0.0493162647, 0.40752393, 0.296459764, 0.580539167, -0.120346881, -0.805289388, 2.79497685e-22, 0.989016652, -0.147804111, 0.81423229, 0.0858060792, 0.57416296) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  993. CFrame.new(0.0941738263, 1.39222717, 0.00244647637, 0.509387791, 0.16690433, 0.844196141, -0.0840166807, 0.985969841, -0.144238502, -0.856425941, 0.00254678354, 0.516263783) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  994. CFrame.new(1.60131347, 1.28604746, 0.233699635, 0.967095971, -0.250174224, 0.0462991297, -0.252064943, -0.917419672, 0.307905376, -0.0345553756, -0.309443176, -0.950290263) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  995. CFrame.new(-1.59715331, 0.0995924324, -8.13858514e-06, 0.97523284, 0.221180916, 5.36441803e-07, -0.221180946, 0.97523284, -4.88013029e-06, -1.63912773e-06, 4.65009362e-06, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  996. CFrame.new(0.520076454, -1.0860585, -0.23406744, 0.989986897, -0.0698032156, 0.122692943, 0.0237699151, 0.939202189, 0.34253943, -0.139143348, -0.33619231, 0.931461334) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  997. CFrame.new(-0.557118177, -2.00454879, 0.276234031, 0.976874053, 1.49011612e-08, 0.213816643, -0.061375089, 0.957918942, 0.280406177, -0.204819977, -0.287044615, 0.935766935) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  998. }, .3, false)
  999. moter.C0 = clerp(moter.C0, CFrame.new(-0.0203268975, 6.82764769, 2.2530992, 0.0239289794, -0.999609053, -0.0138149541, 0.499993742, 2.12338861e-07, 0.866029084, -0.865690768, -0.0276305638, 0.499798357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(doe * 3), 0), 0.3)
  1000. end
  1001. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=199145095", RootPart, 1, .9)
  1002. for i = 0, .8, 0.1 do
  1003. swait()
  1004. PlayAnimationFromTable({
  1005. CFrame.new(0.0225765258, 0.23228699, -0.334326148, 0.588111222, 0.11954008, 0.799897134, -0.160759062, 0.986560464, -0.029240407, -0.792642295, -0.111394085, 0.599424422) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1006. CFrame.new(0.0347382501, 1.49774599, -0.145196021, 0.470139116, 0.102452934, -0.876625776, 0.0593141988, 0.98732686, 0.14720121, 0.880596995, -0.121201418, 0.458103895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1007. CFrame.new(1.71571183, 0.0881288946, -0.274225712, 0.610230148, -0.722737253, -0.324453712, 0.352403462, 0.614435911, -0.70589, 0.709528744, 0.316416562, 0.629642606) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1008. CFrame.new(-1.78274977, 0.187874556, 0.195820957, 0.396853328, 0.915079713, 0.0716791451, -0.887796462, 0.362843752, 0.283129245, 0.233077228, -0.175997198, 0.956400275) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1009. CFrame.new(0.520066977, -1.08606005, -0.234083831, 0.931684017, -0.069801107, -0.356500953, 0.181819201, 0.939201355, 0.291277885, 0.314494461, -0.336197734, 0.887729883) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1010. CFrame.new(-0.558486938, -1.98228264, 0.350583166, 0.999846101, 2.39908695e-06, -0.0175518394, 0.00503505766, 0.957922876, 0.286997318, 0.0168139338, -0.287042111, 0.957770646) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1011. }, .3, false)
  1012. moter.C0 = clerp(moter.C0, CFrame.new(0.22553885, -2.01487708, -6.64166641, 0.0239289794, -0.999609053, -0.0138149541, 0.499993742, 2.12338861e-07, 0.866029084, -0.865690768, -0.0276305638, 0.499798357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1013. end
  1014. N3x = true
  1015. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=199145477", Handle, 1, 1)
  1016. local con = Hitbox.Touched:connect(function(hit)
  1017. Damage(Hitbox, hit, 15, 30, math.random(1, 5), "Snare", RootPart, 0.2, "rbxassetid://199149186", 1)
  1018. end)
  1019. coroutine.wrap(function()
  1020. ref = New("Part",EffectModel,"Circle",{Transparency = 1,Anchored = true,CFrame = ref1.CFrame * CFrame.Angles(math.rad(90),0,math.rad(90))})
  1021. moter.Part0 = ref
  1022. Effects.Wave.Create(BrickColor.new("White"), ref.CFrame * CFrame.Angles(math.rad(90),0,0), 1, .5, 1, .8, 0.6, .8, 0.05)
  1023. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=248088589", Handle, 1.2, 1.3)
  1024. value = 0
  1025. for i = 0, 6, 0.1 do
  1026. swait()
  1027. value = value + .05
  1028. ref.CFrame = ref.CFrame * CFrame.new(value,0,0)
  1029. Handle.CFrame = ref.CFrame * CFrame.Angles(0, math.rad(doe * 15), 0)
  1030. moter.C0 = clerp(moter.C0, CFrame.Angles(0, math.rad(doe * 15), 0), 0.3)
  1031. end
  1032. N3x = false
  1033. con:Disconnect()
  1034. moter.Part0 = RootPart
  1035. end)()
  1036. while N3x == true do
  1037. swait()
  1038. PlayAnimationFromTable({
  1039. CFrame.new(4.42224468e-22, 0.406974763, -0.0556323677, 1, 9.69404787e-22, -4.41385312e-21, -4.7224864e-22, 0.993784308, 0.111270368, 4.49431016e-21, -0.111271016, 0.99379009) * CFrame.new(0, 0 + .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  1040. CFrame.new(0, 1.51588464, -0.0656869709, 1, 0, 0, 0, 0.995220363, 0.0976320952, 0, -0.0976320952, 0.995220363) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1041. CFrame.new(1.56099975, 0.0719469488, 1.9177819e-06, 0.981725574, -0.190302119, 2.42222971e-08, 0.190302104, 0.981725693, -6.55651093e-07, 1.00582838e-07, 6.40749931e-07, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1042. CFrame.new(-1.67177844, 0.150434136, 2.41926455e-06, 0.959646225, 0.281210154, -1.96089672e-07, -0.281210095, 0.959646285, -5.59538603e-06, -1.38394535e-06, 5.42402267e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1043. CFrame.new(0.520075798, -1.086061, -0.234063938, 0.998314738, -0.058032658, -7.00135729e-07, 0.0562185124, 0.967103481, 0.248093307, -0.0143968407, -0.24767524, 0.968736172) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1044. CFrame.new(-0.5, -1.99266708, 0.315881819, 1, 0, 0, 0, 0.957918644, 0.287047386, 0, -0.287047386, 0.957918644) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1045. }, .3, false)
  1046. end
  1047. ref:Remove()
  1048. ref1:Remove()
  1049. attack = false
  1050. end
  1051. Mouse.Button1Down:connect(function()
  1052. if attack == false and attacktype == 1 then
  1053. attacktype = 2
  1054. attackone()
  1055. elseif attack == false and attacktype == 2 then
  1056. attacktype = 3
  1057. attacktwo()
  1058. elseif attack == false and attacktype == 3 then
  1059. attacktype = 1
  1060. attackthree()
  1061. end
  1062. end)
  1063.  
  1064. Mouse.KeyDown:connect(function(k)
  1065. k = k:lower()
  1066. if attack == false and k == 'z' then
  1067. N3xy_Saw()
  1068. elseif attack == false and k == 'x' then
  1069. RunnyN3xul()
  1070. end
  1071. end)
  1072. Mouse.KeyUp:connect(function(k)
  1073. k = k:lower()
  1074. if attack == true and k == 'z' then
  1075. N3x = false
  1076. end
  1077. end)
  1078. warn'"Niak niak" - N3xul 2k17'
  1079. while true do
  1080. swait()
  1081. for i, v in pairs(Character:GetChildren()) do
  1082. if v:IsA("Part") then
  1083. v.Material = "SmoothPlastic"
  1084. elseif v:IsA("Accessory") then
  1085. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1086. end
  1087. end
  1088. while 1 do
  1089. swait()
  1090. if doe <= 360 then
  1091. doe = doe + 2
  1092. else
  1093. doe = 0
  1094. end
  1095. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1096. velocity = RootPart.Velocity.y
  1097. sine = sine + change
  1098. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1099. if RootPart.Velocity.y > 1 and hit == nil then
  1100. Anim = "Jump"
  1101. if attack == false then
  1102. PlayAnimationFromTable({
  1103. CFrame.new(1.9972492e-21, 0.113661945, -0.432451636, 1, 2.49027328e-21, -3.77099282e-21, -4.7224864e-22, 0.887478054, 0.460837424, 4.49431016e-21, -0.460840106, 0.887483239) * CFrame.new(0, 0+ .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  1104. CFrame.new(0, 1.4947052, 0.062059015, 1, 0, 0, 0, 0.986512363, -0.163722664, 0, 0.163716733, 0.98650825) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1105. CFrame.new(1.55467427, 0.10457363, 0.42051965, 0.981725395, -0.172917932, -0.0794669464, 0.190303147, 0.892039657, 0.409950525, -2.5331974e-07, -0.417586893, 0.90863508) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1106. CFrame.new(-1.6915586, 0.0829171836, 0.630138516, 0.95964843, 0.245055869, 0.137923256, -0.28120321, 0.836300015, 0.470666647, -5.69969416e-06, -0.490458935, 0.871464372) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1107. CFrame.new(0.520076096, -1.08606339, -0.234059066, 0.998314619, -0.0580340028, -2.00776839e-07, 0.0562196746, 0.967103362, 0.248093963, -0.0143976882, -0.247675776, 0.968736053) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1108. CFrame.new(-0.5, -1.99266136, 0.31588462, 1, 0, 0, 0, 0.957916617, 0.287047267, 0, -0.287047267, 0.957916617) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1109. }, .3, false)
  1110. moter.C0 = clerp(moter.C0, CFrame.new(0.0285198689, 2.14997911, 1.8797493, 0.866025448, 4.49431016e-21, -0.499999881, 0.49999696, -6.79970585e-22, 0.866020381, 3.55219951e-21, -1, -2.83602973e-21) * CFrame.new(0+.2 * math.cos(sine/40), 0, 0+ .4 * math.cos(sine/40)) * CFrame.Angles(0, math.rad(doe * 3), 0), 0.3)
  1111. end
  1112. elseif RootPart.Velocity.y < -1 and hit == nil then
  1113. Anim = "Fall"
  1114. if attack == false then
  1115. PlayAnimationFromTable({
  1116. CFrame.new(1.9972492e-21, 0.113661945, -0.432451636, 1, 2.49027328e-21, -3.77099282e-21, -4.7224864e-22, 0.887478054, 0.460837424, 4.49431016e-21, -0.460840106, 0.887483239) * CFrame.new(0, 0+ .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  1117. CFrame.new(0, 1.4947052, 0.062059015, 1, 0, 0, 0, 0.986512363, -0.163722664, 0, 0.163716733, 0.98650825) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1118. CFrame.new(1.55467427, 0.10457363, 0.42051965, 0.981725395, -0.172917932, -0.0794669464, 0.190303147, 0.892039657, 0.409950525, -2.5331974e-07, -0.417586893, 0.90863508) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1119. CFrame.new(-1.6915586, 0.0829171836, 0.630138516, 0.95964843, 0.245055869, 0.137923256, -0.28120321, 0.836300015, 0.470666647, -5.69969416e-06, -0.490458935, 0.871464372) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1120. CFrame.new(0.520076096, -1.08606339, -0.234059066, 0.998314619, -0.0580340028, -2.00776839e-07, 0.0562196746, 0.967103362, 0.248093963, -0.0143976882, -0.247675776, 0.968736053) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1121. CFrame.new(-0.5, -1.99266136, 0.31588462, 1, 0, 0, 0, 0.957916617, 0.287047267, 0, -0.287047267, 0.957916617) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1122. }, .3, false)
  1123. moter.C0 = clerp(moter.C0, CFrame.new(0.0285198689, 2.14997911, 1.8797493, 0.866025448, 4.49431016e-21, -0.499999881, 0.49999696, -6.79970585e-22, 0.866020381, 3.55219951e-21, -1, -2.83602973e-21) * CFrame.new(0+.2 * math.cos(sine/40), 0, 0+ .4 * math.cos(sine/40)) * CFrame.Angles(0, math.rad(doe * 3), 0), 0.3)
  1124. end
  1125. elseif Torsovelocity < 1 and hit ~= nil then
  1126. Anim = "Idle"
  1127. if attack == false then
  1128. change = 1
  1129. PlayAnimationFromTable({
  1130. CFrame.new(4.42224468e-22, 0.406974763, -0.0556323677, 1, 9.69404787e-22, -4.41385312e-21, -4.7224864e-22, 0.993784308, 0.111270368, 4.49431016e-21, -0.111271016, 0.99379009) * CFrame.new(0, 0 + .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  1131. CFrame.new(0, 1.51588464, -0.0656869709, 1, 0, 0, 0, 0.995220363, 0.0976320952, 0, -0.0976320952, 0.995220363) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1132. CFrame.new(1.56099975, 0.0719469488, 1.9177819e-06, 0.981725574, -0.190302119, 2.42222971e-08, 0.190302104, 0.981725693, -6.55651093e-07, 1.00582838e-07, 6.40749931e-07, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1133. CFrame.new(-1.67177844, 0.150434136, 2.41926455e-06, 0.959646225, 0.281210154, -1.96089672e-07, -0.281210095, 0.959646285, -5.59538603e-06, -1.38394535e-06, 5.42402267e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1134. CFrame.new(0.520075798, -1.086061, -0.234063938, 0.998314738, -0.058032658, -7.00135729e-07, 0.0562185124, 0.967103481, 0.248093307, -0.0143968407, -0.24767524, 0.968736172) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1135. CFrame.new(-0.5, -1.99266708, 0.315881819, 1, 0, 0, 0, 0.957918644, 0.287047386, 0, -0.287047386, 0.957918644) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1136. }, .3, false)
  1137. moter.C0 = clerp(moter.C0, CFrame.new(0.0285198689, 2.14997911, 1.8797493, 0.866025448, 4.49431016e-21, -0.499999881, 0.49999696, -6.79970585e-22, 0.866020381, 3.55219951e-21, -1, -2.83602973e-21) * CFrame.new(0+.2 * math.cos(sine/40), 0, 0+ .4 * math.cos(sine/40)) * CFrame.Angles(0, math.rad(doe * 3), 0), 0.3)
  1138. end
  1139. elseif Torsovelocity > 2 and hit ~= nil then
  1140. Anim = "Walk"
  1141. if attack == false then
  1142. PlayAnimationFromTable({
  1143. CFrame.new(1.9972492e-21, 0.113661945, -0.432451636, 1, 2.49027328e-21, -3.77099282e-21, -4.7224864e-22, 0.887478054, 0.460837424, 4.49431016e-21, -0.460840106, 0.887483239) * CFrame.new(0, 0+ .2 * math.cos(sine/30), 0) * CFrame.Angles(0, 0, 0),
  1144. CFrame.new(0, 1.4947052, 0.062059015, 1, 0, 0, 0, 0.986512363, -0.163722664, 0, 0.163716733, 0.98650825) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1145. CFrame.new(1.55467427, 0.10457363, 0.42051965, 0.981725395, -0.172917932, -0.0794669464, 0.190303147, 0.892039657, 0.409950525, -2.5331974e-07, -0.417586893, 0.90863508) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1146. CFrame.new(-1.6915586, 0.0829171836, 0.630138516, 0.95964843, 0.245055869, 0.137923256, -0.28120321, 0.836300015, 0.470666647, -5.69969416e-06, -0.490458935, 0.871464372) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1147. CFrame.new(0.520076096, -1.08606339, -0.234059066, 0.998314619, -0.0580340028, -2.00776839e-07, 0.0562196746, 0.967103362, 0.248093963, -0.0143976882, -0.247675776, 0.968736053) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1148. CFrame.new(-0.5, -1.99266136, 0.31588462, 1, 0, 0, 0, 0.957916617, 0.287047267, 0, -0.287047267, 0.957916617) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1149. }, .3, false)
  1150. moter.C0 = clerp(moter.C0, CFrame.new(0.0285198689, 2.14997911, 1.8797493, 0.866025448, 4.49431016e-21, -0.499999881, 0.49999696, -6.79970585e-22, 0.866020381, 3.55219951e-21, -1, -2.83602973e-21) * CFrame.new(0+.2 * math.cos(sine/40), 0, 0+ .4 * math.cos(sine/40)) * CFrame.Angles(0, math.rad(doe * 3), 0), 0.3)
  1151. end
  1152. end
  1153. if 0 < #Effects then
  1154. for e = 1, #Effects do
  1155. if Effects[e] ~= nil then
  1156. local Thing = Effects[e]
  1157. if Thing ~= nil then
  1158. local Part = Thing[1]
  1159. local Mode = Thing[2]
  1160. local Delay = Thing[3]
  1161. local IncX = Thing[4]
  1162. local IncY = Thing[5]
  1163. local IncZ = Thing[6]
  1164. if Thing[2] == "Shoot" then
  1165. local Look = Thing[1]
  1166. local move = 30
  1167. if Thing[8] == 3 then
  1168. move = 10
  1169. end
  1170. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1171. if Thing[10] ~= nil then
  1172. da = pos
  1173. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1174. cfa = CFrame.new(Thing[4], pos)
  1175. tehCF = cfa:lerp(cf2, 0.2)
  1176. Thing[1] = tehCF.lookVector
  1177. end
  1178. local mag = (Thing[4] - pos).magnitude
  1179. 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)
  1180. if Thing[8] == 2 then
  1181. 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)
  1182. end
  1183. Thing[4] = Thing[4] + Look * move
  1184. Thing[3] = Thing[3] - 1
  1185. if 2 < Thing[5] then
  1186. Thing[5] = Thing[5] - 0.3
  1187. Thing[6] = Thing[6] - 0.3
  1188. end
  1189. if hit ~= nil then
  1190. Thing[3] = 0
  1191. if Thing[8] == 1 or Thing[8] == 3 then
  1192. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1193. else
  1194. if Thing[8] == 2 then
  1195. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1196. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1197. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1198. ref.Anchored = true
  1199. ref.CFrame = CFrame.new(pos)
  1200. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1201. game:GetService("Debris"):AddItem(ref, 0.2)
  1202. 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)
  1203. 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)
  1204. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1205. end
  1206. end
  1207. end
  1208. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1209. ref.Anchored = true
  1210. ref.CFrame = CFrame.new(pos)
  1211. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1212. game:GetService("Debris"):AddItem(ref, 1)
  1213. end
  1214. if Thing[3] <= 0 then
  1215. table.remove(Effects, e)
  1216. end
  1217. end
  1218. do
  1219. do
  1220. if Thing[2] == "FireWave" then
  1221. if Thing[3] <= Thing[4] then
  1222. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1223. Thing[3] = Thing[3] + 1
  1224. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1225. else
  1226. Part.Parent = nil
  1227. table.remove(Effects, e)
  1228. end
  1229. end
  1230. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1231. if Thing[1].Transparency <= 1 then
  1232. if Thing[2] == "Block1" then
  1233. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1234. Mesh = Thing[7]
  1235. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1236. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1237. else
  1238. if Thing[2] == "Block2" then
  1239. Thing[1].CFrame = Thing[1].CFrame
  1240. Mesh = Thing[7]
  1241. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1242. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1243. else
  1244. if Thing[2] == "Fire" then
  1245. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1246. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1247. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1248. else
  1249. if Thing[2] == "Cylinder" then
  1250. Mesh = Thing[7]
  1251. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1252. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1253. else
  1254. if Thing[2] == "Blood" then
  1255. Mesh = Thing[7]
  1256. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1257. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1258. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1259. else
  1260. if Thing[2] == "Elec" then
  1261. Mesh = Thing[10]
  1262. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1263. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1264. else
  1265. if Thing[2] == "Disappear" then
  1266. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1267. else
  1268. if Thing[2] == "Shatter" then
  1269. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1270. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1271. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1272. Thing[6] = Thing[6] + Thing[5]
  1273. end
  1274. end
  1275. end
  1276. end
  1277. end
  1278. end
  1279. end
  1280. end
  1281. else
  1282. Part.Parent = nil
  1283. table.remove(Effects, e)
  1284. end
  1285. end
  1286. end
  1287. end
  1288. end
  1289. end
  1290. end
  1291. end
  1292. end
  1293. end
Add Comment
Please, Sign In to add comment