hawoody

Untitled

Mar 24th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Made by SezHu for Void's Script Builder. If logged, please do not remove credit.")
  2. wait(1 / 60)
  3. Effects = { }
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local Humanoid = Character.Humanoid
  7. Humanoid.WalkSpeed = 100
  8. local Mouse = Player:GetMouse()
  9. local LeftArm = Character["Left Arm"]
  10. local RightArm = Character["Right Arm"]
  11. local LeftLeg = Character["Left Leg"]
  12. local RightLeg = Character["Right Leg"]
  13. local Head = Character.Head
  14. local Torso = Character.Torso
  15. local Camera = game.Workspace.CurrentCamera
  16. local RootPart = Character.HumanoidRootPart
  17. local RootJoint = RootPart.RootJoint
  18. local attack = false
  19. local Anim = 'Idle'
  20. local attacktype = 1
  21. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  22. local velocity = RootPart.Velocity.y
  23. local sine = 0
  24. local change = 1
  25. local Create = LoadLibrary("RbxUtility").Create
  26. Head.face.Texture = "http://www.roblox.com/asset/?id=948473243"
  27. Humanoid.Health = math.huge
  28. Instance.new("ForceField",Character).Visible = false
  29. hit = nil
  30. oof = false
  31. for y,t in pairs(Character:GetChildren()) do
  32. if t:IsA("Accessory") and t:FindFirstChild("Handle") then
  33. t.Handle.Transparency = 1
  34. end
  35. end
  36. DHandle = Instance.new("Part")
  37. DMesh = Instance.new("SpecialMesh")
  38. DWeld = Instance.new("Weld")
  39. DHandle.Parent = Character
  40. DHandle.Name = "Handle"
  41. DHandle.CanCollide = false
  42. DHandle.Locked = true
  43. DHandle.Size = Vector3.new(1.93, 1.77, 1.6)
  44. DMesh.Parent = DHandle
  45. DMesh.Scale = DMesh.Scale
  46. DWeld.Parent = DHandle
  47. DWeld.Name = "no"
  48. DWeld.Part0 = Head
  49. DWeld.Part1 = DHandle
  50. DWeld.C0 = CFrame.new(0,.4,0) * CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)VertexColor = Vector3.new(1,1,1)
  51. DHandle.Transparency = 0
  52. DMesh.MeshId = "http://www.roblox.com/asset/?id=12259089"
  53. DMesh.TextureId = "http://www.roblox.com/asset/?id=12259192"
  54. local m = Create("Model"){
  55. Parent = Character,
  56. Name = "WeaponModel",
  57. }
  58.  
  59. Humanoid.Animator.Parent = nil
  60. Character.Animate.Parent = nil
  61.  
  62. local newMotor = function(part0, part1, c0, c1)
  63. local w = Create('Motor'){
  64. Parent = part0,
  65. Part0 = part0,
  66. Part1 = part1,
  67. C0 = c0,
  68. C1 = c1,
  69. }
  70. return w
  71. end
  72.  
  73. function clerp(a, b, t)
  74. return a:lerp(b, t)
  75. end
  76.  
  77. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  78. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  79.  
  80. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  81. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  82. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  83. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  84. RootJoint.C1 = CFrame.new(0, 0, 0)
  85. RootJoint.C0 = CFrame.new(0, 0, 0)
  86. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  87. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  88.  
  89. local rarmc1 = RW.C1
  90. local larmc1 = LW.C1
  91. local rlegc1 = RH.C1
  92. local llegc1 = LH.C1
  93.  
  94. local resetc1 = false
  95.  
  96. function PlayAnimationFromTable(table, speed, bool)
  97. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  98. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  99. RW.C0 = clerp(RW.C0, table[3], speed)
  100. LW.C0 = clerp(LW.C0, table[4], speed)
  101. RH.C0 = clerp(RH.C0, table[5], speed)
  102. LH.C0 = clerp(LH.C0, table[6], speed)
  103. if bool == true then
  104. if resetc1 == false then
  105. resetc1 = true
  106. RootJoint.C1 = RootJoint.C1
  107. Torso.Neck.C1 = Torso.Neck.C1
  108. RW.C1 = rarmc1
  109. LW.C1 = larmc1
  110. RH.C1 = rlegc1
  111. LH.C1 = llegc1
  112. end
  113. end
  114. end
  115.  
  116. ArtificialHB = Create("BindableEvent", script){
  117. Parent = script,
  118. Name = "Heartbeat",
  119. }
  120.  
  121. script:WaitForChild("Heartbeat")
  122.  
  123. frame = 1 / 500
  124. tf = 0
  125. allowframeloss = false
  126. tossremainder = false
  127. lastframe = tick()
  128. script.Heartbeat:Fire()
  129.  
  130. game:GetService("RunService").Heartbeat:connect(function(s, p)
  131. tf = tf + s
  132. if tf >= frame then
  133. if allowframeloss then
  134. script.Heartbeat:Fire()
  135. lastframe = tick()
  136. else
  137. for i = 1, math.floor(tf / frame) do
  138. script.Heartbeat:Fire()
  139. end
  140. lastframe = tick()
  141. end
  142. if tossremainder then
  143. tf = 0
  144. else
  145. tf = tf - frame * math.floor(tf / frame)
  146. end
  147. end
  148. end)
  149.  
  150. function swait(num)
  151. if num == 0 or num == nil then
  152. ArtificialHB.Event:wait()
  153. else
  154. for i = 0, num do
  155. ArtificialHB.Event:wait()
  156. end
  157. end
  158. end
  159.  
  160. function RemoveOutlines(part)
  161. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  162. end
  163.  
  164. CFuncs = {
  165. Part = {
  166. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  167. local Part = Create("Part"){
  168. Parent = Parent,
  169. Reflectance = Reflectance,
  170. Transparency = Transparency,
  171. CanCollide = false,
  172. Locked = true,
  173. BrickColor = BrickColor.new(tostring(BColor)),
  174. Name = Name,
  175. Size = Size,
  176. Material = Material,
  177. }
  178. RemoveOutlines(Part)
  179. if Size == Vector3.new() then
  180. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  181. else
  182. Part.Size = Size
  183. end
  184. return Part
  185. end;
  186. };
  187.  
  188. Mesh = {
  189. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  190. local Msh = Create(Mesh){
  191. Parent = Part,
  192. Offset = OffSet,
  193. Scale = Scale,
  194. }
  195. if Mesh == "SpecialMesh" then
  196. Msh.MeshType = MeshType
  197. Msh.MeshId = MeshId
  198. end
  199. return Msh
  200. end;
  201. };
  202.  
  203. Weld = {
  204. Create = function(Parent, Part0, Part1, C0, C1)
  205. local Weld = Create("Weld"){
  206. Parent = Parent,
  207. Part0 = Part0,
  208. Part1 = Part1,
  209. C0 = C0,
  210. C1 = C1,
  211. }
  212. return Weld
  213. end;
  214. };
  215.  
  216. Sound = {
  217. Create = function(id, par, vol, pit)
  218. local Sound = Create("Sound"){
  219. Volume = vol,
  220. Pitch = pit or 1,
  221. SoundId = "rbxassetid://" .. id,
  222. Parent = par or workspace,
  223. }
  224. Sound:play()
  225. return Sound
  226. end;
  227. };
  228.  
  229. Decal = {
  230. Create = function(Color, Texture, Transparency, Name, Parent)
  231. local Decal = Create("Decal"){
  232. Color3 = Color,
  233. Texture = "rbxassetid://" .. Texture,
  234. Transparency = Transparency,
  235. Name = Name,
  236. Parent = Parent,
  237. }
  238. return Decal
  239. end;
  240. };
  241.  
  242. BillboardGui = {
  243. Create = function(Parent, Image, Position, Size)
  244. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  245. BillPar.CFrame = CFrame.new(Position)
  246. local Bill = Create("BillboardGui"){
  247. Parent = BillPar,
  248. Adornee = BillPar,
  249. Size = UDim2.new(1, 0, 1, 0),
  250. SizeOffset = Vector2.new(Size, Size),
  251. }
  252. local d = Create("ImageLabel", Bill){
  253. Parent = Bill,
  254. BackgroundTransparency = 1,
  255. Size = UDim2.new(1, 0, 1, 0),
  256. Image = "rbxassetid://" .. Image,
  257. }
  258. return BillPar
  259. end
  260. };
  261.  
  262. ParticleEmitter = {
  263. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  264. local Particle = Create("ParticleEmitter"){
  265. Parent = Parent,
  266. Color = ColorSequence.new(Color1, Color2),
  267. LightEmission = LightEmission,
  268. Size = Size,
  269. Texture = Texture,
  270. Transparency = Transparency,
  271. ZOffset = ZOffset,
  272. Acceleration = Accel,
  273. Drag = Drag,
  274. LockedToPart = LockedToPart,
  275. VelocityInheritance = VelocityInheritance,
  276. EmissionDirection = EmissionDirection,
  277. Enabled = Enabled,
  278. Lifetime = LifeTime,
  279. Rate = Rate,
  280. Rotation = Rotation,
  281. RotSpeed = RotSpeed,
  282. Speed = Speed,
  283. VelocitySpread = VelocitySpread,
  284. }
  285. return Particle
  286. end;
  287. };
  288.  
  289. CreateTemplate = {
  290.  
  291. };
  292. }
  293.  
  294. function rayCast(Position, Direction, Range, Ignore)
  295. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  296. end
  297.  
  298. function FindNearestTorso(Position, Distance, SinglePlayer)
  299. if SinglePlayer then
  300. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  301. end
  302. local List = {}
  303. for i, v in pairs(workspace:GetChildren()) do
  304. if v:IsA("Model") then
  305. if v:findFirstChild("Torso") then
  306. if v ~= Character then
  307. if (v.Torso.Position - Position).magnitude <= Distance then
  308. table.insert(List, v)
  309. end
  310. end
  311. end
  312. end
  313. end
  314. return List
  315. end
  316.  
  317. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  318. if hit.Parent == nil then
  319. return
  320. end
  321. local h = hit.Parent:FindFirstChild("Part")
  322. for _, v in pairs(hit.Parent:children()) do
  323. if v:IsA("Part") then
  324. h = v
  325. end
  326. end
  327. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= "Base" and hit ~= nil then
  328. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  329. if hit.Parent.DebounceHit.Value == true then
  330. return
  331. end
  332. end
  333. local c = Create("ObjectValue"){
  334. Name = "creator",
  335. Value = game:service("Players").LocalPlayer,
  336. Parent = h,
  337. }
  338. game:GetService("Debris"):AddItem(c, .5)
  339. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  340. local Damage = math.random(minim, maxim)
  341. local blocked = false
  342. local block = hit.Parent:findFirstChild("Block")
  343. if block ~= nil then
  344. if block.className == "IntValue" then
  345. if block.Value > 0 then
  346. blocked = true
  347. block.Value = block.Value - 1
  348. print(block.Value)
  349. end
  350. end
  351. end
  352. if Type == "Knockdown" then
  353. local hum = hit.Parent.Humanoid
  354. hum.PlatformStand = true
  355. coroutine.resume(coroutine.create(function(HHumanoid)
  356. swait(1)
  357. HHumanoid.PlatformStand = false
  358. end), hum)
  359. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  360. local bodvol = Create("BodyVelocity"){
  361. velocity = angle * knockback,
  362. P = 5000,
  363. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  364. Parent = hit,
  365. }
  366. local rl = Create("BodyAngularVelocity"){
  367. P = 3000,
  368. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  369. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  370. Parent = hit,
  371. }
  372. game:GetService("Debris"):AddItem(bodvol, .5)
  373. game:GetService("Debris"):AddItem(rl, .5)
  374. elseif Type == "Normal" then
  375. local vp = Create("BodyVelocity"){
  376. P = 500,
  377. maxForce = Vector3.new(math.huge, 0, math.huge),
  378. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  379. }
  380. if knockback > 0 then
  381. vp.Parent = hit
  382. hit.Parent = workspace
  383. hit.Anchored = false
  384. hit.CanCollide = false
  385. hit:BreakJoints()
  386. end
  387. game:GetService("Debris"):AddItem(vp, .5)
  388. elseif Type == "Up" then
  389. local bodyVelocity = Create("BodyVelocity"){
  390. velocity = Vector3.new(0, 20, 0),
  391. P = 5000,
  392. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  393. Parent = hit,
  394. }
  395. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  396. elseif Type == "DarkUp" then
  397. coroutine.resume(coroutine.create(function()
  398. for i = 0, 1, 0.1 do
  399. swait()
  400. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  401. end
  402. end))
  403. local bodyVelocity = Create("BodyVelocity"){
  404. velocity = Vector3.new(0, 20, 0),
  405. P = 5000,
  406. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  407. Parent = hit,
  408. }
  409. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  410. elseif Type == "Snare" then
  411. local bp = Create("BodyPosition"){
  412. P = 2000,
  413. D = 100,
  414. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  415. position = hit.Parent.Torso.Position,
  416. Parent = hit.Parent.Torso,
  417. }
  418. game:GetService("Debris"):AddItem(bp, 1)
  419. elseif Type == "Freeze" then
  420. local BodPos = Create("BodyPosition"){
  421. P = 50000,
  422. D = 1000,
  423. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  424. position = hit.Parent.Torso.Position,
  425. Parent = hit.Parent.Torso,
  426. }
  427. local BodGy = Create("BodyGyro") {
  428. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  429. P = 20e+003,
  430. Parent = hit.Parent.Torso,
  431. cframe = hit.Parent.Torso.CFrame,
  432. }
  433. hit.Parent.Torso.Anchored = true
  434. coroutine.resume(coroutine.create(function(Part)
  435. swait(1.5)
  436. Part.Anchored = false
  437. end), hit.Parent.Torso)
  438. game:GetService("Debris"):AddItem(BodPos, 3)
  439. game:GetService("Debris"):AddItem(BodGy, 3)
  440. end
  441. local debounce = Create("BoolValue"){
  442. Name = "DebounceHit",
  443. Parent = hit.Parent,
  444. Value = true,
  445. }
  446. game:GetService("Debris"):AddItem(debounce, Delay)
  447. c = Create("ObjectValue"){
  448. Name = "creator",
  449. Value = Player,
  450. Parent = h,
  451. }
  452. game:GetService("Debris"):AddItem(c, .5)
  453. end
  454. end
  455.  
  456. function ShowDamage(Pos, Text, Time, Color)
  457. local Rate = (1 / 30)
  458. local Pos = (Pos or Vector3.new(0, 0, 0))
  459. local Text = (Text or "")
  460. local Time = (Time or 2)
  461. local Color = (Color or Color3.new(1, 0, 1))
  462. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  463. EffectPart.Anchored = true
  464. local BillboardGui = Create("BillboardGui"){
  465. Size = UDim2.new(3, 0, 3, 0),
  466. Adornee = EffectPart,
  467. Parent = EffectPart,
  468. }
  469. local TextLabel = Create("TextLabel"){
  470. BackgroundTransparency = 1,
  471. Size = UDim2.new(1, 0, 1, 0),
  472. Text = Text,
  473. Font = "Garamond",
  474. TextColor3 = Torso.Color,
  475. TextScaled = true,
  476. Parent = BillboardGui,
  477. }
  478. game.Debris:AddItem(EffectPart, (Time))
  479. EffectPart.Parent = game:GetService("Workspace")
  480. delay(0, function()
  481. local Frames = (Time / Rate)
  482. for Frame = 1, Frames do
  483. wait(Rate)
  484. local Percent = (Frame / Frames)
  485. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  486. TextLabel.TextTransparency = Percent
  487. end
  488. if EffectPart and EffectPart.Parent then
  489. EffectPart:Destroy()
  490. end
  491. end)
  492. end
  493.  
  494.  
  495.  
  496.  
  497. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  498. for _, c in pairs(workspace:children()) do
  499. local hum = c:findFirstChild("Humanoid")
  500. if hum ~= nil then
  501. local head = hit
  502. if head ~= nil then
  503. local targ = head.Position - Part.Position
  504. local mag = targ.magnitude
  505. if mag <= Magnitude and c.Name ~= Player.Name then
  506. CFuncs.Sound.Create("324867021", head, 1, 1)
  507. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
  508. end
  509. end
  510. end
  511. end
  512. end
  513.  
  514.  
  515. Handle=CFuncs.Part.Create(m,Enum.Material.Neon,0,1,"Bright green","Handle",Vector3.new(1, 1.20000005, 1))
  516. HandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.435136795, -0.716373444, -0.168147802, -0.184279382, -0.967371345, 0.173878923, -0.0978992507, -0.157963246, -0.982580066, 0.977986097, -0.198091835, -0.0655955523))
  517. Part=CFuncs.Part.Create(m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(1, 1.20000005, 1))
  518. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.36849213e-05, 4.00039482, -5.86509705e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  519. CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1, 0.0500000007))
  520. Part=CFuncs.Part.Create(m,Enum.Material.Neon,0,0,"Deep orange","Part",Vector3.new(1, 1.20000005, 1))
  521. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.67979431e-05, -4.00035858, 0.499849081, -0.999994338, 5.56639861e-06, 1.65775418e-06, 5.24974894e-06, 0.999995232, -5.0291419e-06, -3.25776637e-06, -5.08874655e-06, -0.999990761))
  522. CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024))
  523. Part=CFuncs.Part.Create(m,Enum.Material.Neon,0,0,"New yeller","Part",Vector3.new(1, 1.20000005, 1))
  524. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.17232513e-05, 3.20031929, -3.71932983e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  525. CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.60000002, 0.400000006, 0.0500000007))
  526. Part=CFuncs.Part.Create(m,Enum.Material.Neon,0,0,"Lime green","Part",Vector3.new(1, 1.20000005, 1))
  527. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.48905945e-05, -4.00033379, 0.499926567, 1, -5.21628408e-06, -3.65823939e-06, 5.21626544e-06, 1, -5.09625352e-06, 3.658266e-06, 5.09623442e-06, 1))
  528. CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024))
  529. Part=CFuncs.Part.Create(m,Enum.Material.Neon,0,0,"Really blue","Part",Vector3.new(1, 1.20000005, 1))
  530. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74724579e-05, 2.90030861, -2.95639038e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  531. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 0.400000006, 0.400000006))
  532. Part=CFuncs.Part.Create(m,Enum.Material.Neon,0,0,"Magenta","Part",Vector3.new(1, 1.20000005, 1))
  533. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0976924896, -1.42856026, 1.57356262e-05, 3.90782952e-06, 0.275675088, -0.961250901, 5.61308116e-06, -0.96125102, -0.275675088, -1.00000012, -4.33286186e-06, -5.2973628e-06))
  534. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  535. Part=CFuncs.Part.Create(m,Enum.Material.Neon,0,0,"Lilac","Part",Vector3.new(1, 1.20000005, 1))
  536. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.93119049e-05, -0.700065613, 1.33514404e-05, 3.83518636e-06, 8.29994678e-06, -1, 4.9972441e-06, -1.00000012, -8.29994678e-06, -1.00000012, -4.9949158e-06, -3.83518636e-06))
  537. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 0.5))
  538. Part=CFuncs.Part.Create(m,Enum.Material.Neon,0,0,"Bright green","Part",Vector3.new(1, 1.20000005, 1))
  539. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0726666451, 1.43006897, 1.62124634e-05, -5.01610339e-06, 0.258840203, 0.96592015, -3.55858356e-06, 0.96592021, -0.258840173, -1.00000012, -4.73321415e-06, -3.92459333e-06))
  540. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  541. Part=CFuncs.Part.Create(m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(1, 1.20000005, 1))
  542. PartWeld=CFuncs.Weld.Create(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.14848328e-05, 4.36306e-05, 2.00019836, 1, -5.38327731e-06, -2.46055424e-06, -2.4586916e-06, 8.36700201e-06, -1, 5.40760811e-06, 1, 8.37445259e-06))
  543. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  544. Shaft=CFuncs.Part.Create(m,Enum.Material.Neon,0,0,"Deep orange","Shaft",Vector3.new(1, 3.60000014, 1))
  545. ShaftWeld=CFuncs.Weld.Create(m,Handle,Shaft,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.21729279e-05, 1.20008087, -2.24113464e-05, 3.14228237e-06, 4.38094139e-06, -1.00000012, 2.94635538e-06, -1, -4.38839197e-06, -1, -2.95066275e-06, -3.14228237e-06))
  546. CFuncs.Mesh.Create("CylinderMesh",Shaft,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 0.300000012))
  547. Hitbox=CFuncs.Part.Create(m,Enum.Material.Neon,0,1,"New yeller","Hitbox",Vector3.new(7, 3, 3))
  548. HitboxWeld=CFuncs.Weld.Create(m,Handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19377899, -0.184207916, -0.14117223, -0.00053447485, 0.99471724, -0.102652542, -0.999858558, 0.00119461119, 0.0167820305, 0.0168160032, 0.102646977, 0.994575679))
  549.  
  550. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  551. sref.Anchored = true
  552.  
  553. EffectModel = Create("Model"){
  554. Parent = Character,
  555. Name = "Effects",
  556. }
  557.  
  558. Effects = {
  559. Block = {
  560. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  561. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  562. prt.Anchored = true
  563. prt.CFrame = cframe
  564. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  565. game:GetService("Debris"):AddItem(prt, 10)
  566. if Type == 1 or Type == nil then
  567. table.insert(Effects, {
  568. prt,
  569. "Block1",
  570. delay,
  571. x3,
  572. y3,
  573. z3,
  574. msh
  575. })
  576. elseif Type == 2 then
  577. table.insert(Effects, {
  578. prt,
  579. "Block2",
  580. delay,
  581. x3,
  582. y3,
  583. z3,
  584. msh
  585. })
  586. end
  587. end;
  588. };
  589.  
  590. Cylinder = {
  591. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  592. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  593. prt.Anchored = true
  594. prt.CFrame = cframe
  595. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  596. game:GetService("Debris"):AddItem(prt, 2)
  597. table.insert(Effects, {
  598. prt,
  599. "Cylinder",
  600. delay,
  601. x3,
  602. y3,
  603. z3,
  604. msh
  605. })
  606. end;
  607. };
  608.  
  609. Head = {
  610. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  611. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  612. prt.Anchored = true
  613. prt.CFrame = cframe
  614. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  615. game:GetService("Debris"):AddItem(prt, 10)
  616. table.insert(Effects, {
  617. prt,
  618. "Cylinder",
  619. delay,
  620. x3,
  621. y3,
  622. z3,
  623. msh
  624. })
  625. end;
  626. };
  627.  
  628. Sphere = {
  629. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  630. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  631. prt.Anchored = true
  632. prt.CFrame = cframe
  633. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  634. game:GetService("Debris"):AddItem(prt, 10)
  635. table.insert(Effects, {
  636. prt,
  637. "Cylinder",
  638. delay,
  639. x3,
  640. y3,
  641. z3,
  642. msh
  643. })
  644. end;
  645. };
  646.  
  647. Elect = {
  648. Create = function(cff, x, y, z)
  649. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("New Yeller"), "Part", Vector3.new(1, 1, 1))
  650. prt.Anchored = true
  651. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  652. prt.CFrame = CFrame.new(prt.Position)
  653. game:GetService("Debris"):AddItem(prt, 2)
  654. local xval = math.random() / 2
  655. local yval = math.random() / 2
  656. local zval = math.random() / 2
  657. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  658. table.insert(Effects, {
  659. prt,
  660. "Elec",
  661. 0.1,
  662. x,
  663. y,
  664. z,
  665. xval,
  666. yval,
  667. zval
  668. })
  669. end;
  670.  
  671. };
  672.  
  673. Ring = {
  674. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  675. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  676. prt.Anchored = true
  677. prt.CFrame = cframe
  678. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  679. game:GetService("Debris"):AddItem(prt, 10)
  680. table.insert(Effects, {
  681. prt,
  682. "Cylinder",
  683. delay,
  684. x3,
  685. y3,
  686. z3,
  687. msh
  688. })
  689. end;
  690. };
  691.  
  692.  
  693. Wave = {
  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://20329976", 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. Break = {
  713. Create = function(brickcolor, cframe, x1, y1, z1)
  714. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  715. prt.Anchored = true
  716. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  717. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  718. local num = math.random(10, 50) / 1000
  719. game:GetService("Debris"):AddItem(prt, 10)
  720. table.insert(Effects, {
  721. prt,
  722. "Shatter",
  723. num,
  724. prt.CFrame,
  725. math.random() - math.random(),
  726. 0,
  727. math.random(50, 100) / 100
  728. })
  729. end;
  730. };
  731.  
  732. Fire = {
  733. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  734. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  735. prt.Anchored = true
  736. prt.CFrame = cframe
  737. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  738. game:GetService("Debris"):AddItem(prt, 10)
  739. table.insert(Effects, {
  740. prt,
  741. "Fire",
  742. delay,
  743. 1,
  744. 1,
  745. 1,
  746. msh
  747. })
  748. end;
  749. };
  750.  
  751. FireWave = {
  752. Create = function(brickcolor, cframe, x1, y1, z1)
  753. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  754. prt.Anchored = true
  755. prt.CFrame = cframe
  756. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  757. local d = Create("Decal"){
  758. Parent = prt,
  759. Texture = "rbxassetid://26356434",
  760. Face = "Top",
  761. }
  762. local d = Create("Decal"){
  763. Parent = prt,
  764. Texture = "rbxassetid://26356434",
  765. Face = "Bottom",
  766. }
  767. game:GetService("Debris"):AddItem(prt, 10)
  768. table.insert(Effects, {
  769. prt,
  770. "FireWave",
  771. 1,
  772. 30,
  773. math.random(400, 600) / 100,
  774. msh
  775. })
  776. end;
  777. };
  778.  
  779. Lightning = {
  780. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  781. local magz = (p0 - p1).magnitude
  782. local curpos = p0
  783. local trz = {
  784. -ofs,
  785. ofs
  786. }
  787. for i = 1, tym do
  788. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  789. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  790. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  791. li.Material = "Neon"
  792. if tym == i then
  793. local magz2 = (curpos - p1).magnitude
  794. li.Size = Vector3.new(th, th, magz2)
  795. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  796. table.insert(Effects, {
  797. li,
  798. "Disappear",
  799. last
  800. })
  801. else
  802. do
  803. do
  804. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  805. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  806. game.Debris:AddItem(li, 10)
  807. table.insert(Effects, {
  808. li,
  809. "Disappear",
  810. last
  811. })
  812. end
  813. end
  814. end
  815. end
  816. end
  817. };
  818.  
  819. EffectTemplate = {
  820.  
  821. };
  822. }
  823.  
  824.  
  825. function ears()
  826. local quote = math.random(1, 10)
  827. if quote == 1 then
  828. ow = CFuncs.Sound.Create("276916733", Character, 10, 1)
  829. Instance.new("DistortionSoundEffect", ow).Level = .95
  830. elseif quote == 2 then
  831. ow = CFuncs.Sound.Create("222045669", Character, 10, 1)
  832. Instance.new("DistortionSoundEffect", ow).Level = .95
  833. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "I played college ball yaknow", 1.5, BrickColor.new("Grey").Color)
  834. elseif quote == 3 then
  835. ow = CFuncs.Sound.Create("657527128", Character, 10, 1)
  836. Instance.new("DistortionSoundEffect", ow).Level = .95
  837. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Oof", 1.5, BrickColor.new("Grey").Color)
  838. elseif quote == 4 then
  839. CFuncs.Sound.Create("230292394", Character, 10, 1)
  840. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "AAAAAH", 1.5, BrickColor.new("Grey").Color)
  841. elseif quote == 5 then
  842. CFuncs.Sound.Create("230255621", Character, 10, 1)
  843. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "SO", 1.5, BrickColor.new("Grey").Color)
  844. wait(.2)
  845. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "DAH", 1.5, BrickColor.new("Grey").Color)
  846. elseif quote == 6 then
  847. CFuncs.Sound.Create("230255698", Character, 10, 1)
  848. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Y E S", 1.5, BrickColor.new("Grey").Color)
  849. elseif quote == 7 then
  850. CFuncs.Sound.Create("230255738", Character, 10, 1)
  851. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "OH", 1.5, BrickColor.new("Grey").Color)
  852. elseif quote == 8 then
  853. CFuncs.Sound.Create("230292118", Character, 10, 1)
  854. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "AAAAAAAA", 1.5, BrickColor.new("Grey").Color)
  855. elseif quote == 9 then
  856. CFuncs.Sound.Create("230292073", Character, 10, 1)
  857. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "UWEEEEEEEEEEH", 1.5, BrickColor.new("Grey").Color)
  858. elseif quote == 10 then
  859. ow = CFuncs.Sound.Create("225279648", Character, 10, 1)
  860. Instance.new("DistortionSoundEffect", ow).Level = .95
  861. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "help", 1.5, BrickColor.new("Grey").Color)
  862. end
  863. end
  864.  
  865.  
  866.  
  867.  
  868.  
  869. function joj()
  870. while oof == true do
  871. attack = true
  872. local con = Hitbox.Touched:connect(function(hit)
  873. Damage(Hitbox, hit, 0, 0, math.random(300,300), "Normal", RootPart, 0.2, "148862502", 1)end)
  874. CFuncs.Sound.Create("233856140", Hitbox, 10, 1)
  875. for i = 0, 1, 0.1 do
  876. swait()
  877. PlayAnimationFromTable({
  878. CFrame.new(0.318533748, 1.11758709e-08, -0.186876655, 0.571150839, -0.107324705, 0.813798547, -0.321393877, 0.883022606, 0.342018932, -0.755309701, -0.456894249, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  879. CFrame.new(-0.136643112, 1.46224117, -0.102674514, 0.571150839, -0.321393877, -0.755309701, -0.107324705, 0.883022606, -0.456894249, 0.813798547, 0.342018932, 0.469845593) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  880. CFrame.new(1.34420753, 1.19733691, -0.575926542, -0.0377464592, -0.0365618169, 0.998618245, -0.0365605801, -0.998610795, -0.0379435122, 0.998618245, -0.0379423201, 0.0363572836) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  881. CFrame.new(-1.54852927, 1.0183481, -0.403962731, 0.992945313, -0.0193823874, 0.11697869, 0.0193829238, -0.946746707, -0.321395338, 0.116978586, 0.321395338, -0.93969202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  882. CFrame.new(1.30056286, -1.52663183, -0.684036016, 0.872286201, -0.321393877, -0.368541837, 0.13550131, 0.883022606, -0.449344397, 0.469847292, 0.342018932, 0.813797712) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  883. CFrame.new(-0.0819230229, -1.98630714, -0.796365142, 0.843013644, -0.321393877, 0.431316614, 0.431316495, 0.883022606, -0.185032547, -0.321394026, 0.342018932, 0.883022547) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  884. }, .3, false)
  885. end
  886. for i = 0, 1, 0.1 do
  887. swait()
  888. PlayAnimationFromTable({
  889. CFrame.new(-0.70452857, 1.34110451e-07, -0.85472101, 0.0479760207, 0.375900865, -0.925417125, -0.321394145, 0.883022726, 0.342018545, 0.945729494, 0.281014919, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  890. CFrame.new(-0.332258016, 1.42813265, -0.198432297, 0.0479760207, -0.321394145, 0.945729494, 0.375900865, 0.883022726, 0.281014919, -0.925417125, 0.342018545, 0.163176239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  891. CFrame.new(1.3427434, 0.740131199, -1.01291919, 0.0505371541, -0.0144109726, 0.998618364, 0.883102953, 0.467642725, -0.0379427671, -0.466449738, 0.883800209, 0.0363596678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  892. CFrame.new(-1.46270001, 0.38253215, -1.0271579, 0.992945492, -0.11697793, -0.01938124, 0.0193838775, 0.321395963, -0.946746528, 0.116977483, 0.939691901, 0.321396172) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  893. CFrame.new(1.30056417, -1.52663159, -0.684035659, 0.872286379, -0.321394145, -0.368541002, 0.1355021, 0.883022726, -0.449344009, 0.469846606, 0.342018545, 0.813798249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  894. CFrame.new(-0.0819211155, -1.98630702, -0.796365023, 0.84301424, -0.321394145, 0.431315303, 0.431316257, 0.883022726, -0.18503274, -0.321392775, 0.342018545, 0.883023262) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  895. }, .3, false)
  896. end
  897. con:Disconnect()
  898. attack = false
  899. end
  900. end
  901.  
  902. Mouse.Button1Down:connect(function()
  903. if attack == false and oof == false then
  904. oof = true
  905. joj()
  906. end
  907. end)
  908.  
  909.  
  910.  
  911. Mouse.Button1Up:connect(function()
  912. if attack == true and oof == true then
  913. oof = false
  914. end
  915. end)
  916.  
  917.  
  918.  
  919.  
  920. Mouse.KeyDown:connect(function(k)
  921. k = k:lower()
  922. if k == 't' then
  923. ears()
  924. end
  925. end)
  926.  
  927. while true do
  928. swait()
  929. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  930. for i, v in pairs(Character:GetChildren()) do
  931. if v:IsA("Part") then
  932. v.Material = "SmoothPlastic"
  933. elseif v:IsA("Accessory") then
  934. v:WaitForChild("Handle").Material = "SmoothPlastic"
  935. end
  936. end
  937. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  938. velocity = RootPart.Velocity.y
  939. sine = sine + change
  940. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  941. if RootPart.Velocity.y > 1 and hit == nil then
  942. Anim = "Jump"
  943. if attack == false then
  944. PlayAnimationFromTable({
  945. CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  946. CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  947. CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  948. CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  949. CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392e-007, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  950. CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  951. }, .3, false)
  952. end
  953. elseif RootPart.Velocity.y < -1 and hit == nil then
  954. Anim = "Fall"
  955. if attack == false then
  956. PlayAnimationFromTable({
  957. CFrame.new(-0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  958. CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  959. CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  960. CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  961. CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  962. CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  963. }, .3, false)
  964. end
  965. elseif Torsovelocity < 1 and hit ~= nil then
  966. Anim = "Idle"
  967. if attack == false then
  968. change = 1
  969. PlayAnimationFromTable({
  970. CFrame.new(1.90734863e-06, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  971. CFrame.new(-1.90734863e-06, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  972. CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  973. CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, -0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  974. CFrame.new(0.699996471, -1.87938261, -0.684038877, 0.866025388, 0, -0.500000238, -0.171010032, 0.939692736, -0.296197921, 0.469846606, 0.342019886, 0.813797772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  975. CFrame.new(-0.756342053, -1.83849907, -0.79636544, 0.939692736, 0, 0.342019886, 0.116977625, 0.939692736, -0.321393639, -0.321393639, 0.342019886, 0.883022428) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  976. }, .3, false)
  977. end
  978. elseif Torsovelocity > 2 and hit ~= nil then
  979. Anim = "Walk"
  980. if attack == false then
  981. change = 2
  982. PlayAnimationFromTable({
  983. CFrame.new(1.90734863e-06, 0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  984. CFrame.new(-1.90734863e-06, 1.49520886, -0.307131112, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  985. CFrame.new(1.37194049, -0.0753216743, -0.606283188, 0.229498088, 0.301554978, 0.925416291, 0.481514871, 0.791113436, -0.377204269, -0.845857084, 0.532169282, 0.0363558233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  986. CFrame.new(-1.5, 0.0121572316, -0.267316073, 1, 0, -0, 0, 0.642788708, -0.766043544, 0, 0.766043544, 0.642788708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  987. CFrame.new(.5, -1.64 - 0.5 * math.cos(sine / 8) / 2, 0 + 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-70 * math.sin(sine / 8)), math.rad(-3), math.rad(0)),
  988. CFrame.new(-.5, -1.64 + 0.5 * math.cos(sine / 8) / 2, 0 - 2 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(70 * math.sin(sine / 8)), math.rad(3), math.rad(0)),
  989. }, .3, false)
  990. end
  991. end
  992. if 0 < #Effects then
  993. for e = 1, #Effects do
  994. if Effects[e] ~= nil then
  995. local Thing = Effects[e]
  996. if Thing ~= nil then
  997. local Part = Thing[1]
  998. local Mode = Thing[2]
  999. local Delay = Thing[3]
  1000. local IncX = Thing[4]
  1001. local IncY = Thing[5]
  1002. local IncZ = Thing[6]
  1003. if Thing[2] == "Shoot" then
  1004. local Look = Thing[1]
  1005. local move = 5
  1006. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1007. if Thing[10] ~= nil then
  1008. da = pos
  1009. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1010. cfa = CFrame.new(Thing[4], pos)
  1011. tehCF = cfa:lerp(cf2, 0.2)
  1012. Thing[1] = tehCF.lookVector
  1013. end
  1014. local mag = (Thing[4] - pos).magnitude
  1015. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1016. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, 3, 3, 5, 5, 5, 0.15)
  1017. Thing[4] = Thing[4] + Look * move
  1018. Thing[3] = Thing[3] - 1
  1019. if 2 < Thing[5] then
  1020. Thing[5] = Thing[5] - 0.3
  1021. Thing[6] = Thing[6] - 0.3
  1022. end
  1023. if hit ~= nil then
  1024. Thing[3] = 0
  1025. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1026. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1027. ref.Anchored = true
  1028. ref.CFrame = CFrame.new(pos)
  1029. Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1030. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1031. game:GetService("Debris"):AddItem(ref, 1)
  1032. end
  1033. if Thing[3] <= 0 then
  1034. table.remove(Effects, e)
  1035. end
  1036. end
  1037. do
  1038. do
  1039. if Thing[2] == "FireWave" then
  1040. if Thing[3] <= Thing[4] then
  1041. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1042. Thing[3] = Thing[3] + 1
  1043. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1044. else
  1045. Part.Parent = nil
  1046. table.remove(Effects, e)
  1047. end
  1048. end
  1049. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1050. if Thing[1].Transparency <= 1 then
  1051. if Thing[2] == "Block1" then
  1052. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1053. Mesh = Thing[7]
  1054. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1055. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1056. else
  1057. if Thing[2] == "Block2" then
  1058. Thing[1].CFrame = Thing[1].CFrame
  1059. Mesh = Thing[7]
  1060. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1061. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1062. else
  1063. if Thing[2] == "Fire" then
  1064. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1065. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1066. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1067. else
  1068. if Thing[2] == "Cylinder" then
  1069. Mesh = Thing[7]
  1070. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1071. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1072. else
  1073. if Thing[2] == "Blood" then
  1074. Mesh = Thing[7]
  1075. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1076. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1077. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1078. else
  1079. if Thing[2] == "Elec" then
  1080. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1081. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1082. else
  1083. if Thing[2] == "Disappear" then
  1084. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1085. end
  1086. end
  1087. end
  1088. end
  1089. end
  1090. end
  1091. end
  1092. else
  1093. Part.Parent = nil
  1094. table.remove(Effects, e)
  1095. end
  1096. end
  1097. end
  1098. end
  1099. end
  1100. end
  1101. end
  1102. end
  1103. end
Add Comment
Please, Sign In to add comment