DarkScriptZEditors

False God

Dec 19th, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 80.40 KB | None | 0 0
  1. -- Synapse Decompiler
  2. -- Purchase Here: https://brack4712.xyz/synapse/purchase/
  3.  
  4. wait(0.2)if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. Player = owner
  87. PlayerGui = Player.PlayerGui
  88. Cam = workspace.CurrentCamera
  89. Backpack = Player.Backpack
  90. Character = Player.Character
  91. Humanoid = Character.Humanoid
  92. RootPart = Character.HumanoidRootPart
  93. Torso = Character.Torso
  94. Head = Character.Head
  95. RightArm = Character["Right Arm"]
  96. LeftArm = Character["Left Arm"]
  97. RightLeg = Character["Right Leg"]
  98. LeftLeg = Character["Left Leg"]
  99. RootJoint = RootPart.RootJoint
  100. Neck = Torso.Neck
  101. RightShoulder = Torso["Right Shoulder"]
  102. LeftShoulder = Torso["Left Shoulder"]
  103. RightHip = Torso["Right Hip"]
  104. LeftHip = Torso["Left Hip"]
  105. local sick = Instance.new("Sound", Torso)
  106. sick.SoundId = "rbxassetid://142306659"
  107. sick.Looped = true
  108. sick.Pitch = 1
  109. sick.Volume = 3
  110. IT = Instance.new
  111. CF = CFrame.new
  112. VT = Vector3.new
  113. RAD = math.rad
  114. C3 = Color3.new
  115. UD2 = UDim2.new
  116. BRICKC = BrickColor.new
  117. ANGLES = CFrame.Angles
  118. EULER = CFrame.fromEulerAnglesXYZ
  119. COS = math.cos
  120. ACOS = math.acos
  121. SIN = math.sin
  122. ASIN = math.asin
  123. ABS = math.abs
  124. MRANDOM = math.random
  125. FLOOR = math.floor
  126. Animation_Speed = 3
  127. Frame_Speed = 0.016666666666666666
  128. local Speed = 16
  129. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  130. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  131. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  132. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  133. local DAMAGEMULTIPLIER = 1
  134. local ANIM = "Idle"
  135. local ATTACK = false
  136. local EQUIPPED = false
  137. local HOLD = false
  138. local COMBO = 1
  139. local Rooted = false
  140. local SINE = 0
  141. local KEYHOLD = false
  142. local CHANGE = 2 / Animation_Speed
  143. local WALKINGANIM = false
  144. local VALUE1 = false
  145. local VALUE2 = false
  146. local ROBLOXIDLEANIMATION = IT("Animation")
  147. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  148. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  149. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  150. WEAPONGUI.Name = "Weapon GUI"
  151. local Weapon = IT("Model")
  152. Weapon.Name = "Adds"
  153. local Effects = IT("Folder", Weapon)
  154. Effects.Name = "Effects"
  155. local ANIMATOR = Humanoid.Animator
  156. local ANIMATE = Character.Animate
  157. local UNANCHOR = true
  158. local RWINGS = {}
  159. local LWINGS = {}
  160. local EYE, PUPIL
  161. local BLINKLOOP = 0
  162. local FINISHEDINTRO = false
  163. local INTROING = false
  164. local INSTANT = false
  165. local EYES = {}
  166. ArtificialHB = Instance.new("BindableEvent", script)
  167. ArtificialHB.Name = "ArtificialHB"
  168. script:WaitForChild("ArtificialHB")
  169. frame = Frame_Speed
  170. tf = 0
  171. allowframeloss = false
  172. tossremainder = false
  173. lastframe = tick()
  174. script.ArtificialHB:Fire()
  175. game:GetService("RunService").Heartbeat:connect(function(s, p)
  176. tf = tf + s
  177. if tf >= frame then
  178. if allowframeloss then
  179. script.ArtificialHB:Fire()
  180. lastframe = tick()
  181. else
  182. for i = 1, math.floor(tf / frame) do
  183. script.ArtificialHB:Fire()
  184. end
  185. lastframe = tick()
  186. end
  187. if tossremainder then
  188. tf = 0
  189. else
  190. tf = tf - frame * math.floor(tf / frame)
  191. end
  192. end
  193. end)
  194. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  195. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  196. end
  197. function PositiveAngle(NUMBER)
  198. if NUMBER >= 0 then
  199. NUMBER = 0
  200. end
  201. return NUMBER
  202. end
  203. function NegativeAngle(NUMBER)
  204. if NUMBER <= 0 then
  205. NUMBER = 0
  206. end
  207. return NUMBER
  208. end
  209. function Swait(NUMBER)
  210. if NUMBER == 0 or NUMBER == nil then
  211. ArtificialHB.Event:wait()
  212. else
  213. for i = 1, NUMBER do
  214. ArtificialHB.Event:wait()
  215. end
  216. end
  217. end
  218. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  219. local NEWMESH = IT(MESH)
  220. if MESH == "SpecialMesh" then
  221. NEWMESH.MeshType = MESHTYPE
  222. if MESHID ~= "nil" and MESHID ~= "" then
  223. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  224. end
  225. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  226. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  227. end
  228. end
  229. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  230. NEWMESH.Scale = SCALE
  231. NEWMESH.Parent = PARENT
  232. return NEWMESH
  233. end
  234. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  235. local NEWPART = IT("Part")
  236. NEWPART.formFactor = FORMFACTOR
  237. NEWPART.Reflectance = REFLECTANCE
  238. NEWPART.Transparency = TRANSPARENCY
  239. NEWPART.CanCollide = false
  240. NEWPART.Locked = true
  241. NEWPART.Anchored = true
  242. if ANCHOR == false then
  243. NEWPART.Anchored = false
  244. end
  245. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  246. NEWPART.Name = NAME
  247. NEWPART.Size = SIZE
  248. NEWPART.Position = Torso.Position
  249. NEWPART.Material = MATERIAL
  250. NEWPART:BreakJoints()
  251. NEWPART.Parent = PARENT
  252. return NEWPART
  253. end
  254. local weldBetween = function(a, b)
  255. local weldd = Instance.new("ManualWeld")
  256. weldd.Part0 = a
  257. weldd.Part1 = b
  258. weldd.C0 = CFrame.new()
  259. weldd.C1 = b.CFrame:inverse() * a.CFrame
  260. weldd.Parent = a
  261. return weldd
  262. end
  263. function QuaternionFromCFrame(cf)
  264. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  265. local trace = m00 + m11 + m22
  266. if trace > 0 then
  267. local s = math.sqrt(1 + trace)
  268. local recip = 0.5 / s
  269. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  270. else
  271. local i = 0
  272. if m00 < m11 then
  273. i = 1
  274. end
  275. if m22 > (i == 0 and m00 or m11) then
  276. i = 2
  277. end
  278. if i == 0 then
  279. local s = math.sqrt(m00 - m11 - m22 + 1)
  280. local recip = 0.5 / s
  281. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  282. elseif i == 1 then
  283. local s = math.sqrt(m11 - m22 - m00 + 1)
  284. local recip = 0.5 / s
  285. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  286. elseif i == 2 then
  287. local s = math.sqrt(m22 - m00 - m11 + 1)
  288. local recip = 0.5 / s
  289. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  290. end
  291. end
  292. end
  293. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  294. local xs, ys, zs = x + x, y + y, z + z
  295. local wx, wy, wz = w * xs, w * ys, w * zs
  296. local xx = x * xs
  297. local xy = x * ys
  298. local xz = x * zs
  299. local yy = y * ys
  300. local yz = y * zs
  301. local zz = z * zs
  302. 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))
  303. end
  304. function QuaternionSlerp(a, b, t)
  305. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  306. local startInterp, finishInterp
  307. if cosTheta >= 1.0E-4 then
  308. if 1 - cosTheta > 1.0E-4 then
  309. local theta = ACOS(cosTheta)
  310. local invSinTheta = 1 / SIN(theta)
  311. startInterp = SIN((1 - t) * theta) * invSinTheta
  312. finishInterp = SIN(t * theta) * invSinTheta
  313. else
  314. startInterp = 1 - t
  315. finishInterp = t
  316. end
  317. elseif 1 + cosTheta > 1.0E-4 then
  318. local theta = ACOS(-cosTheta)
  319. local invSinTheta = 1 / SIN(theta)
  320. startInterp = SIN((t - 1) * theta) * invSinTheta
  321. finishInterp = SIN(t * theta) * invSinTheta
  322. else
  323. startInterp = t - 1
  324. finishInterp = t
  325. end
  326. 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
  327. end
  328. function Clerp(a, b, t)
  329. local qa = {
  330. QuaternionFromCFrame(a)
  331. }
  332. local qb = {
  333. QuaternionFromCFrame(b)
  334. }
  335. local ax, ay, az = a.x, a.y, a.z
  336. local bx, by, bz = b.x, b.y, b.z
  337. local _t = 1 - t
  338. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  339. end
  340. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  341. local frame = IT("Frame")
  342. frame.BackgroundTransparency = TRANSPARENCY
  343. frame.BorderSizePixel = BORDERSIZEPIXEL
  344. frame.Position = POSITION
  345. frame.Size = SIZE
  346. frame.BackgroundColor3 = COLOR
  347. frame.BorderColor3 = BORDERCOLOR
  348. frame.Name = NAME
  349. frame.Parent = PARENT
  350. return frame
  351. end
  352. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  353. local label = IT("TextLabel")
  354. label.BackgroundTransparency = 1
  355. label.Size = UD2(1, 0, 1, 0)
  356. label.Position = UD2(0, 0, 0, 0)
  357. label.TextColor3 = TEXTCOLOR
  358. label.TextStrokeTransparency = STROKETRANSPARENCY
  359. label.TextTransparency = TRANSPARENCY
  360. label.FontSize = TEXTFONTSIZE
  361. label.Font = TEXTFONT
  362. label.BorderSizePixel = BORDERSIZEPIXEL
  363. label.TextScaled = false
  364. label.Text = TEXT
  365. label.Name = NAME
  366. label.Parent = PARENT
  367. return label
  368. end
  369. function NoOutlines(PART)
  370. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  371. end
  372. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  373. local NEWWELD = IT(TYPE)
  374. NEWWELD.Part0 = PART0
  375. NEWWELD.Part1 = PART1
  376. NEWWELD.C0 = C0
  377. NEWWELD.C1 = C1
  378. NEWWELD.Parent = PARENT
  379. return NEWWELD
  380. end
  381. local S = IT("Sound")
  382. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  383. local NEWSOUND
  384. coroutine.resume(coroutine.create(function()
  385. NEWSOUND = S:Clone()
  386. NEWSOUND.Parent = PARENT
  387. NEWSOUND.Volume = VOLUME
  388. NEWSOUND.Pitch = PITCH
  389. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  390. NEWSOUND:play()
  391. if DOESLOOP == true then
  392. NEWSOUND.Looped = true
  393. else
  394. repeat
  395. Swait()
  396. until NEWSOUND.Playing == false
  397. NEWSOUND:remove()
  398. end
  399. end))
  400. return NEWSOUND
  401. end
  402. function CFrameFromTopBack(at, top, back)
  403. local right = top:Cross(back)
  404. 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)
  405. end
  406. function WACKYEFFECT(Table)
  407. local TYPE = Table.EffectType or "Sphere"
  408. local SIZE = Table.Size or VT(1, 1, 1)
  409. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  410. local TRANSPARENCY = Table.Transparency or 0
  411. local ENDTRANSPARENCY = Table.Transparency2 or 1
  412. local CFRAME = Table.CFrame or Torso.CFrame
  413. local MOVEDIRECTION = Table.MoveToPos or nil
  414. local ROTATION1 = Table.RotationX or 0
  415. local ROTATION2 = Table.RotationY or 0
  416. local ROTATION3 = Table.RotationZ or 0
  417. local MATERIAL = Table.Material or "Neon"
  418. local COLOR = Table.Color or C3(1, 1, 1)
  419. local TIME = Table.Time or 45
  420. local SOUNDID = Table.SoundID or nil
  421. local SOUNDPITCH = Table.SoundPitch or nil
  422. local SOUNDVOLUME = Table.SoundVolume or nil
  423. coroutine.resume(coroutine.create(function()
  424. local PLAYSSOUND = false
  425. local SOUND
  426. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  427. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  428. PLAYSSOUND = true
  429. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  430. end
  431. EFFECT.Color = COLOR
  432. local MSH
  433. if TYPE == "Sphere" then
  434. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  435. elseif TYPE == "Block" then
  436. MSH = IT("BlockMesh", EFFECT)
  437. MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X)
  438. elseif TYPE == "Wave" then
  439. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  440. elseif TYPE == "Ring" then
  441. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  442. elseif TYPE == "Slash" then
  443. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  444. elseif TYPE == "Round Slash" then
  445. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  446. elseif TYPE == "Swirl" then
  447. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
  448. elseif TYPE == "Skull" then
  449. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  450. elseif TYPE == "Crystal" then
  451. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
  452. end
  453. if MSH ~= nil then
  454. local MOVESPEED
  455. if MOVEDIRECTION ~= nil then
  456. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME
  457. end
  458. local GROWTH = SIZE - ENDSIZE
  459. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  460. if TYPE == "Block" then
  461. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  462. else
  463. EFFECT.CFrame = CFRAME
  464. end
  465. for LOOP = 1, TIME do
  466. Swait()
  467. MSH.Scale = MSH.Scale - GROWTH / TIME
  468. if TYPE == "Wave" then
  469. MSH.Offset = VT(0, 0, -MSH.Scale.X / 8)
  470. end
  471. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  472. if TYPE == "Block" then
  473. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  474. else
  475. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  476. end
  477. if MOVEDIRECTION ~= nil then
  478. local ORI = EFFECT.Orientation
  479. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED)
  480. EFFECT.Orientation = ORI
  481. end
  482. end
  483. if PLAYSSOUND == false then
  484. EFFECT:remove()
  485. else
  486. repeat
  487. Swait()
  488. until SOUND.Playing == false
  489. EFFECT:remove()
  490. end
  491. elseif PLAYSSOUND == false then
  492. EFFECT:remove()
  493. else
  494. repeat
  495. Swait()
  496. until SOUND.Playing == false
  497. EFFECT:remove()
  498. end
  499. end))
  500. end
  501. function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT)
  502. if FLOOR ~= nil then
  503. coroutine.resume(coroutine.create(function()
  504. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0))
  505. PART.CFrame = CF(POSITION)
  506. for i = 1, 45 do
  507. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  508. RingPiece.Material = FLOOR.Material
  509. RingPiece.Color = FLOOR.Color
  510. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  511. Debris:AddItem(RingPiece, SWAIT)
  512. end
  513. PART:remove()
  514. end))
  515. end
  516. end
  517. function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH)
  518. if FLOOR ~= nil then
  519. for i = 1, AMOUNT do
  520. do
  521. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, 0, "Peal", "Debree", BLOCKSIZE, false)
  522. DEBREE.Material = FLOOR.Material
  523. DEBREE.Color = FLOOR.Color
  524. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  525. DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), STRENGTH, MRANDOM(-STRENGTH, STRENGTH))
  526. coroutine.resume(coroutine.create(function()
  527. Swait(15)
  528. DEBREE.Parent = workspace
  529. DEBREE.CanCollide = true
  530. Debris:AddItem(DEBREE, SWAIT)
  531. end))
  532. end
  533. end
  534. end
  535. end
  536. function MakeForm(PART, TYPE)
  537. if TYPE == "Cyl" then
  538. local MSH = IT("CylinderMesh", PART)
  539. elseif TYPE == "Ball" then
  540. local MSH = IT("SpecialMesh", PART)
  541. MSH.MeshType = "Sphere"
  542. elseif TYPE == "Wedge" then
  543. local MSH = IT("SpecialMesh", PART)
  544. MSH.MeshType = "Wedge"
  545. end
  546. end
  547. function CheckTableForString(Table, String)
  548. for i, v in pairs(Table) do
  549. if string.find(string.lower(String), string.lower(v)) then
  550. return true
  551. end
  552. end
  553. return false
  554. end
  555. function CheckIntangible(Hit)
  556. local ProjectileNames = {
  557. "Water",
  558. "Arrow",
  559. "Projectile",
  560. "Effect",
  561. "Rail",
  562. "Lightning",
  563. "Bullet"
  564. }
  565. if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  566. return true
  567. end
  568. return false
  569. end
  570. Debris = game:GetService("Debris")
  571. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  572. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  573. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
  574. if RayHit and CheckIntangible(RayHit) then
  575. if DelayIfHit then
  576. wait()
  577. end
  578. RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
  579. end
  580. return RayHit, RayPos, RayNormal
  581. end
  582. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  583. local DIRECTION = CF(StartPos, EndPos).lookVector
  584. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  585. end
  586. function turnto(position)
  587. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  588. end
  589. BaseLightning = IT("Part")
  590. BaseLightning.Anchored = true
  591. BaseLightning.CanCollide = false
  592. BaseLightning.Material = "Neon"
  593. local LightningBolts = {}
  594. function Zap(Table)
  595. local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color
  596. local Duration = Table.Duration or 2
  597. local Offset = Table.Offset or 2
  598. local Individualize = Table.Individualize or false
  599. local MaxRange = Table.MaxRange or 200
  600. local SegmentLength = Table.SegmentLength or 5
  601. local Transparency = Table.Transparency or 0
  602. local Ignore = Table.Ignore or {}
  603. local SIZE = Table.SIZE or 0.3
  604. if not (StartPos and TargetPos) or not Character then
  605. return
  606. end
  607. local LightningModel = IT("Folder", Effects)
  608. LightningModel.Name = "ZAPP"
  609. for i, v in pairs({Character, LightningModel}) do
  610. table.insert(Ignore, v)
  611. end
  612. local LastPos = StartPos
  613. local Direction = CFrame.new(StartPos, TargetPos).lookVector
  614. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false)
  615. local RayLength = (StartPos - RayPos).Magnitude
  616. local Struck = false
  617. local TotalSegments = math.ceil(RayLength / SegmentLength)
  618. Direction = CFrame.new(StartPos, RayPos).lookVector
  619. local LightningBolt = IT("Model", Effects)
  620. LightningBolt.Name = "Lightning"
  621. LastBolt = LightningBolt
  622. Debris:AddItem(LightningBolt, Duration)
  623. LightningBolt.Parent = LightningModel
  624. for i = 1, TotalSegments do
  625. if not Struck then
  626. local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset)
  627. local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy
  628. local SegmentVec = NewPos - LastPos
  629. local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false)
  630. local RayVec = LastPos - RayPos
  631. local LightningPart = BaseLightning:Clone()
  632. LightningPart.BrickColor = BrickColor.new(Color)
  633. LightningPart.Transparency = Transparency
  634. LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude)
  635. LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2))
  636. local CylinderMesh = IT("CylinderMesh", LightningPart)
  637. local OrigCF = LightningPart.CFrame
  638. LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y)
  639. LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0)
  640. LightningPart.Parent = LightningBolt
  641. LastPos = NewPos
  642. end
  643. end
  644. return {
  645. RayHit = RayHit,
  646. RayPos = RayPos,
  647. RayNormal = RayNormal,
  648. LightningModel = LightningModel
  649. }
  650. end
  651. function Blink()
  652. coroutine.resume(coroutine.create(function()
  653. if EYE ~= nil and PUPIL ~= nil then
  654. for i = 1, 5 do
  655. Swait()
  656. EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0, 0.2, 0)
  657. PUPIL.Mesh.Scale = PUPIL.Mesh.Scale - VT(0, 0.2, 0)
  658. end
  659. for i = 1, 7 do
  660. Swait()
  661. EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0, 0.2, 0)
  662. PUPIL.Mesh.Scale = PUPIL.Mesh.Scale + VT(0, 0.2, 0)
  663. end
  664. EYE.Mesh.Scale = VT(1, 1, 1)
  665. PUPIL.Mesh.Scale = VT(1, 1, 1)
  666. end
  667. end))
  668. end
  669. local BODY = {}
  670. function Face()
  671. local FACE = CreatePart(3, Weapon, "Fabric", 0, 0, "Dark stone grey", "Face", VT(1.01, 0.725, 1.01), false)
  672. FACE.Color = C3(0, 0, 0)
  673. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  674. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0, 0.225, 0), CF(0, 0, 0))
  675. EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15, 0.3, 0.15), false)
  676. MakeForm(EYE, "Ball")
  677. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15, 0.26, -0.55), CF(0, 0, 0))
  678. PUPIL = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eyeball", VT(0.05, 0.2, 0.05), false)
  679. PUPIL.Color = C3(0, 0, 0)
  680. MakeForm(PUPIL, "Ball")
  681. CreateWeldOrSnapOrMotor("Weld", Head, Head, PUPIL, CF(0.15, 0.26, -0.6), CF(0, 0, 0))
  682. local LASTPART = Head
  683. for i = 1, 30 do
  684. local MATH = 1 - i / 40
  685. if LASTPART == Head then
  686. local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false)
  687. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.5, 0.35, -0.15) * ANGLES(RAD(-15), RAD(15), RAD(-15)), CF(0, 0, 0))
  688. LASTPART = Horn
  689. Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255)
  690. else
  691. local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false)
  692. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y / 1.8, 0) * ANGLES(RAD(17), RAD(3), RAD(0)), CF(0, 0, 0))
  693. LASTPART = Horn
  694. Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255)
  695. end
  696. end
  697. local LASTPART = Head
  698. for i = 1, 30 do
  699. local MATH = 1 - i / 40
  700. if LASTPART == Head then
  701. local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false)
  702. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.5, 0.35, -0.15) * ANGLES(RAD(-15), RAD(-15), RAD(15)), CF(0, 0, 0))
  703. LASTPART = Horn
  704. Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255)
  705. else
  706. local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false)
  707. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y / 1.8, 0) * ANGLES(RAD(17), RAD(-3), RAD(0)), CF(0, 0, 0))
  708. LASTPART = Horn
  709. Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255)
  710. end
  711. end
  712. BODY = {}
  713. for _, c in pairs(Character:GetDescendants()) do
  714. if c:IsA("BasePart") then
  715. table.insert(BODY, {
  716. c,
  717. c.Parent,
  718. c.Material,
  719. c.Color
  720. })
  721. elseif c:IsA("JointInstance") then
  722. table.insert(BODY, {
  723. c,
  724. c.Parent,
  725. nil,
  726. nil
  727. })
  728. end
  729. end
  730. end
  731. local SKILLTEXTCOLOR = C3(0, 0, 0)
  732. local SKILLFONT = "SciFi"
  733. local SKILLTEXTSIZE = 7
  734. Weapon.Parent = Character
  735. Humanoid.Died:connect(function()
  736. ATTACK = true
  737. end)
  738. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame")
  739. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame")
  740. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame")
  741. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Neck Snap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  742. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Imperfect Command", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  743. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Fire At Will", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  744. function StatLabel(CFRAME, TEXT, COLOR)
  745. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  746. STATPART.CFrame = CF(CFRAME.p, CFRAME.p + VT(MRANDOM(-5, 5), MRANDOM(0, 5), MRANDOM(-5, 5)))
  747. local BODYGYRO = IT("BodyGyro", STATPART)
  748. game:GetService("Debris"):AddItem(STATPART, 5)
  749. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  750. BILLBOARDGUI.Adornee = STATPART
  751. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5, 0)
  752. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  753. BILLBOARDGUI.AlwaysOnTop = false
  754. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  755. TEXTLABEL.BackgroundTransparency = 1
  756. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  757. TEXTLABEL.Text = TEXT
  758. TEXTLABEL.Font = SKILLFONT
  759. TEXTLABEL.FontSize = "Size42"
  760. TEXTLABEL.TextColor3 = COLOR
  761. TEXTLABEL.TextStrokeTransparency = 0
  762. TEXTLABEL.TextScaled = true
  763. TEXTLABEL.TextWrapped = true
  764. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  765. for i = 1, 50 do
  766. Swait()
  767. STATPART.CFrame = STATPART.CFrame * CF(0, 0, -0.2)
  768. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + 0.02
  769. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  770. end
  771. THEPART.Parent = nil
  772. end), STATPART, TEXTLABEL)
  773. end
  774. function Ragdoll(Character2, CharTorso, Headless, Velocity)
  775. local svch = Character2
  776. Character2:BreakJoints()
  777. local hum = Character2:findFirstChild("Humanoid")
  778. local q = Character2:GetChildren()
  779. local CLONE = IT("Model", Effects)
  780. for i = 1, #q do
  781. if q[i].ClassName == "Accessory" and Headless == true then
  782. q[i]:remove()
  783. elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then
  784. q[i].Parent = CLONE
  785. elseif q[i].ClassName ~= "Humanoid" then
  786. q[i]:remove()
  787. end
  788. end
  789. local chrclone = CLONE
  790. local ch = chrclone:GetChildren()
  791. local i
  792. for i = 1, #ch do
  793. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  794. ch[i]:remove()
  795. end
  796. end
  797. local function Scan(ch)
  798. local e
  799. for e = 1, #ch do
  800. Scan(ch[e]:GetChildren())
  801. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  802. ch[e]:remove()
  803. end
  804. end
  805. end
  806. Character2:remove()
  807. local NEWHUM = IT("Humanoid")
  808. NEWHUM.Name = "Corpse"
  809. NEWHUM.Health = 0
  810. NEWHUM.MaxHealth = 0
  811. NEWHUM.PlatformStand = true
  812. NEWHUM.Parent = CLONE
  813. NEWHUM.DisplayDistanceType = "None"
  814. Scan(chrclone:GetChildren())
  815. local ch = Character2:GetChildren()
  816. local i
  817. for i = 1, #ch do
  818. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  819. ch[i]:remove()
  820. end
  821. end
  822. local ch = Character2:GetChildren()
  823. local i
  824. for i = 1, #ch do
  825. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  826. ch[i]:remove()
  827. end
  828. end
  829. Character2 = chrclone
  830. local Torso2 = Character2.Torso
  831. local movevector = Vector3.new()
  832. if Torso2 then
  833. movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector
  834. local Head = Character2:FindFirstChild("Head")
  835. if Head then
  836. local Neck = Instance.new("Weld")
  837. Neck.Name = "Neck"
  838. Neck.Part0 = Torso2
  839. Neck.Part1 = Head
  840. Neck.C0 = CFrame.new(0, 1.5, 0)
  841. Neck.C1 = CFrame.new()
  842. Neck.Parent = Torso2
  843. if Headless == true then
  844. Head.Transparency = 1
  845. Head:ClearAllChildren()
  846. end
  847. end
  848. local Limb = Character2:FindFirstChild("Right Arm")
  849. if Limb then
  850. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  851. local Joint = Instance.new("Glue")
  852. Joint.Name = "RightShoulder"
  853. Joint.Part0 = Torso2
  854. Joint.Part1 = Limb
  855. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  856. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  857. Joint.Parent = Torso2
  858. local B = Instance.new("Part")
  859. B.TopSurface = 0
  860. B.BottomSurface = 0
  861. B.formFactor = "Symmetric"
  862. B.Size = Vector3.new(1, 1, 1)
  863. B.Transparency = 1
  864. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  865. B.Parent = Character2
  866. local W = Instance.new("Weld")
  867. W.Part0 = Limb
  868. W.Part1 = B
  869. W.C0 = CFrame.new(0, -0.5, 0)
  870. W.Parent = Limb
  871. end
  872. local Limb = Character2:FindFirstChild("Left Arm")
  873. if Limb then
  874. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  875. local Joint = Instance.new("Glue")
  876. Joint.Name = "LeftShoulder"
  877. Joint.Part0 = Torso2
  878. Joint.Part1 = Limb
  879. Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  880. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  881. Joint.Parent = Torso2
  882. local B = Instance.new("Part")
  883. B.TopSurface = 0
  884. B.BottomSurface = 0
  885. B.formFactor = "Symmetric"
  886. B.Size = Vector3.new(1, 1, 1)
  887. B.Transparency = 1
  888. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  889. B.Parent = Character2
  890. local W = Instance.new("Weld")
  891. W.Part0 = Limb
  892. W.Part1 = B
  893. W.C0 = CFrame.new(0, -0.5, 0)
  894. W.Parent = Limb
  895. end
  896. local Limb = Character2:FindFirstChild("Right Leg")
  897. if Limb then
  898. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  899. local Joint = Instance.new("Glue")
  900. Joint.Name = "RightHip"
  901. Joint.Part0 = Torso2
  902. Joint.Part1 = Limb
  903. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  904. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  905. Joint.Parent = Torso2
  906. local B = Instance.new("Part")
  907. B.TopSurface = 0
  908. B.BottomSurface = 0
  909. B.formFactor = "Symmetric"
  910. B.Size = Vector3.new(1, 1, 1)
  911. B.Transparency = 1
  912. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  913. B.Parent = Character2
  914. local W = Instance.new("Weld")
  915. W.Part0 = Limb
  916. W.Part1 = B
  917. W.C0 = CFrame.new(0, -0.5, 0)
  918. W.Parent = Limb
  919. end
  920. local Limb = Character2:FindFirstChild("Left Leg")
  921. if Limb then
  922. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  923. local Joint = Instance.new("Glue")
  924. Joint.Name = "LeftHip"
  925. Joint.Part0 = Torso2
  926. Joint.Part1 = Limb
  927. Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  928. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  929. Joint.Parent = Torso2
  930. local B = Instance.new("Part")
  931. B.TopSurface = 0
  932. B.BottomSurface = 0
  933. B.formFactor = "Symmetric"
  934. B.Size = Vector3.new(1, 1, 1)
  935. B.Transparency = 1
  936. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  937. B.Parent = Character2
  938. local W = Instance.new("Weld")
  939. W.Part0 = Limb
  940. W.Part1 = B
  941. W.C0 = CFrame.new(0, -0.5, 0)
  942. W.Parent = Limb
  943. end
  944. local Bar = Instance.new("Part")
  945. Bar.TopSurface = 0
  946. Bar.BottomSurface = 0
  947. Bar.formFactor = "Symmetric"
  948. Bar.Size = Vector3.new(1, 1, 1)
  949. Bar.Transparency = 1
  950. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  951. Bar.Parent = Character2
  952. local Weld = Instance.new("Weld")
  953. Weld.Part0 = Torso2
  954. Weld.Part1 = Bar
  955. Weld.C0 = CFrame.new(0, 0.5, 0)
  956. Weld.Parent = Torso2
  957. end
  958. Character2.Parent = Weapon
  959. if movevector ~= Vector3.new() then
  960. for i = 1, 10 do
  961. Torso2.Velocity = movevector * Velocity
  962. end
  963. end
  964. Character2.Name = "Corpse"
  965. return Character2, Torso2
  966. end
  967. function PuddleOfBlood(Position, MaxDrop, Model, MaxSize)
  968. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model)
  969. if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
  970. if HITFLOOR.Name == "BloodPuddle" then
  971. local DIST = (Position - HITFLOOR.Position).Magnitude
  972. if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then
  973. HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1)
  974. end
  975. elseif HITFLOOR.Anchored == true then
  976. do
  977. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2, 0, 2))
  978. BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
  979. MakeForm(BLOOD, "Cyl")
  980. coroutine.resume(coroutine.create(function()
  981. Swait(75)
  982. while true do
  983. Swait()
  984. BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02)
  985. if BLOOD.Size.Z < 0.051 then
  986. BLOOD:remove()
  987. break
  988. end
  989. end
  990. end))
  991. end
  992. end
  993. end
  994. end
  995. function SprayBlood(POSITION, DIRECTION, BloodSize)
  996. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1, 1, 1), false)
  997. BLOOD.CFrame = CF(POSITION)
  998. MakeForm(BLOOD, "Ball")
  999. local bv = Instance.new("BodyVelocity", BLOOD)
  1000. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1001. bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25
  1002. bv.Name = "MOVE"
  1003. Debris:AddItem(bv, 0.05)
  1004. coroutine.resume(coroutine.create(function()
  1005. local HASTOUCHEDGROUND = false
  1006. local HIT = BLOOD.Touched:Connect(function(hit)
  1007. if hit.Anchored == true then
  1008. HASTOUCHEDGROUND = true
  1009. PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize)
  1010. end
  1011. end)
  1012. wait(5)
  1013. if HASTOUCHEDGROUND == false then
  1014. BLOOD:remove()
  1015. end
  1016. end))
  1017. end
  1018. function ApplyDamage(Humanoid, Damage, TorsoPart)
  1019. local defence = Instance.new("BoolValue", Humanoid.Parent)
  1020. defence.Name = "HitBy" .. Player.Name
  1021. game:GetService("Debris"):AddItem(defence, 0.001)
  1022. Damage = Damage * DAMAGEMULTIPLIER
  1023. if Humanoid.Health ~= 0 then
  1024. local CritChance = MRANDOM(1, 100)
  1025. if Damage > Humanoid.Health then
  1026. Damage = math.ceil(Humanoid.Health)
  1027. if Damage == 0 then
  1028. Damage = 0.1
  1029. end
  1030. end
  1031. Humanoid.Health = Humanoid.Health - Damage
  1032. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  1033. end
  1034. end
  1035. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
  1036. local CHILDREN = workspace:GetDescendants()
  1037. for index, CHILD in pairs(CHILDREN) do
  1038. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1039. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1040. if HUM then
  1041. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1042. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  1043. if INSTAKILL == true then
  1044. Petrify(CHILD)
  1045. else
  1046. local DMG = MRANDOM(MINDMG, MAXDMG)
  1047. ApplyDamage(HUM, DMG, TORSO)
  1048. end
  1049. if FLING > 0 then
  1050. for _, c in pairs(CHILD:GetChildren()) do
  1051. if c:IsA("BasePart") then
  1052. local bv = Instance.new("BodyVelocity")
  1053. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1054. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  1055. bv.Parent = c
  1056. Debris:AddItem(bv, 0.05)
  1057. end
  1058. end
  1059. end
  1060. end
  1061. end
  1062. end
  1063. end
  1064. end
  1065. function Petrify(Foe)
  1066. local STONEMODEL = IT("Model", Effects)
  1067. local CHILDREN = Foe:GetDescendants()
  1068. for index, CHILD in pairs(CHILDREN) do
  1069. if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then
  1070. CHILD.Parent = STONEMODEL
  1071. CHILD.Material = "Slate"
  1072. CHILD.Color = C3(0.5, 0.5, 0.5)
  1073. if CHILD:FindFirstChildOfClass("SpecialMesh") then
  1074. local mesh = CHILD:FindFirstChildOfClass("SpecialMesh")
  1075. mesh.TextureId = ""
  1076. end
  1077. if CHILD:FindFirstChildOfClass("Decal") then
  1078. local mesh = CHILD:FindFirstChildOfClass("Decal")
  1079. mesh:remove()
  1080. end
  1081. if CHILD.ClassName == "MeshPart" then
  1082. CHILD.TextureID = ""
  1083. end
  1084. if CHILD.ClassName == "UnionOperation" then
  1085. CHILD.UsePartColor = true
  1086. end
  1087. CHILD.CanCollide = true
  1088. end
  1089. end
  1090. Debris:AddItem(STONEMODEL, 5)
  1091. end
  1092. function Intro()
  1093. coroutine.resume(coroutine.create(function()
  1094. INTROING = true
  1095. Rooted = true
  1096. sick:Play()
  1097. FINISHEDINTRO = true
  1098. Head.Transparency = 1
  1099. Torso.Transparency = 1
  1100. LeftArm.Transparency = 1
  1101. RightArm.Transparency = 1
  1102. LeftLeg.Transparency = 1
  1103. RightLeg.Transparency = 1
  1104. repeat
  1105. Swait()
  1106. until sick.TimePosition > 3.2
  1107. for i = 1, 5 do
  1108. WACKYEFFECT({
  1109. EffectType = "Sphere",
  1110. Size = VT(3, 3, 3),
  1111. Size2 = VT(0, 5, 0),
  1112. Transparency = 0.5,
  1113. Transparency2 = 1,
  1114. CFrame = Torso.CFrame,
  1115. MoveToPos = Torso.CFrame * CF(15, -5 + i * 3, 1).p,
  1116. RotationX = MRANDOM(-5, 5),
  1117. RotationY = MRANDOM(-5, 5),
  1118. RotationZ = MRANDOM(-5, 5),
  1119. Material = "Neon",
  1120. Color = C3(1, 0, 0),
  1121. SoundID = nil,
  1122. SoundPitch = nil,
  1123. SoundVolume = nil
  1124. })
  1125. end
  1126. repeat
  1127. Swait()
  1128. until sick.TimePosition > 6.2
  1129. for i = 1, 5 do
  1130. WACKYEFFECT({
  1131. EffectType = "Sphere",
  1132. Size = VT(3, 3, 3),
  1133. Size2 = VT(0, 5, 0),
  1134. Transparency = 0.5,
  1135. Transparency2 = 1,
  1136. CFrame = Torso.CFrame,
  1137. MoveToPos = Torso.CFrame * CF(-15, -5 + i * 3, 1).p,
  1138. RotationX = MRANDOM(-5, 5),
  1139. RotationY = MRANDOM(-5, 5),
  1140. RotationZ = MRANDOM(-5, 5),
  1141. Material = "Neon",
  1142. Color = C3(1, 0, 0),
  1143. SoundID = nil,
  1144. SoundPitch = nil,
  1145. SoundVolume = nil
  1146. })
  1147. end
  1148. repeat
  1149. Swait()
  1150. until sick.TimePosition > 16
  1151. for i = 1, 6 do
  1152. WACKYEFFECT({
  1153. EffectType = "Sphere",
  1154. Size = VT(1.5, 1.5, 1.5),
  1155. Size2 = VT(4, 4, 4) * i,
  1156. Transparency = 0,
  1157. Transparency2 = 1,
  1158. CFrame = Head.CFrame,
  1159. MoveToPos = nil,
  1160. RotationX = 0,
  1161. RotationY = 0,
  1162. RotationZ = 0,
  1163. Material = "Neon",
  1164. Color = C3(1, 0, 0),
  1165. SoundID = nil,
  1166. SoundPitch = nil,
  1167. SoundVolume = nil
  1168. })
  1169. end
  1170. Head.Transparency = 0
  1171. Face()
  1172. wait(1)
  1173. for i = 1, 100 do
  1174. Swait()
  1175. Torso.Transparency = 1 - i / 100
  1176. LeftArm.Transparency = 1 - i / 100
  1177. RightArm.Transparency = 1 - i / 100
  1178. LeftLeg.Transparency = 1 - i / 100
  1179. RightLeg.Transparency = 1 - i / 100
  1180. end
  1181. FINISHEDINTRO = true
  1182. Rooted = false
  1183. end))
  1184. end
  1185. function Neck_Snap()
  1186. ATTACK = true
  1187. Rooted = false
  1188. local TARGET, HUM, WLD
  1189. local HIT = RightArm.Touched:Connect(function(hit)
  1190. if hit.Parent ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") then
  1191. local H = hit.Parent:FindFirstChildOfClass("Humanoid")
  1192. if H.Health > 0 then
  1193. local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1194. if TORSO then
  1195. HUM = H
  1196. TARGET = TORSO
  1197. H.PlatformStand = true
  1198. CreateSound("260411131", TORSO, 10, 1)
  1199. WLD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, TORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1200. end
  1201. end
  1202. end
  1203. end)
  1204. for i = 0, 1, 0.1 / Animation_Speed do
  1205. Swait()
  1206. if TARGET ~= nil then
  1207. break
  1208. end
  1209. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1210. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1211. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.45, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1212. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1213. if ANIM == "Idle" then
  1214. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1215. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1216. elseif ANIM == "Walk" then
  1217. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1218. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1219. elseif ANIM == "Jump" or ANIM == "Fall" then
  1220. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1221. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1222. end
  1223. end
  1224. HIT:disconnect()
  1225. if TARGET ~= nil then
  1226. if TARGET.Name == "Torso" then
  1227. for i = 0, 2, 0.1 / Animation_Speed do
  1228. Swait()
  1229. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1230. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1231. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(65), RAD(25), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1232. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1233. if ANIM == "Idle" then
  1234. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1235. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1236. elseif ANIM == "Walk" then
  1237. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1238. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1239. elseif ANIM == "Jump" or ANIM == "Fall" then
  1240. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1241. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1242. end
  1243. end
  1244. WLD:remove()
  1245. local HEAD = TARGET.Parent:FindFirstChild("Head")
  1246. if HEAD then
  1247. UNANCHOR = false
  1248. RootPart.Anchored = true
  1249. local HD = HEAD:Clone()
  1250. HD.Name = "FakeHead"
  1251. for i = 1, 7 do
  1252. SprayBlood(TARGET.CFrame * CF(0, TARGET.Size.Y / 2, 0).p, TARGET.CFrame * CF(MRANDOM(25, 55), MRANDOM(-25, 25), MRANDOM(25, 55)).p, 15)
  1253. end
  1254. local RAGDOLL, RAGTORSO = Ragdoll(TARGET.Parent, Torso, true, 0)
  1255. local RAGWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RAGTORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1256. HD.Parent = RAGDOLL
  1257. CreateSound("264486467", RAGTORSO, 10, 1)
  1258. local HEADWELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HD, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  1259. for i = 0, 2, 0.1 / Animation_Speed do
  1260. Swait()
  1261. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1262. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1263. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1264. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1265. if ANIM == "Idle" then
  1266. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1267. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1268. elseif ANIM == "Walk" then
  1269. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1270. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1271. elseif ANIM == "Jump" or ANIM == "Fall" then
  1272. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1273. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1274. end
  1275. end
  1276. HEADWELD:remove()
  1277. for i = 0, 0.5, 0.1 / Animation_Speed do
  1278. Swait()
  1279. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1280. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1281. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1282. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1283. if ANIM == "Idle" then
  1284. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1285. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1286. elseif ANIM == "Walk" then
  1287. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1288. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1289. elseif ANIM == "Jump" or ANIM == "Fall" then
  1290. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1291. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1292. end
  1293. end
  1294. CreateSound("907333406", Torso, 10, 1)
  1295. for i = 0, 0.25, 0.1 / Animation_Speed do
  1296. Swait()
  1297. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1298. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1299. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1300. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1301. if ANIM == "Idle" then
  1302. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1303. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1304. elseif ANIM == "Walk" then
  1305. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1306. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1307. elseif ANIM == "Jump" or ANIM == "Fall" then
  1308. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1309. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1310. end
  1311. end
  1312. RAGWELD:remove()
  1313. local bv = Instance.new("BodyVelocity")
  1314. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1315. bv.velocity = CF(Torso.Position, RAGTORSO.Position).lookVector * 75
  1316. bv.Parent = RAGTORSO
  1317. Debris:AddItem(bv, 0.05)
  1318. Debris:AddItem(RAGDOLL, 5)
  1319. for i = 0, 0.15, 0.1 / Animation_Speed do
  1320. Swait()
  1321. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1322. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1323. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1324. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1325. if ANIM == "Idle" then
  1326. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1327. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1328. elseif ANIM == "Walk" then
  1329. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1330. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1331. elseif ANIM == "Jump" or ANIM == "Fall" then
  1332. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1333. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1334. end
  1335. end
  1336. UNANCHOR = true
  1337. RootPart.Anchored = false
  1338. end
  1339. else
  1340. UNANCHOR = false
  1341. RootPart.Anchored = true
  1342. for i = 0, 0.5, 0.1 / Animation_Speed do
  1343. Swait()
  1344. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1345. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1346. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1347. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1348. if ANIM == "Idle" then
  1349. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1350. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1351. elseif ANIM == "Walk" then
  1352. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1353. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1354. elseif ANIM == "Jump" or ANIM == "Fall" then
  1355. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1356. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1357. end
  1358. end
  1359. for i = 0, 0.25, 0.1 / Animation_Speed do
  1360. Swait()
  1361. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1362. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1363. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1364. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1365. if ANIM == "Idle" then
  1366. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1367. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1368. elseif ANIM == "Walk" then
  1369. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1370. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1371. elseif ANIM == "Jump" or ANIM == "Fall" then
  1372. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1373. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1374. end
  1375. end
  1376. WLD:remove()
  1377. TARGET.Parent:BreakJoints()
  1378. for _, c in pairs(TARGET.Parent:GetChildren()) do
  1379. if c:IsA("BasePart") then
  1380. local bv = Instance.new("BodyVelocity")
  1381. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1382. bv.velocity = CF(Torso.Position, c.Position).lookVector * 75
  1383. bv.Parent = c
  1384. Debris:AddItem(bv, 0.05)
  1385. end
  1386. end
  1387. for i = 0, 0.15, 0.1 / Animation_Speed do
  1388. Swait()
  1389. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1390. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1391. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1392. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1393. if ANIM == "Idle" then
  1394. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1395. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1396. elseif ANIM == "Walk" then
  1397. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1398. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1399. elseif ANIM == "Jump" or ANIM == "Fall" then
  1400. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1401. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1402. end
  1403. end
  1404. UNANCHOR = true
  1405. RootPart.Anchored = false
  1406. end
  1407. end
  1408. ATTACK = false
  1409. Rooted = false
  1410. end
  1411. function Imperfect_Command()
  1412. ATTACK = true
  1413. Rooted = true
  1414. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1415. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1416. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1417. if TORSO then
  1418. local GYRO = IT("BodyGyro", RootPart)
  1419. GYRO.D = 750
  1420. GYRO.P = 2000
  1421. GYRO.MaxTorque = VT(0, 40000, 0)
  1422. CreateSound("907330103", Torso, 10, 1)
  1423. for i = 0, 1.6, 0.1 / Animation_Speed do
  1424. Swait()
  1425. WACKYEFFECT({
  1426. Time = 5,
  1427. EffectType = "Round Slash",
  1428. Size = VT(0, 0, 0),
  1429. Size2 = VT(0.01, 0, 0.01),
  1430. Transparency = 0.5,
  1431. Transparency2 = 1,
  1432. CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1433. MoveToPos = nil,
  1434. RotationX = MRANDOM(-50, 50) / 10,
  1435. RotationY = MRANDOM(-50, 50) / 10,
  1436. RotationZ = MRANDOM(-50, 50) / 10,
  1437. Material = "Neon",
  1438. Color = C3(1, 0, 0),
  1439. SoundID = nil,
  1440. SoundPitch = nil,
  1441. SoundVolume = nil
  1442. })
  1443. GYRO.cframe = CF(RootPart.Position, TORSO.Position)
  1444. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.2 / Animation_Speed)
  1445. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.2 / Animation_Speed)
  1446. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(120), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-45)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1447. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1448. if ANIM == "Idle" then
  1449. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1450. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1451. elseif ANIM == "Walk" then
  1452. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1453. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1454. elseif ANIM == "Jump" or ANIM == "Fall" then
  1455. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1456. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1457. end
  1458. end
  1459. GYRO:remove()
  1460. for i = 1, 15 do
  1461. WACKYEFFECT({
  1462. Time = MRANDOM(15, 85),
  1463. EffectType = "Round Slash",
  1464. Size = VT(0, 0, 0),
  1465. Size2 = VT(0.3, 0, 0.3),
  1466. Transparency = 0.5,
  1467. Transparency2 = 1,
  1468. CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1469. MoveToPos = nil,
  1470. RotationX = MRANDOM(-50, 50) / 10,
  1471. RotationY = MRANDOM(-50, 50) / 10,
  1472. RotationZ = MRANDOM(-50, 50) / 10,
  1473. Material = "Neon",
  1474. Color = C3(1, 0, 0),
  1475. SoundID = nil,
  1476. SoundPitch = nil,
  1477. SoundVolume = nil
  1478. })
  1479. end
  1480. local bv = Instance.new("BodyVelocity")
  1481. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1482. bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5
  1483. bv.Parent = TORSO
  1484. Debris:AddItem(bv, 0.05)
  1485. CreateSound("1222405264", TORSO, 10, 1)
  1486. Petrify(HUM.Parent)
  1487. for i = 0, 0.5, 0.1 / Animation_Speed do
  1488. Swait()
  1489. WACKYEFFECT({
  1490. Time = 5,
  1491. EffectType = "Round Slash",
  1492. Size = VT(0, 0, 0),
  1493. Size2 = VT(0.01, 0, 0.01),
  1494. Transparency = 0.5,
  1495. Transparency2 = 1,
  1496. CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1497. MoveToPos = nil,
  1498. RotationX = MRANDOM(-50, 50) / 10,
  1499. RotationY = MRANDOM(-50, 50) / 10,
  1500. RotationZ = MRANDOM(-50, 50) / 10,
  1501. Material = "Neon",
  1502. Color = C3(1, 0, 0),
  1503. SoundID = nil,
  1504. SoundPitch = nil,
  1505. SoundVolume = nil
  1506. })
  1507. GYRO.cframe = CF(RootPart.Position, TORSO.Position)
  1508. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 2 / Animation_Speed)
  1509. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 2 / Animation_Speed)
  1510. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 22), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1511. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1512. if ANIM == "Idle" then
  1513. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1514. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1515. elseif ANIM == "Walk" then
  1516. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1517. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1518. elseif ANIM == "Jump" or ANIM == "Fall" then
  1519. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1520. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1521. end
  1522. end
  1523. end
  1524. end
  1525. ATTACK = false
  1526. Rooted = false
  1527. end
  1528. function Fire_At_Will()
  1529. ATTACK = true
  1530. Rooted = false
  1531. local GYRO = IT("BodyGyro", RootPart)
  1532. GYRO.D = 750
  1533. GYRO.P = 2000
  1534. GYRO.MaxTorque = VT(0, 40000, 0)
  1535. for i = 0, 0.2, 0.1 / Animation_Speed do
  1536. Swait()
  1537. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  1538. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1539. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1540. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.48, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1541. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1542. if ANIM == "Idle" then
  1543. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1544. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1545. elseif ANIM == "Walk" then
  1546. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1547. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1548. elseif ANIM == "Jump" or ANIM == "Fall" then
  1549. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1550. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1551. end
  1552. end
  1553. local BOMB = CreatePart(3, Effects, "Neon", 0, 0, "Burgundy", "Sphere", VT(1, 1, 1), false)
  1554. MakeForm(BOMB, "Ball")
  1555. BOMB.Mesh.Scale = VT(0.5, 0.5, 0.5)
  1556. local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BOMB, CF(0, -2, 0), CF(0, 0, 0))
  1557. for i = 0, 1.5, 0.1 / Animation_Speed do
  1558. Swait()
  1559. if MRANDOM(1, 2) == 1 then
  1560. for E = 1, #EYES do
  1561. if EYES[E] ~= nil then
  1562. local EY = EYES[E]
  1563. local LIGHTNING = Zap({
  1564. StartPosition = EY.Position,
  1565. TargetPosition = BOMB.Position,
  1566. Character = Character,
  1567. Color = "Burgundy",
  1568. Individual = false,
  1569. MaxRange = 7,
  1570. SegmentLength = 1,
  1571. Offset = 0.3,
  1572. SIZE = 0.05
  1573. })
  1574. Debris:AddItem(LIGHTNING.LightningModel, 0.05)
  1575. end
  1576. end
  1577. end
  1578. BOMB.Mesh.Scale = BOMB.Mesh.Scale + VT(0.1, 0.1, 0.1)
  1579. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  1580. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
  1581. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
  1582. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.48, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1583. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1584. if ANIM == "Idle" then
  1585. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1586. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1587. elseif ANIM == "Walk" then
  1588. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1589. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1590. elseif ANIM == "Jump" or ANIM == "Fall" then
  1591. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1592. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1593. end
  1594. end
  1595. WACKYEFFECT({
  1596. Time = 25,
  1597. EffectType = "Ring",
  1598. Size = VT(0, 0, 0),
  1599. Size2 = VT(3.75, 3.75, 0),
  1600. Transparency = 0.7,
  1601. Transparency2 = 1,
  1602. CFrame = RootPart.CFrame * CF(0, -0.25, -1.3),
  1603. MoveToPos = nil,
  1604. RotationX = 0,
  1605. RotationY = 0,
  1606. RotationZ = 0,
  1607. Material = "Neon",
  1608. Color = BOMB.Color,
  1609. SoundID = nil,
  1610. SoundPitch = nil,
  1611. SoundVolume = nil
  1612. })
  1613. WACKYEFFECT({
  1614. Time = 50,
  1615. EffectType = "Ring",
  1616. Size = VT(0, 0, 0),
  1617. Size2 = VT(15, 15, 0),
  1618. Transparency = 0.7,
  1619. Transparency2 = 1,
  1620. CFrame = RootPart.CFrame * CF(0, -0.25, -1.3),
  1621. MoveToPos = nil,
  1622. RotationX = 0,
  1623. RotationY = 0,
  1624. RotationZ = 0,
  1625. Material = "Neon",
  1626. Color = BOMB.Color,
  1627. SoundID = nil,
  1628. SoundPitch = nil,
  1629. SoundVolume = nil
  1630. })
  1631. BOMB.Anchored = true
  1632. WELD:remove()
  1633. GYRO:remove()
  1634. coroutine.resume(coroutine.create(function()
  1635. BOMB.CFrame = CF(BOMB.Position, Mouse.Hit.p)
  1636. for i = 1, 500 do
  1637. Swait()
  1638. BOMB.CFrame = BOMB.CFrame * CF(0, 0, -2)
  1639. local HITFLOOR, HITPOS = Raycast(BOMB.Position, BOMB.CFrame.lookVector, 2.2, Character)
  1640. if HITFLOOR ~= nil then
  1641. break
  1642. end
  1643. end
  1644. ApplyAoE(BOMB.Position, 75, 0, 0, 0, true)
  1645. for i = 1, 3 do
  1646. WACKYEFFECT({
  1647. Time = 35,
  1648. EffectType = "Swirl",
  1649. Size = VT(0, 0, 0),
  1650. Size2 = VT(150, 225, 150) + VT(5, 15, 5) * i,
  1651. Transparency = 0,
  1652. Transparency2 = 1,
  1653. CFrame = BOMB.CFrame,
  1654. MoveToPos = nil,
  1655. RotationX = 0,
  1656. RotationY = 5 * i,
  1657. RotationZ = 0,
  1658. Material = "Neon",
  1659. Color = BOMB.Color,
  1660. SoundID = nil,
  1661. SoundPitch = nil,
  1662. SoundVolume = nil
  1663. })
  1664. end
  1665. for i = 1, 5 do
  1666. WACKYEFFECT({
  1667. Time = 75,
  1668. EffectType = "Sphere",
  1669. Size = BOMB.Mesh.Scale,
  1670. Size2 = VT(25, 25, 25) * i,
  1671. Transparency = 0.5,
  1672. Transparency2 = 1,
  1673. CFrame = BOMB.CFrame,
  1674. MoveToPos = nil,
  1675. RotationX = 0,
  1676. RotationY = 0,
  1677. RotationZ = 0,
  1678. Material = "Neon",
  1679. Color = BOMB.Color,
  1680. SoundID = 1222405264,
  1681. SoundPitch = 1,
  1682. SoundVolume = 10
  1683. })
  1684. end
  1685. local HITFLOOR, HITPOS = Raycast(BOMB.Position, CF(BOMB.Position + VT(0, 1, 0), BOMB.Position - VT(0, 1, 0)).lookVector, 15, Character)
  1686. if HITFLOOR then
  1687. CreateDebreeRing(HITFLOOR, HITPOS, 15, VT(8, 8, 8), 5)
  1688. end
  1689. BOMB.Transparency = 1
  1690. for i = 1, 35 do
  1691. Swait()
  1692. CreateFlyingDebree(BOMB, CF(BOMB.Position), 1, VT(0.5, 0.5, 0.5), 5, 150)
  1693. end
  1694. BOMB:remove()
  1695. end))
  1696. ATTACK = false
  1697. Rooted = false
  1698. end
  1699. function Imperfect_Storm()
  1700. ATTACK = true
  1701. Rooted = false
  1702. for i = 0, 1, 0.1 / Animation_Speed do
  1703. Swait()
  1704. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1705. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1706. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1707. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1708. if ANIM == "Idle" then
  1709. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1710. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1711. elseif ANIM == "Walk" then
  1712. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1713. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1714. elseif ANIM == "Jump" or ANIM == "Fall" then
  1715. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1716. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1717. end
  1718. end
  1719. ATTACK = false
  1720. Rooted = false
  1721. end
  1722. function MouseDown(Mouse)
  1723. if ATTACK == false then
  1724. end
  1725. end
  1726. function MouseUp(Mouse)
  1727. HOLD = false
  1728. end
  1729. function KeyDown(Key)
  1730. KEYHOLD = true
  1731. if FINISHEDINTRO == true then
  1732. if Key == "z" and ATTACK == false then
  1733. Neck_Snap()
  1734. end
  1735. if Key == "b" and ATTACK == false then
  1736. Imperfect_Command()
  1737. end
  1738. if Key == "c" and ATTACK == false then
  1739. Fire_At_Will()
  1740. end
  1741. if Key ~= "v" or ATTACK == false then
  1742. end
  1743. if Key ~= "x" or ATTACK == false then
  1744. end
  1745. end
  1746. end
  1747. function KeyUp(Key)
  1748. KEYHOLD = false
  1749. end
  1750. Mouse.Button1Down:connect(function(NEWKEY)
  1751. MouseDown(NEWKEY)
  1752. end)
  1753. Mouse.Button1Up:connect(function(NEWKEY)
  1754. MouseUp(NEWKEY)
  1755. end)
  1756. Mouse.KeyDown:connect(function(NEWKEY)
  1757. KeyDown(NEWKEY)
  1758. end)
  1759. Mouse.KeyUp:connect(function(NEWKEY)
  1760. KeyUp(NEWKEY)
  1761. end)
  1762. function unanchor()
  1763. if UNANCHOR == true then
  1764. RootPart.Anchored = false
  1765. end
  1766. local CHILDREN = Character:GetDescendants()
  1767. for index, CHILD in pairs(CHILDREN) do
  1768. if CHILD:IsA("BasePart") and CHILD ~= RootPart and CHILD.Parent ~= Effects and CHILD.Parent.Parent ~= Effects then
  1769. CHILD.Anchored = false
  1770. end
  1771. end
  1772. end
  1773. Humanoid.Changed:connect(function(Jump)
  1774. if Jump == "Jump" and Disable_Jump == true then
  1775. Humanoid.Jump = false
  1776. end
  1777. end)
  1778. while true do
  1779. Swait()
  1780. script.Parent = WEAPONGUI
  1781. ANIMATE.Parent = nil
  1782. if Humanoid then
  1783. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1784. IDLEANIMATION:Play()
  1785. end
  1786. for RW = 1, #RWINGS do
  1787. if RWINGS[RW] ~= nil then
  1788. RWINGS[RW].C1 = Clerp(RWINGS[RW].C1, CF(-0.25 + 0.25 * COS(SINE / 22), 0, 0 + 0.15 * COS(SINE / 22)) * ANGLES(RAD(2.5 * SIN(SINE / 22)), RAD(0), RAD(0 + 5 * SIN(SINE / 22))), 1 / Animation_Speed)
  1789. end
  1790. end
  1791. for LW = 1, #LWINGS do
  1792. if LWINGS[LW] ~= nil then
  1793. LWINGS[LW].C1 = Clerp(LWINGS[LW].C1, CF(0.25 - 0.25 * COS(SINE / 22), 0, 0 + 0.15 * COS(SINE / 22)) * ANGLES(RAD(2.5 * SIN(SINE / 22)), RAD(0), RAD(0 - 5 * SIN(SINE / 22))), 1 / Animation_Speed)
  1794. end
  1795. end
  1796. SINE = SINE + CHANGE
  1797. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1798. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1799. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 + Humanoid.HipHeight, Character)
  1800. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1801. if FINISHEDINTRO == true then
  1802. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1803. ANIM = "Jump"
  1804. if ATTACK == false then
  1805. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1806. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1807. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1808. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1809. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1810. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1811. end
  1812. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1813. ANIM = "Fall"
  1814. if ATTACK == false then
  1815. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1816. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1817. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1818. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1819. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1820. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1821. end
  1822. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1823. ANIM = "Idle"
  1824. if ATTACK == false then
  1825. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1826. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  1827. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1828. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1829. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1830. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1831. end
  1832. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1833. ANIM = "Walk"
  1834. if ATTACK == false then
  1835. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 22)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 22)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1836. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 22)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 22))), 1 / Animation_Speed)
  1837. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 22), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 22)), RAD(15 + 7.5 * SIN(SINE / 22))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1838. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 22), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 22)), RAD(-15 - 7.5 * SIN(SINE / 22))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1839. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1840. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1841. end
  1842. end
  1843. if TORSOVELOCITY > 1 then
  1844. Humanoid.HipHeight = 1
  1845. else
  1846. Humanoid.HipHeight = 0
  1847. end
  1848. elseif FINISHEDINTRO == false then
  1849. Humanoid.HipHeight = 0
  1850. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1851. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1852. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1853. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1854. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1855. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1856. end
  1857. unanchor()
  1858. Humanoid.MaxHealth = "inf"
  1859. Humanoid.Health = "inf"
  1860. if Rooted == false then
  1861. Disable_Jump = false
  1862. Humanoid.WalkSpeed = Speed
  1863. elseif Rooted == true then
  1864. Disable_Jump = true
  1865. Humanoid.WalkSpeed = 0
  1866. end
  1867. sick.Parent = Torso
  1868. sick.Playing = true
  1869. sick.Volume = 3
  1870. sick.Pitch = 1
  1871. BLINKLOOP = BLINKLOOP + 1
  1872. if BLINKLOOP >= 650 then
  1873. BLINKLOOP = 0
  1874. Blink()
  1875. end
  1876. if Character:FindFirstChildOfClass("Accessory") then
  1877. Character:FindFirstChildOfClass("Accessory"):remove()
  1878. end
  1879. if Head:FindFirstChildOfClass("Sound") then
  1880. Head:FindFirstChildOfClass("Sound"):remove()
  1881. end
  1882. if INTROING == false and FINISHEDINTRO == false then
  1883. if INSTANT == false then
  1884. Intro()
  1885. else
  1886. FINISHEDINTRO = true
  1887. Face()
  1888. RightWing()
  1889. LeftWing()
  1890. end
  1891. end
  1892. if Head:FindFirstChild("face") then
  1893. Head.face:remove()
  1894. end
  1895. Humanoid.PlatformStand = false
  1896. end
Add Comment
Please, Sign In to add comment