Advertisement
Oscar55555

Untitled

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