MASTEROFJOHNDOE

Untitled

Apr 27th, 2018
175
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=304895983"
  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.Plastic,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.Plastic,0,0,"Dark stone grey","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.Plastic,0,0,"Dark stone grey","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.Plastic,0,0,"Dark stone grey","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.Plastic,0,0,"Dark stone grey","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.Plastic,0,0,"Dark stone grey","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.Plastic,0,0,"Dark stone grey","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.Plastic,0,0,"Dark stone grey","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.Plastic,0,0,"Dark stone grey","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.Plastic,0,0,"Dark stone grey","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.Plastic,0,0,"Brown","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.Plastic,0,1,"Medium stone grey","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.  
  551. sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  552. sref.Anchored = true
  553.  
  554. EffectModel = Create("Model"){
  555. Parent = Character,
  556. Name = "Effects",
  557. }
  558.  
  559. Effects = {
  560. Block = {
  561. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  562. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  563. prt.Anchored = true
  564. prt.CFrame = cframe
  565. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  566. game:GetService("Debris"):AddItem(prt, 10)
  567. if Type == 1 or Type == nil then
  568. table.insert(Effects, {
  569. prt,
  570. "Block1",
  571. delay,
  572. x3,
  573. y3,
  574. z3,
  575. msh
  576. })
  577. elseif Type == 2 then
  578. table.insert(Effects, {
  579. prt,
  580. "Block2",
  581. delay,
  582. x3,
  583. y3,
  584. z3,
  585. msh
  586. })
  587. end
  588. end;
  589. };
  590.  
  591. Cylinder = {
  592. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  593. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  594. prt.Anchored = true
  595. prt.CFrame = cframe
  596. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  597. game:GetService("Debris"):AddItem(prt, 2)
  598. table.insert(Effects, {
  599. prt,
  600. "Cylinder",
  601. delay,
  602. x3,
  603. y3,
  604. z3,
  605. msh
  606. })
  607. end;
  608. };
  609.  
  610. Head = {
  611. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  612. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  613. prt.Anchored = true
  614. prt.CFrame = cframe
  615. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  616. game:GetService("Debris"):AddItem(prt, 10)
  617. table.insert(Effects, {
  618. prt,
  619. "Cylinder",
  620. delay,
  621. x3,
  622. y3,
  623. z3,
  624. msh
  625. })
  626. end;
  627. };
  628.  
  629. Sphere = {
  630. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  631. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  632. prt.Anchored = true
  633. prt.CFrame = cframe
  634. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  635. game:GetService("Debris"):AddItem(prt, 10)
  636. table.insert(Effects, {
  637. prt,
  638. "Cylinder",
  639. delay,
  640. x3,
  641. y3,
  642. z3,
  643. msh
  644. })
  645. end;
  646. };
  647.  
  648. Elect = {
  649. Create = function(cff, x, y, z)
  650. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("New Yeller"), "Part", Vector3.new(1, 1, 1))
  651. prt.Anchored = true
  652. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  653. prt.CFrame = CFrame.new(prt.Position)
  654. game:GetService("Debris"):AddItem(prt, 2)
  655. local xval = math.random() / 2
  656. local yval = math.random() / 2
  657. local zval = math.random() / 2
  658. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  659. table.insert(Effects, {
  660. prt,
  661. "Elec",
  662. 0.1,
  663. x,
  664. y,
  665. z,
  666. xval,
  667. yval,
  668. zval
  669. })
  670. end;
  671.  
  672. };
  673.  
  674. Ring = {
  675. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  676. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  677. prt.Anchored = true
  678. prt.CFrame = cframe
  679. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  680. game:GetService("Debris"):AddItem(prt, 10)
  681. table.insert(Effects, {
  682. prt,
  683. "Cylinder",
  684. delay,
  685. x3,
  686. y3,
  687. z3,
  688. msh
  689. })
  690. end;
  691. };
  692.  
  693.  
  694. Wave = {
  695. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  696. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  697. prt.Anchored = true
  698. prt.CFrame = cframe
  699. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  700. game:GetService("Debris"):AddItem(prt, 10)
  701. table.insert(Effects, {
  702. prt,
  703. "Cylinder",
  704. delay,
  705. x3,
  706. y3,
  707. z3,
  708. msh
  709. })
  710. end;
  711. };
  712.  
  713. Break = {
  714. Create = function(brickcolor, cframe, x1, y1, z1)
  715. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  716. prt.Anchored = true
  717. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  718. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  719. local num = math.random(10, 50) / 1000
  720. game:GetService("Debris"):AddItem(prt, 10)
  721. table.insert(Effects, {
  722. prt,
  723. "Shatter",
  724. num,
  725. prt.CFrame,
  726. math.random() - math.random(),
  727. 0,
  728. math.random(50, 100) / 100
  729. })
  730. end;
  731. };
  732.  
  733. Fire = {
  734. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  735. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  736. prt.Anchored = true
  737. prt.CFrame = cframe
  738. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  739. game:GetService("Debris"):AddItem(prt, 10)
  740. table.insert(Effects, {
  741. prt,
  742. "Fire",
  743. delay,
  744. 1,
  745. 1,
  746. 1,
  747. msh
  748. })
  749. end;
  750. };
  751.  
  752. FireWave = {
  753. Create = function(brickcolor, cframe, x1, y1, z1)
  754. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  755. prt.Anchored = true
  756. prt.CFrame = cframe
  757. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  758. local d = Create("Decal"){
  759. Parent = prt,
  760. Texture = "rbxassetid://26356434",
  761. Face = "Top",
  762. }
  763. local d = Create("Decal"){
  764. Parent = prt,
  765. Texture = "rbxassetid://26356434",
  766. Face = "Bottom",
  767. }
  768. game:GetService("Debris"):AddItem(prt, 10)
  769. table.insert(Effects, {
  770. prt,
  771. "FireWave",
  772. 1,
  773. 30,
  774. math.random(400, 600) / 100,
  775. msh
  776. })
  777. end;
  778. };
  779.  
  780. Lightning = {
  781. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  782. local magz = (p0 - p1).magnitude
  783. local curpos = p0
  784. local trz = {
  785. -ofs,
  786. ofs
  787. }
  788. for i = 1, tym do
  789. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  790. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  791. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  792. li.Material = "Neon"
  793. if tym == i then
  794. local magz2 = (curpos - p1).magnitude
  795. li.Size = Vector3.new(th, th, magz2)
  796. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  797. table.insert(Effects, {
  798. li,
  799. "Disappear",
  800. last
  801. })
  802. else
  803. do
  804. do
  805. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  806. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  807. game.Debris:AddItem(li, 10)
  808. table.insert(Effects, {
  809. li,
  810. "Disappear",
  811. last
  812. })
  813. end
  814. end
  815. end
  816. end
  817. end
  818. };
  819.  
  820. EffectTemplate = {
  821.  
  822. };
  823. }
  824.  
  825.  
  826. function ears()
  827. local quote = math.random(1, 10)
  828. if quote == 1 then
  829. ow = CFuncs.Sound.Create("276916733", Character, 10, 1)
  830. Instance.new("DistortionSoundEffect", ow).Level = .95
  831. elseif quote == 2 then
  832. ow = CFuncs.Sound.Create("222045669", Character, 10, 1)
  833. Instance.new("DistortionSoundEffect", ow).Level = .95
  834. 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)
  835. elseif quote == 3 then
  836. ow = CFuncs.Sound.Create("657527128", 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)), "Oof", 1.5, BrickColor.new("Grey").Color)
  839. elseif quote == 4 then
  840. CFuncs.Sound.Create("230292394", Character, 10, 1)
  841. 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)
  842. elseif quote == 5 then
  843. CFuncs.Sound.Create("230255621", Character, 10, 1)
  844. 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)
  845. wait(.2)
  846. 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)
  847. elseif quote == 6 then
  848. CFuncs.Sound.Create("230255698", Character, 10, 1)
  849. 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)
  850. elseif quote == 7 then
  851. CFuncs.Sound.Create("230255738", Character, 10, 1)
  852. 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)
  853. elseif quote == 8 then
  854. CFuncs.Sound.Create("230292118", Character, 10, 1)
  855. 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)
  856. elseif quote == 9 then
  857. CFuncs.Sound.Create("230292073", Character, 10, 1)
  858. 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)
  859. elseif quote == 10 then
  860. ow = CFuncs.Sound.Create("225279648", Character, 10, 1)
  861. Instance.new("DistortionSoundEffect", ow).Level = .95
  862. 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)
  863. end
  864. end
  865.  
  866.  
  867.  
  868.  
  869.  
  870. function joj()
  871. while oof == true do
  872. attack = true
  873. local con = Hitbox.Touched:connect(function(hit)
  874. Damage(Hitbox, hit, 0, 0, math.random(300,300), "Normal", RootPart, 0.2, "148862502", 1)end)
  875. CFuncs.Sound.Create("233856140", Hitbox, 10, 1)
  876. for i = 0, 1, 0.1 do
  877. swait()
  878. PlayAnimationFromTable({
  879. 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),
  880. 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),
  881. 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),
  882. 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),
  883. 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),
  884. 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),
  885. }, .3, false)
  886. end
  887. for i = 0, 1, 0.1 do
  888. swait()
  889. PlayAnimationFromTable({
  890. 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),
  891. 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),
  892. 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),
  893. 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),
  894. 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),
  895. 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),
  896. }, .3, false)
  897. end
  898. con:Disconnect()
  899. attack = false
  900. end
  901. end
  902.  
  903. Mouse.Button1Down:connect(function()
  904. if attack == false and oof == false then
  905. oof = true
  906. joj()
  907. end
  908. end)
  909.  
  910.  
  911.  
  912. Mouse.Button1Up:connect(function()
  913. if attack == true and oof == true then
  914. oof = false
  915. end
  916. end)
  917.  
  918.  
  919.  
  920.  
  921. Mouse.KeyDown:connect(function(k)
  922. k = k:lower()
  923. if k == 't' then
  924. ears()
  925. end
  926. end)
  927.  
  928. while true do
  929. swait()
  930. sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  931. for i, v in pairs(Character:GetChildren()) do
  932. if v:IsA("Part") then
  933. v.Material = "SmoothPlastic"
  934. elseif v:IsA("Accessory") then
  935. v:WaitForChild("Handle").Material = "SmoothPlastic"
  936. end
  937. end
  938. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  939. velocity = RootPart.Velocity.y
  940. sine = sine + change
  941. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  942. if RootPart.Velocity.y > 1 and hit == nil then
  943. Anim = "Jump"
  944. if attack == false then
  945. PlayAnimationFromTable({
  946. 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),
  947. 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),
  948. 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),
  949. 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),
  950. 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),
  951. 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),
  952. }, .3, false)
  953. end
  954. elseif RootPart.Velocity.y < -1 and hit == nil then
  955. Anim = "Fall"
  956. if attack == false then
  957. PlayAnimationFromTable({
  958. 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),
  959. 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),
  960. 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),
  961. 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),
  962. 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),
  963. 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),
  964. }, .3, false)
  965. end
  966. elseif Torsovelocity < 1 and hit ~= nil then
  967. Anim = "Idle"
  968. if attack == false then
  969. change = 1
  970. PlayAnimationFromTable({
  971. 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),
  972. 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),
  973. 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),
  974. 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),
  975. 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),
  976. 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),
  977. }, .3, false)
  978. end
  979. elseif Torsovelocity > 2 and hit ~= nil then
  980. Anim = "Walk"
  981. if attack == false then
  982. change = 2
  983. PlayAnimationFromTable({
  984. 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),
  985. 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),
  986. 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),
  987. 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),
  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. 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)),
  990. }, .3, false)
  991. end
  992. end
  993. if 0 < #Effects then
  994. for e = 1, #Effects do
  995. if Effects[e] ~= nil then
  996. local Thing = Effects[e]
  997. if Thing ~= nil then
  998. local Part = Thing[1]
  999. local Mode = Thing[2]
  1000. local Delay = Thing[3]
  1001. local IncX = Thing[4]
  1002. local IncY = Thing[5]
  1003. local IncZ = Thing[6]
  1004. if Thing[2] == "Shoot" then
  1005. local Look = Thing[1]
  1006. local move = 5
  1007. local hit, pos = rayCast(Thing[4], Thing[1], move, Character)
  1008. if Thing[10] ~= nil then
  1009. da = pos
  1010. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1011. cfa = CFrame.new(Thing[4], pos)
  1012. tehCF = cfa:lerp(cf2, 0.2)
  1013. Thing[1] = tehCF.lookVector
  1014. end
  1015. local mag = (Thing[4] - pos).magnitude
  1016. Effects.Elect.Create(CFrame.new((Thing[4] + pos) / 2, pos), 4, 4, 4)
  1017. 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)
  1018. Thing[4] = Thing[4] + Look * move
  1019. Thing[3] = Thing[3] - 1
  1020. if 2 < Thing[5] then
  1021. Thing[5] = Thing[5] - 0.3
  1022. Thing[6] = Thing[6] - 0.3
  1023. end
  1024. if hit ~= nil then
  1025. Thing[3] = 0
  1026. MagnitudeDamage(hit, 5, 10, 15, 0, "Normal", "161006093", 0.8)
  1027. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1028. ref.Anchored = true
  1029. ref.CFrame = CFrame.new(pos)
  1030. Effects.Block.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 1, 1, 1, 2, 2, 2, .05)
  1031. Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.03)
  1032. game:GetService("Debris"):AddItem(ref, 1)
  1033. end
  1034. if Thing[3] <= 0 then
  1035. table.remove(Effects, e)
  1036. end
  1037. end
  1038. do
  1039. do
  1040. if Thing[2] == "FireWave" then
  1041. if Thing[3] <= Thing[4] then
  1042. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1043. Thing[3] = Thing[3] + 1
  1044. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1045. else
  1046. Part.Parent = nil
  1047. table.remove(Effects, e)
  1048. end
  1049. end
  1050. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1051. if Thing[1].Transparency <= 1 then
  1052. if Thing[2] == "Block1" then
  1053. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1054. Mesh = Thing[7]
  1055. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1056. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1057. else
  1058. if Thing[2] == "Block2" then
  1059. Thing[1].CFrame = Thing[1].CFrame
  1060. Mesh = Thing[7]
  1061. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1062. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1063. else
  1064. if Thing[2] == "Fire" then
  1065. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1066. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1067. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1068. else
  1069. if Thing[2] == "Cylinder" then
  1070. Mesh = Thing[7]
  1071. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1072. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1073. else
  1074. if Thing[2] == "Blood" then
  1075. Mesh = Thing[7]
  1076. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1077. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1078. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1079. else
  1080. if Thing[2] == "Elec" then
  1081. Thing[1].Size = Thing[1].Size + Vector3.new(Thing[7], Thing[8], Thing[9])
  1082. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1083. else
  1084. if Thing[2] == "Disappear" then
  1085. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1086. end
  1087. end
  1088. end
  1089. end
  1090. end
  1091. end
  1092. end
  1093. else
  1094. Part.Parent = nil
  1095. table.remove(Effects, e)
  1096. end
  1097. end
  1098. end
  1099. end
  1100. end
  1101. end
  1102. end
  1103. end
  1104. end
Advertisement
Add Comment
Please, Sign In to add comment