MiraiTsukiZV2

edited smaccer

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