Advertisement
Josemmoya

Untitled

Dec 29th, 2020 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.66 KB | None | 0 0
  1. print(
  2. [[Cyber Knight
  3. Keybinds:
  4. T - Laugh
  5. C - TP Kill
  6. X - Fire Barrage
  7. N - Change BG Song
  8. ]]
  9. )
  10.  
  11. --Keybinds
  12. _G.UnReanimateKey = "q" --The keybind for unreanimating.
  13. _G.ReanimateKey = "e" --The keybind for reanimating.
  14. _G.R6ToggleKey = "r" --The keybind for toggling R15 to R6.
  15. _G.GodmodeToggleKey = "t" --The keybind for toggling godmode.
  16. --Options
  17. _G.GodMode = true --Set to true if you want godmode.
  18. _G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
  19. _G.FastLoading = true --Set to true if you want godmode to load faster.
  20. _G.AutoReanimate = true --Set to true if you want to auto reanimate and disable keybinds after executing.
  21.  
  22. loadstring(game:HttpGet("https://paste.ee/r/5K7Kc/0"))()
  23.  
  24. local script = game:GetObjects("rbxassetid://5902081139")[1]
  25.  
  26. workspace.FallenPartsDestroyHeight = -1000
  27.  
  28. local invpart = Instance.new("Part", game:GetService("Players").LocalPlayer.Character)
  29. invpart.Anchored = true
  30. invpart.Position = Vector3.new(0, -50, 0)
  31. invpart.CanCollide = false
  32. local InvAtt = Instance.new("Attachment", invpart)
  33.  
  34. local hat = game:GetService("Players").LocalPlayer.Character["fff_fox"]
  35. hat.Handle:FindFirstChildOfClass("SpecialMesh"):Destroy()
  36.  
  37. local function weld(part0, part1)
  38. local attachment0 = Instance.new("Attachment", part0)
  39. if part0 == hat.Handle then
  40. attachment0.Rotation = Vector3.new(0, 0, 0) --Edit if u want custom rotationing
  41. attachment0.Position = Vector3.new(0, 0, 0) --Edit if u want custom positioning
  42. end
  43. local attachment1 = Instance.new("Attachment", part1)
  44. local weldpos = Instance.new("AlignPosition", part0)
  45. weldpos.Attachment0 = attachment0
  46. weldpos.Attachment1 = attachment1
  47. weldpos.RigidityEnabled = false
  48. weldpos.ReactionForceEnabled = false
  49. weldpos.ApplyAtCenterOfMass = false
  50. weldpos.MaxForce = 10000
  51. weldpos.MaxVelocity = 10000
  52. weldpos.Responsiveness = 10000
  53. local weldrot = Instance.new("AlignOrientation", part0)
  54. weldrot.Attachment0 = attachment0
  55. weldrot.Attachment1 = attachment1
  56. weldrot.ReactionTorqueEnabled = true
  57. weldrot.PrimaryAxisOnly = false
  58. weldrot.MaxTorque = 10000
  59. weldrot.MaxAngularVelocity = 10000
  60. weldrot.Responsiveness = 10000
  61. end
  62.  
  63. local function invweld(part0)
  64. local attachment0 = Instance.new("Attachment", part0)
  65. local attachment1 = InvAtt
  66. local weldpos = Instance.new("AlignPosition", part0)
  67. weldpos.Enabled = false
  68. weldpos.Name = "InvPos"
  69. weldpos.Attachment0 = attachment0
  70. weldpos.Attachment1 = attachment1
  71. weldpos.RigidityEnabled = false
  72. weldpos.ReactionForceEnabled = false
  73. weldpos.ApplyAtCenterOfMass = false
  74. weldpos.MaxForce = 10000
  75. weldpos.MaxVelocity = 10000
  76. weldpos.Responsiveness = 10000
  77. local weldrot = Instance.new("AlignOrientation", part0)
  78. weldrot.Enabled = false
  79. weldrot.Name = "InvRot"
  80. weldrot.Attachment0 = attachment0
  81. weldrot.Attachment1 = attachment1
  82. weldrot.ReactionTorqueEnabled = true
  83. weldrot.PrimaryAxisOnly = false
  84. weldrot.MaxTorque = 10000
  85. weldrot.MaxAngularVelocity = 10000
  86. weldrot.Responsiveness = 10000
  87. end
  88.  
  89. weld(hat.Handle, script.Armor.RightArmArmor.Fire)
  90. invweld(hat.Handle)
  91.  
  92. --[[local p = Instance.new("Part", game:GetService("Players").LocalPlayer.Character)
  93. p.CanCollide = true
  94. p.Transparency = 1
  95. local w = Instance.new("Weld", p)
  96. w.Part0 = p
  97. w.Part1 = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  98. w.C0 = w.C0 + Vector3.new(0, 2.5, 0)
  99.  
  100. local AHB = Instance.new("BindableEvent")
  101.  
  102. local FPS = 30
  103.  
  104. local TimeFrame = 0
  105.  
  106. local LastFrame = tick()
  107. local Frame = 1/FPS
  108.  
  109. game:service'RunService'.Heartbeat:connect(function(s,p)
  110. TimeFrame = TimeFrame + s
  111. if(TimeFrame >= Frame)then
  112. for i = 1,math.floor(TimeFrame/Frame) do
  113. AHB:Fire()
  114. end
  115. LastFrame=tick()
  116. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  117. end
  118. end)
  119.  
  120.  
  121. function swait(dur)
  122. if(dur == 0 or typeof(dur) ~= 'number')then
  123. AHB.Event:wait()
  124. else
  125. for i = 1, dur*FPS do
  126. AHB.Event:wait()
  127. end
  128. end
  129. end]]
  130.  
  131. -- converter by Drahazar
  132. -- converted using Drahazar's Void SB Script Converter
  133.  
  134. --//====================================================\\--
  135. --|| CREATED BY HELKERN USING SHACK BASE
  136. --\\====================================================//--
  137.  
  138. wait(0.2)
  139.  
  140. Player = game:GetService("Players").LocalPlayer
  141. PlayerGui = Player.PlayerGui
  142. Cam = workspace.CurrentCamera
  143. Backpack = Player.Backpack
  144. Character = game:GetService("Players").LocalPlayer.Character
  145. Humanoid = Character.Humanoid
  146. Mouse = Player:GetMouse()
  147. RootPart = Character["HumanoidRootPart"]
  148. Torso = Character["Torso"]
  149. Head = Character["Head"]
  150. RightArm = Character["Right Arm"]
  151. LeftArm = Character["Left Arm"]
  152. RightLeg = Character["Right Leg"]
  153. LeftLeg = Character["Left Leg"]
  154. RootJoint = RootPart["RootJoint"]
  155. Neck = Torso["Neck"]
  156. RightShoulder = Torso["Right Shoulder"]
  157. LeftShoulder = Torso["Left Shoulder"]
  158. RightHip = Torso["Right Hip"]
  159. LeftHip = Torso["Left Hip"]
  160. local sick = Instance.new("Sound",Torso)
  161.  
  162. IT = Instance.new
  163. CF = CFrame.new
  164. VT = Vector3.new
  165. RAD = math.rad
  166. C3 = Color3.new
  167. UD2 = UDim2.new
  168. BRICKC = BrickColor.new
  169. ANGLES = CFrame.Angles
  170. EULER = CFrame.fromEulerAnglesXYZ
  171. COS = math.cos
  172. ACOS = math.acos
  173. SIN = math.sin
  174. ASIN = math.asin
  175. ABS = math.abs
  176. MRANDOM = math.random
  177. FLOOR = math.floor
  178.  
  179. --//=================================\\
  180. --|| USEFUL VALUES
  181. --\\=================================//
  182.  
  183. Animation_Speed = 3
  184. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  185. local dist = 0
  186. local part = Instance.new("Part", Character.Parent)
  187. part.Anchored = true
  188. part.Transparency = 1
  189. local Speed = 16
  190. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  191. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  192. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  193. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  194. local DAMAGEMULTIPLIER = 1
  195. local ANIM = "Idle"
  196. local ATTACK = false
  197. local ATTACKM = ""
  198. local EQUIPPED = false
  199. local HOLD = false
  200. local COMBO = 1
  201. local Rooted = false
  202. local SINE = 0
  203. local KEYHOLD = false
  204. local CHANGE = 2 / Animation_Speed
  205. local WALKINGANIM = false
  206. local VALUE1 = false
  207. local VALUE2 = false
  208. local ROBLOXIDLEANIMATION = IT("Animation")
  209. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  210. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  211. --ROBLOXIDLEANIMATION.Parent = Humanoid
  212. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  213. WEAPONGUI.Name = "Weapon GUI"
  214. local Effects = IT("Folder", Character.Parent)
  215. Effects.Name = "Effects"
  216. local ANIMATOR = Humanoid.Animator
  217. local ANIMATE = Character.Animate
  218. ANIMATOR:Destroy()
  219. local UNANCHOR = true
  220. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  221.  
  222. local hrpz = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  223.  
  224. hrpz.Name = "HumanoidRootPart"
  225. hrpz.Transparency = 0.5
  226. hrpz.Anchored = false
  227. if hrpz:FindFirstChildOfClass("AlignPosition") then
  228. hrpz:FindFirstChildOfClass("AlignPosition"):Destroy()
  229. end
  230. if hrpz:FindFirstChildOfClass("AlignOrientation") then
  231. hrpz:FindFirstChildOfClass("AlignOrientation"):Destroy()
  232. end
  233. local bp = Instance.new("BodyPosition", hrpz)
  234. bp.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position
  235. bp.D = 9999999
  236. bp.P = 999999999999999
  237. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  238. local flinger = Instance.new("BodyAngularVelocity",hrpz)
  239. flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  240. flinger.P = 1000000000000000000000000000
  241. flinger.AngularVelocity = Vector3.new(10000,10000,10000)
  242. spawn(function()
  243. while game:GetService("RunService").Heartbeat:Wait() do
  244. if ATTACK == false then
  245. bp.Position = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position
  246. else
  247. if ATTACKM == "tpkill" then
  248. local tar = game:GetService("Players").LocalPlayer:GetMouse().Target
  249. bp.Position = tar.Position
  250. elseif ATTACKM == "firebarrage" then
  251. part.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*dist*2
  252. bp.Position = part.Position
  253. end
  254. end
  255. end
  256. end)
  257.  
  258. --//=================================\\
  259. --\\=================================//
  260.  
  261.  
  262. --//=================================\\
  263. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  264. --\\=================================//
  265.  
  266. ArtificialHB = Instance.new("BindableEvent")
  267. ArtificialHB.Name = "ArtificialHB"
  268.  
  269. frame = Frame_Speed
  270. tf = 0
  271. allowframeloss = false
  272. tossremainder = false
  273. lastframe = tick()
  274. ArtificialHB:Fire()
  275.  
  276. game:GetService("RunService").Heartbeat:connect(function(s, p)
  277. tf = tf + s
  278. if tf >= frame then
  279. if allowframeloss then
  280. ArtificialHB:Fire()
  281. lastframe = tick()
  282. else
  283. for i = 1, math.floor(tf / frame) do
  284. ArtificialHB:Fire()
  285. end
  286. lastframe = tick()
  287. end
  288. if tossremainder then
  289. tf = 0
  290. else
  291. tf = tf - frame * math.floor(tf / frame)
  292. end
  293. end
  294. end)
  295.  
  296. --//=================================\\
  297. --\\=================================//
  298.  
  299. --//=================================\\
  300. --|| SOME FUNCTIONS
  301. --\\=================================//
  302.  
  303. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  304. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  305. end
  306.  
  307. function PositiveAngle(NUMBER)
  308. if NUMBER >= 0 then
  309. NUMBER = 0
  310. end
  311. return NUMBER
  312. end
  313.  
  314. function NegativeAngle(NUMBER)
  315. if NUMBER <= 0 then
  316. NUMBER = 0
  317. end
  318. return NUMBER
  319. end
  320.  
  321. function Swait(NUMBER)
  322. if NUMBER == 0 or NUMBER == nil then
  323. ArtificialHB.Event:wait()
  324. else
  325. for i = 1, NUMBER do
  326. ArtificialHB.Event:wait()
  327. end
  328. end
  329. end
  330.  
  331. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  332. local NEWMESH = IT(MESH)
  333. if MESH == "SpecialMesh" then
  334. NEWMESH.MeshType = MESHTYPE
  335. if MESHID ~= "nil" and MESHID ~= "" then
  336. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  337. end
  338. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  339. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  340. end
  341. end
  342. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  343. NEWMESH.Scale = SCALE
  344. NEWMESH.Parent = PARENT
  345. return NEWMESH
  346. end
  347.  
  348. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  349. local NEWPART = IT("Part")
  350. NEWPART.formFactor = FORMFACTOR
  351. NEWPART.Reflectance = REFLECTANCE
  352. NEWPART.Transparency = TRANSPARENCY
  353. NEWPART.CanCollide = false
  354. NEWPART.Locked = true
  355. NEWPART.Anchored = true
  356. if ANCHOR == false then
  357. NEWPART.Anchored = false
  358. end
  359. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  360. NEWPART.Name = NAME
  361. NEWPART.Size = SIZE
  362. NEWPART.Position = Torso.Position
  363. NEWPART.Material = MATERIAL
  364. NEWPART:BreakJoints()
  365. NEWPART.Parent = PARENT
  366. return NEWPART
  367. end
  368.  
  369. local function weldBetween(a, b)
  370. local weldd = Instance.new("ManualWeld")
  371. weldd.Part0 = a
  372. weldd.Part1 = b
  373. weldd.C0 = CFrame.new()
  374. weldd.C1 = b.CFrame:inverse() * a.CFrame
  375. weldd.Parent = a
  376. return weldd
  377. end
  378.  
  379.  
  380. function QuaternionFromCFrame(cf)
  381. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  382. local trace = m00 + m11 + m22
  383. if trace > 0 then
  384. local s = math.sqrt(1 + trace)
  385. local recip = 0.5 / s
  386. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  387. else
  388. local i = 0
  389. if m11 > m00 then
  390. i = 1
  391. end
  392. if m22 > (i == 0 and m00 or m11) then
  393. i = 2
  394. end
  395. if i == 0 then
  396. local s = math.sqrt(m00 - m11 - m22 + 1)
  397. local recip = 0.5 / s
  398. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  399. elseif i == 1 then
  400. local s = math.sqrt(m11 - m22 - m00 + 1)
  401. local recip = 0.5 / s
  402. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  403. elseif i == 2 then
  404. local s = math.sqrt(m22 - m00 - m11 + 1)
  405. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  406. end
  407. end
  408. end
  409.  
  410. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  411. local xs, ys, zs = x + x, y + y, z + z
  412. local wx, wy, wz = w * xs, w * ys, w * zs
  413. local xx = x * xs
  414. local xy = x * ys
  415. local xz = x * zs
  416. local yy = y * ys
  417. local yz = y * zs
  418. local zz = z * zs
  419. 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))
  420. end
  421.  
  422. function QuaternionSlerp(a, b, t)
  423. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  424. local startInterp, finishInterp;
  425. if cosTheta >= 0.0001 then
  426. if (1 - cosTheta) > 0.0001 then
  427. local theta = ACOS(cosTheta)
  428. local invSinTheta = 1 / SIN(theta)
  429. startInterp = SIN((1 - t) * theta) * invSinTheta
  430. finishInterp = SIN(t * theta) * invSinTheta
  431. else
  432. startInterp = 1 - t
  433. finishInterp = t
  434. end
  435. else
  436. if (1 + cosTheta) > 0.0001 then
  437. local theta = ACOS(-cosTheta)
  438. local invSinTheta = 1 / SIN(theta)
  439. startInterp = SIN((t - 1) * theta) * invSinTheta
  440. finishInterp = SIN(t * theta) * invSinTheta
  441. else
  442. startInterp = t - 1
  443. finishInterp = t
  444. end
  445. end
  446. 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
  447. end
  448.  
  449. function Clerp(a, b, t)
  450. local qa = {QuaternionFromCFrame(a)}
  451. local qb = {QuaternionFromCFrame(b)}
  452. local ax, ay, az = a.x, a.y, a.z
  453. local bx, by, bz = b.x, b.y, b.z
  454. local _t = 1 - t
  455. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  456. end
  457.  
  458. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  459. local frame = IT("Frame")
  460. frame.BackgroundTransparency = TRANSPARENCY
  461. frame.BorderSizePixel = BORDERSIZEPIXEL
  462. frame.Position = POSITION
  463. frame.Size = SIZE
  464. frame.BackgroundColor3 = COLOR
  465. frame.BorderColor3 = BORDERCOLOR
  466. frame.Name = NAME
  467. frame.Parent = PARENT
  468. return frame
  469. end
  470.  
  471. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  472. local label = IT("TextLabel")
  473. label.BackgroundTransparency = 1
  474. label.Size = UD2(1, 0, 1, 0)
  475. label.Position = UD2(0, 0, 0, 0)
  476. label.TextColor3 = TEXTCOLOR
  477. label.TextStrokeTransparency = STROKETRANSPARENCY
  478. label.TextTransparency = TRANSPARENCY
  479. label.FontSize = TEXTFONTSIZE
  480. label.Font = TEXTFONT
  481. label.BorderSizePixel = BORDERSIZEPIXEL
  482. label.TextScaled = false
  483. label.Text = TEXT
  484. label.Name = NAME
  485. label.Parent = PARENT
  486. return label
  487. end
  488.  
  489. function NoOutlines(PART)
  490. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  491. end
  492.  
  493. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  494. local NEWWELD = IT(TYPE)
  495. NEWWELD.Part0 = PART0
  496. NEWWELD.Part1 = PART1
  497. NEWWELD.C0 = C0
  498. NEWWELD.C1 = C1
  499. NEWWELD.Parent = PARENT
  500. return NEWWELD
  501. end
  502.  
  503. local S = IT("Sound")
  504. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  505. local NEWSOUND = nil
  506. coroutine.resume(coroutine.create(function()
  507. NEWSOUND = S:Clone()
  508. NEWSOUND.EmitterSize = 5*VOLUME
  509. NEWSOUND.Parent = PARENT
  510. NEWSOUND.Volume = VOLUME
  511. NEWSOUND.Pitch = PITCH
  512. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  513. NEWSOUND:play()
  514. if DOESLOOP == true then
  515. NEWSOUND.Looped = true
  516. else
  517. repeat wait(1) until NEWSOUND.Playing == false
  518. NEWSOUND:remove()
  519. end
  520. end))
  521. return NEWSOUND
  522. end
  523.  
  524. function CFrameFromTopBack(at, top, back)
  525. local right = top:Cross(back)
  526. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  527. end
  528.  
  529. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  530. function WACKYEFFECT(Table)
  531. local TYPE = (Table.EffectType or "Sphere")
  532. local SIZE = (Table.Size or VT(1,1,1))
  533. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  534. local TRANSPARENCY = (Table.Transparency or 0)
  535. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  536. local CFRAME = (Table.CFrame or Torso.CFrame)
  537. local MOVEDIRECTION = (Table.MoveToPos or nil)
  538. local ROTATION1 = (Table.RotationX or 0)
  539. local ROTATION2 = (Table.RotationY or 0)
  540. local ROTATION3 = (Table.RotationZ or 0)
  541. local MATERIAL = (Table.Material or "Neon")
  542. local COLOR = (Table.Color or C3(1,1,1))
  543. local TIME = (Table.Time or 45)
  544. local SOUNDID = (Table.SoundID or nil)
  545. local SOUNDPITCH = (Table.SoundPitch or nil)
  546. local SOUNDVOLUME = (Table.SoundVolume or nil)
  547. coroutine.resume(coroutine.create(function()
  548. local PLAYSSOUND = false
  549. local SOUND = nil
  550. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  551. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  552. PLAYSSOUND = true
  553. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  554. end
  555. EFFECT.Color = COLOR
  556. local MSH = nil
  557. if TYPE == "Sphere" then
  558. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  559. elseif TYPE == "Block" then
  560. MSH = IT("BlockMesh",EFFECT)
  561. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  562. elseif TYPE == "Wave" then
  563. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  564. elseif TYPE == "Ring" then
  565. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  566. elseif TYPE == "Slash" then
  567. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  568. elseif TYPE == "Round Slash" then
  569. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  570. elseif TYPE == "Swirl" then
  571. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  572. elseif TYPE == "Skull" then
  573. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  574. elseif TYPE == "Crystal" then
  575. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  576. end
  577. if MSH ~= nil then
  578. local MOVESPEED = nil
  579. if MOVEDIRECTION ~= nil then
  580. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  581. end
  582. local GROWTH = SIZE - ENDSIZE
  583. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  584. if TYPE == "Block" then
  585. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  586. else
  587. EFFECT.CFrame = CFRAME
  588. end
  589. for LOOP = 1, TIME+1 do
  590. Swait()
  591. MSH.Scale = MSH.Scale - GROWTH/TIME
  592. if TYPE == "Wave" then
  593. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  594. end
  595. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  596. if TYPE == "Block" then
  597. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  598. else
  599. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  600. end
  601. if MOVEDIRECTION ~= nil then
  602. local ORI = EFFECT.Orientation
  603. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  604. EFFECT.Orientation = ORI
  605. end
  606. end
  607. if PLAYSSOUND == false then
  608. EFFECT:remove()
  609. else
  610. repeat Swait() until SOUND.Playing == false
  611. EFFECT:remove()
  612. end
  613. else
  614. if PLAYSSOUND == false then
  615. EFFECT:remove()
  616. else
  617. repeat Swait() until SOUND.Playing == false
  618. EFFECT:remove()
  619. end
  620. end
  621. end))
  622. end
  623.  
  624. function WACKYEFFECT2(Table)
  625. local TYPE = (Table.EffectType or "Sphere")
  626. local SIZE = (Table.Size or VT(1,1,1))
  627. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  628. local TRANSPARENCY = (Table.Transparency or 0)
  629. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  630. local CFRAME = (Table.CFrame or Torso.CFrame)
  631. local MOVEDIRECTION = (Table.MoveToPos or nil)
  632. local ROTATION1 = (Table.RotationX or 0)
  633. local ROTATION2 = (Table.RotationY or 0)
  634. local ROTATION3 = (Table.RotationZ or 0)
  635. local MATERIAL = (Table.Material or "Neon")
  636. local COLOR = (Table.Color or C3(1,1,1))
  637. local TIME = (Table.Time or 45)
  638. local SOUNDID = (Table.SoundID or nil)
  639. local SOUNDPITCH = (Table.SoundPitch or nil)
  640. local SOUNDVOLUME = (Table.SoundVolume or nil)
  641. local ISCHAOS = (Table.Chaos or false)
  642. coroutine.resume(coroutine.create(function()
  643. local PLAYSSOUND = false
  644. local SOUND = nil
  645. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC"a", "Effect", VT(1,1,1), true)
  646. EFFECT.Color = COLOR
  647. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  648. PLAYSSOUND = true
  649. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  650. end
  651.  
  652. local MSH = nil
  653. if TYPE == "Sphere" then
  654. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  655. elseif TYPE == "Block" or TYPE == "Box" then
  656. MSH = IT("BlockMesh",EFFECT)
  657. MSH.Scale = SIZE
  658. elseif TYPE == "Wave" then
  659. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  660. elseif TYPE == "Ring" then
  661. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  662. elseif TYPE == "Slash" then
  663. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  664. elseif TYPE == "Round Slash" then
  665. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  666. elseif TYPE == "Swirl" then
  667. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  668. elseif TYPE == "Skull" then
  669. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  670. elseif TYPE == "Crystal" then
  671. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  672. end
  673. if MSH ~= nil then
  674. local MOVESPEED = nil
  675. if MOVEDIRECTION ~= nil then
  676. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  677. end
  678. local GROWTH = SIZE - ENDSIZE
  679. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  680. if TYPE == "Block" then
  681. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  682. else
  683. EFFECT.CFrame = CFRAME
  684. end
  685. for LOOP = 1, TIME+1 do
  686. Swait()
  687. MSH.Scale = MSH.Scale - GROWTH/TIME
  688. if ISCHAOS == true then
  689. EFFECT.Color = BrickColor.Random().Color
  690. end
  691. if TYPE == "Wave" then
  692. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  693. end
  694. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  695.  
  696. if TYPE == "Block" then
  697. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  698. else
  699. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  700. end
  701. if MOVEDIRECTION ~= nil then
  702. local ORI = EFFECT.Orientation
  703. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  704. EFFECT.Orientation = ORI
  705. end
  706. end
  707. if PLAYSSOUND == false then
  708. EFFECT:remove()
  709. else
  710. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  711. EFFECT:remove()
  712. end
  713. else
  714. if PLAYSSOUND == false then
  715. EFFECT:remove()
  716. else
  717. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  718. EFFECT:remove()
  719. end
  720. end
  721. end))
  722. end
  723.  
  724. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  725. local type = type
  726. local rng = Instance.new("Part", Effects)
  727. rng.Anchored = true
  728. rng.Color = color
  729. rng.CanCollide = false
  730. rng.FormFactor = 3
  731. rng.Name = "Ring"
  732. rng.Material = "Neon"
  733. rng.Size = Vector3.new(1, 1, 1)
  734. rng.Transparency = 0
  735. rng.TopSurface = 0
  736. rng.BottomSurface = 0
  737. rng.CFrame = pos
  738. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  739. local rngm = Instance.new("SpecialMesh", rng)
  740. rngm.MeshType = MType
  741. rngm.Scale = Vector3.new(x1, y1, z1)
  742. local scaler2 = 1
  743. local speeder = FastSpeed
  744. if type == "Add" then
  745. scaler2 = 1 * value
  746. elseif type == "Divide" then
  747. scaler2 = 1 / value
  748. end
  749. coroutine.resume(coroutine.create(function()
  750. for i = 0, 10 / bonuspeed, 0.1 do
  751. swait()
  752. if type == "Add" then
  753. scaler2 = scaler2 - 0.01 * value / bonuspeed
  754. elseif type == "Divide" then
  755. scaler2 = scaler2 - 0.01 / value * bonuspeed
  756. end
  757. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  758. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  759. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  760. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  761. end
  762. rng:Destroy()
  763. end))
  764. end
  765.  
  766.  
  767. function MakeForm(PART,TYPE)
  768. if TYPE == "Cyl" then
  769. local MSH = IT("CylinderMesh",PART)
  770. elseif TYPE == "Ball" then
  771. local MSH = IT("SpecialMesh",PART)
  772. MSH.MeshType = "Sphere"
  773. elseif TYPE == "Wedge" then
  774. local MSH = IT("SpecialMesh",PART)
  775. MSH.MeshType = "Wedge"
  776. end
  777. end
  778.  
  779. Debris = game:GetService("Debris")
  780.  
  781. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  782. local DIRECTION = CF(StartPos,EndPos).lookVector
  783. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  784. end
  785.  
  786.  
  787. function Gyro(PARENT)
  788. local GYRO = IT("BodyGyro",PARENT)
  789. GYRO.D = 750
  790. GYRO.P = 20000
  791. GYRO.MaxTorque = VT(0,40000000,0)
  792. return GYRO
  793. end
  794.  
  795. function POSITION(PARENT)
  796. local grav = Instance.new("BodyPosition",PARENT)
  797. grav.D = 15
  798. grav.P = 20000
  799. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  800. return grav
  801. end
  802.  
  803. function FacialShadow()
  804. local SHADOWS = {}
  805. for i = 1, 16 do
  806. local FACE = CreatePart(3, Effects, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  807. FACE.Color = C3(0,0,0)
  808. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  809. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/25,0), CF(0, 0, 0))
  810. table.insert(SHADOWS,FACE)
  811. end
  812. local UNDO = function()
  813. for i = 1, #SHADOWS do
  814. SHADOWS[i]:remove()
  815. end
  816. end
  817. return UNDO
  818. end
  819.  
  820. function GetRoot(MODEL,ROOT)
  821. if ROOT == true then
  822. return MODEL:FindFirstChild("HumanoidRootPart") or MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
  823. else
  824. return MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
  825. end
  826. end
  827.  
  828. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  829. if FLOOR ~= nil then
  830. for i = 1, AMOUNT do
  831. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  832. DEBREE.Material = FLOOR.Material
  833. DEBREE.Color = FLOOR.Color
  834. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  835. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  836. coroutine.resume(coroutine.create(function()
  837. Swait(15)
  838. DEBREE.Parent = workspace
  839. DEBREE.CanCollide = true
  840. Debris:AddItem(DEBREE,SWAIT)
  841. end))
  842. end
  843. end
  844. end
  845.  
  846. function SHAKECAM(POSITION,RANGE,INTENSITY,TIME)
  847. local CHILDREN = workspace:GetDescendants()
  848. for index, CHILD in pairs(CHILDREN) do
  849. if CHILD.ClassName == "Model" then
  850. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  851. if HUM then
  852. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  853. if TORSO then
  854. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  855. local CAMSHAKER = script.CamShake:Clone()
  856. CAMSHAKER.Shake.Value = INTENSITY
  857. CAMSHAKER.Timer.Value = TIME
  858. CAMSHAKER.Parent = CHILD
  859. CAMSHAKER.Disabled = false
  860. end
  861. end
  862. end
  863. end
  864. end
  865. end
  866.  
  867. function CharacterFade(COLOR,TIMER)
  868. coroutine.resume(coroutine.create(function()
  869. local FADE = IT("Model",Effects)
  870. for _, c in pairs(Character:GetChildren()) do
  871. if c.ClassName == "Part" and c ~= RootPart and c ~= LeftL and c ~= LeftA and c ~= RightA and c ~= Helmet and c ~= TorsA and c ~= RightL then
  872. local FADER = c:Clone()
  873. FADER.Color = COLOR
  874. FADER.CFrame = c.CFrame
  875. FADER.Parent = FADE
  876. FADER.Anchored = true
  877. FADER.CanCollide = false
  878. FADER.Transparency = 0.25
  879. FADER:BreakJoints()
  880. FADER.Material = "Neon"
  881. FADER:ClearAllChildren()
  882. if FADER.Name == "Head" then
  883. FADER.Size = VT(1,1,1)
  884. end
  885. end
  886. end
  887. local TRANS = 0.75/TIMER
  888. for i = 1, TIMER do
  889. Swait()
  890. for _, c in pairs(FADE:GetChildren()) do
  891. if c.ClassName == "Part" then
  892. c.Transparency = c.Transparency + TRANS
  893. end
  894. end
  895. end
  896. FADE:remove()
  897. end))
  898. end
  899.  
  900.  
  901. --//=================================\\
  902. --|| WEAPON CREATION
  903. --\\=================================//
  904. local Armor = script.Armor
  905. local Helmet = Armor.Helmet
  906. Helmet.Parent = Character
  907. for i,v in pairs(Helmet:GetChildren()) do
  908. v.Anchored = false
  909. end
  910. local HelmetWeld = CreateWeldOrSnapOrMotor("Weld",Head,Helmet.Main,Head,CF(0,0,0),CF(0,0,0))
  911.  
  912. local LeftA = Armor.LeftArmArmor
  913. LeftA.Parent = Character
  914. for i,v in pairs(LeftA:GetChildren()) do
  915. v.Anchored = false
  916. end
  917. local LeftAWeld = CreateWeldOrSnapOrMotor("Weld",LeftArm,LeftA.Main,LeftArm,CF(0,0,0),CF(0,0,0))
  918.  
  919. local LeftL = Armor.LeftLegArmor
  920. LeftL.Parent = Character
  921. for i,v in pairs(LeftL:GetChildren()) do
  922. v.Anchored = false
  923. end
  924. local LeftLWeld = CreateWeldOrSnapOrMotor("Weld",LeftLeg,LeftL.Main,LeftLeg,CF(0,0,0),CF(0,0,0))
  925.  
  926. local RightA = Armor.RightArmArmor
  927. RightA.Parent = Character
  928. for i,v in pairs(RightA:GetChildren()) do
  929. v.Anchored = false
  930. end
  931. local RightAWeld = CreateWeldOrSnapOrMotor("Weld",RightArm,RightA.Main,RightArm,CF(0,0,0),CF(0,0,0))
  932.  
  933. local RightL = Armor.RightLegArmor
  934. RightL.Parent = Character
  935. for i,v in pairs(RightL:GetChildren()) do
  936. v.Anchored = false
  937. end
  938. local RightLWeld = CreateWeldOrSnapOrMotor("Weld",RightLeg,RightL.Main,RightLeg,CF(0,0,0),CF(0,0,0))
  939.  
  940. local TorsA = Armor.TorsoArmor
  941. TorsA.Parent = Character
  942. for i,v in pairs(TorsA:GetChildren()) do
  943. v.Anchored = false
  944. end
  945. local TorsAWeld = CreateWeldOrSnapOrMotor("Weld",Torso,TorsA.Main,Torso,CF(0,0,0),CF(0,0,0))
  946.  
  947. local FireBall = RightA.Fire
  948. local FlameA = FireBall.Flame
  949. local FlameB = FireBall.Sparks
  950. local FlameW = RightA.Main.FireWeld
  951.  
  952. for i,v in pairs(Character:GetChildren()) do
  953. if v:IsA("Part") then
  954. v.Transparency = 1
  955. end
  956. end
  957.  
  958. function EnableFire()
  959. hat.Handle.AlignPosition.Enabled = true
  960. hat.Handle.AlignOrientation.Enabled = true
  961. hat.Handle.InvPos.Enabled = false
  962. hat.Handle.InvRot.Enabled = false
  963. FireBall.Transparency = 0
  964. FlameA.Enabled = true
  965. FlameB.Enabled = true
  966. end
  967.  
  968. function DisableFire()
  969. hat.Handle.AlignPosition.Enabled = false
  970. hat.Handle.AlignOrientation.Enabled = false
  971. hat.Handle.InvPos.Enabled = true
  972. hat.Handle.InvRot.Enabled = true
  973. FireBall.Transparency = 1
  974. FlameA.Enabled = false
  975. FlameB.Enabled = false
  976. end
  977.  
  978.  
  979.  
  980.  
  981. --//=================================\\
  982. --|| DAMAGING
  983. --\\=================================//
  984. function Kill(Char)
  985. local NewCharacter = IT("Model",Effects)
  986. NewCharacter.Name = "Lava"
  987. for _, c in pairs(Char:GetDescendants()) do
  988. if c:IsA("BasePart") and c.Transparency == 0 then
  989. c:BreakJoints()
  990. c.Material = "Neon"
  991. c.Color = Color3.fromRGB(255,85,0)
  992. coroutine.resume(coroutine.create(function()
  993. while wait() do
  994. c.Size = VT(c.Size.X - 0.01,c.Size.Y - 0.01,c.Size.Z - 0.01)
  995. end
  996. end))
  997. c.CanCollide = true
  998. c.Transparency = 0
  999. if c:FindFirstChildOfClass("SpecialMesh") then
  1000. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1001. end
  1002. if c.Name == "Head" then
  1003. c:ClearAllChildren()
  1004. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1005. end
  1006. if c.ClassName == "MeshPart" then
  1007. c.TextureID = ""
  1008. end
  1009. if c:FindFirstChildOfClass("BodyPosition") then
  1010. c:FindFirstChildOfClass("BodyPosition"):remove()
  1011. end
  1012. if c:FindFirstChildOfClass("ParticleEmitter") then
  1013. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1014. end
  1015. c.Parent = NewCharacter
  1016. c.Name = "DeadPart"
  1017. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1018. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1019. end
  1020. end
  1021. Char:remove()
  1022. Debris:AddItem(NewCharacter,5)
  1023. coroutine.resume(coroutine.create(function()
  1024. wait(5)
  1025. if game:GetService("Players"):GetPlayerFromCharacter(Char) then
  1026. game:GetService("Players"):GetPlayerFromCharacter(Char):LoadCharacter()
  1027. end
  1028. end))
  1029. end
  1030.  
  1031. function ApplyDamage(Humanoid,Damage)
  1032. Damage = Damage * DAMAGEMULTIPLIER
  1033. if Humanoid.Health < 2000 then
  1034. if Humanoid.Health - Damage > 0 then
  1035. Humanoid.Health = Humanoid.Health - Damage
  1036. else
  1037. Humanoid.Parent:BreakJoints()
  1038. end
  1039. else
  1040. Humanoid.Parent:BreakJoints()
  1041. end
  1042. end
  1043.  
  1044. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1045. for index, CHILD in pairs(workspace:GetDescendants()) do
  1046. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1047. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1048. if HUM then
  1049. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1050. if TORSO then
  1051. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1052. if INSTAKILL == true then
  1053. Kill(CHILD)
  1054. else
  1055. local DMG = MRANDOM(MINDMG,MAXDMG)
  1056. ApplyDamage(HUM,DMG)
  1057. end
  1058. if FLING > 0 then
  1059. for _, c in pairs(CHILD:GetChildren()) do
  1060. if c:IsA("BasePart") then
  1061. local bv = Instance.new("BodyVelocity")
  1062. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1063. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1064. bv.Parent = c
  1065. Debris:AddItem(bv,0.05)
  1066. end
  1067. end
  1068. end
  1069. end
  1070. end
  1071. end
  1072. end
  1073. end
  1074. end
  1075.  
  1076. --//=================================\\
  1077. --|| ATTACK FUNCTIONS AND STUFF
  1078. --\\=================================//
  1079. SONG = 925278639
  1080.  
  1081. function Explodelol()
  1082. ATTACK = true
  1083. Rooted = true
  1084. DisableFire()
  1085. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 3.7, Character)
  1086. for i = 1,30 do
  1087. swait()
  1088. local Alpha = .2
  1089. WACKYEFFECT2({EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = RightLeg.CFrame * CF(0,-1,0), MoveToPos = nil, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = Color3.fromRGB(255,85,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1090. RootJoint.C0 = RootJoint.C0:lerp(CF(0,0,0)*ANGLES(RAD(-90),RAD(0),RAD(-180)),Alpha)
  1091. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-0.9,0.5,0)*ANGLES(RAD(-90),RAD(-78.7),RAD(-90)),Alpha)
  1092. RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.9,0.5,0)*ANGLES(RAD(-90),RAD(76.8),RAD(90)),Alpha)
  1093. Neck.C0 =Neck.C0:lerp(CF(0,1,-0.1)*ANGLES(RAD(-80.8),RAD(0),RAD(180)),Alpha)
  1094. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,0.1)*ANGLES(RAD(0),RAD(-77.9),RAD(0)),Alpha)
  1095. RightHip.C0 = RightHip.C0:lerp(CF(1,0.1,-0.8)*ANGLES(RAD(0),RAD(86.2),RAD(0)),Alpha)
  1096. end
  1097. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,.4,0), Size2 = VT(50,0,50), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(255,85,0), UseBoomerangMath = true ,SizeBoomerang = 15, SoundID = nil, SoundPitch = nil, SoundVolume = nil,Chaos = false})
  1098. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,.4,0), Size2 = VT(50,0,50), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(239, 154, 35), UseBoomerangMath = true ,SizeBoomerang = 15, SoundID = nil, SoundPitch = nil, SoundVolume = nil,Chaos = false})
  1099. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(1,.4,1), Size2 = VT(35,50,35), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(255,85,0), UseBoomerangMath = true ,SizeBoomerang = 15, SoundID = nil, SoundPitch = nil, SoundVolume = nil,Chaos = false})
  1100. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,.4,0), Size2 = VT(25,40,25), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(239, 154, 35), UseBoomerangMath = true ,SizeBoomerang = 15, SoundID = nil, SoundPitch = nil, SoundVolume = nil,Chaos = false})
  1101. for i = 1,20 do
  1102. swait()
  1103. local Alpha = .7
  1104. RootJoint.C0 = RootJoint.C0:lerp(CF(0,0,-0.3)*ANGLES(RAD(-105),RAD(0),RAD(-180)),Alpha)
  1105. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-0.9,0.5,-0.1)*ANGLES(RAD(-90),RAD(-78.7),RAD(-76.3)),Alpha)
  1106. RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.9,0.4,-0.2)*ANGLES(RAD(-90),RAD(76.8),RAD(65.9)),Alpha)
  1107. Neck.C0 =Neck.C0:lerp(CF(0,1,-0.1)*ANGLES(RAD(-78.4),RAD(0),RAD(-180)),Alpha)
  1108. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1.1,0.1)*ANGLES(RAD(15),RAD(-77.9),RAD(0)),Alpha)
  1109. RightHip.C0 = RightHip.C0:lerp(CF(1,-0.8,-0.7)*ANGLES(RAD(15),RAD(86.2),RAD(0)),Alpha)
  1110. end
  1111. EnableFire()
  1112. ATTACK = false
  1113. Rooted = false
  1114. end
  1115.  
  1116. function FireBarrage()
  1117. ATTACK = true
  1118. ATTACKM = "firebarrage"
  1119. dist = 0
  1120. local Alpha = .14
  1121. DisableFire()
  1122. for i = 0,20 do
  1123. swait()
  1124. WACKYEFFECT2({EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame * CF(0,-1,0), MoveToPos = nil, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = Color3.fromRGB(255,85,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1125. RootJoint.C0 = RootJoint.C0:lerp(CF(-0.2,0,0.4)*ANGLES(RAD(-90),RAD(0),RAD(131.6)),Alpha)
  1126. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.5,-0.1)*ANGLES(RAD(-22.8),RAD(-78.1),RAD(-22.3)),Alpha)
  1127. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,-0.2)*ANGLES(RAD(-171.6),RAD(53.9),RAD(-94.6)),Alpha)
  1128. Neck.C0 =Neck.C0:lerp(CF(0,1,0)*ANGLES(RAD(-90),RAD(0),RAD(-133.5)),Alpha)
  1129. LeftHip.C0 = LeftHip.C0:lerp(CF(-0.8,-1,0.3)*ANGLES(RAD(0),RAD(-27.1),RAD(0)),Alpha)
  1130. RightHip.C0 = RightHip.C0:lerp(CF(0.9,-1,-0.2)*ANGLES(RAD(-180),RAD(86.8),RAD(-180)),Alpha)
  1131. end
  1132. coroutine.resume(coroutine.create(function()
  1133. Swait(10)
  1134. for i = 0,3 do
  1135. swait()
  1136. WACKYEFFECT2({EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame * CF(0,-2,0) * ANGLES(RAD(-180),RAD(0),RAD(0)), MoveToPos = nil, RotationX = nil, RotationY = MRANDOM(-5,5), RotationZ = nil, Material = "Neon", Color = Color3.fromRGB(255,255,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1137. end
  1138. end))
  1139. for i = 0,3 do
  1140. swait()
  1141. local hb = CreatePart(3,Effects,"Neon",0,1,"Flame orange","Hitb",VT(20,20,20),true)
  1142. hb.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector*dist*2
  1143. WACKYEFFECT2({EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame * CF(0,-2,0) * ANGLES(RAD(-180),RAD(0),RAD(0)), MoveToPos = nil, RotationX = nil, RotationY = MRANDOM(-5,5), RotationZ = nil, Material = "Neon", Color = Color3.fromRGB(255,255,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1144. end
  1145. for i = 0,3,0.1 do
  1146. swait()
  1147. Debris:AddItem(hb,0.2)
  1148. local Alpha = .4
  1149. RootJoint.C0 = RootJoint.C0:lerp(CF(-0.2,0,0.5)*ANGLES(RAD(-97.2),RAD(0),RAD(-132.9)),Alpha)
  1150. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.5,-0.1)*ANGLES(RAD(-22.8),RAD(-78.1),RAD(-22.3)),Alpha)
  1151. RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.9,0.5,-0.5)*ANGLES(RAD(1.5),RAD(49.5),RAD(100.4)),Alpha)
  1152. Neck.C0 =Neck.C0:lerp(CF(0,1,0)*ANGLES(RAD(-86),RAD(-4.6),RAD(131.1)),Alpha)
  1153. LeftHip.C0 = LeftHip.C0:lerp(CF(-0.3,-1.1,0.2)*ANGLES(RAD(3.1),RAD(19.2),RAD(5.5)),Alpha)
  1154. RightHip.C0 = RightHip.C0:lerp(CF(0.9,-0.9,0)*ANGLES(RAD(-1.7),RAD(51.3),RAD(8.4)),Alpha)
  1155. dist = dist + 1
  1156. WACKYEFFECT2({EffectType = "Box", Size = VT(0,0,0), Size2 = VT(1+dist/2,1+dist/2,1+dist/2), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame * CF(0,1,.1 * dist) + RootPart.CFrame.lookVector*dist*2, MoveToPos = nil, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = Color3.fromRGB(255,85,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1157. end
  1158. ATTACK = false
  1159. EnableFire()
  1160. end
  1161.  
  1162. function laugh()
  1163. ATTACK = true
  1164. DisableFire()
  1165. CreateSound(3724751315,RootPart,4,1,false)
  1166. for i = 0,50 do
  1167. swait()
  1168. local Alpha = .4
  1169. RootJoint.C0 = RootJoint.C0:lerp(CF(0,0 + 0.07 * COS(SINE/6),0.2)*ANGLES(RAD(-83.4),RAD(0),RAD(-180)),Alpha)
  1170. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.5+ 0.1 * SIN(SINE/6),0)*ANGLES(RAD(-22.7),RAD(-78.1),RAD(-15.3)),Alpha)
  1171. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5 + 0.1 * SIN(SINE/6),0)*ANGLES(RAD(-21.6),RAD(76.5),RAD(11.9)),Alpha)
  1172. Neck.C0 =Neck.C0:lerp(CF(0,1,-0.1)*ANGLES(RAD(-72.4),RAD(0),RAD(-180)),Alpha)
  1173. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1- 0.07 * COS(SINE/6),-0.1)*ANGLES(RAD(-6.6),RAD(-75.6),RAD(0)),Alpha)
  1174. RightHip.C0 = RightHip.C0:lerp(CF(1,-1- 0.07 * COS(SINE/6),0)*ANGLES(RAD(-6.6),RAD(75.7),RAD(0)),Alpha)
  1175. end
  1176. ATTACK = false
  1177. EnableFire()
  1178. end
  1179.  
  1180. function song()
  1181. if SONG == 925278639 then
  1182. SONG = 701895896
  1183. elseif SONG == 701895896 then
  1184. SONG = 1768540477
  1185. elseif SONG == 1768540477 then
  1186. SONG = 1227592267
  1187. elseif SONG == 1227592267 then
  1188. SONG = 3704092097
  1189. elseif SONG == 3704092097 then
  1190. SONG = 871275016
  1191. elseif SONG == 871275016 then
  1192. SONG = 925278639
  1193. end
  1194. end
  1195.  
  1196. function TpKill()
  1197. ATTACK = true
  1198. ATTACKM = "tpkill"
  1199. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil and Mouse.Target ~= nil then
  1200. DisableFire()
  1201. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1202. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1203. if TORSO then
  1204. RootPart.CFrame = TORSO.CFrame + TORSO.CFrame.lookVector * -3
  1205. CharacterFade(Color3.fromRGB(255,85,0),60)
  1206. for i = 0,25 do
  1207. local Alpha = .1
  1208. Swait()
  1209. RootJoint.C0 = RootJoint.C0:lerp(CF(0,0,0)*ANGLES(RAD(-90),RAD(0),RAD(139.1)),Alpha)
  1210. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-0.9,0.5,0.1)*ANGLES(RAD(0),RAD(-74.6),RAD(0)),Alpha)
  1211. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.4,0.3)*ANGLES(RAD(178.9),RAD(59.9),RAD(-90)),Alpha)
  1212. Neck.C0 =Neck.C0:lerp(CF(0,1,0)*ANGLES(RAD(-90),RAD(0),RAD(-139.1)),Alpha)
  1213. LeftHip.C0 = LeftHip.C0:lerp(CF(-0.9,-1,0.2)*ANGLES(RAD(0),RAD(-64.7),RAD(0)),Alpha)
  1214. RightHip.C0 = RightHip.C0:lerp(CF(1,-1,0.1)*ANGLES(RAD(0),RAD(80.8),RAD(0)),Alpha)
  1215. end
  1216. wait(.5)
  1217. for i = 0,30 do
  1218. Swait()
  1219. local Alpha = .1
  1220. RootJoint.C0 = RootJoint.C0:lerp(CF(-0.1,0,-0.1)*ANGLES(RAD(-90),RAD(0),RAD(-162.7)),Alpha)
  1221. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-0.9,0.5,0.1)*ANGLES(RAD(0),RAD(-74.6),RAD(0)),Alpha)
  1222. RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.9,0.6,-0.1)*ANGLES(RAD(-1.1),RAD(69.7),RAD(126.7)),Alpha)
  1223. Neck.C0 =Neck.C0:lerp(CF(0.1,1,0)*ANGLES(RAD(-76.4),RAD(-4.2),RAD(163.2)),Alpha)
  1224. LeftHip.C0 = LeftHip.C0:lerp(CF(-0.9,-1,0.2)*ANGLES(RAD(0),RAD(-64.7),RAD(0)),Alpha)
  1225. RightHip.C0 = RightHip.C0:lerp(CF(1,-1,0.1)*ANGLES(RAD(0),RAD(80.8),RAD(0)),Alpha)
  1226. end
  1227. Debris:AddItem(CORE,0.02)
  1228. Debris:AddItem(GRAB,0.02)
  1229. end
  1230. end
  1231. TPKILL = false
  1232. ATTACK = false
  1233. EnableFire()
  1234. end
  1235.  
  1236.  
  1237. --//=================================\\
  1238. --|| ASSIGN THINGS TO KEYS
  1239. --\\=================================//
  1240.  
  1241. function MouseDown(Mouse)
  1242. if ATTACK == false then
  1243. end
  1244. end
  1245.  
  1246. function MouseUp(Mouse)
  1247. HOLD = false
  1248. end
  1249.  
  1250. function KeyDown(Key)
  1251. KEYHOLD = true
  1252. if Key == "t" and ATTACK == false then
  1253. laugh()
  1254. end
  1255.  
  1256. if Key == "c" and ATTACK == false then
  1257. TpKill()
  1258. end
  1259.  
  1260. if Key == "x" and ATTACK == false then
  1261. FireBarrage()
  1262. end
  1263.  
  1264. if Key == "n" then
  1265. song()
  1266. end
  1267. end
  1268.  
  1269. function KeyUp(Key)
  1270. KEYHOLD = false
  1271. end
  1272.  
  1273. Mouse.Button1Down:connect(function(NEWKEY)
  1274. MouseDown(NEWKEY)
  1275. end)
  1276. Mouse.Button1Up:connect(function(NEWKEY)
  1277. MouseUp(NEWKEY)
  1278. end)
  1279. Mouse.KeyDown:connect(function(NEWKEY)
  1280. KeyDown(NEWKEY)
  1281. end)
  1282. Mouse.KeyUp:connect(function(NEWKEY)
  1283. KeyUp(NEWKEY)
  1284. end)
  1285.  
  1286. --//=================================\\
  1287. --\\=================================//
  1288.  
  1289. function unanchor()
  1290. for _, c in pairs(Character:GetChildren()) do
  1291. if c:IsA("BasePart") and c ~= RootPart then
  1292. c.Anchored = false
  1293. end
  1294. end
  1295. if UNANCHOR == true then
  1296. RootPart.Anchored = false
  1297. else
  1298. RootPart.Anchored = true
  1299. end
  1300. end
  1301.  
  1302. --//=================================\\
  1303. --|| WRAP THE WHOLE SCRIPT UP
  1304. --\\=================================//
  1305.  
  1306. Humanoid.Changed:connect(function(Jump)
  1307. if Jump == "Jump" and (Disable_Jump == true) then
  1308. Humanoid.Jump = false
  1309. end
  1310. end)
  1311.  
  1312. while true do
  1313. Swait()
  1314. script.Parent = WEAPONGUI
  1315. ANIMATE.Parent = nil
  1316. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1317. v:Stop();
  1318. end
  1319. Humanoid.DisplayDistanceType = "None"
  1320. SINE = SINE + CHANGE*2
  1321. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1322. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1323. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4+Humanoid.HipHeight, Character)
  1324. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  1325. FlameW.C0 = FlameW.C0:lerp(CF(0,-0.3 - 0.3 * SIN(SINE/50),0) * ANGLES(RAD(0),RAD(0),RAD(0)),.1)
  1326. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1327. ANIM = "Jump"
  1328. if ATTACK == false then
  1329. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1330. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1331. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1332. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1333. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1334. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1335. end
  1336. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1337. ANIM = "Fall"
  1338. if ATTACK == false then
  1339. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1340. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1341. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1342. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1343. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1344. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1345. end
  1346. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1347. ANIM = "Idle"
  1348. if ATTACK == false then
  1349. local Alpha = .1
  1350. RootJoint.C0 = RootJoint.C0:lerp(CF(0,0 + 0.08 * COS(SINE/28),0)*ANGLES(RAD(-90 + 2 * COS(SINE/28)),RAD(0),RAD(-180)),Alpha)
  1351. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.5 + 0.08 * SIN(SINE/28),-0.1)*ANGLES(RAD(-22.8 + 4 * COS(SINE/28)),RAD(-78.1 - 8 * COS(SINE/28)),RAD(-22.3 + 3 * SIN(SINE/28))),Alpha)
  1352. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5 + 0.05 * SIN(SINE/28),-0.3)*ANGLES(RAD(-21.6 - 4 * COS(SINE/28)),RAD(76.5 + 8 * COS(SINE/28)),RAD(-175.5 - 2 * SIN(SINE/28))),Alpha)
  1353. Neck.C0 =Neck.C0:lerp(CF(0,1,0)*ANGLES(RAD(-90 + 3 * SIN(SINE/28)),RAD(0),RAD(-180)),Alpha)
  1354. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1- 0.08 * COS(SINE/28),0)*ANGLES(RAD(0- 2 * COS(SINE/28)),RAD(-75.6),RAD(0)),Alpha)
  1355. RightHip.C0 = RightHip.C0:lerp(CF(1,-1- 0.08 * COS(SINE/28),0.1)*ANGLES(RAD(0- 2 * COS(SINE/28)),RAD(75.7),RAD(0)),Alpha)
  1356. end
  1357. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1358. ANIM = "Walk"
  1359. if ATTACK == false then
  1360. local Alpha = .1
  1361. RootJoint.C0 = RootJoint.C0:lerp(CF(0,0 -0.1 * COS(SINE/WALKSPEEDVALUE),-0.3-0.15*COS(SINE/WALKSPEEDVALUE))*ANGLES(RAD(-100),RAD(0),RAD(-180 - 0.75 *COS(SINE/WALKSPEEDVALUE))+ RootPart.RotVelocity.Y / 75),Alpha)
  1362. LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.5 + 0.08 * SIN(SINE/28),-0.1)*ANGLES(RAD(-30 + 40 * COS(SINE/WALKSPEEDVALUE)),RAD(-78.1),RAD(-22.3)),Alpha)
  1363. RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,-0.3)*ANGLES(RAD(-21.6),RAD(76.5),RAD(-175.5 )),Alpha)
  1364. Neck.C0 =Neck.C0:lerp(CF(0,1,0)*ANGLES(RAD(-90),RAD(0),RAD(-180)),Alpha)
  1365. LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-0.8 - 0.25 * COS(SINE/WALKSPEEDVALUE),0.4 * SIN(SINE/WALKSPEEDVALUE))*ANGLES(RAD(-10 - 22.5*SIN(SINE/WALKSPEEDVALUE)+ RootPart.RotVelocity.Y / 75),RAD(-90 ),RAD(0)) * ANGLES(RAD(0 + 2 * COS(SINE/WALKSPEEDVALUE)),RAD(0),RAD(0)),Alpha)
  1366. RightHip.C0 = RightHip.C0:lerp(CF(1,-0.8 + 0.25 * COS(SINE/WALKSPEEDVALUE),-0.4 * SIN(SINE/WALKSPEEDVALUE))*ANGLES(RAD(-10 + 22.5*SIN(SINE/WALKSPEEDVALUE))+ RootPart.RotVelocity.Y / -75,RAD(90),RAD(0)) * ANGLES(RAD(0 - 2 * COS(SINE/WALKSPEEDVALUE)),RAD(0),RAD(0)),Alpha)
  1367. end
  1368. end
  1369.  
  1370. local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,10),6,0).p
  1371. local SPHEREFLOOR,SPHEREPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -2, 0))).lookVector, 5, Character)
  1372. if MRANDOM(1,4) == 1 then
  1373. if HITFLOOR ~= nil then
  1374. --WACKYEFFECT({Time = MRANDOM(5,15)*5, EffectType = "Sphere", Size = VT(0.7,1.3,0.7), Size2 = VT(0.7,1.3,0.7), Transparency = 0, Transparency2 = 1, CFrame = CF(SPHEREPOS+VT(0,0,0))*ANGLES(RAD(MRANDOM(0,0)),RAD(MRANDOM(-45,45)),RAD(MRANDOM(0,0))), MoveToPos = SPHEREPOS+VT(0,MRANDOM(15,25)/1.2,0), MRANDOM(-25,25)/12, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.fromRGB(255,85,0), SoundID = nil, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1375. Aura(9,MRANDOM(5,15)/35,"Add",RootPart.CFrame*CF(MRANDOM(-17,17),-5.5,MRANDOM(-17,17))*ANGLES(RAD(90 + MRANDOM(-13,13)),RAD(MRANDOM(-13,13)),RAD(MRANDOM(-13,13))),0.7,0.7,1.3,0,Color3.fromRGB(255,85,0),0, "Sphere")
  1376. end
  1377. end
  1378.  
  1379. unanchor()
  1380. Humanoid.MaxHealth = 1e4
  1381. Humanoid.Health = 1e4
  1382. if Rooted == false then
  1383. Disable_Jump = false
  1384. Humanoid.WalkSpeed = Speed
  1385. elseif Rooted == true then
  1386. Disable_Jump = true
  1387. Humanoid.WalkSpeed = 0
  1388. end
  1389. sick.SoundId = "rbxassetid://"..SONG
  1390. sick.Looped = true
  1391. sick.Pitch = 1
  1392. sick.Volume = 5
  1393. sick.Playing = true
  1394. end
  1395.  
  1396. --//=================================\\
  1397. --\\=================================//
  1398.  
  1399. --701895896
  1400.  
  1401.  
  1402.  
  1403. --//====================================================\\--
  1404. --|| END OF SCRIPT
  1405. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement