Dark_EccentricYT

Untitled

Mar 24th, 2018
7,150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.51 KB | None | 0 0
  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. Character.Shirt:Remove()
  37. Character.Pants:Remove()
  38. pants = Instance.new("Pants", Character)
  39. pants.PantsTemplate = "http://www.roblox.com/asset/?id=242242068"
  40. DHandle = Instance.new("Part")
  41. DMesh = Instance.new("SpecialMesh")
  42. DWeld = Instance.new("Weld")
  43. DHandle.Parent = Character
  44. DHandle.Name = "Handle"
  45. DHandle.CanCollide = false
  46. DHandle.Locked = true
  47. DHandle.Size = Vector3.new(1.93, 1.77, 1.6)
  48. DMesh.Parent = DHandle
  49. DMesh.Scale = DMesh.Scale
  50. DWeld.Parent = DHandle
  51. DWeld.Name = "no"
  52. DWeld.Part0 = Head
  53. DWeld.Part1 = DHandle
  54. DWeld.C0 = CFrame.new(0,.4,0) * CFrame.fromEulerAnglesXYZ(math.rad(-1),0,0)VertexColor = Vector3.new(1,1,1)
  55. DHandle.Transparency = 0
  56. DMesh.MeshId = "http://www.roblox.com/asset/?id=12259089"
  57. DMesh.TextureId = "http://www.roblox.com/asset/?id=12259192"
  58. local m = Create("Model"){
  59. Parent = Character,
  60. Name = "WeaponModel",
  61. }
  62.  
  63. Humanoid.Animator.Parent = nil
  64. Character.Animate.Parent = nil
  65.  
  66. local newMotor = function(part0, part1, c0, c1)
  67. local w = Create('Motor'){
  68. Parent = part0,
  69. Part0 = part0,
  70. Part1 = part1,
  71. C0 = c0,
  72. C1 = c1,
  73. }
  74. return w
  75. end
  76.  
  77. function clerp(a, b, t)
  78. return a:lerp(b, t)
  79. end
  80.  
  81. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  82. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  83.  
  84. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  85. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  86. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  87. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  88. RootJoint.C1 = CFrame.new(0, 0, 0)
  89. RootJoint.C0 = CFrame.new(0, 0, 0)
  90. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  91. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  92.  
  93. local rarmc1 = RW.C1
  94. local larmc1 = LW.C1
  95. local rlegc1 = RH.C1
  96. local llegc1 = LH.C1
  97.  
  98. local resetc1 = false
  99.  
  100. function PlayAnimationFromTable(table, speed, bool)
  101. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  102. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  103. RW.C0 = clerp(RW.C0, table[3], speed)
  104. LW.C0 = clerp(LW.C0, table[4], speed)
  105. RH.C0 = clerp(RH.C0, table[5], speed)
  106. LH.C0 = clerp(LH.C0, table[6], speed)
  107. if bool == true then
  108. if resetc1 == false then
  109. resetc1 = true
  110. RootJoint.C1 = RootJoint.C1
  111. Torso.Neck.C1 = Torso.Neck.C1
  112. RW.C1 = rarmc1
  113. LW.C1 = larmc1
  114. RH.C1 = rlegc1
  115. LH.C1 = llegc1
  116. end
  117. end
  118. end
  119.  
  120. ArtificialHB = Create("BindableEvent", script){
  121. Parent = script,
  122. Name = "Heartbeat",
  123. }
  124.  
  125. script:WaitForChild("Heartbeat")
  126.  
  127. frame = 1 / 500
  128. tf = 0
  129. allowframeloss = false
  130. tossremainder = false
  131. lastframe = tick()
  132. script.Heartbeat:Fire()
  133.  
  134. game:GetService("RunService").Heartbeat:connect(function(s, p)
  135. tf = tf + s
  136. if tf >= frame then
  137. if allowframeloss then
  138. script.Heartbeat:Fire()
  139. lastframe = tick()
  140. else
  141. for i = 1, math.floor(tf / frame) do
  142. script.Heartbeat:Fire()
  143. end
  144. lastframe = tick()
  145. end
  146. if tossremainder then
  147. tf = 0
  148. else
  149. tf = tf - frame * math.floor(tf / frame)
  150. end
  151. end
  152. end)
  153.  
  154. function swait(num)
  155. if num == 0 or num == nil then
  156. ArtificialHB.Event:wait()
  157. else
  158. for i = 0, num do
  159. ArtificialHB.Event:wait()
  160. end
  161. end
  162. end
  163.  
  164. function RemoveOutlines(part)
  165. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  166. end
  167.  
  168. CFuncs = {
  169. Part = {
  170. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  171. local Part = Create("Part"){
  172. Parent = Parent,
  173. Reflectance = Reflectance,
  174. Transparency = Transparency,
  175. CanCollide = false,
  176. Locked = true,
  177. BrickColor = BrickColor.new(tostring(BColor)),
  178. Name = Name,
  179. Size = Size,
  180. Material = Material,
  181. }
  182. RemoveOutlines(Part)
  183. if Size == Vector3.new() then
  184. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  185. else
  186. Part.Size = Size
  187. end
  188. return Part
  189. end;
  190. };
  191.  
  192. Mesh = {
  193. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  194. local Msh = Create(Mesh){
  195. Parent = Part,
  196. Offset = OffSet,
  197. Scale = Scale,
  198. }
  199. if Mesh == "SpecialMesh" then
  200. Msh.MeshType = MeshType
  201. Msh.MeshId = MeshId
  202. end
  203. return Msh
  204. end;
  205. };
  206.  
  207. Weld = {
  208. Create = function(Parent, Part0, Part1, C0, C1)
  209. local Weld = Create("Weld"){
  210. Parent = Parent,
  211. Part0 = Part0,
  212. Part1 = Part1,
  213. C0 = C0,
  214. C1 = C1,
  215. }
  216. return Weld
  217. end;
  218. };
  219.  
  220. Sound = {
  221. Create = function(id, par, vol, pit)
  222. local Sound = Create("Sound"){
  223. Volume = vol,
  224. Pitch = pit or 1,
  225. SoundId = "rbxassetid://" .. id,
  226. Parent = par or workspace,
  227. }
  228. Sound:play()
  229. return Sound
  230. end;
  231. };
  232.  
  233. Decal = {
  234. Create = function(Color, Texture, Transparency, Name, Parent)
  235. local Decal = Create("Decal"){
  236. Color3 = Color,
  237. Texture = "rbxassetid://" .. Texture,
  238. Transparency = Transparency,
  239. Name = Name,
  240. Parent = Parent,
  241. }
  242. return Decal
  243. end;
  244. };
  245.  
  246. BillboardGui = {
  247. Create = function(Parent, Image, Position, Size)
  248. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  249. BillPar.CFrame = CFrame.new(Position)
  250. local Bill = Create("BillboardGui"){
  251. Parent = BillPar,
  252. Adornee = BillPar,
  253. Size = UDim2.new(1, 0, 1, 0),
  254. SizeOffset = Vector2.new(Size, Size),
  255. }
  256. local d = Create("ImageLabel", Bill){
  257. Parent = Bill,
  258. BackgroundTransparency = 1,
  259. Size = UDim2.new(1, 0, 1, 0),
  260. Image = "rbxassetid://" .. Image,
  261. }
  262. return BillPar
  263. end
  264. };
  265.  
  266. ParticleEmitter = {
  267. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  268. local Particle = Create("ParticleEmitter"){
  269. Parent = Parent,
  270. Color = ColorSequence.new(Color1, Color2),
  271. LightEmission = LightEmission,
  272. Size = Size,
  273. Texture = Texture,
  274. Transparency = Transparency,
  275. ZOffset = ZOffset,
  276. Acceleration = Accel,
  277. Drag = Drag,
  278. LockedToPart = LockedToPart,
  279. VelocityInheritance = VelocityInheritance,
  280. EmissionDirection = EmissionDirection,
  281. Enabled = Enabled,
  282. Lifetime = LifeTime,
  283. Rate = Rate,
  284. Rotation = Rotation,
  285. RotSpeed = RotSpeed,
  286. Speed = Speed,
  287. VelocitySpread = VelocitySpread,
  288. }
  289. return Particle
  290. end;
  291. };
  292.  
  293. CreateTemplate = {
  294.  
  295. };
  296. }
  297.  
  298. function rayCast(Position, Direction, Range, Ignore)
  299. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  300. end
  301.  
  302. function FindNearestTorso(Position, Distance, SinglePlayer)
  303. if SinglePlayer then
  304. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  305. end
  306. local List = {}
  307. for i, v in pairs(workspace:GetChildren()) do
  308. if v:IsA("Model") then
  309. if v:findFirstChild("Torso") then
  310. if v ~= Character then
  311. if (v.Torso.Position - Position).magnitude <= Distance then
  312. table.insert(List, v)
  313. end
  314. end
  315. end
  316. end
  317. end
  318. return List
  319. end
  320.  
  321. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  322. if hit.Parent == nil then
  323. return
  324. end
  325. local h = hit.Parent:FindFirstChild("Part")
  326. for _, v in pairs(hit.Parent:children()) do
  327. if v:IsA("Part") then
  328. h = v
  329. end
  330. end
  331. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent.Name ~= "Base" and hit ~= nil then
  332. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  333. if hit.Parent.DebounceHit.Value == true then
  334. return
  335. end
  336. end
  337. local c = Create("ObjectValue"){
  338. Name = "creator",
  339. Value = game:service("Players").LocalPlayer,
  340. Parent = h,
  341. }
  342. game:GetService("Debris"):AddItem(c, .5)
  343. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  344. local Damage = math.random(minim, maxim)
  345. local blocked = false
  346. local block = hit.Parent:findFirstChild("Block")
  347. if block ~= nil then
  348. if block.className == "IntValue" then
  349. if block.Value > 0 then
  350. blocked = true
  351. block.Value = block.Value - 1
  352. print(block.Value)
  353. end
  354. end
  355. end
  356. if Type == "Knockdown" then
  357. local hum = hit.Parent.Humanoid
  358. hum.PlatformStand = true
  359. coroutine.resume(coroutine.create(function(HHumanoid)
  360. swait(1)
  361. HHumanoid.PlatformStand = false
  362. end), hum)
  363. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  364. local bodvol = Create("BodyVelocity"){
  365. velocity = angle * knockback,
  366. P = 5000,
  367. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  368. Parent = hit,
  369. }
  370. local rl = Create("BodyAngularVelocity"){
  371. P = 3000,
  372. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  373. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  374. Parent = hit,
  375. }
  376. game:GetService("Debris"):AddItem(bodvol, .5)
  377. game:GetService("Debris"):AddItem(rl, .5)
  378. elseif Type == "Normal" then
  379. local vp = Create("BodyVelocity"){
  380. P = 500,
  381. maxForce = Vector3.new(math.huge, 0, math.huge),
  382. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  383. }
  384. if knockback > 0 then
  385. vp.Parent = hit
  386. hit.Parent = workspace
  387. hit.Anchored = false
  388. hit.CanCollide = false
  389. hit:BreakJoints()
  390. end
  391. game:GetService("Debris"):AddItem(vp, .5)
  392. elseif Type == "Up" then
  393. local bodyVelocity = Create("BodyVelocity"){
  394. velocity = Vector3.new(0, 20, 0),
  395. P = 5000,
  396. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  397. Parent = hit,
  398. }
  399. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  400. elseif Type == "DarkUp" then
  401. coroutine.resume(coroutine.create(function()
  402. for i = 0, 1, 0.1 do
  403. swait()
  404. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  405. end
  406. end))
  407. local bodyVelocity = Create("BodyVelocity"){
  408. velocity = Vector3.new(0, 20, 0),
  409. P = 5000,
  410. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  411. Parent = hit,
  412. }
  413. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  414. elseif Type == "Snare" then
  415. local bp = Create("BodyPosition"){
  416. P = 2000,
  417. D = 100,
  418. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  419. position = hit.Parent.Torso.Position,
  420. Parent = hit.Parent.Torso,
  421. }
  422. game:GetService("Debris"):AddItem(bp, 1)
  423. elseif Type == "Freeze" then
  424. local BodPos = Create("BodyPosition"){
  425. P = 50000,
  426. D = 1000,
  427. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  428. position = hit.Parent.Torso.Position,
  429. Parent = hit.Parent.Torso,
  430. }
  431. local BodGy = Create("BodyGyro") {
  432. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  433. P = 20e+003,
  434. Parent = hit.Parent.Torso,
  435. cframe = hit.Parent.Torso.CFrame,
  436. }
  437. hit.Parent.Torso.Anchored = true
  438. coroutine.resume(coroutine.create(function(Part)
  439. swait(1.5)
  440. Part.Anchored = false
  441. end), hit.Parent.Torso)
  442. game:GetService("Debris"):AddItem(BodPos, 3)
  443. game:GetService("Debris"):AddItem(BodGy, 3)
  444. end
  445. local debounce = Create("BoolValue"){
  446. Name = "DebounceHit",
  447. Parent = hit.Parent,
  448. Value = true,
  449. }
  450. game:GetService("Debris"):AddItem(debounce, Delay)
  451. c = Create("ObjectValue"){
  452. Name = "creator",
  453. Value = Player,
  454. Parent = h,
  455. }
  456. game:GetService("Debris"):AddItem(c, .5)
  457. end
  458. end
  459.  
  460. function ShowDamage(Pos, Text, Time, Color)
  461. local Rate = (1 / 30)
  462. local Pos = (Pos or Vector3.new(0, 0, 0))
  463. local Text = (Text or "")
  464. local Time = (Time or 2)
  465. local Color = (Color or Color3.new(1, 0, 1))
  466. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  467. EffectPart.Anchored = true
  468. local BillboardGui = Create("BillboardGui"){
  469. Size = UDim2.new(3, 0, 3, 0),
  470. Adornee = EffectPart,
  471. Parent = EffectPart,
  472. }
  473. local TextLabel = Create("TextLabel"){
  474. BackgroundTransparency = 1,
  475. Size = UDim2.new(1, 0, 1, 0),
  476. Text = Text,
  477. Font = "Garamond",
  478. TextColor3 = Torso.Color,
  479. TextScaled = true,
  480. Parent = BillboardGui,
  481. }
  482. game.Debris:AddItem(EffectPart, (Time))
  483. EffectPart.Parent = game:GetService("Workspace")
  484. delay(0, function()
  485. local Frames = (Time / Rate)
  486. for Frame = 1, Frames do
  487. wait(Rate)
  488. local Percent = (Frame / Frames)
  489. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  490. TextLabel.TextTransparency = Percent
  491. end
  492. if EffectPart and EffectPart.Parent then
  493. EffectPart:Destroy()
  494. end
  495. end)
  496. end
  497.  
  498.  
  499.  
  500.  
  501. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  502. for _, c in pairs(workspace:children()) do
  503. local hum = c:findFirstChild("Humanoid")
  504. if hum ~= nil then
  505. local head = hit
  506. if head ~= nil then
  507. local targ = head.Position - Part.Position
  508. local mag = targ.magnitude
  509. if mag <= Magnitude and c.Name ~= Player.Name then
  510. CFuncs.Sound.Create("324867021", head, 1, 1)
  511. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitSound, HitPitch)
  512. end
  513. end
  514. end
  515. end
  516. end
  517.  
  518.  
  519. Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Bright green","Handle",Vector3.new(1, 1.20000005, 1))
  520. 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))
  521. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  522. 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))
  523. CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 1, 0.0500000007))
  524. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  525. 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))
  526. CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024))
  527. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  528. 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))
  529. CFuncs.Mesh.Create("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.60000002, 0.400000006, 0.0500000007))
  530. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  531. 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))
  532. CFuncs.Mesh.Create("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.600000024))
  533. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  534. 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))
  535. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.400000006, 0.400000006, 0.400000006))
  536. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  537. 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))
  538. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  539. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  540. 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))
  541. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 0.5))
  542. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  543. 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))
  544. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  545. Part=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Dark stone grey","Part",Vector3.new(1, 1.20000005, 1))
  546. 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))
  547. CFuncs.Mesh.Create("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1, 0.200000003))
  548. Shaft=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Brown","Shaft",Vector3.new(1, 3.60000014, 1))
  549. 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))
  550. CFuncs.Mesh.Create("CylinderMesh",Shaft,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 0.300000012))
  551. Hitbox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Hitbox",Vector3.new(7, 3, 3))
  552. 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))
  553.  
  554.  
  555. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  556. sref.Anchored = true
  557.  
  558. EffectModel = Create("Model"){
  559. Parent = Character,
  560. Name = "Effects",
  561. }
  562.  
  563. Effects = {
  564. Block = {
  565. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  566. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  567. prt.Anchored = true
  568. prt.CFrame = cframe
  569. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  570. game:GetService("Debris"):AddItem(prt, 10)
  571. if Type == 1 or Type == nil then
  572. table.insert(Effects, {
  573. prt,
  574. "Block1",
  575. delay,
  576. x3,
  577. y3,
  578. z3,
  579. msh
  580. })
  581. elseif Type == 2 then
  582. table.insert(Effects, {
  583. prt,
  584. "Block2",
  585. delay,
  586. x3,
  587. y3,
  588. z3,
  589. msh
  590. })
  591. end
  592. end;
  593. };
  594.  
  595. Cylinder = {
  596. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  597. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  598. prt.Anchored = true
  599. prt.CFrame = cframe
  600. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  601. game:GetService("Debris"):AddItem(prt, 2)
  602. table.insert(Effects, {
  603. prt,
  604. "Cylinder",
  605. delay,
  606. x3,
  607. y3,
  608. z3,
  609. msh
  610. })
  611. end;
  612. };
  613.  
  614. Head = {
  615. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  616. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  617. prt.Anchored = true
  618. prt.CFrame = cframe
  619. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  620. game:GetService("Debris"):AddItem(prt, 10)
  621. table.insert(Effects, {
  622. prt,
  623. "Cylinder",
  624. delay,
  625. x3,
  626. y3,
  627. z3,
  628. msh
  629. })
  630. end;
  631. };
  632.  
  633. Sphere = {
  634. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  635. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  636. prt.Anchored = true
  637. prt.CFrame = cframe
  638. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  639. game:GetService("Debris"):AddItem(prt, 10)
  640. table.insert(Effects, {
  641. prt,
  642. "Cylinder",
  643. delay,
  644. x3,
  645. y3,
  646. z3,
  647. msh
  648. })
  649. end;
  650. };
  651.  
  652. Elect = {
  653. Create = function(cff, x, y, z)
  654. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("New Yeller"), "Part", Vector3.new(1, 1, 1))
  655. prt.Anchored = true
  656. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  657. prt.CFrame = CFrame.new(prt.Position)
  658. game:GetService("Debris"):AddItem(prt, 2)
  659. local xval = math.random() / 2
  660. local yval = math.random() / 2
  661. local zval = math.random() / 2
  662. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  663. table.insert(Effects, {
  664. prt,
  665. "Elec",
  666. 0.1,
  667. x,
  668. y,
  669. z,
  670. xval,
  671. yval,
  672. zval
  673. })
  674. end;
  675.  
  676. };
  677.  
  678. Ring = {
  679. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  680. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  681. prt.Anchored = true
  682. prt.CFrame = cframe
  683. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  684. game:GetService("Debris"):AddItem(prt, 10)
  685. table.insert(Effects, {
  686. prt,
  687. "Cylinder",
  688. delay,
  689. x3,
  690. y3,
  691. z3,
  692. msh
  693. })
  694. end;
  695. };
  696.  
  697.  
  698. Wave = {
  699. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  700. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  701. prt.Anchored = true
  702. prt.CFrame = cframe
  703. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  704. game:GetService("Debris"):AddItem(prt, 10)
  705. table.insert(Effects, {
  706. prt,
  707. "Cylinder",
  708. delay,
  709. x3,
  710. y3,
  711. z3,
  712. msh
  713. })
  714. end;
  715. };
  716.  
  717. Break = {
  718. Create = function(brickcolor, cframe, x1, y1, z1)
  719. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  720. prt.Anchored = true
  721. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  722. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  723. local num = math.random(10, 50) / 1000
  724. game:GetService("Debris"):AddItem(prt, 10)
  725. table.insert(Effects, {
  726. prt,
  727. "Shatter",
  728. num,
  729. prt.CFrame,
  730. math.random() - math.random(),
  731. 0,
  732. math.random(50, 100) / 100
  733. })
  734. end;
  735. };
  736.  
  737. Fire = {
  738. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  739. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  740. prt.Anchored = true
  741. prt.CFrame = cframe
  742. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  743. game:GetService("Debris"):AddItem(prt, 10)
  744. table.insert(Effects, {
  745. prt,
  746. "Fire",
  747. delay,
  748. 1,
  749. 1,
  750. 1,
  751. msh
  752. })
  753. end;
  754. };
  755.  
  756. FireWave = {
  757. Create = function(brickcolor, cframe, x1, y1, z1)
  758. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  759. prt.Anchored = true
  760. prt.CFrame = cframe
  761. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  762. local d = Create("Decal"){
  763. Parent = prt,
  764. Texture = "rbxassetid://26356434",
  765. Face = "Top",
  766. }
  767. local d = Create("Decal"){
  768. Parent = prt,
  769. Texture = "rbxassetid://26356434",
  770. Face = "Bottom",
  771. }
  772. game:GetService("Debris"):AddItem(prt, 10)
  773. table.insert(Effects, {
  774. prt,
  775. "FireWave",
  776. 1,
  777. 30,
  778. math.random(400, 600) / 100,
  779. msh
  780. })
  781. end;
  782. };
  783.  
  784. Lightning = {
  785. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  786. local magz = (p0 - p1).magnitude
  787. local curpos = p0
  788. local trz = {
  789. -ofs,
  790. ofs
  791. }
  792. for i = 1, tym do
  793. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  794. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  795. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  796. li.Material = "Neon"
  797. if tym == i then
  798. local magz2 = (curpos - p1).magnitude
  799. li.Size = Vector3.new(th, th, magz2)
  800. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  801. table.insert(Effects, {
  802. li,
  803. "Disappear",
  804. last
  805. })
  806. else
  807. do
  808. do
  809. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  810. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  811. game.Debris:AddItem(li, 10)
  812. table.insert(Effects, {
  813. li,
  814. "Disappear",
  815. last
  816. })
  817. end
  818. end
  819. end
  820. end
  821. end
  822. };
  823.  
  824. EffectTemplate = {
  825.  
  826. };
  827. }
  828.  
  829.  
  830. function ears()
  831. local quote = math.random(1, 10)
  832. if quote == 1 then
  833. ow = CFuncs.Sound.Create("276916733", Character, 10, 1)
  834. Instance.new("DistortionSoundEffect", ow).Level = .95
  835. elseif quote == 2 then
  836. ow = CFuncs.Sound.Create("222045669", Character, 10, 1)
  837. Instance.new("DistortionSoundEffect", ow).Level = .95
  838. 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)
  839. elseif quote == 3 then
  840. ow = CFuncs.Sound.Create("657527128", Character, 10, 1)
  841. Instance.new("DistortionSoundEffect", ow).Level = .95
  842. 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)
  843. elseif quote == 4 then
  844. CFuncs.Sound.Create("230292394", Character, 10, 1)
  845. 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)
  846. elseif quote == 5 then
  847. CFuncs.Sound.Create("230255621", Character, 10, 1)
  848. 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)
  849. wait(.2)
  850. 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)
  851. elseif quote == 6 then
  852. CFuncs.Sound.Create("230255698", Character, 10, 1)
  853. 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)
  854. elseif quote == 7 then
  855. CFuncs.Sound.Create("230255738", Character, 10, 1)
  856. 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)
  857. elseif quote == 8 then
  858. CFuncs.Sound.Create("230292118", Character, 10, 1)
  859. 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)
  860. elseif quote == 9 then
  861. CFuncs.Sound.Create("230292073", Character, 10, 1)
  862. 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)
  863. elseif quote == 10 then
  864. ow = CFuncs.Sound.Create("225279648", Character, 10, 1)
  865. Instance.new("DistortionSoundEffect", ow).Level = .95
  866. 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)
  867. end
  868. end
  869.  
  870.  
  871.  
  872.  
  873.  
  874. function joj()
  875. while oof == true do
  876. attack = true
  877. local con = Hitbox.Touched:connect(function(hit)
  878. Damage(Hitbox, hit, 0, 0, math.random(300,300), "Normal", RootPart, 0.2, "148862502", 1)end)
  879. CFuncs.Sound.Create("233856140", Hitbox, 10, 1)
  880. for i = 0, 1, 0.1 do
  881. swait()
  882. PlayAnimationFromTable({
  883. 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),
  884. 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),
  885. 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),
  886. 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),
  887. 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),
  888. 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),
  889. }, .3, false)
  890. end
  891. for i = 0, 1, 0.1 do
  892. swait()
  893. PlayAnimationFromTable({
  894. 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),
  895. 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),
  896. 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),
  897. 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),
  898. 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),
  899. 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),
  900. }, .3, false)
  901. end
  902. con:Disconnect()
  903. attack = false
  904. end
  905. end
  906.  
  907. Mouse.Button1Down:connect(function()
  908. if attack == false and oof == false then
  909. oof = true
  910. joj()
  911. end
  912. end)
  913.  
  914.  
  915.  
  916. Mouse.Button1Up:connect(function()
  917. if attack == true and oof == true then
  918. oof = false
  919. end
  920. end)
  921.  
  922.  
  923.  
  924.  
  925. Mouse.KeyDown:connect(function(k)
  926. k = k:lower()
  927. if k == 't' then
  928. ears()
  929. end
  930. end)
  931.  
  932. while true do
  933. swait()
  934. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  935. for i, v in pairs(Character:GetChildren()) do
  936. if v:IsA("Part") then
  937. v.Material = "SmoothPlastic"
  938. elseif v:IsA("Accessory") then
  939. v:WaitForChild("Handle").Material = "SmoothPlastic"
  940. end
  941. end
  942. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  943. velocity = RootPart.Velocity.y
  944. sine = sine + change
  945. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  946. if RootPart.Velocity.y > 1 and hit == nil then
  947. Anim = "Jump"
  948. if attack == false then
  949. PlayAnimationFromTable({
  950. 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),
  951. 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),
  952. 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),
  953. 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),
  954. 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),
  955. 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),
  956. }, .3, false)
  957. end
  958. elseif RootPart.Velocity.y < -1 and hit == nil then
  959. Anim = "Fall"
  960. if attack == false then
  961. PlayAnimationFromTable({
  962. 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),
  963. 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),
  964. 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),
  965. 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),
  966. 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),
  967. 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),
  968. }, .3, false)
  969. end
  970. elseif Torsovelocity < 1 and hit ~= nil then
  971. Anim = "Idle"
  972. if attack == false then
  973. change = 1
  974. PlayAnimationFromTable({
  975. 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),
  976. 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),
  977. 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),
  978. 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),
  979. 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),
  980. 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),
  981. }, .3, false)
  982. end
  983. elseif Torsovelocity > 2 and hit ~= nil then
  984. Anim = "Walk"
  985. if attack == false then
  986. change = 2
  987. PlayAnimationFromTable({
  988. 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),
  989. 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),
  990. 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),
  991. 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),
  992. 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)),
  993. 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)),
  994. }, .3, false)
  995. end
  996. end
  997. if 0 < #Effects then
  998. for e = 1, #Effects do
  999. if Effects[e] ~= nil then
  1000. local Thing = Effects[e]
  1001. if Thing ~= nil then
  1002. local Part = Thing[1]
  1003. local Mode = Thing[2]
  1004. local Delay = Thing[3]
  1005. local IncX = Thing[4]
  1006. local IncY = Thing[5]
  1007. local IncZ = Thing[6]
  1008. if Thing[2] == "Shoot" then
  1009. local Look = Thing[1]
  1010. local move = 5
  1011. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1012. if Thing[10] ~= nil then
  1013. da = pos
  1014. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1015. cfa = CFrame.new(Thing[4], pos)
  1016. tehCF = cfa:lerp(cf2, 0.2)
  1017. Thing[1] = tehCF.lookVector
  1018. end
  1019. local mag = (Thing[4] - pos).magnitude
  1020. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1021. 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)
  1022. Thing[4] = Thing[4] + Look * move
  1023. Thing[3] = Thing[3] - 1
  1024. if 2 < Thing[5] then
  1025. Thing[5] = Thing[5] - 0.3
  1026. Thing[6] = Thing[6] - 0.3
  1027. end
  1028. if hit ~= nil then
  1029. Thing[3] = 0
  1030. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1031. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1032. ref.Anchored = true
  1033. ref.CFrame = CFrame.new(pos)
  1034. Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1035. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1036. game:GetService("Debris"):AddItem(ref, 1)
  1037. end
  1038. if Thing[3] <= 0 then
  1039. table.remove(Effects, e)
  1040. end
  1041. end
  1042. do
  1043. do
  1044. if Thing[2] == "FireWave" then
  1045. if Thing[3] <= Thing[4] then
  1046. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1047. Thing[3] = Thing[3] + 1
  1048. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1049. else
  1050. Part.Parent = nil
  1051. table.remove(Effects, e)
  1052. end
  1053. end
  1054. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1055. if Thing[1].Transparency <= 1 then
  1056. if Thing[2] == "Block1" then
  1057. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1058. Mesh = Thing[7]
  1059. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1060. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1061. else
  1062. if Thing[2] == "Block2" then
  1063. Thing[1].CFrame = Thing[1].CFrame
  1064. Mesh = Thing[7]
  1065. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1066. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1067. else
  1068. if Thing[2] == "Fire" then
  1069. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1070. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1071. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1072. else
  1073. if Thing[2] == "Cylinder" then
  1074. Mesh = Thing[7]
  1075. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1076. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1077. else
  1078. if Thing[2] == "Blood" then
  1079. Mesh = Thing[7]
  1080. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1081. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1082. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1083. else
  1084. if Thing[2] == "Elec" then
  1085. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1086. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1087. else
  1088. if Thing[2] == "Disappear" then
  1089. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1090. end
  1091. end
  1092. end
  1093. end
  1094. end
  1095. end
  1096. end
  1097. else
  1098. Part.Parent = nil
  1099. table.remove(Effects, e)
  1100. end
  1101. end
  1102. end
  1103. end
  1104. end
  1105. end
  1106. end
  1107. end
  1108. end
Add Comment
Please, Sign In to add comment