Advertisement
McRoblox132

13

May 7th, 2018
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.89 KB | None | 0 0
  1. --[[ A remake By makhail07
  2.  
  3.  
  4. Discord Creterisk#2958
  5.  
  6. Description: Astronaut is bae
  7.  
  8. Also Join Our Discord Server :D https://discord.gg/u5huUtw
  9. ]]--
  10.  
  11. local IDs = {340106355,927529620,876981900,398987889}
  12.  
  13. function swait(num)
  14. if num==0 or num==nil then
  15. game:service'RunService'.Stepped:wait(0)
  16. else
  17. for i=0,num do
  18. game:service'RunService'.Stepped:wait(0)
  19. end
  20. end
  21. end
  22. function thread(f)
  23. coroutine.resume(coroutine.create(f))
  24. end
  25. function clerp(a, b, t)
  26. local qa = {
  27. QuaternionFromCFrame(a)
  28. }
  29. local qb = {
  30. QuaternionFromCFrame(b)
  31. }
  32. local ax, ay, az = a.x, a.y, a.z
  33. local bx, by, bz = b.x, b.y, b.z
  34. local _t = 1 - t
  35. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  36. end
  37. function QuaternionFromCFrame(cf)
  38. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  39. local trace = m00 + m11 + m22
  40. if trace > 0 then
  41. local s = math.sqrt(1 + trace)
  42. local recip = 0.5 / s
  43. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  44. else
  45. local i = 0
  46. if m00 < m11 then
  47. i = 1
  48. end
  49. if m22 > (i == 0 and m00 or m11) then
  50. i = 2
  51. end
  52. if i == 0 then
  53. local s = math.sqrt(m00 - m11 - m22 + 1)
  54. local recip = 0.5 / s
  55. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  56. elseif i == 1 then
  57. local s = math.sqrt(m11 - m22 - m00 + 1)
  58. local recip = 0.5 / s
  59. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  60. elseif i == 2 then
  61. local s = math.sqrt(m22 - m00 - m11 + 1)
  62. local recip = 0.5 / s
  63. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  64. end
  65. end
  66. end
  67. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  68. local xs, ys, zs = x + x, y + y, z + z
  69. local wx, wy, wz = w * xs, w * ys, w * zs
  70. local xx = x * xs
  71. local xy = x * ys
  72. local xz = x * zs
  73. local yy = y * ys
  74. local yz = y * zs
  75. local zz = z * zs
  76. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  77. end
  78. function QuaternionSlerp(a, b, t)
  79. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  80. local startInterp, finishInterp
  81. if cosTheta >= 1.0E-4 then
  82. if 1 - cosTheta > 1.0E-4 then
  83. local theta = math.acos(cosTheta)
  84. local invSinTheta = 1 / math.sin(theta)
  85. startInterp = math.sin((1 - t) * theta) * invSinTheta
  86. finishInterp = math.sin(t * theta) * invSinTheta
  87. else
  88. startInterp = 1 - t
  89. finishInterp = t
  90. end
  91. elseif 1 + cosTheta > 1.0E-4 then
  92. local theta = math.acos(-cosTheta)
  93. local invSinTheta = 1 / math.sin(theta)
  94. startInterp = math.sin((t - 1) * theta) * invSinTheta
  95. finishInterp = math.sin(t * theta) * invSinTheta
  96. else
  97. startInterp = t - 1
  98. finishInterp = t
  99. end
  100. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  101. end
  102. function rayCast(Position, Direction, Range, Ignore)
  103. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  104. end
  105. --Wait what okay
  106. wait()
  107. local plr = game:service'Players'.LocalPlayer
  108. local char = plr.Character
  109. local hum = char.Humanoid
  110. local ra = char["Right Arm"]
  111. local la= char["Left Arm"]
  112. local rl= char["Right Leg"]
  113. local ll = char["Left Leg"]
  114. local hed = char.Head
  115. local root = char.HumanoidRootPart
  116. local rootj = root.RootJoint
  117. local tors = char.Torso
  118. local mouse = plr:GetMouse()
  119. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  120. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  121. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  122. local maincolor = BrickColor.new("Magenta")
  123. cf = CFrame.new
  124. angles = CFrame.Angles
  125. attack = false
  126. euler=CFrame.fromEulerAnglesXYZ
  127. equipped = false
  128. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  129. RSH, LSH = nil, nil
  130. RW = Instance.new("Weld")
  131. LW = Instance.new("Weld")
  132. RH = tors["Right Hip"]
  133. LH = tors["Left Hip"]
  134. RSH = tors["Right Shoulder"]
  135. LSH = tors["Left Shoulder"]
  136. RSH.Parent = nil
  137. LSH.Parent = nil
  138. RW.Name = "RW"
  139. RW.Part0 = tors
  140. RW.C0 = CFrame.new(1.5, 0.5, 0)
  141. RW.C1 = CFrame.new(0, 0.5, 0)
  142. RW.Part1 = ra
  143. RW.Parent = tors
  144. LW.Name = "LW"
  145. LW.Part0 = tors
  146. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  147. LW.C1 = CFrame.new(0, 0.5, 0)
  148. LW.Part1 = la
  149. LW.Parent = tors
  150. print('User is '..plr.Name)
  151. Effects = {}
  152.  
  153. ArtificialHB = Instance.new("BindableEvent", script)
  154. ArtificialHB.Name = "Heartbeat"
  155.  
  156. script:WaitForChild("Heartbeat")
  157.  
  158. frame = 1 / 60
  159. tf = 0
  160. allowframeloss = false
  161. tossremainder = false
  162. lastframe = tick()
  163. script.Heartbeat:Fire()
  164.  
  165. game:GetService("RunService").Heartbeat:connect(function(s, p)
  166. tf = tf + s
  167. if tf >= frame then
  168. if allowframeloss then
  169. script.Heartbeat:Fire()
  170. lastframe = tick()
  171. else
  172. for i = 1, math.floor(tf / frame) do
  173. script.Heartbeat:Fire()
  174. end
  175. lastframe = tick()
  176. end
  177. if tossremainder then
  178. tf = 0
  179. else
  180. tf = tf - frame * math.floor(tf / frame)
  181. end
  182. end
  183. end)
  184. local RbxUtility = LoadLibrary("RbxUtility")
  185. local Create = RbxUtility.Create
  186.  
  187. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  188. if hit.Parent == nil then
  189. return
  190. end
  191. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  192. for _, v in pairs(hit.Parent:children()) do
  193. if v:IsA("Humanoid") then
  194. h = v
  195. end
  196. end
  197. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  198. warn'No R15 allowed'
  199. hit.Parent:FindFirstChild("Head"):BreakJoints()
  200. end
  201.  
  202. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  203. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  204. if hit.Parent.DebounceHit.Value == true then
  205. return
  206. end
  207. end
  208. if insta == true then
  209. hit.Parent:FindFirstChild("Head"):BreakJoints()
  210. end
  211. local c = Create("ObjectValue"){
  212. Name = "creator",
  213. Value = game:service("Players").LocalPlayer,
  214. Parent = h,
  215. }
  216. game:GetService("Debris"):AddItem(c, .5)
  217. if HitSound ~= nil and HitPitch ~= nil then
  218. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  219. end
  220. local Damage = math.random(minim, maxim)
  221. local blocked = false
  222. local block = hit.Parent:findFirstChild("Block")
  223. if block ~= nil then
  224. if block.className == "IntValue" then
  225. if block.Value > 0 then
  226. blocked = true
  227. block.Value = block.Value - 1
  228. print(block.Value)
  229. end
  230. end
  231. end
  232. if blocked == false then
  233. h.Health = h.Health - Damage
  234. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  235. else
  236. h.Health = h.Health - (Damage / 2)
  237. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  238. end
  239. if Type == "Knockdown" then
  240. local hum = hit.Parent.Humanoid
  241. hum.PlatformStand = true
  242. coroutine.resume(coroutine.create(function(HHumanoid)
  243. swait(1)
  244. HHumanoid.PlatformStand = false
  245. end), hum)
  246. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  247. local bodvol = Create("BodyVelocity"){
  248. velocity = angle * knockback,
  249. P = 5000,
  250. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  251. Parent = hit,
  252. }
  253. local rl = Create("BodyAngularVelocity"){
  254. P = 3000,
  255. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  256. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  257. Parent = hit,
  258. }
  259. game:GetService("Debris"):AddItem(bodvol, .5)
  260. game:GetService("Debris"):AddItem(rl, .5)
  261. elseif Type == "Normal" then
  262. local vp = Create("BodyVelocity"){
  263. P = 500,
  264. maxForce = Vector3.new(math.huge, 0, math.huge),
  265. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  266. }
  267. if knockback > 0 then
  268. vp.Parent = hit.Parent.Torso
  269. end
  270. game:GetService("Debris"):AddItem(vp, .5)
  271. elseif Type == "Up" then
  272. local bodyVelocity = Create("BodyVelocity"){
  273. velocity = Vector3.new(0, 20, 0),
  274. P = 5000,
  275. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  276. Parent = hit,
  277. }
  278. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  279. elseif Type == "DarkUp" then
  280. coroutine.resume(coroutine.create(function()
  281. for i = 0, 1, 0.1 do
  282. swait()
  283. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  284. end
  285. end))
  286. local bodyVelocity = Create("BodyVelocity"){
  287. velocity = Vector3.new(0, 20, 0),
  288. P = 5000,
  289. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  290. Parent = hit,
  291. }
  292. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  293. elseif Type == "Snare" then
  294. local bp = Create("BodyPosition"){
  295. P = 2000,
  296. D = 100,
  297. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  298. position = hit.Parent.Torso.Position,
  299. Parent = hit.Parent.Torso,
  300. }
  301. game:GetService("Debris"):AddItem(bp, 1)
  302. elseif Type == "Freeze" then
  303. local BodPos = Create("BodyPosition"){
  304. P = 50000,
  305. D = 1000,
  306. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  307. position = hit.Parent.Torso.Position,
  308. Parent = hit.Parent.Torso,
  309. }
  310. local BodGy = Create("BodyGyro") {
  311. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  312. P = 20e+003,
  313. Parent = hit.Parent.Torso,
  314. cframe = hit.Parent.Torso.CFrame,
  315. }
  316. hit.Parent.Torso.Anchored = true
  317. coroutine.resume(coroutine.create(function(Part)
  318. swait(1.5)
  319. Part.Anchored = false
  320. end), hit.Parent.Torso)
  321. game:GetService("Debris"):AddItem(BodPos, 3)
  322. game:GetService("Debris"):AddItem(BodGy, 3)
  323. end
  324. local debounce = Create("BoolValue"){
  325. Name = "DebounceHit",
  326. Parent = hit.Parent,
  327. Value = true,
  328. }
  329. game:GetService("Debris"):AddItem(debounce, Delay)
  330. c = Create("ObjectValue"){
  331. Name = "creator",
  332. Value = Player,
  333. Parent = h,
  334. }
  335. game:GetService("Debris"):AddItem(c, .5)
  336. end
  337. end
  338.  
  339. function ShowDamage(Pos, Text, Time, Color)
  340. local Rate = (1 / 30)
  341. local Pos = (Pos or Vector3.new(0, 0, 0))
  342. local Text = (Text or "")
  343. local Time = (Time or 2)
  344. local Color = (Color or Color3.new(1, 0, 1))
  345. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  346. EffectPart.Anchored = true
  347. local BillboardGui = Create("BillboardGui"){
  348. Size = UDim2.new(3, 0, 3, 0),
  349. Adornee = EffectPart,
  350. Parent = EffectPart,
  351. }
  352. local TextLabel = Create("TextLabel"){
  353. BackgroundTransparency = 1,
  354. Size = UDim2.new(1, 0, 1, 0),
  355. Text = Text,
  356. Font = "Highway",
  357. TextColor3 = Color,
  358. TextScaled = true,
  359. Parent = BillboardGui,
  360. }
  361. game.Debris:AddItem(EffectPart, (Time))
  362. EffectPart.Parent = game:GetService("Workspace")
  363. delay(0, function()
  364. local Frames = (Time / Rate)
  365. for Frame = 1, Frames do
  366. wait(Rate)
  367. local Percent = (Frame / Frames)
  368. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  369. TextLabel.TextTransparency = Percent
  370. end
  371. if EffectPart and EffectPart.Parent then
  372. EffectPart:Destroy()
  373. end
  374. end)
  375. end
  376. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  377. for _, c in pairs(workspace:children()) do
  378. local hum = c:findFirstChild("Humanoid")
  379. if hum ~= nil then
  380. local head = c:findFirstChild("Torso") or c:findFirstChild("UpperTorso") or c:FindFirstChild('LowerTorso')
  381. if head ~= nil then
  382. local targ = head.Position - Part.Position
  383. local mag = targ.magnitude
  384. if mag <= Magnitude and c.Name ~= plr.Name then
  385. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, root, .1, "rbxassetid://" .. HitSound, HitPitch)
  386. end
  387. end
  388. end
  389. end
  390. end
  391. CFuncs = {
  392. Part = {
  393. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  394. local Part = Create("Part")({
  395. Parent = Parent,
  396. Reflectance = Reflectance,
  397. Transparency = Transparency,
  398. CanCollide = false,
  399. Locked = true,
  400. BrickColor = BrickColor.new(tostring(BColor)),
  401. Name = Name,
  402. Size = Size,
  403. Material = Material
  404. })
  405. RemoveOutlines(Part)
  406. return Part
  407. end
  408. },
  409. Mesh = {
  410. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  411. local Msh = Create(Mesh)({
  412. Parent = Part,
  413. Offset = OffSet,
  414. Scale = Scale
  415. })
  416. if Mesh == "SpecialMesh" then
  417. Msh.MeshType = MeshType
  418. Msh.MeshId = MeshId
  419. end
  420. return Msh
  421. end
  422. },
  423. Mesh = {
  424. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  425. local Msh = Create(Mesh)({
  426. Parent = Part,
  427. Offset = OffSet,
  428. Scale = Scale
  429. })
  430. if Mesh == "SpecialMesh" then
  431. Msh.MeshType = MeshType
  432. Msh.MeshId = MeshId
  433. end
  434. return Msh
  435. end
  436. },
  437. Weld = {
  438. Create = function(Parent, Part0, Part1, C0, C1)
  439. local Weld = Create("Weld")({
  440. Parent = Parent,
  441. Part0 = Part0,
  442. Part1 = Part1,
  443. C0 = C0,
  444. C1 = C1
  445. })
  446. return Weld
  447. end
  448. },
  449. Sound = {
  450. Create = function(id, par, vol, pit)
  451. coroutine.resume(coroutine.create(function()
  452. local S = Create("Sound")({
  453. Volume = vol,
  454. Pitch = pit or 1,
  455. SoundId = id,
  456. Parent = par or workspace
  457. })
  458. wait()
  459. S:play()
  460. game:GetService("Debris"):AddItem(S, 6)
  461. end))
  462. end
  463. },
  464. ParticleEmitter = {
  465. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  466. local fp = Create("ParticleEmitter")({
  467. Parent = Parent,
  468. Color = ColorSequence.new(Color1, Color2),
  469. LightEmission = LightEmission,
  470. Size = Size,
  471. Texture = Texture,
  472. Transparency = Transparency,
  473. ZOffset = ZOffset,
  474. Acceleration = Accel,
  475. Drag = Drag,
  476. LockedToPart = LockedToPart,
  477. VelocityInheritance = VelocityInheritance,
  478. EmissionDirection = EmissionDirection,
  479. Enabled = Enabled,
  480. Lifetime = LifeTime,
  481. Rate = Rate,
  482. Rotation = Rotation,
  483. RotSpeed = RotSpeed,
  484. Speed = Speed,
  485. VelocitySpread = VelocitySpread
  486. })
  487. return fp
  488. end
  489. }
  490. }
  491. function RemoveOutlines(part)
  492. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  493. end
  494. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  495. local Part = Create("Part")({
  496. formFactor = FormFactor,
  497. Parent = Parent,
  498. Reflectance = Reflectance,
  499. Transparency = Transparency,
  500. CanCollide = false,
  501. Locked = true,
  502. BrickColor = BrickColor.new(tostring(BColor)),
  503. Name = Name,
  504. Size = Size,
  505. Material = Material
  506. })
  507. RemoveOutlines(Part)
  508. return Part
  509. end
  510. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  511. local Msh = Create(Mesh)({
  512. Parent = Part,
  513. Offset = OffSet,
  514. Scale = Scale
  515. })
  516. if Mesh == "SpecialMesh" then
  517. Msh.MeshType = MeshType
  518. Msh.MeshId = MeshId
  519. end
  520. return Msh
  521. end
  522. function CreateWeld(Parent, Part0, Part1, C0, C1)
  523. local Weld = Create("Weld")({
  524. Parent = Parent,
  525. Part0 = Part0,
  526. Part1 = Part1,
  527. C0 = C0,
  528. C1 = C1
  529. })
  530. return Weld
  531. end
  532. EffectModel = Instance.new("Model", char)
  533. Effects = {
  534. Block = {
  535. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  536. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  537. prt.Anchored = true
  538. prt.CFrame = cframe
  539. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  540. game:GetService("Debris"):AddItem(prt, 10)
  541. if Type == 1 or Type == nil then
  542. table.insert(Effects, {
  543. prt,
  544. "Block1",
  545. delay,
  546. x3,
  547. y3,
  548. z3,
  549. msh
  550. })
  551. elseif Type == 2 then
  552. table.insert(Effects, {
  553. prt,
  554. "Block2",
  555. delay,
  556. x3,
  557. y3,
  558. z3,
  559. msh
  560. })
  561. else
  562. table.insert(Effects, {
  563. prt,
  564. "Block3",
  565. delay,
  566. x3,
  567. y3,
  568. z3,
  569. msh
  570. })
  571. end
  572. end
  573. },
  574. Sphere = {
  575. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  576. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  577. prt.Anchored = true
  578. prt.CFrame = cframe
  579. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  580. game:GetService("Debris"):AddItem(prt, 10)
  581. table.insert(Effects, {
  582. prt,
  583. "Cylinder",
  584. delay,
  585. x3,
  586. y3,
  587. z3,
  588. msh
  589. })
  590. end
  591. },
  592. Cylinder = {
  593. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  594. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  595. prt.Anchored = true
  596. prt.CFrame = cframe
  597. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  598. game:GetService("Debris"):AddItem(prt, 10)
  599. table.insert(Effects, {
  600. prt,
  601. "Cylinder",
  602. delay,
  603. x3,
  604. y3,
  605. z3,
  606. msh
  607. })
  608. end
  609. },
  610. Wave = {
  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, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  616. game:GetService("Debris"):AddItem(prt, 10)
  617. table.insert(Effects, {
  618. prt,
  619. "Cylinder",
  620. delay,
  621. x3 / 60,
  622. y3 / 60,
  623. z3 / 60,
  624. msh
  625. })
  626. end
  627. },
  628. Ring = {
  629. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  630. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  631. prt.Anchored = true
  632. prt.CFrame = cframe
  633. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  634. game:GetService("Debris"):AddItem(prt, 10)
  635. table.insert(Effects, {
  636. prt,
  637. "Cylinder",
  638. delay,
  639. x3,
  640. y3,
  641. z3,
  642. msh
  643. })
  644. end
  645. },
  646. Break = {
  647. Create = function(brickcolor, cframe, x1, y1, z1)
  648. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  649. prt.Anchored = true
  650. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  651. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  652. local num = math.random(10, 50) / 1000
  653. game:GetService("Debris"):AddItem(prt, 10)
  654. table.insert(Effects, {
  655. prt,
  656. "Shatter",
  657. num,
  658. prt.CFrame,
  659. math.random() - math.random(),
  660. 0,
  661. math.random(50, 100) / 100
  662. })
  663. end
  664. }
  665. }
  666. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  667. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  668. prt.Anchored = true
  669. prt.CFrame = cframe
  670. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  671. game:GetService("Debris"):AddItem(prt, 10)
  672. if Type == 1 or Type == nil then
  673. table.insert(Effects, {
  674. prt,
  675. "Block1",
  676. delay,
  677. x3,
  678. y3,
  679. z3,
  680. msh
  681. })
  682. elseif Type == 2 then
  683. table.insert(Effects, {
  684. prt,
  685. "Block2",
  686. delay,
  687. x3,
  688. y3,
  689. z3,
  690. msh
  691. })
  692. elseif Type == 3 then
  693. table.insert(Effects, {
  694. prt,
  695. "Block3",
  696. delay,
  697. x3,
  698. y3,
  699. z3,
  700. msh
  701. })
  702. end
  703. end
  704. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  705. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  706. prt.Anchored = true
  707. prt.CFrame = cframe
  708. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  709. game:GetService("Debris"):AddItem(prt, 10)
  710. table.insert(Effects, {
  711. prt,
  712. "Cylinder",
  713. delay,
  714. x3,
  715. y3,
  716. z3,
  717. msh
  718. })
  719. end
  720. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  721. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  722. prt.Anchored = true
  723. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  724. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  725. game:GetService("Debris"):AddItem(prt, 10)
  726. table.insert(Effects, {
  727. prt,
  728. "Cylinder",
  729. delay,
  730. x3,
  731. y3,
  732. z3,
  733. msh
  734. })
  735. end
  736. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  737. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  738. prt.Anchored = true
  739. prt.CFrame = cframe
  740. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  741. game:GetService("Debris"):AddItem(prt, 10)
  742. table.insert(Effects, {
  743. prt,
  744. "Cylinder",
  745. delay,
  746. x3,
  747. y3,
  748. z3,
  749. msh
  750. })
  751. end
  752. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  753. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  754. prt.Anchored = true
  755. prt.CFrame = cframe
  756. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  757. game:GetService("Debris"):AddItem(prt, 10)
  758. table.insert(Effects, {
  759. prt,
  760. "Cylinder",
  761. delay,
  762. x3,
  763. y3,
  764. z3,
  765. msh
  766. })
  767. end
  768. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  769. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  770. prt.Anchored = true
  771. prt.CFrame = cframe
  772. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  773. game:GetService("Debris"):AddItem(prt, 10)
  774. table.insert(Effects, {
  775. prt,
  776. "Cylinder",
  777. delay,
  778. x3,
  779. y3,
  780. z3,
  781. msh
  782. })
  783. end
  784. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  785. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  786. prt.Anchored = true
  787. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  788. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  789. local num = math.random(10, 50) / 1000
  790. game:GetService("Debris"):AddItem(prt, 10)
  791. table.insert(Effects, {
  792. prt,
  793. "Shatter",
  794. num,
  795. prt.CFrame,
  796. math.random() - math.random(),
  797. 0,
  798. math.random(50, 100) / 100
  799. })
  800. end
  801. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  802. local fp=Instance.new("Part")
  803. fp.formFactor=formfactor
  804. fp.Parent=parent
  805. fp.Reflectance=reflectance
  806. fp.Transparency=transparency
  807. fp.CanCollide=false
  808. fp.Locked=true
  809. fp.BrickColor=brickcolor
  810. fp.Name=name
  811. fp.Size=size
  812. fp.Position=tors.Position
  813. RemoveOutlines(fp)
  814. fp.Material="SmoothPlastic"
  815. fp:BreakJoints()
  816. return fp
  817. end
  818.  
  819. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  820. local mesh=Instance.new(Mesh)
  821. mesh.Parent=part
  822. if Mesh=="SpecialMesh" then
  823. mesh.MeshType=meshtype
  824. if meshid~="nil" then
  825. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  826. end
  827. end
  828. mesh.Offset=offset
  829. mesh.Scale=scale
  830. return mesh
  831. end
  832. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  833. local prt=part(3,char,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5))
  834. prt.Anchored=true
  835. prt.Material = "Neon"
  836. prt.CFrame=cframe
  837. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  838. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  839. game:GetService("Debris"):AddItem(prt,5)
  840. coroutine.resume(coroutine.create(function(Part,Mesh)
  841. for i=0,1,delay do
  842. swait()
  843. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  844. Part.Transparency=i
  845. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  846. end
  847. Part.Parent=nil
  848. end),prt,msh)
  849. end
  850. function MagicShockTrailAlt2(origcolor2,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  851. local prt=part(3,char,0,0,origcolor2,"Effect",Vector3.new(0.5,0.5,0.5))
  852. prt.Anchored=true
  853. prt.Material = "Neon"
  854. prt.CFrame=cframe
  855. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  856. game:GetService("Debris"):AddItem(prt,5)
  857. coroutine.resume(coroutine.create(function(Part,Mesh)
  858. local rtype = rottype
  859. for i=0,1,delay do
  860. swait()
  861. if rtype == 1 then
  862. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  863. elseif rtype == 2 then
  864. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  865. end
  866. prt.Transparency=i
  867. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  868. end
  869. Part.Parent=nil
  870. end),prt,msh)
  871. end
  872.  
  873. char.Head.face.Texture = "http://www.roblox.com/asset/?id=261450948"
  874. char.Shirt:Remove()
  875. for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  876. wait()shirt = Instance.new("Shirt", char)
  877. shirt.Name = "Shirt"
  878. pants = Instance.new("Pants", char)
  879. pants.Name = "Pants"
  880. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=10117447"
  881. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=10123311"
  882. char.Humanoid.MaxHealth = 2000
  883. char.Humanoid.Health = 2000
  884. char.Humanoid.WalkSpeed = 8
  885. local Hat = Instance.new("Part", char)
  886. Hat.Name = "Hat"
  887. Hat.CanCollide = false
  888. Hat.BrickColor = BrickColor.new("Black")
  889. Hat.Transparency = 0
  890. Hat.Material = "Plastic"
  891. Hat.Size = Vector3.new(-10, -10, -10)
  892. Hat.TopSurface = Enum.SurfaceType.Smooth
  893. Hat.BottomSurface = Enum.SurfaceType.Smooth
  894.  
  895. local Weld = Instance.new("Weld", Hat)
  896. Weld.Part0 = char.Head
  897. Weld.Part1 = Hat
  898. Weld.C1 = CFrame.new(0, -0.4, 0)
  899.  
  900. local M2 = Instance.new("SpecialMesh")
  901. M2.Parent = Hat
  902. M2.MeshId = "http://www.roblox.com/asset/?id=1079902"
  903. M2.TextureId = "rbxassetid://1079903"
  904. M2.Scale = Vector3.new(1, 1, 1)
  905.  
  906. local moosick = Instance.new("Sound",tors)
  907. moosick.SoundId = "rbxassetid://1036392613"
  908. moosick.Volume = 5
  909. moosick.Looped = true
  910. moosick:Play()
  911. local moosick2 = Instance.new("Sound",tors)
  912. moosick2.SoundId = "rbxassetid://247896174"
  913. moosick2.Volume = 1.5
  914. moosick2.Looped = true
  915. ff = Instance.new("ForceField",char)
  916. ff.Visible = false
  917. hum.Name = "Base"
  918. hum.MaxHealth = 1.0E298
  919. hum.Health = 1.0E298
  920. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  921. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  922. hum.MaxHealth = 1.0E298
  923. hum.Health = 1.0E298
  924. end
  925. end)
  926. local laugh = Instance.new("Sound",tors)
  927. laugh.SoundId = "rbxassetid://138085838"
  928. laugh.Volume = 5
  929. local taunt = Instance.new("Sound",tors)
  930. taunt.SoundId = "rbxassetid://907332525"
  931. taunt.Volume = 5
  932. vt = Vector3.new
  933. bc = BrickColor.new
  934.  
  935.  
  936. function ExplodeFast(rad,par)
  937. local expart = Instance.new("Part",script.Parent)
  938. local expart2 = Instance.new("Part",script.Parent)
  939. local partMesh = Instance.new("SpecialMesh",expart)
  940. partMesh.MeshType = "Sphere"
  941. local partMesh2 = Instance.new("SpecialMesh",expart2)
  942. partMesh2.MeshType = "Sphere"
  943. local expld = Instance.new("Explosion", script.Parent)
  944. expld.Visible = false
  945. local plode = Instance.new("Sound",expart)
  946. plode.SoundId = "rbxassetid://153274423"
  947. plode.Volume = 2.5
  948. plode.Pitch = 1
  949. plode.Looped = false
  950. plode:Play()
  951. local ploder = Instance.new("Sound",expart)
  952. ploder.SoundId = "rbxassetid://130972023"
  953. ploder.Volume = 2.5
  954. ploder.Pitch = 1
  955. ploder.Looped = false
  956. ploder:Play()
  957. expld.BlastRadius = rad
  958. expld.Position = par.Position
  959. partMesh.Scale = vt(rad,rad,rad)
  960. expart.Size = vt(1,1,1)*1.5
  961. expart.Transparency = 0
  962. expart.Anchored = true
  963. expart.Material = "Neon"
  964. expart.BrickColor = bc("Really black")
  965. expart.CFrame = par.CFrame
  966. partMesh2.Scale = vt(rad,rad,rad)
  967. expart2.Size = vt(1.15,1.15,1.15)*1.5
  968. expart2.Transparency = 0.5
  969. expart2.Anchored = true
  970. expart2.Material = "Neon"
  971. expart2.BrickColor = bc("Really black")
  972. expart2.CFrame = par.CFrame
  973. local value = 1*rad/6.5
  974. par:Destroy()
  975. for i = 0, 100 do
  976. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  977. expart.CFrame = expart.CFrame
  978. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  979. expart2.CFrame = expart.CFrame
  980. value = value - 0.035*rad/6.5
  981. if value < 1 then
  982. value = 0.25
  983. expart.Transparency = expart.Transparency + 0.025
  984. expart2.Transparency = expart2.Transparency + 0.025
  985. end
  986. wait()
  987. end
  988. plode.Parent = nil
  989. ploder.Parent = nil
  990. expart.Parent = nil
  991. expart2.Parent = nil
  992. expld.Parent = nil
  993. end
  994.  
  995. function Explode(rad,par)
  996. local expart = Instance.new("Part",script.Parent)
  997. local expart2 = Instance.new("Part",script.Parent)
  998. local partMesh = Instance.new("SpecialMesh",expart)
  999. partMesh.MeshType = "Sphere"
  1000. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1001. partMesh2.MeshType = "Sphere"
  1002. local expld = Instance.new("Explosion", script.Parent)
  1003. expld.Visible = false
  1004. local plode = Instance.new("Sound",expart)
  1005. plode.SoundId = "rbxassetid://288641686"
  1006. plode.Volume = 2.5
  1007. plode.Pitch = 0.75
  1008. plode.Looped = false
  1009. plode:Play()
  1010. local ploder = Instance.new("Sound",expart)
  1011. ploder.SoundId = "rbxassetid://206049428"
  1012. ploder.Volume = 3.25
  1013. ploder.Pitch = 0.5
  1014. ploder.Looped = false
  1015. ploder:Play()
  1016. expld.BlastRadius = rad
  1017. expld.Position = par.Position
  1018. partMesh.Scale = vt(rad,rad,rad)
  1019. expart.Size = vt(1,1,1)*1.5
  1020. expart.Transparency = 0
  1021. expart.Anchored = true
  1022. expart.Material = "Neon"
  1023. expart.BrickColor = bc("Really black")
  1024. expart.CFrame = par.CFrame
  1025. partMesh2.Scale = vt(rad,rad,rad)
  1026. expart2.Size = vt(1.15,1.15,1.15)*1.5
  1027. expart2.Transparency = 0.5
  1028. expart2.Anchored = true
  1029. expart2.Material = "Neon"
  1030. expart2.BrickColor = bc("Bright violet")
  1031. expart2.CFrame = par.CFrame
  1032. local value = 1*rad/6.5
  1033. par:Destroy()
  1034. for i = 0, 100 do
  1035. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1036. expart.CFrame = expart.CFrame
  1037. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1038. expart2.CFrame = expart.CFrame
  1039. value = value - 0.035*rad/6.5
  1040. if value < 1 then
  1041. value = 0.25
  1042. expart.Transparency = expart.Transparency + 0.025
  1043. expart2.Transparency = expart2.Transparency + 0.025
  1044. end
  1045. wait()
  1046. end
  1047. plode.Parent = nil
  1048. ploder.Parent = nil
  1049. expart.Parent = nil
  1050. expart2.Parent = nil
  1051. expld.Parent = nil
  1052. end
  1053.  
  1054. function ExplodeMass(rad,par)
  1055. local expart = Instance.new("Part",script.Parent)
  1056. local expart2 = Instance.new("Part",script.Parent)
  1057. local partMesh = Instance.new("SpecialMesh",expart)
  1058. partMesh.MeshType = "Sphere"
  1059. local partMesh2 = Instance.new("SpecialMesh",expart2)
  1060. partMesh2.MeshType = "Sphere"
  1061. local expld = Instance.new("Explosion", script.Parent)
  1062. expld.Visible = false
  1063. local plode = Instance.new("Sound",workspace)
  1064. plode.SoundId = "rbxassetid://579687077"
  1065. plode.Volume = 1
  1066. plode.Pitch = 0.75
  1067. plode.Looped = false
  1068. plode:Play()
  1069. local plodez = Instance.new("Sound",workspace)
  1070. plodez.SoundId = "rbxassetid://288641686"
  1071. plodez.Volume = 1
  1072. plodez.Pitch = 0.625
  1073. plodez.Looped = false
  1074. plodez:Play()
  1075. local plodeza = Instance.new("Sound",workspace)
  1076. plodeza.SoundId = "rbxassetid://197161452"
  1077. plodeza.Volume = 0.85
  1078. plodeza.Pitch = 0.5
  1079. plodeza.Looped = false
  1080. plodeza:Play()
  1081. local plodezar = Instance.new("Sound",workspace)
  1082. plodezar.SoundId = "rbxassetid://197161452"
  1083. plodezar.Volume = 0.85
  1084. plodezar.Pitch = 0.2
  1085. plodezar.Looped = false
  1086. plodezar:Play()
  1087. local s3 = Instance.new("Sound",workspace)
  1088. s3.SoundId = "rbxassetid://268931189"
  1089. s3.Pitch = 0.875
  1090. s3.Volume = 1
  1091. s3.Looped = false
  1092. s3:Play()
  1093. expld.BlastRadius = rad
  1094. expld.Position = par.Position
  1095. partMesh.Scale = vt(rad,rad,rad)
  1096. expart.Size = vt(1,1,1)*1.5
  1097. expart.Transparency = 0
  1098. expart.Anchored = true
  1099. expart.Material = "Neon"
  1100. expart.BrickColor = bc("Really black")
  1101. expart.CFrame = par.CFrame
  1102. partMesh2.Scale = vt(rad,rad,rad)
  1103. expart2.Size = vt(1.15,1.15,1.15)*1.5
  1104. expart2.Transparency = 0.5
  1105. expart2.Anchored = true
  1106. expart2.Material = "Neon"
  1107. expart2.BrickColor = bc("Really black")
  1108. expart2.CFrame = par.CFrame
  1109. local value = 1*rad/10
  1110. par:Destroy()
  1111. for i = 0, 300 do
  1112. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  1113. expart.CFrame = expart.CFrame
  1114. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  1115. expart2.CFrame = expart.CFrame
  1116. value = value - 0.0175*rad/10
  1117. if value <= 0 then
  1118. expart.Transparency = expart.Transparency + 0.0125
  1119. expart2.Transparency = expart2.Transparency + 0.0125
  1120. value = 0.25
  1121. end
  1122. wait()
  1123. end
  1124. plode.Parent = nil
  1125. expart.Parent = nil
  1126. expart2.Parent = nil
  1127. expld.Parent = nil
  1128. end
  1129.  
  1130. function KABOOM()
  1131. for i = 0,2,0.1 do
  1132. swait()
  1133. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1)*angles(math.rad(0),math.rad(0),math.rad(90)),0.15)
  1134. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5+0.05,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.15)
  1135. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05, 0) * angles(math.rad(115 + 4), math.rad(45), math.rad(50)), 0.1)
  1136. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(25),math.rad(0)),.3)
  1137. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1,0.025)*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1138. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1,0.025)*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1139. end
  1140. local spart = Instance.new("Part",workspace)
  1141. local msh = Instance.new("SpecialMesh",spart)
  1142. msh.MeshType = "Sphere"
  1143. spart.Size = vt(1,1,1)
  1144. spart.BrickColor = BrickColor.new("Really black")
  1145. spart.Material = "Neon"
  1146. spart.Transparency = 0.65
  1147. spart.Anchored = true
  1148. spart.CanCollide = false
  1149. spart.CFrame = mouse.Hit
  1150. spart.Rotation = vt(0,0,0)
  1151. msh.Scale = vt(15,15,15)*2
  1152. wait(0.35)
  1153. ExplodeFast(15,spart)
  1154. end
  1155.  
  1156. A13=false
  1157. mouse.KeyDown:connect(function(key)
  1158. if key == "r" and A13 == false and attack==false then
  1159. moosick:Stop()
  1160. attack=true
  1161. for i = 0,5,0.1 do
  1162. swait()
  1163. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5+0.05,0)*angles(math.rad(-145),math.rad(45),math.rad(-50)),0.15)
  1164. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05, 0) * angles(math.rad(115 + 4), math.rad(45), math.rad(50)), 0.1)
  1165. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.3)
  1166. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1,0.025)*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1167. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1,0.025)*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1168. end
  1169. CSound("1093102664", tors, 1, 1.5)
  1170. for i = 0,5,0.1 do
  1171. swait()
  1172. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5+0.05,0)*angles(math.rad(-145),math.rad(55),math.rad(-90)),0.15)
  1173. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05, 0) * angles(math.rad(115 + 4), math.rad(55), math.rad(90)), 0.1)
  1174. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(90)),.3)
  1175. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1,0.025)*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1176. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1,0.025)*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1177. end
  1178. Hat.Transparency = 1
  1179. game:GetService("Lighting").Outlines = false
  1180. game:GetService("Lighting").TimeOfDay = "00:00:00"
  1181. game:GetService("Lighting").FogColor = Color3.new(0, 0, 0)
  1182. game:GetService("Lighting").FogEnd = 160
  1183. local BC = char["Body Colors"]
  1184. BC.HeadColor = BrickColor.new("Black")
  1185. BC.LeftArmColor = BrickColor.new("Black")
  1186. BC.LeftLegColor = BrickColor.new("Black")
  1187. BC.RightArmColor = BrickColor.new("Black")
  1188. BC.RightLegColor = BrickColor.new("Black")
  1189. BC.TorsoColor = BrickColor.new("Black")
  1190. char.Shirt:Remove()
  1191. char.Head.face:Remove()
  1192. for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  1193. wait()shirt = Instance.new("Shirt", char)
  1194. shirt.Name = "Shirt"
  1195. pants = Instance.new("Pants", char)
  1196. pants.Name = "Pants"
  1197. player = game:GetService("Players").LocalPlayer
  1198. c = player.Character
  1199. local color = "Really black"
  1200. local transPoints = {NumberSequenceKeypoint.new(0, 0.819, 0.0375), NumberSequenceKeypoint.new(0.207, 0.594, 0.0187), NumberSequenceKeypoint.new(0.4, 0.55, 0.031), NumberSequenceKeypoint.new(0.57, 0.619, 0.05), NumberSequenceKeypoint.new(0.76, 0.8, 0.0375), NumberSequenceKeypoint.new(1, 1, 0)}
  1201. local sizePoints = {NumberSequenceKeypoint.new(0, 0.505, 0), NumberSequenceKeypoint.new(1, 0, 0)}
  1202. local Size = NumberSequence.new(sizePoints)
  1203. local Transparency = NumberSequence.new(transPoints)
  1204. efxBlock = Instance.new("Part", c)
  1205. efxBlock.CanCollide = false
  1206. efxBlock.BrickColor = BrickColor.new(color)
  1207. efxBlock.Material = "Neon"
  1208. efxBlock.FormFactor = "Custom"
  1209. efxBlock.Transparency = 0.3
  1210. efxBlock.Size = Vector3.new(0.25, 0.25, 0.25)
  1211. local mesh = Instance.new("SpecialMesh", efxBlock)
  1212. mesh.MeshType = Enum.MeshType.Sphere
  1213. mesh.Scale = Vector3.new(1, 1, 1)
  1214. local particles = Instance.new("ParticleEmitter", efxBlock)
  1215. particles.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  1216. particles.LightEmission = 0.9
  1217. particles.Size = Size
  1218. particles.Name = "Fire"
  1219. particles.Transparency = Transparency
  1220. particles.LockedToPart = false
  1221. particles.VelocityInheritance = 0.5
  1222. particles.LockedToPart = false
  1223. particles.Rate = 70
  1224. particles.Texture = "rbxassetid://56561915"
  1225. particles.Lifetime = NumberRange.new(2, 2)
  1226. particles.RotSpeed = NumberRange.new(100, 100)
  1227. particles.Speed = NumberRange.new(1, 1)
  1228. local offset = Vector3.new(-0.11, 0.23, -0.5)
  1229. local weld = Instance.new("Weld", c.Head)
  1230. weld.Part0 = c.Head
  1231. weld.Part1 = efxBlock
  1232. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40), math.rad(50), math.rad(40))
  1233. efxBlock.Parent = c
  1234. efxBlock2 = Instance.new("Part", c)
  1235. efxBlock2.CanCollide = false
  1236. efxBlock2.BrickColor = BrickColor.new(color)
  1237. efxBlock2.Material = "Neon"
  1238. efxBlock2.FormFactor = "Custom"
  1239. efxBlock2.Transparency = 0.3
  1240. efxBlock2.Size = Vector3.new(0.25, 0.25, 0.25)
  1241. local mesh2 = Instance.new("SpecialMesh", efxBlock2)
  1242. mesh2.MeshType = Enum.MeshType.Sphere
  1243. mesh2.Scale = Vector3.new(1, 1, 1)
  1244. local particles2 = Instance.new("ParticleEmitter", efxBlock2)
  1245. particles2.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  1246. particles2.LightEmission = 0.9
  1247. particles2.Size = Size
  1248. particles2.Name = "Fire"
  1249. particles2.Transparency = Transparency
  1250. particles2.LockedToPart = false
  1251. particles2.VelocityInheritance = 0.5
  1252. particles2.LockedToPart = false
  1253. particles2.Rate = 70
  1254. particles2.Texture = "rbxassetid://56561915"
  1255. particles2.Lifetime = NumberRange.new(2, 2)
  1256. particles2.RotSpeed = NumberRange.new(100, 100)
  1257. particles2.Speed = NumberRange.new(1, 1)
  1258. local offset = Vector3.new(0.11, 0.23, -0.5)
  1259. local weld2 = Instance.new("Weld", c.Head)
  1260. weld2.Part0 = c.Head
  1261. weld2.Part1 = efxBlock2
  1262. weld2.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(40), math.rad(50), math.rad(-40))
  1263. efxBlock2.Parent = c
  1264.  
  1265. local HBill = Instance.new("BillboardGui",hed)
  1266. local HMain, HBar = Instance.new("Frame", HBill), Instance.new("Frame")
  1267. local HName = Instance.new("TextLabel")
  1268. HBill.Size = UDim2.new(15,0,2.2,0)
  1269. HBill.Name = "Health Display"
  1270. HBill.StudsOffset = Vector3.new(3.675,2,0)
  1271. HBill.AlwaysOnTop = true
  1272. HBill.Enabled = true
  1273. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  1274. HMain.BackgroundTransparency = 1
  1275. HMain.Size = UDim2.new(.5,0,.5,0)
  1276. HName.Parent = HMain
  1277. HName.BackgroundTransparency = 1
  1278. HName.BackgroundColor3 = Color3.new(255,255,255)
  1279. HName.BorderColor3 = Color3.new(0,0,0)
  1280. HName.BorderSizePixel = 2
  1281. HName.Size = UDim2.new(1,0,.75,0)
  1282. HName.Font = "Highway"
  1283. HName.Text = "13"
  1284. HName.TextScaled = true
  1285. HName.TextColor3 = Color3.new(255,255,255)
  1286. HName.TextStrokeColor3 = Color3.new(0,0,0)
  1287. HName.TextStrokeTransparency = 0
  1288. HName.TextYAlignment = "Bottom"
  1289.  
  1290.  
  1291.  
  1292.  
  1293. moosick2:Play()
  1294. A13=true
  1295. attack=false
  1296. end
  1297. if key == "t" and A13==true and attack==false then
  1298. taunt:Play()
  1299. end
  1300. if key == "e" and A13==true and attack==false then
  1301. laugh:Play()
  1302. end
  1303. if key == "c" and A13==true and attack==false then
  1304. KABOOM()
  1305. end
  1306. end)
  1307.  
  1308.  
  1309.  
  1310. function attackone()
  1311. attack=true
  1312. for i = 0,1.5,0.1 do
  1313. swait()
  1314. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1315. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1)*angles(math.rad(0),math.rad(0),math.rad(-75)),0.15)
  1316. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-30), math.rad(-25)),.2)
  1317. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, .3) * angles(math.rad(20), math.rad(-30), math.rad(30)),.2)
  1318. end
  1319. local con = ra.Touched:connect(function(hit)
  1320. Damage(ra, hit, 15, 25, math.random(1, 5), "Normal", root, .2, "rbxassetid://146163522", 1)
  1321. end)
  1322.  
  1323. for i = 0,2,0.1 do
  1324. swait()
  1325. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1)*angles(math.rad(0),math.rad(0),math.rad(75)),0.15)
  1326. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.3) * angles(math.rad(35), math.rad(-90), math.rad(-90)),.2)
  1327. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-55), math.rad(-0)),.2)
  1328.  
  1329. end
  1330. con:Disconnect()
  1331. attack=false
  1332. end
  1333.  
  1334.  
  1335. function attacktwo()
  1336. attack=true
  1337. for i = 0,1.5,0.1 do
  1338. swait()
  1339. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1340. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-55)),0.15)
  1341. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*angles(math.rad(0),math.rad(0),math.rad(55)),.3)
  1342. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(-0), math.rad(-55)),.2)
  1343. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1,0)*angles(math.rad(-9.5),math.rad(90),math.rad(-0))*angles(math.rad(-5.5),math.rad(0),math.rad(0)),0.15)
  1344. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1,0)*angles(math.rad(-8.5),math.rad(-90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
  1345. end
  1346. local con = ra.Touched:connect(function(hit)
  1347. Damage(ra, hit, 25, 34, math.random(1, 5), "Normal", root, .2, "rbxassetid://146163522", 1)
  1348. end)
  1349.  
  1350. for i = 0,2,0.1 do
  1351. swait()
  1352. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-75)),.3)
  1353. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),0.15)
  1354. RW.C0=clerp(RW.C0,cf(1.5,.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1355.  
  1356. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(55), math.rad(-0), math.rad(-25)),.2)
  1357. end
  1358. attack=false
  1359. con:Disconnect()
  1360. end
  1361.  
  1362. function attackthree()
  1363. attack = true
  1364. for i = 0,1.5,0.1 do
  1365. swait()
  1366. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1367. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1)*angles(math.rad(0),math.rad(0),math.rad(75)),0.15)
  1368. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-30), math.rad(-25)),.2)
  1369. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1,0)*angles(math.rad(-5.5),math.rad(90),math.rad(-0))*angles(math.rad(-6.5),math.rad(0),math.rad(0)),0.15)
  1370. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1,0)*angles(math.rad(-5.5),math.rad(-90),math.rad(-0))*angles(math.rad(-9.5),math.rad(0),math.rad(0)),0.15)
  1371. end
  1372. local con = la.Touched:connect(function(hit)
  1373. Damage(la, hit, 15, 25, math.random(1, 5), "Normal", root, .2, "rbxassetid://146163522", 1)
  1374. end)
  1375.  
  1376. for i = 0,2,0.1 do
  1377. swait()
  1378. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1)*angles(math.rad(0),math.rad(0),math.rad(-75)),0.15)
  1379. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
  1380. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-90), math.rad(-90)),.2)
  1381.  
  1382. end
  1383.  
  1384. con:disconnect()
  1385. attack = false
  1386. end
  1387.  
  1388. function attackfour()
  1389. attack=true
  1390. local con = rl.Touched:connect(function(hit)
  1391. Damage(rl, hit, 15, 25, math.random(1, 5), "Knockdown", root, .2, "rbxassetid://146163522", 1)
  1392. end)
  1393.  
  1394. for i = 0,2,0.1 do
  1395. swait()
  1396. rootj.C0=clerp(rootj.C0,RootCF*cf(0,-4,0.1+0.1)*angles(math.rad(-55),math.rad(0),math.rad(0)),0.15)
  1397. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)),.2)
  1398. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(-90), math.rad(-0), math.rad(-0)),.2)
  1399. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1,0)*angles(math.rad(-5.5),math.rad(90),math.rad(0))*angles(math.rad(-0),math.rad(0),math.rad(10)),0.15)
  1400. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1,0)*angles(math.rad(-5.5),math.rad(-90),math.rad(-0))*angles(math.rad(9.5),math.rad(0),math.rad(50)),0.15)
  1401. end
  1402. con:Disconnect()
  1403. attack=false
  1404. end
  1405.  
  1406. attacktype=1
  1407. mouse.Button1Down:connect(function()
  1408. if attack==false and A13==true then
  1409. if attacktype==1 then
  1410. attack=true
  1411. attacktype=2
  1412. attackone()
  1413. elseif attacktype==2 then
  1414. attack=true
  1415. attacktype=3
  1416. attacktwo()
  1417. elseif attacktype==3 then
  1418. attack=true
  1419. attacktype=4
  1420. attackthree()
  1421. elseif attacktype==4 then
  1422. attack=true
  1423. attacktype=1
  1424. attackfour()
  1425. end
  1426. end
  1427. end)
  1428.  
  1429.  
  1430.  
  1431.  
  1432. function CSound(Id, Parent, Vol, Pitch)
  1433. coroutine.resume(coroutine.create(function()
  1434. local Sound = Instance.new("Sound", Parent)
  1435. Sound.Volume = Vol
  1436. Sound.Pitch = Pitch
  1437. Sound.SoundId = "http://www.roblox.com/asset/?id="..Id
  1438. swait()
  1439. Sound:play()
  1440. game:GetService("Debris"):AddItem(CSound, 10)
  1441. end))
  1442. end
  1443.  
  1444.  
  1445. local idle=0
  1446. local sine = 0
  1447. local change = 1
  1448. local val = 0
  1449. toim = 0
  1450. hum.Animator.Parent = nil
  1451. idleanim=.4
  1452. while true do
  1453. swait()
  1454. sine = sine + change
  1455. local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude
  1456. local velderp=root.Velocity.y
  1457. hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
  1458. if equipped==true or equipped==false then
  1459. if attack==false then
  1460. idle=idle+1
  1461. else
  1462. idle=0
  1463. end
  1464. if root.Velocity.y > 1 and hitfloor==nil then
  1465. Anim="Jump"
  1466. if attack==false then
  1467. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1468. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1469. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
  1470. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1471. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1472. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1473. end
  1474. elseif root.Velocity.y < -1 and hitfloor==nil then
  1475. Anim="Fall"
  1476. if attack==false then
  1477. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1478. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1479. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1480. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  1481. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1482. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-0), math.rad(0), math.rad(-90)), 0.3)
  1483. end
  1484. elseif torvel<1 and hitfloor~=nil then
  1485. Anim="Idle"
  1486. change = .5
  1487. if attack==false and A13 ==false then
  1488. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1489. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5.5*math.sin(sine/20)),math.rad(0),math.rad(0)),.3)
  1490. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*angles(math.rad(-2.5),math.rad(90),math.rad(-10))*angles(math.rad(-8.5),math.rad(0),math.rad(0)),0.15)
  1491. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*angles(math.rad(-2.5),math.rad(-90),math.rad(-10))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
  1492. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.04*math.sin(sine/25), 0) * angles(math.rad(0 - 1 * math.cos(sine / 25)), math.rad(-7), math.rad(10)), 0.1)
  1493. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.04*math.sin(sine/25),0) * angles(math.rad(0 - 1 * math.cos(sine / 25)), math.rad(-7), math.rad(-10)), 0.1)
  1494. elseif attack==false and A13==true then
  1495. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1496. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5.5*math.sin(sine/20)),math.rad(25),math.rad(0)),.3)
  1497. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1498. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1499. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.04*math.sin(sine/25), 0) * angles(math.rad(0 - 1 * math.cos(sine / 25)), math.rad(-7), math.rad(5)), 0.1)
  1500. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.04*math.sin(sine/25),0) * angles(math.rad(0 - 1 * math.cos(sine / 25)), math.rad(-7), math.rad(-5)), 0.1)
  1501. end
  1502. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1503. Anim="Walk"
  1504. change = .6
  1505. if attack==false and A13 ==false then
  1506. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  1507. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1508. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
  1509. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3)
  1510. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1511. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1512. elseif attack==false and A13==true then
  1513. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  1514. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5.5*math.sin(sine/20)), math.rad(25), math.rad(0)), 0.3)
  1515. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
  1516. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05, 0) * angles(math.rad(115 + 4), math.rad(45), math.rad(50)), 0.1)
  1517. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1518. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-55+15*math.cos(sine/7))+ math.sin(sine/7)/1.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1519. end
  1520. elseif torvel>=22 and hitfloor~=nil then
  1521. Anim="Run"
  1522. change = 2
  1523. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(25),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  1524. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1525. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(55), math.rad(-55), math.rad(90)), 0.3)
  1526. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 60),-0.65)*angles(math.rad(40),math.rad(0),math.rad(90 + 2.5)),.3)
  1527. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/1)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1528. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/1)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1529.  
  1530. end
  1531. end
  1532. if 0 < #Effects then
  1533. for e = 1, #Effects do
  1534. if Effects[e] ~= nil then
  1535. local Thing = Effects[e]
  1536. if Thing ~= nil then
  1537. local Part = Thing[1]
  1538. local Mode = Thing[2]
  1539. local Delay = Thing[3]
  1540. local IncX = Thing[4]
  1541. local IncY = Thing[5]
  1542. local IncZ = Thing[6]
  1543. if 1 >= Thing[1].Transparency then
  1544. if Thing[2] == "Block1" then
  1545. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1546. local Mesh = Thing[1].Mesh
  1547. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1548. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1549. elseif Thing[2] == "Block2" then
  1550. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1551. local Mesh = Thing[7]
  1552. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1553. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1554. elseif Thing[2] == "Block3" then
  1555. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1556. local Mesh = Thing[7]
  1557. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1558. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1559. elseif Thing[2] == "Cylinder" then
  1560. local Mesh = Thing[1].Mesh
  1561. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1562. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1563. elseif Thing[2] == "Blood" then
  1564. local Mesh = Thing[7]
  1565. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1566. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1567. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1568. elseif Thing[2] == "Elec" then
  1569. local Mesh = Thing[1].Mesh
  1570. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1571. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1572. elseif Thing[2] == "Disappear" then
  1573. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1574. elseif Thing[2] == "Shatter" then
  1575. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1576. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1577. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1578. Thing[6] = Thing[6] + Thing[5]
  1579. end
  1580. else
  1581. Part.Parent = nil
  1582. table.remove(Effects, e)
  1583. end
  1584. end
  1585. end
  1586. end
  1587. end
  1588. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement