Advertisement
WagnerJunio07

Error

Dec 16th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 139.15 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. local Player = game:GetService("Players").Goldenknight577 --<=== Replace With Your Name
  88.  
  89.  
  90. local Mouse,mouse,UserInputService,ContextActionService
  91. do
  92. script.Parent = Player.Character
  93. local CAS = {Actions={}}
  94. local Event = Instance.new("RemoteEvent")
  95. Event.Name = "UserInput_Event"
  96. Event.Parent = Player.Character
  97. local fakeEvent = function()
  98. local t = {_fakeEvent=true}
  99. t.Connect = function(self,f)self.Function=f end
  100. t.connect = t.Connect
  101. return t
  102. end
  103. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  104. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  105. function CAS:BindAction(name,fun,touch,...)
  106. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  107. end
  108. function CAS:UnbindAction(name)
  109. CAS.Actions[name] = nil
  110. end
  111. local function te(self,ev,...)
  112. local t = m[ev]
  113. if t and t._fakeEvent and t.Function then
  114. t.Function(...)
  115. end
  116. end
  117. m.TrigEvent = te
  118. UIS.TrigEvent = te
  119. Event.OnServerEvent:Connect(function(plr,io)
  120. if plr~=Player then return end
  121. if io.isMouse then
  122. m.Target = io.Target
  123. m.Hit = io.Hit
  124. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  125. if io.UserInputState == Enum.UserInputState.Begin then
  126. m:TrigEvent("Button1Down")
  127. else
  128. m:TrigEvent("Button1Up")
  129. end
  130. else
  131. for n,t in pairs(CAS.Actions) do
  132. for _,k in pairs(t.Keys) do
  133. if k==io.KeyCode then
  134. t.Function(t.Name,io.UserInputState,io)
  135. end
  136. end
  137. end
  138. if io.UserInputState == Enum.UserInputState.Begin then
  139. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  140. UIS:TrigEvent("InputBegan",io,false)
  141. else
  142. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  143. UIS:TrigEvent("InputEnded",io,false)
  144. end
  145. end
  146. end)
  147. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  148. end
  149.  
  150. ---------Replace All "Goldenknight577" With Your Name.
  151. --Remove "Mouse =" or "local mouse =" at the start.
  152. --Replace Kermat161 At The Top Of The Script With You Name.
  153. -----------------------------Script In The Line's.
  154.  
  155.  
  156. script.Name = "Banisher Gun V3 / 1"
  157. --//====================================================\\--
  158. --|| CREATED BY SHACKLUSTER
  159. --\\====================================================//--
  160.  
  161. script:ClearAllChildren()
  162. wait(0.2)
  163.  
  164. Player = game:GetService("Players").Goldenknight57
  165. PlayerGui = Player.PlayerGui
  166. Cam = workspace.CurrentCamera
  167. Backpack = Player.Backpack
  168. Character = Player.Character
  169. Humanoid = Character.Humanoid
  170. RootPart = Character["HumanoidRootPart"]
  171. Torso = Character["Torso"]
  172. Head = Character["Head"]
  173. RightArm = Character["Right Arm"]
  174. LeftArm = Character["Left Arm"]
  175. RightLeg = Character["Right Leg"]
  176. LeftLeg = Character["Left Leg"]
  177. RootJoint = RootPart["RootJoint"]
  178. Neck = Torso["Neck"]
  179. RightShoulder = Torso["Right Shoulder"]
  180. LeftShoulder = Torso["Left Shoulder"]
  181. RightHip = Torso["Right Hip"]
  182. LeftHip = Torso["Left Hip"]
  183. local TIME = 0
  184. local sick = Instance.new("Sound",Torso)
  185.  
  186. IT = Instance.new
  187. CF = CFrame.new
  188. VT = Vector3.new
  189. RAD = math.rad
  190. C3 = Color3.new
  191. UD2 = UDim2.new
  192. BRICKC = BrickColor.new
  193. ANGLES = CFrame.Angles
  194. EULER = CFrame.fromEulerAnglesXYZ
  195. COS = math.cos
  196. ACOS = math.acos
  197. SIN = math.sin
  198. ASIN = math.asin
  199. ABS = math.abs
  200. MRANDOM = math.random
  201. FLOOR = math.floor
  202.  
  203. --//=================================\\
  204. --|| USEFUL VALUES
  205. --\\=================================//
  206.  
  207. Animation_Speed = 3
  208. local FORCERESET = false
  209. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  210. local Speed = 21
  211. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  212. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  213. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  214. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  215. local DAMAGEMULTIPLIER = 1
  216. local ANIM = "Idle"
  217. local ATTACK = false
  218. local LEFTWINGS = {}
  219. local RIGHTWINGS = {}
  220. local WHITELIST = {}
  221. local EQUIPPED = false
  222. local HOLD = false
  223. local COMBO = 1
  224. local Rooted = false
  225. local SINE = 0
  226. local KEYHOLD = false
  227. local CHANGE = 2 / Animation_Speed
  228. local WALKINGANIM = false
  229. local VALUE1 = false
  230. local VALUE2 = false
  231. local ROBLOXIDLEANIMATION = IT("Animation")
  232. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  233. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  234. --ROBLOXIDLEANIMATION.Parent = Humanoid
  235. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  236. WEAPONGUI.Name = "BanishV3Gui"
  237. local Weapon = IT("Model")
  238. Weapon.Name = "Adds"
  239. local Effects = IT("Folder", Weapon)
  240. Effects.Name = "Effects"
  241. local ANIMATOR = Humanoid.Animator
  242. local ANIMATE = Character:FindFirstChild("Animate")
  243. local UNANCHOR = true
  244. local TOBANISH = {}
  245. script.Parent = PlayerGui
  246.  
  247. --//=================================\\
  248. --\\=================================//
  249.  
  250.  
  251. --//=================================\\
  252. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  253. --\\=================================//
  254.  
  255. ArtificialHB = Instance.new("BindableEvent", script)
  256. ArtificialHB.Name = "ArtificialHB"
  257.  
  258. script:WaitForChild("ArtificialHB")
  259.  
  260. frame = Frame_Speed
  261. tf = 0
  262. allowframeloss = false
  263. tossremainder = false
  264. lastframe = tick()
  265. script.ArtificialHB:Fire()
  266.  
  267. game:GetService("RunService").Heartbeat:connect(function(s, p)
  268. tf = tf + s
  269. if tf >= frame then
  270. if allowframeloss then
  271. script.ArtificialHB:Fire()
  272. lastframe = tick()
  273. else
  274. for i = 1, math.floor(tf / frame) do
  275. script.ArtificialHB:Fire()
  276. end
  277. lastframe = tick()
  278. end
  279. if tossremainder then
  280. tf = 0
  281. else
  282. tf = tf - frame * math.floor(tf / frame)
  283. end
  284. end
  285. end)
  286.  
  287. --//=================================\\
  288. --\\=================================//
  289.  
  290. --//=================================\\
  291. --|| SOME FUNCTIONS
  292. --\\=================================//
  293.  
  294. local Create = LoadLibrary("RbxUtility").Create
  295.  
  296. function RemoveOutlines(part)
  297. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  298. end
  299.  
  300. CFuncs = {
  301. ["Part"] = {
  302. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  303. local Part = Create("Part"){
  304. Parent = Parent,
  305. Reflectance = Reflectance,
  306. Transparency = Transparency,
  307. CanCollide = false,
  308. Locked = true,
  309. BrickColor = BrickColor.new(tostring(BColor)),
  310. Name = Name,
  311. Size = Size,
  312. Material = Material,
  313. }
  314. RemoveOutlines(Part)
  315. return Part
  316. end;
  317. };
  318.  
  319. ["Mesh"] = {
  320. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  321. local Msh = Create(Mesh){
  322. Parent = Part,
  323. Offset = OffSet,
  324. Scale = Scale,
  325. }
  326. if Mesh == "SpecialMesh" then
  327. Msh.MeshType = MeshType
  328. Msh.MeshId = MeshId
  329. end
  330. return Msh
  331. end;
  332. };
  333.  
  334. ["Mesh"] = {
  335. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  336. local Msh = Create(Mesh){
  337. Parent = Part,
  338. Offset = OffSet,
  339. Scale = Scale,
  340. }
  341. if Mesh == "SpecialMesh" then
  342. Msh.MeshType = MeshType
  343. Msh.MeshId = MeshId
  344. end
  345. return Msh
  346. end;
  347. };
  348.  
  349. ["Weld"] = {
  350. Create = function(Parent, Part0, Part1, C0, C1)
  351. local Weld = Create("Weld"){
  352. Parent = Parent,
  353. Part0 = Part0,
  354. Part1 = Part1,
  355. C0 = C0,
  356. C1 = C1,
  357. }
  358. return Weld
  359. end;
  360. };
  361.  
  362. ["Sound"] = {
  363. Create = function(id, par, vol, pit)
  364. coroutine.resume(coroutine.create(function()
  365. local S = Create("Sound"){
  366. Volume = vol,
  367. Name = "EffectSoundo",
  368. Pitch = pit or 1,
  369. SoundId = id,
  370. Parent = par or workspace,
  371. }
  372. wait()
  373. S:play()
  374. game:GetService("Debris"):AddItem(S, 10)
  375. end))
  376. end;
  377. };
  378.  
  379. ["TimeSound"] = {
  380. Create = function(id, par, vol, pit, timepos)
  381. coroutine.resume(coroutine.create(function()
  382. local S = Create("Sound"){
  383. Volume = vol,
  384. Name = "EffectSoundo",
  385. Pitch = pit or 1,
  386. SoundId = id,
  387. TimePosition = timepos,
  388. Parent = par or workspace,
  389. }
  390. wait()
  391. S:play()
  392. game:GetService("Debris"):AddItem(S, 10)
  393. end))
  394. end;
  395. };
  396. ["EchoSound"] = {
  397. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  398. coroutine.resume(coroutine.create(function()
  399. local Sas = Create("Sound"){
  400. Volume = vol,
  401. Name = "EffectSoundo",
  402. Pitch = pit or 1,
  403. SoundId = id,
  404. TimePosition = timepos,
  405. Parent = par or workspace,
  406. }
  407. local E = Create("EchoSoundEffect"){
  408. Delay = echodelay,
  409. Name = "Echo",
  410. Feedback = fedb,
  411. DryLevel = dryl,
  412. Parent = Sas,
  413. }
  414. wait()
  415. Sas:play()
  416. game:GetService("Debris"):AddItem(Sas, delays)
  417. end))
  418. end;
  419. };
  420.  
  421. ["LongSound"] = {
  422. Create = function(id, par, vol, pit)
  423. coroutine.resume(coroutine.create(function()
  424. local S = Create("Sound"){
  425. Volume = vol,
  426. Pitch = pit or 1,
  427. SoundId = id,
  428. Parent = par or workspace,
  429. }
  430. wait()
  431. S:play()
  432. game:GetService("Debris"):AddItem(S, 60)
  433. end))
  434. end;
  435. };
  436.  
  437. ["ParticleEmitter"] = {
  438. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  439. local fp = Create("ParticleEmitter"){
  440. Parent = Parent,
  441. Color = ColorSequence.new(Color1, Color2),
  442. LightEmission = LightEmission,
  443. Size = Size,
  444. Texture = Texture,
  445. Transparency = Transparency,
  446. ZOffset = ZOffset,
  447. Acceleration = Accel,
  448. Drag = Drag,
  449. LockedToPart = LockedToPart,
  450. VelocityInheritance = VelocityInheritance,
  451. EmissionDirection = EmissionDirection,
  452. Enabled = Enabled,
  453. Lifetime = LifeTime,
  454. Rate = Rate,
  455. Rotation = Rotation,
  456. RotSpeed = RotSpeed,
  457. Speed = Speed,
  458. VelocitySpread = VelocitySpread,
  459. }
  460. return fp
  461. end;
  462. };
  463.  
  464. CreateTemplate = {
  465.  
  466. };
  467. }
  468.  
  469. local EyeSizes={
  470. NumberSequenceKeypoint.new(0,2,0),
  471. NumberSequenceKeypoint.new(1,0,0)
  472. }
  473. local EyeTrans={
  474. NumberSequenceKeypoint.new(0,0.5,0),
  475. NumberSequenceKeypoint.new(1,1,0)
  476. }
  477. local PE=Instance.new("ParticleEmitter",nil)
  478. PE.LightEmission=.8
  479. PE.Color = ColorSequence.new(BRICKC("Crimson").Color,BRICKC("Really red").Color)
  480. PE.Size=NumberSequence.new(EyeSizes)
  481. PE.Transparency=NumberSequence.new(EyeTrans)
  482. PE.Lifetime=NumberRange.new(0.35,1)
  483. PE.Rotation=NumberRange.new(0,360)
  484. PE.Rate=100
  485. PE.VelocitySpread = 10000
  486. PE.Acceleration = Vector3.new(0,85,0)
  487. PE.Drag = 5
  488. PE.Speed = NumberRange.new(0.1,5)
  489. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  490. PE.ZOffset = 0.5
  491. PE.Name = "PE"
  492. PE.Enabled = false
  493.  
  494. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  495. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  496. end
  497.  
  498. function PositiveAngle(NUMBER)
  499. if NUMBER >= 0 then
  500. NUMBER = 0
  501. end
  502. return NUMBER
  503. end
  504.  
  505. function NegativeAngle(NUMBER)
  506. if NUMBER <= 0 then
  507. NUMBER = 0
  508. end
  509. return NUMBER
  510. end
  511.  
  512. function Swait(NUMBER)
  513. if NUMBER == 0 or NUMBER == nil then
  514. ArtificialHB.Event:wait()
  515. else
  516. for i = 1, NUMBER do
  517. ArtificialHB.Event:wait()
  518. end
  519. end
  520. end
  521.  
  522. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  523. local NEWMESH = IT(MESH)
  524. if MESH == "SpecialMesh" then
  525. NEWMESH.MeshType = MESHTYPE
  526. if MESHID ~= "nil" and MESHID ~= "" then
  527. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  528. end
  529. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  530. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  531. end
  532. end
  533. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  534. NEWMESH.Scale = SCALE
  535. NEWMESH.Parent = PARENT
  536. return NEWMESH
  537. end
  538.  
  539. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  540. local NEWPART = IT("Part")
  541. NEWPART.formFactor = FORMFACTOR
  542. NEWPART.Reflectance = REFLECTANCE
  543. NEWPART.Transparency = TRANSPARENCY
  544. NEWPART.CanCollide = false
  545. NEWPART.Locked = true
  546. NEWPART.Anchored = true
  547. if ANCHOR == false then
  548. NEWPART.Anchored = false
  549. end
  550. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  551. NEWPART.Name = NAME
  552. NEWPART.Size = SIZE
  553. NEWPART.Position = Torso.Position
  554. NEWPART.Material = MATERIAL
  555. NEWPART:BreakJoints()
  556. NEWPART.Parent = PARENT
  557. return NEWPART
  558. end
  559.  
  560. local function weldBetween(a, b)
  561. local weldd = Instance.new("ManualWeld")
  562. weldd.Part0 = a
  563. weldd.Part1 = b
  564. weldd.C0 = CFrame.new()
  565. weldd.C1 = b.CFrame:inverse() * a.CFrame
  566. weldd.Parent = a
  567. return weldd
  568. end
  569.  
  570.  
  571. function QuaternionFromCFrame(cf)
  572. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  573. local trace = m00 + m11 + m22
  574. if trace > 0 then
  575. local s = math.sqrt(1 + trace)
  576. local recip = 0.5 / s
  577. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  578. else
  579. local i = 0
  580. if m11 > m00 then
  581. i = 1
  582. end
  583. if m22 > (i == 0 and m00 or m11) then
  584. i = 2
  585. end
  586. if i == 0 then
  587. local s = math.sqrt(m00 - m11 - m22 + 1)
  588. local recip = 0.5 / s
  589. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  590. elseif i == 1 then
  591. local s = math.sqrt(m11 - m22 - m00 + 1)
  592. local recip = 0.5 / s
  593. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  594. elseif i == 2 then
  595. local s = math.sqrt(m22 - m00 - m11 + 1)
  596. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  597. end
  598. end
  599. end
  600.  
  601. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  602. local xs, ys, zs = x + x, y + y, z + z
  603. local wx, wy, wz = w * xs, w * ys, w * zs
  604. local xx = x * xs
  605. local xy = x * ys
  606. local xz = x * zs
  607. local yy = y * ys
  608. local yz = y * zs
  609. local zz = z * zs
  610. 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))
  611. end
  612.  
  613. function QuaternionSlerp(a, b, t)
  614. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  615. local startInterp, finishInterp;
  616. if cosTheta >= 0.0001 then
  617. if (1 - cosTheta) > 0.0001 then
  618. local theta = ACOS(cosTheta)
  619. local invSinTheta = 1 / SIN(theta)
  620. startInterp = SIN((1 - t) * theta) * invSinTheta
  621. finishInterp = SIN(t * theta) * invSinTheta
  622. else
  623. startInterp = 1 - t
  624. finishInterp = t
  625. end
  626. else
  627. if (1 + cosTheta) > 0.0001 then
  628. local theta = ACOS(-cosTheta)
  629. local invSinTheta = 1 / SIN(theta)
  630. startInterp = SIN((t - 1) * theta) * invSinTheta
  631. finishInterp = SIN(t * theta) * invSinTheta
  632. else
  633. startInterp = t - 1
  634. finishInterp = t
  635. end
  636. end
  637. 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
  638. end
  639.  
  640. function Clerp(a, b, t)
  641. local qa = {QuaternionFromCFrame(a)}
  642. local qb = {QuaternionFromCFrame(b)}
  643. local ax, ay, az = a.x, a.y, a.z
  644. local bx, by, bz = b.x, b.y, b.z
  645. local _t = 1 - t
  646. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  647. end
  648.  
  649. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  650. local frame = IT("Frame")
  651. frame.BackgroundTransparency = TRANSPARENCY
  652. frame.BorderSizePixel = BORDERSIZEPIXEL
  653. frame.Position = POSITION
  654. frame.Size = SIZE
  655. frame.BackgroundColor3 = COLOR
  656. frame.BorderColor3 = BORDERCOLOR
  657. frame.Name = NAME
  658. frame.Parent = PARENT
  659. return frame
  660. end
  661.  
  662. function Fire(art)
  663. local PARTICLES = PE:Clone()
  664. PARTICLES.Parent = art
  665. PARTICLES.Enabled = true
  666. return PARTICLES
  667. end
  668.  
  669. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  670. local label = IT("TextLabel")
  671. label.BackgroundTransparency = 1
  672. label.Size = UD2(1, 0, 1, 0)
  673. label.Position = UD2(0, 0, 0, 0)
  674. label.TextColor3 = TEXTCOLOR
  675. label.TextStrokeTransparency = STROKETRANSPARENCY
  676. label.TextTransparency = TRANSPARENCY
  677. label.FontSize = TEXTFONTSIZE
  678. label.Font = TEXTFONT
  679. label.BorderSizePixel = BORDERSIZEPIXEL
  680. label.TextScaled = false
  681. label.Text = TEXT
  682. label.Name = NAME
  683. label.Parent = PARENT
  684. return label
  685. end
  686.  
  687. function NoOutlines(PART)
  688. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  689. end
  690.  
  691. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  692. local NEWWELD = IT(TYPE)
  693. NEWWELD.Part0 = PART0
  694. NEWWELD.Part1 = PART1
  695. NEWWELD.C0 = C0
  696. NEWWELD.C1 = C1
  697. NEWWELD.Parent = PARENT
  698. return NEWWELD
  699. end
  700.  
  701. local S = IT("Sound")
  702. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  703. local NEWSOUND = nil
  704. coroutine.resume(coroutine.create(function()
  705. NEWSOUND = S:Clone()
  706. NEWSOUND.Parent = PARENT
  707. NEWSOUND.Volume = VOLUME
  708. NEWSOUND.Pitch = PITCH
  709. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  710. NEWSOUND:play()
  711. if DOESLOOP == true then
  712. NEWSOUND.Looped = true
  713. else
  714. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  715. NEWSOUND:remove()
  716. end
  717. end))
  718. return NEWSOUND
  719. end
  720.  
  721. function CFrameFromTopBack(at, top, back)
  722. local right = top:Cross(back)
  723. 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)
  724. end
  725.  
  726. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  727. local p = Instance.new("Part")
  728. p.TopSurface = 0
  729. p.BottomSurface = 0
  730. p.Parent = parent
  731. p.Size = Vector3.new(0.1,0.1,0.1)
  732. p.Transparency = transparency
  733. p.Reflectance = reflectance
  734. p.CanCollide = false
  735. p.Locked = true
  736. p.BrickColor = brickcolor
  737. p.Material = material
  738. return p
  739. end
  740.  
  741. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  742. function WACKYEFFECT(Table)
  743. local TYPE = (Table.EffectType or "Sphere")
  744. local SIZE = (Table.Size or VT(1,1,1))
  745. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  746. local TRANSPARENCY = (Table.Transparency or 0)
  747. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  748. local CFRAME = (Table.CFrame or Torso.CFrame)
  749. local MOVEDIRECTION = (Table.MoveToPos or nil)
  750. local ROTATION1 = (Table.RotationX or 0)
  751. local ROTATION2 = (Table.RotationY or 0)
  752. local ROTATION3 = (Table.RotationZ or 0)
  753. local MATERIAL = (Table.Material or "Neon")
  754. local COLOR = (Table.Color or C3(1,1,1))
  755. local TIME = (Table.Time or 45)
  756. local SOUNDID = (Table.SoundID or nil)
  757. local SOUNDPITCH = (Table.SoundPitch or nil)
  758. local SOUNDVOLUME = (Table.SoundVolume or nil)
  759. coroutine.resume(coroutine.create(function()
  760. local PLAYSSOUND = false
  761. local SOUND = nil
  762. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  763. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  764. PLAYSSOUND = true
  765. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  766. end
  767. EFFECT.Color = COLOR
  768. local MSH = nil
  769. if TYPE == "Sphere" then
  770. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  771. elseif TYPE == "Block" then
  772. MSH = IT("BlockMesh",EFFECT)
  773. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  774. elseif TYPE == "Wave" then
  775. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  776. elseif TYPE == "Ring" then
  777. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  778. elseif TYPE == "Slash" then
  779. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  780. elseif TYPE == "Round Slash" then
  781. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  782. elseif TYPE == "Swirl" then
  783. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  784. elseif TYPE == "Skull" then
  785. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  786. elseif TYPE == "Crystal" then
  787. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  788. end
  789. if MSH ~= nil then
  790. local MOVESPEED = nil
  791. if MOVEDIRECTION ~= nil then
  792. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  793. end
  794. local GROWTH = SIZE - ENDSIZE
  795. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  796. if TYPE == "Block" then
  797. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  798. else
  799. EFFECT.CFrame = CFRAME
  800. end
  801. for LOOP = 1, TIME+1 do
  802. Swait()
  803. MSH.Scale = MSH.Scale - GROWTH/TIME
  804. if TYPE == "Wave" then
  805. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  806. end
  807. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  808. if TYPE == "Block" then
  809. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  810. else
  811. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  812. end
  813. if MOVEDIRECTION ~= nil then
  814. local ORI = EFFECT.Orientation
  815. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  816. EFFECT.Orientation = ORI
  817. end
  818. end
  819. if PLAYSSOUND == false then
  820. EFFECT:remove()
  821. else
  822. SOUND.Stopped:Connect(function()
  823. EFFECT:remove()
  824. end)
  825. end
  826. else
  827. if PLAYSSOUND == false then
  828. EFFECT:remove()
  829. else
  830. repeat Swait() until SOUND.Playing == false
  831. EFFECT:remove()
  832. end
  833. end
  834. end))
  835. end
  836.  
  837. function MakeForm(PART,TYPE)
  838. if TYPE == "Cyl" then
  839. local MSH = IT("CylinderMesh",PART)
  840. elseif TYPE == "Ball" then
  841. local MSH = IT("SpecialMesh",PART)
  842. MSH.MeshType = "Sphere"
  843. elseif TYPE == "Wedge" then
  844. local MSH = IT("SpecialMesh",PART)
  845. MSH.MeshType = "Wedge"
  846. end
  847. end
  848.  
  849. function SpawnTrail(FROM,TO,BIG)
  850. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Lime green", "Trail", VT(0,0,0))
  851. MakeForm(TRAIL,"Cyl")
  852. local DIST = (FROM - TO).Magnitude
  853. if BIG == true then
  854. TRAIL.Size = VT(0.5,DIST,0.5)
  855. else
  856. TRAIL.Size = VT(0.25,DIST,0.25)
  857. end
  858. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  859. coroutine.resume(coroutine.create(function()
  860. for i = 1, 5 do
  861. Swait()
  862. TRAIL.Transparency = TRAIL.Transparency + 0.1
  863. end
  864. TRAIL:remove()
  865. end))
  866. end
  867.  
  868. Debris = game:GetService("Debris")
  869.  
  870. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  871. local DIRECTION = CF(StartPos,EndPos).lookVector
  872. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  873. end
  874.  
  875. function turnto(position)
  876. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  877. end
  878.  
  879. function sphere(bonuspeed,type,pos,scale,value,color)
  880. local type = type
  881. local rng = Instance.new("Part", Character)
  882. rng.Anchored = true
  883. if ModeOfGlitch ~= 9 then
  884. rng.BrickColor = color
  885. elseif ModeOfGlitch == 9 then
  886. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  887. end
  888. rng.CanCollide = false
  889. rng.FormFactor = 3
  890. rng.Name = "Ring"
  891. rng.Material = "Neon"
  892. rng.Size = Vector3.new(1, 1, 1)
  893. rng.Transparency = 0
  894. rng.TopSurface = 0
  895. rng.BottomSurface = 0
  896. rng.CFrame = pos
  897. local rngm = Instance.new("SpecialMesh", rng)
  898. rngm.MeshType = "Sphere"
  899. rngm.Scale = scale
  900. if rainbowmode == true then
  901. rng.Color = Color3.new(r/255,g/255,b/255)
  902. end
  903. if ModeOfGlitch == 9 then
  904. coroutine.resume(coroutine.create(function()
  905. while true do
  906. Swait()
  907. if rng.Parent ~= nil then
  908. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  909. else
  910. break
  911. end
  912. end
  913. end))
  914. end
  915. local scaler2 = 1
  916. if type == "Add" then
  917. scaler2 = 1*value
  918. elseif type == "Divide" then
  919. scaler2 = 1/value
  920. end
  921. coroutine.resume(coroutine.create(function()
  922. for i = 0,10/bonuspeed,0.1 do
  923. Swait()
  924. if rainbowmode == true then
  925. rng.Color = Color3.new(r/255,g/255,b/255)
  926. end
  927. if type == "Add" then
  928. scaler2 = scaler2 - 0.01*value/bonuspeed
  929. elseif type == "Divide" then
  930. scaler2 = scaler2 - 0.01/value*bonuspeed
  931. end
  932. if chaosmode == true then
  933. rng.BrickColor = BrickColor.random()
  934. end
  935. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  936. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  937. end
  938. rng:Destroy()
  939. end))
  940. end
  941.  
  942. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  943. local type = type
  944. local rng = Instance.new("Part", Character)
  945. rng.Anchored = true
  946. if ModeOfGlitch ~= 9 then
  947. rng.BrickColor = color
  948. elseif ModeOfGlitch == 9 then
  949. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  950. end
  951. rng.CanCollide = false
  952. rng.FormFactor = 3
  953. rng.Name = "Ring"
  954. rng.Material = "Neon"
  955. rng.Size = Vector3.new(1, 1, 1)
  956. rng.Transparency = 0
  957. rng.TopSurface = 0
  958. rng.BottomSurface = 0
  959. rng.CFrame = pos
  960. local rngm = Instance.new("SpecialMesh", rng)
  961. rngm.MeshType = "Sphere"
  962. rngm.Scale = scale
  963. local scaler2 = 1
  964. local scaler2b = 1
  965. local scaler2c = 1
  966. if type == "Add" then
  967. scaler2 = 1*value
  968. scaler2b = 1*value2
  969. scaler2c = 1*value3
  970. elseif type == "Divide" then
  971. scaler2 = 1/value
  972. scaler2b = 1/value2
  973. scaler2c = 1/value3
  974. end
  975. if ModeOfGlitch == 9 then
  976. coroutine.resume(coroutine.create(function()
  977. while true do
  978. Swait()
  979. if rng.Parent ~= nil then
  980. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  981. else
  982. break
  983. end
  984. end
  985. end))
  986. end
  987. coroutine.resume(coroutine.create(function()
  988. for i = 0,10/bonuspeed,0.1 do
  989. Swait()
  990. if type == "Add" then
  991. scaler2 = scaler2 - 0.01*value/bonuspeed
  992. scaler2b = scaler2b - 0.01*value/bonuspeed
  993. scaler2c = scaler2c - 0.01*value/bonuspeed
  994. elseif type == "Divide" then
  995. scaler2 = scaler2 - 0.01/value*bonuspeed
  996. scaler2b = scaler2b - 0.01/value*bonuspeed
  997. scaler2c = scaler2c - 0.01/value*bonuspeed
  998. end
  999. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1000. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  1001. end
  1002. rng:Destroy()
  1003. end))
  1004. end
  1005.  
  1006. function CreateMesh2(parent,meshtype,x1,y1,z1)
  1007. local mesh = Instance.new("SpecialMesh",parent)
  1008. mesh.MeshType = meshtype
  1009. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  1010. return mesh
  1011. end
  1012.  
  1013. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  1014. local type = type
  1015. local rng = Instance.new("Part", Character)
  1016. rng.Anchored = true
  1017. if ModeOfGlitch ~= 9 then
  1018. rng.BrickColor = color
  1019. elseif ModeOfGlitch == 9 then
  1020. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1021. end
  1022. rng.CanCollide = false
  1023. rng.FormFactor = 3
  1024. rng.Name = "Ring"
  1025. rng.Material = "Neon"
  1026. rng.Size = Vector3.new(1, 1, 1)
  1027. rng.Transparency = 0
  1028. rng.TopSurface = 0
  1029. rng.BottomSurface = 0
  1030. rng.CFrame = pos
  1031. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1032. local rngm = Instance.new("SpecialMesh", rng)
  1033. rngm.MeshType = "Sphere"
  1034. rngm.Scale = VT(x1,y1,z1)
  1035. if rainbowmode == true then
  1036. rng.Color = Color3.new(r/255,g/255,b/255)
  1037. end
  1038. if ModeOfGlitch == 9 then
  1039. coroutine.resume(coroutine.create(function()
  1040. while true do
  1041. Swait()
  1042. if rng.Parent ~= nil then
  1043. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1044. else
  1045. break
  1046. end
  1047. end
  1048. end))
  1049. end
  1050. local scaler2 = 1
  1051. local speeder = FastSpeed
  1052. if type == "Add" then
  1053. scaler2 = 1*value
  1054. elseif type == "Divide" then
  1055. scaler2 = 1/value
  1056. end
  1057. coroutine.resume(coroutine.create(function()
  1058. for i = 0,10/bonuspeed,0.1 do
  1059. Swait()
  1060. if rainbowmode == true then
  1061. rng.Color = Color3.new(r/255,g/255,b/255)
  1062. end
  1063. if type == "Add" then
  1064. scaler2 = scaler2 - 0.01*value/bonuspeed
  1065. elseif type == "Divide" then
  1066. scaler2 = scaler2 - 0.01/value*bonuspeed
  1067. end
  1068. if chaosmode == true then
  1069. rng.BrickColor = BrickColor.random()
  1070. end
  1071. speeder = speeder - 0.01*FastSpeed*bonuspeed
  1072. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1073. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1074. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  1075. end
  1076. rng:Destroy()
  1077. end))
  1078. end
  1079.  
  1080. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  1081. local type = type
  1082. local rng = Instance.new("Part", char)
  1083. rng.Anchored = true
  1084. if ModeOfGlitch ~= 9 then
  1085. rng.BrickColor = color
  1086. elseif ModeOfGlitch == 9 then
  1087. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1088. end
  1089. rng.CanCollide = false
  1090. rng.FormFactor = 3
  1091. rng.Name = "Ring"
  1092. rng.Material = "Neon"
  1093. rng.Size = Vector3.new(1, 1, 1)
  1094. rng.Transparency = 1
  1095. rng.TopSurface = 0
  1096. rng.BottomSurface = 0
  1097. rng.CFrame = pos
  1098. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  1099. local rngm = Instance.new("SpecialMesh", rng)
  1100. rngm.MeshType = "Sphere"
  1101. rngm.Scale = vt(x1,y1,z1)
  1102. if rainbowmode == true then
  1103. rng.Color = Color3.new(r/255,g/255,b/255)
  1104. end
  1105. if ModeOfGlitch == 9 then
  1106. coroutine.resume(coroutine.create(function()
  1107. while true do
  1108. swait()
  1109. if rng.Parent ~= nil then
  1110. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1111. else
  1112. break
  1113. end
  1114. end
  1115. end))
  1116. end
  1117. local scaler2 = 1
  1118. local speeder = FastSpeed
  1119. if type == "Add" then
  1120. scaler2 = 1*value
  1121. elseif type == "Divide" then
  1122. scaler2 = 1/value
  1123. end
  1124. coroutine.resume(coroutine.create(function()
  1125. for i = 0,10/bonuspeed,0.1 do
  1126. swait()
  1127. if rainbowmode == true then
  1128. rng.Color = Color3.new(r/255,g/255,b/255)
  1129. end
  1130. if type == "Add" then
  1131. scaler2 = scaler2 - 0.01*value/bonuspeed
  1132. elseif type == "Divide" then
  1133. scaler2 = scaler2 - 0.01/value*bonuspeed
  1134. end
  1135. if chaosmode == true then
  1136. rng.BrickColor = BrickColor.random()
  1137. end
  1138. speeder = speeder - 0.01*FastSpeed*bonuspeed
  1139. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  1140. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  1141. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  1142. end
  1143. rng:Destroy()
  1144. end))
  1145. end
  1146.  
  1147. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  1148. local type = type
  1149. local rotenable = rotatingop
  1150. local rng = Instance.new("Part", Character)
  1151. rng.Anchored = true
  1152. rng.BrickColor = color
  1153. rng.CanCollide = false
  1154. rng.FormFactor = 3
  1155. rng.Name = "Ring"
  1156. rng.Material = "Neon"
  1157. rng.Size = Vector3.new(1, 1, 1)
  1158. rng.Transparency = 0
  1159. if typeoftrans == "In" then
  1160. rng.Transparency = 1
  1161. end
  1162. rng.TopSurface = 0
  1163. rng.BottomSurface = 0
  1164. rng.CFrame = pos
  1165. local rngm = Instance.new("SpecialMesh", rng)
  1166. rngm.MeshType = "FileMesh"
  1167. if typeofshape == "Normal" then
  1168. rngm.MeshId = "rbxassetid://662586858"
  1169. elseif typeofshape == "Round" then
  1170. rngm.MeshId = "rbxassetid://662585058"
  1171. end
  1172. rngm.Scale = scale
  1173. local scaler2 = 1/10
  1174. if type == "Add" then
  1175. scaler2 = 1*value/10
  1176. elseif type == "Divide" then
  1177. scaler2 = 1/value/10
  1178. end
  1179. local randomrot = math.random(1,2)
  1180. coroutine.resume(coroutine.create(function()
  1181. for i = 0,10/bonuspeed,0.1 do
  1182. Swait()
  1183. if type == "Add" then
  1184. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  1185. elseif type == "Divide" then
  1186. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  1187. end
  1188. if rotenable == true then
  1189. if randomrot == 1 then
  1190. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  1191. elseif randomrot == 2 then
  1192. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  1193. end
  1194. end
  1195. if typeoftrans == "Out" then
  1196. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1197. elseif typeoftrans == "In" then
  1198. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  1199. end
  1200. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  1201. end
  1202. rng:Destroy()
  1203. end))
  1204. end
  1205.  
  1206. --//=================================\\
  1207. --|| WEAPON CREATION
  1208. --\\=================================//
  1209.  
  1210.  
  1211. local Back = CreatePart(3, Character, "Granite", 0, 0, "Really black", "Wing", VT(1,1,0.35),false)
  1212. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
  1213.  
  1214. local ANGLE = 35
  1215. for i = 1, 5 do
  1216. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Wing", VT(0.15,2+(i/2),0.15),false)
  1217. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  1218. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Wing", VT(0.25,1,0.25),false)
  1219. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  1220. ANGLE = ANGLE - 15
  1221. table.insert(LEFTWINGS,WingWeld)
  1222. end
  1223. ANGLE = 35
  1224. for i = 1, 5 do
  1225. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.15,2+(i/2),0.15),false)
  1226. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  1227. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.25,1,0.25),false)
  1228. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  1229. ANGLE = ANGLE - 15
  1230. table.insert(RIGHTWINGS,WingWeld)
  1231. end
  1232.  
  1233. local LASTPART = Head
  1234. for i = 1, 20 do
  1235. local MATH = (1-(i/25))
  1236. if LASTPART == Head then
  1237. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1238. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  1239. LASTPART = Horn
  1240. Horn.Color = C3(0,1,0)
  1241. else
  1242. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1243. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  1244. LASTPART = Horn
  1245. Horn.Color = C3(0,1,0)
  1246. end
  1247. end
  1248. local LASTPART = Head
  1249. for i = 1, 20 do
  1250. local MATH = (1-(i/25))
  1251. if LASTPART == Head then
  1252. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1253. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  1254. LASTPART = Horn
  1255. Horn.Color = C3(0,1,0)
  1256. else
  1257. local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  1258. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  1259. LASTPART = Horn
  1260. Horn.Color = C3(0,1,0)
  1261. end
  1262. end
  1263.  
  1264. local naeeym2 = Instance.new("BillboardGui",Character)
  1265. naeeym2.AlwaysOnTop = true
  1266. naeeym2.Size = UDim2.new(5,35,2,35)
  1267. naeeym2.StudsOffset = Vector3.new(0,1,0)
  1268. naeeym2.Adornee = Character.Head
  1269. naeeym2.Name = "Name"
  1270. local tecks2 = Instance.new("TextLabel",naeeym2)
  1271. tecks2.BackgroundTransparency = 1
  1272. tecks2.TextScaled = true
  1273. tecks2.BorderSizePixel = 0
  1274. tecks2.Text = "Error The Banisher"
  1275. tecks2.Font = "Cartoon"
  1276. tecks2.TextSize = 30
  1277. tecks2.TextStrokeTransparency = 0
  1278. tecks2.TextColor3 = Color3.new(0,0,0)
  1279. tecks2.TextStrokeColor3 = Color3.new(0,0.8,0)
  1280. tecks2.Size = UDim2.new(1,0,0.5,0)
  1281. tecks2.Parent = naeeym2
  1282.  
  1283. function WarnFunc(text)
  1284. local chat = coroutine.wrap(function()
  1285. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1286. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1287. end
  1288. local Bill = Instance.new("BillboardGui",Character)
  1289. Bill.Size = UDim2.new(0,100,0,40)
  1290. Bill.StudsOffset = Vector3.new(0,35,0)
  1291. Bill.Adornee = Character.Head
  1292. Bill.Name = "TalkingBillBoard"
  1293. local Hehe = Instance.new("TextLabel",Bill)
  1294. Hehe.BackgroundTransparency = 1
  1295. Hehe.BorderSizePixel = 0
  1296. Hehe.Text = ""
  1297. Hehe.Font = "Antique"
  1298. Hehe.TextSize = 120
  1299. Hehe.TextStrokeTransparency = 0
  1300. Hehe.Size = UDim2.new(1,0,0.5,0)
  1301. coroutine.resume(coroutine.create(function()
  1302. while Hehe ~= nil do
  1303. Swait()
  1304. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1305. Hehe.Rotation = math.random(-5,5)
  1306. Hehe.TextColor3 = Color3.new(255,0,0)
  1307. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  1308. end
  1309. end))
  1310. for i = 1,string.len(text),1 do
  1311. Swait()
  1312. Hehe.Text = string.sub(text,1,i)
  1313. end
  1314. Swait(90)--Re[math.random(1, 93)]
  1315. for i = 0, 1, .025 do
  1316. Swait()
  1317. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  1318. Hehe.TextStrokeTransparency = i
  1319. Hehe.TextTransparency = i
  1320. end
  1321. Bill:Destroy()
  1322. end)
  1323. chat()
  1324. end
  1325.  
  1326. function chatfunc(text)
  1327. local chat = coroutine.wrap(function()
  1328. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1329. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1330. end
  1331. local Bill = Instance.new("BillboardGui",Character)
  1332. Bill.Size = UDim2.new(0,100,0,40)
  1333. Bill.StudsOffset = Vector3.new(0,3,0)
  1334. Bill.Adornee = Character.Head
  1335. Bill.Name = "TalkingBillBoard"
  1336. local Hehe = Instance.new("TextLabel",Bill)
  1337. Hehe.BackgroundTransparency = 1
  1338. Hehe.BorderSizePixel = 0
  1339. Hehe.Text = ""
  1340. Hehe.Font = "Bodoni"
  1341. Hehe.TextSize = 40
  1342. Hehe.TextStrokeTransparency = 0
  1343. Hehe.Size = UDim2.new(1,0,0.5,0)
  1344. coroutine.resume(coroutine.create(function()
  1345. while Hehe ~= nil do
  1346. Swait()
  1347. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1348. Hehe.Rotation = math.random(-2.5,2.5)
  1349. Hehe.TextColor3 = Color3.new(MRANDOM(55,255),0,0)
  1350. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  1351. end
  1352. end))
  1353. for i = 1,string.len(text),1 do
  1354. Swait()
  1355. Hehe.Text = string.sub(text,1,i)
  1356. end
  1357. Swait(90)--Re[math.random(1, 93)]
  1358. for i = 0, 1, .025 do
  1359. Swait()
  1360. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  1361. Hehe.TextStrokeTransparency = i
  1362. Hehe.TextTransparency = i
  1363. end
  1364. Bill:Destroy()
  1365. end)
  1366. chat()
  1367. end
  1368.  
  1369. function Blink()
  1370. coroutine.resume(coroutine.create(function()
  1371. if EYE ~= nil then
  1372. for i = 1, 5 do
  1373. Swait()
  1374. EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2,0)
  1375. EYE2.Mesh.Scale = EYE.Mesh.Scale
  1376. end
  1377. for i = 1, 7 do
  1378. Swait()
  1379. EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2,0)
  1380. EYE2.Mesh.Scale = EYE.Mesh.Scale
  1381. end
  1382. EYE.Mesh.Scale = VT(1,1,1)
  1383. EYE2.Mesh.Scale = EYE.Mesh.Scale
  1384. end
  1385. end))
  1386. end
  1387.  
  1388. for i = 1, 35 do
  1389. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  1390. FACE.Color = C3(0,0,0)
  1391. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1392. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  1393. end
  1394. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eyeball", VT(0.15,0.15,0.15),false)
  1395. MakeForm(EYE,"Ball")
  1396. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  1397. local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Eyeball2", VT(0.15,0.15,0.15),false)
  1398. MakeForm(EYE2,"Ball")
  1399. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  1400.  
  1401. shirt = Instance.new("Shirt", Character)--Cloths--
  1402. shirt.Name = "Shirt"
  1403. pants = Instance.new("Pants", Character)
  1404. pants.Name = "Pants"
  1405. Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=691135228"
  1406. Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=691102036"
  1407. local BC = Character["Body Colors"]
  1408. BC.HeadColor = BrickColor.new("Lime green")
  1409. BC.LeftArmColor = BrickColor.new("Lime green")
  1410. BC.LeftLegColor = BrickColor.new("Really black")
  1411. BC.RightArmColor = BrickColor.new("Really black")
  1412. BC.RightLegColor = BrickColor.new("Lime green")
  1413. BC.TorsoColor = BrickColor.new("Really black")
  1414.  
  1415. local Particle = IT("ParticleEmitter",nil)
  1416. Particle.Enabled = false
  1417. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1418. Particle.LightEmission = 0.5
  1419. Particle.Rate = 150
  1420. Particle.ZOffset = 0.2
  1421. Particle.Rotation = NumberRange.new(-180, 180)
  1422. Particle.RotSpeed = NumberRange.new(-180, 180)
  1423. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1424. Particle.Color = ColorSequence.new(C3(0,0.2,0),C3(0,0,0))
  1425.  
  1426. local A = IT("Attachment",Torso)
  1427. A.Position = VT(1,1.3,0)
  1428. A.Orientation = VT(-0.098, -89.999, 0.227)
  1429. local B = IT("Attachment",Torso)
  1430. B.Position = VT(-1.3,-0.6,0)
  1431. B.Orientation = VT(-88.911, -68.808, 158.782)
  1432. local ChainLink = IT("Beam",Torso)
  1433. ChainLink.Texture = "rbxassetid://73042633"
  1434. ChainLink.Color = ColorSequence.new(C3(0,0,0))
  1435. ChainLink.TextureSpeed = 1
  1436. ChainLink.FaceCamera = true
  1437. ChainLink.Width0 = 1
  1438. ChainLink.Width1 = 1
  1439. ChainLink.TextureLength = 3
  1440. ChainLink.Attachment0 = A
  1441. ChainLink.Attachment1 = B
  1442. ChainLink.CurveSize0 = 1.6
  1443. ChainLink.CurveSize1 = 1.6
  1444. ChainLink.FaceCamera = true
  1445. ChainLink.Transparency = NumberSequence.new(0)
  1446. local ChainLink = IT("Beam",Torso)
  1447. ChainLink.Texture = "rbxassetid://73042633"
  1448. ChainLink.Color = ColorSequence.new(C3(0,0,0))
  1449. ChainLink.TextureSpeed = 1
  1450. ChainLink.FaceCamera = true
  1451. ChainLink.Width0 = 1
  1452. ChainLink.Width1 = 1
  1453. ChainLink.TextureLength = 3
  1454. ChainLink.Attachment0 = B
  1455. ChainLink.Attachment1 = A
  1456. ChainLink.CurveSize0 = 1.6
  1457. ChainLink.CurveSize1 = 1.6
  1458. ChainLink.FaceCamera = true
  1459. ChainLink.Transparency = NumberSequence.new(0)
  1460. local A = IT("Attachment",Torso)
  1461. A.Position = VT(1.3,-0.85,0)
  1462. A.Orientation = VT(-0.098, -89.999, 0.227)
  1463. local B = IT("Attachment",Torso)
  1464. B.Position = VT(-1,2,0)
  1465. B.Orientation = VT(-88.911, -68.808, 158.782)
  1466. local ChainLink = IT("Beam",Torso)
  1467. ChainLink.Texture = "rbxassetid://73042633"
  1468. ChainLink.Color = ColorSequence.new(C3(0,1,0))
  1469. ChainLink.TextureSpeed = 1
  1470. ChainLink.FaceCamera = true
  1471. ChainLink.Width0 = 1
  1472. ChainLink.Width1 = 1
  1473. ChainLink.TextureLength = 3
  1474. ChainLink.Attachment0 = A
  1475. ChainLink.Attachment1 = B
  1476. ChainLink.CurveSize0 = 1.3
  1477. ChainLink.CurveSize1 = 1.3
  1478. ChainLink.FaceCamera = true
  1479. ChainLink.Transparency = NumberSequence.new(0)
  1480. local ChainLink = IT("Beam",Torso)
  1481. ChainLink.Texture = "rbxassetid://73042633"
  1482. ChainLink.Color = ColorSequence.new(C3(0,1,0))
  1483. ChainLink.TextureSpeed = 1
  1484. ChainLink.FaceCamera = true
  1485. ChainLink.Width0 = 1
  1486. ChainLink.Width1 = 1
  1487. ChainLink.TextureLength = 3
  1488. ChainLink.Attachment0 = B
  1489. ChainLink.Attachment1 = A
  1490. ChainLink.CurveSize0 = 1.3
  1491. ChainLink.CurveSize1 = 1.3
  1492. ChainLink.FaceCamera = true
  1493. ChainLink.Transparency = NumberSequence.new(0)
  1494.  
  1495. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1496. function ParticleEmitter(Table)
  1497. local PRTCL = Particle:Clone()
  1498. local Speed = Table.Speed or 5
  1499. local Drag = Table.Drag or 0
  1500. local Size1 = Table.Size1 or 1
  1501. local Size2 = Table.Size2 or 5
  1502. local Lifetime1 = Table.Lifetime1 or 1
  1503. local Lifetime2 = Table.Lifetime2 or 1.5
  1504. local Parent = Table.Parent or Torso
  1505. local Emit = Table.Emit or 100
  1506. local Offset = Table.Offset or 360
  1507. local Acel = Table.Acel or VT(0,0,0)
  1508. local Enabled = Table.Enabled or false
  1509. PRTCL.Parent = Parent
  1510. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1511. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1512. PRTCL.Speed = NumberRange.new(Speed)
  1513. PRTCL.VelocitySpread = Offset
  1514. PRTCL.Drag = Drag
  1515. PRTCL.Acceleration = Acel
  1516. if Enabled == false then
  1517. PRTCL:Emit(Emit)
  1518. Debris:AddItem(PRTCL,Lifetime2)
  1519. else
  1520. PRTCL.Enabled = true
  1521. end
  1522. return PRTCL
  1523. end
  1524.  
  1525. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1526. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1527. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1528. MakeForm(Part,"Wedge")
  1529. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1530. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1531. MakeForm(Part,"Wedge")
  1532. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1533. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1534. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1535. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1536. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1537. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1538. MakeForm(Part,"Cyl")
  1539. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1540. for i = 1, 8 do
  1541. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1542. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1543. end
  1544. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1545. MakeForm(Part,"Cyl")
  1546. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1547. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1548. MakeForm(Part,"Ball")
  1549. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1550. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1551. MakeForm(Part,"Wedge")
  1552. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1553. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1554. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1555. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1556. MakeForm(Part,"Cyl")
  1557. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1558. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1559. MakeForm(Part,"Cyl")
  1560. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1561. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1562. MakeForm(Part,"Cyl")
  1563. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1564. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1565. MakeForm(Part,"Wedge")
  1566. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1567. local LASTPART = Handle
  1568. for i = 1, 10 do
  1569. if LASTPART == Handle then
  1570. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1571. LASTPART = Part
  1572. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1573. else
  1574. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1575. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1576. LASTPART = Part
  1577. end
  1578. end
  1579.  
  1580. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1581. MakeForm(Barrel,"Cyl")
  1582. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1583. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1584. MakeForm(Part,"Cyl")
  1585. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1586. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1587. MakeForm(Part,"Wedge")
  1588. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1589. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1590. MakeForm(Hole,"Cyl")
  1591. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1592. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1593. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1594. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1595. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1596. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1597. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1598. coroutine.resume(coroutine.create(function()
  1599. while wait() do
  1600. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1601. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1602. end
  1603. end))
  1604.  
  1605. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.3, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.4, Parent = EYE2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1606. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1607. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1608.  
  1609. for _, c in pairs(Weapon:GetDescendants()) do
  1610. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1611. c.Material = "Glass"
  1612. c.Color = C3(0,0,0)
  1613. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1614. c.Color = C3(0,0.2,0)
  1615. c.Material = "Neon"
  1616. end
  1617. end
  1618.  
  1619. Weapon.Parent = Character
  1620. for _, c in pairs(Weapon:GetChildren()) do
  1621. if c.ClassName == "Part" then
  1622. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1623. end
  1624. end
  1625.  
  1626. local SKILLTEXTCOLOR = C3(0,0.2,0)
  1627. local SKILLFONT = "Antique"
  1628. local SKILLTEXTSIZE = 7
  1629.  
  1630. Humanoid.Died:connect(function()
  1631. ATTACK = true
  1632. end)
  1633.  
  1634. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1635. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1636. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1637. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1638. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1639. ]]
  1640. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1641. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1642. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1643. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1644. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1645. ]]
  1646. function printbye(Name)
  1647. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  1648. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1649. end
  1650.  
  1651. workspace.ChildAdded:connect(function(instance)
  1652. for BANISH = 1, #TOBANISH do
  1653. if TOBANISH[BANISH] ~= nil then
  1654. if instance.Name == TOBANISH[BANISH] then
  1655. coroutine.resume(coroutine.create(function()
  1656. printbye(instance.Name)
  1657. instance:ClearAllChildren()
  1658. Debris:AddItem(instance,0.0005)
  1659. end))
  1660. end
  1661. end
  1662. end
  1663. end)
  1664.  
  1665. --//=================================\\
  1666. --|| DAMAGING
  1667. --\\=================================//
  1668.  
  1669. function Banish(Foe)
  1670. if Foe then
  1671. coroutine.resume(coroutine.create(function()
  1672. --if game.Players:FindFirstChild(Foe.Name) then
  1673. table.insert(TOBANISH,Foe.Name)
  1674. printbye(Foe.Name)
  1675. --end
  1676. Foe.Archivable = true
  1677. local CLONE = Foe:Clone()
  1678. Foe:Destroy()
  1679. CLONE.Parent = Effects
  1680. CLONE:BreakJoints()
  1681. local MATERIALS = {"Glass","Neon"}
  1682. for _, c in pairs(CLONE:GetDescendants()) do
  1683. if c:IsA("BasePart") then
  1684. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1685. CreateSound(340722848, c, 10, 1, false)
  1686. end
  1687. c.Anchored = true
  1688. c.Transparency = c.Transparency + 0.2
  1689. c.Material = MATERIALS[MRANDOM(1,2)]
  1690. c.Color = C3(0,0.2,0)
  1691. if c.ClassName == "MeshPart" then
  1692. c.TextureID = ""
  1693. end
  1694. if c:FindFirstChildOfClass("SpecialMesh") then
  1695. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1696. end
  1697. if c:FindFirstChildOfClass("Decal") then
  1698. c:FindFirstChildOfClass("Decal"):remove()
  1699. end
  1700. c.Name = "Banished"
  1701. c.CanCollide = false
  1702. else
  1703. c:remove()
  1704. end
  1705. end
  1706. local A = false
  1707. for i = 1, 35 do
  1708. if A == false then
  1709. A = true
  1710. elseif A == true then
  1711. A = false
  1712. end
  1713. for _, c in pairs(CLONE:GetDescendants()) do
  1714. if c:IsA("BasePart") then
  1715. c.Anchored = true
  1716. c.Material = MATERIALS[MRANDOM(1,2)]
  1717. c.Transparency = c.Transparency + 0.8/35
  1718. if A == false then
  1719. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1720. elseif A == true then
  1721. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1722. end
  1723. end
  1724. end
  1725. Swait()
  1726. end
  1727. CLONE:remove()
  1728. end))
  1729. end
  1730. end
  1731.  
  1732. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1733. local CHILDREN = workspace:GetDescendants()
  1734. for index, CHILD in pairs(CHILDREN) do
  1735. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1736. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1737. if HUM then
  1738. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1739. if TORSO then
  1740. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1741. if ISBANISH == true then
  1742. Banish(CHILD)
  1743. else
  1744. if ISBANISH == "Gravity" then
  1745. HUM.PlatformStand = true
  1746. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1747. local grav = Instance.new("BodyPosition",TORSO)
  1748. grav.D = 15
  1749. grav.P = 20000
  1750. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1751. grav.position = TORSO.Position
  1752. grav.Name = "V3BanishForce"..Player.Name
  1753. else
  1754. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1755. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1756. end
  1757. else
  1758. HUM.PlatformStand = false
  1759. end
  1760. end
  1761. elseif ISBANISH == "Gravity" then
  1762. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1763. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1764. HUM.PlatformStand = false
  1765. end
  1766. end
  1767. end
  1768. end
  1769. end
  1770. end
  1771. end
  1772.  
  1773. local EyeSizes={
  1774. NumberSequenceKeypoint.new(0,1,0),
  1775. NumberSequenceKeypoint.new(1,0,0)
  1776. }
  1777. local EyeTrans={
  1778. NumberSequenceKeypoint.new(0,0.8,0),
  1779. NumberSequenceKeypoint.new(1,1,0)
  1780. }
  1781. local PE=Instance.new("ParticleEmitter",nil)
  1782. PE.LightEmission=.8
  1783. PE.Color = ColorSequence.new(BRICKC("Dark green").Color)
  1784. PE.Size=NumberSequence.new(EyeSizes)
  1785. PE.Transparency=NumberSequence.new(EyeTrans)
  1786. PE.Lifetime=NumberRange.new(0.35,1.5)
  1787. PE.Rotation=NumberRange.new(0,360)
  1788. PE.Rate=999
  1789. PE.VelocitySpread = 10000
  1790. PE.Acceleration = Vector3.new(0,0,0)
  1791. PE.Drag = 5
  1792. PE.Speed = NumberRange.new(0,0,0)
  1793. PE.Texture="http://www.roblox.com/asset/?id=1351966707"
  1794. PE.ZOffset = -0
  1795. PE.Name = "PE"
  1796. PE.Enabled = false
  1797.  
  1798. function particles(art)
  1799. local PARTICLES = PE:Clone()
  1800. PARTICLES.Parent = art
  1801. end
  1802.  
  1803. function ManualDamage(Humanoid,Damage,TorsoPart)
  1804. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1805. defence.Name = ("HitBy"..Player.Name)
  1806. game:GetService("Debris"):AddItem(defence, 0.001)
  1807. Damage = Damage * DAMAGEMULTIPLIER
  1808. if Humanoid.Health ~= 0 then
  1809. local CritChance = MRANDOM(1,100)
  1810. if Damage > Humanoid.Health then
  1811. Damage = math.ceil(Humanoid.Health)
  1812. if Damage == 0 then
  1813. Damage = 0.1
  1814. end
  1815. end
  1816. Humanoid.Health = Humanoid.Health - Damage
  1817. end
  1818. end
  1819.  
  1820. function ManualAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1821. local CHILDREN = workspace:GetDescendants()
  1822. for index, CHILD in pairs(CHILDREN) do
  1823. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1824. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1825. if HUM then
  1826. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1827. if TORSO then
  1828. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1829. if INSTAKILL == true then
  1830. CHILD:BreakJoints()
  1831. else
  1832. local DMG = MRANDOM(MINDMG,MAXDMG)
  1833. ManualDamage(HUM,DMG,TORSO)
  1834. end
  1835. if FLING > 0 then
  1836. for _, c in pairs(CHILD:GetChildren()) do
  1837. if c:IsA("BasePart") then
  1838. local bv = Instance.new("BodyVelocity")
  1839. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1840. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1841. bv.Parent = c
  1842. Debris:AddItem(bv,0.05)
  1843. end
  1844. end
  1845. end
  1846. end
  1847. end
  1848. end
  1849. end
  1850. end
  1851. end
  1852.  
  1853. function KillChildren(v)
  1854. v:BreakJoints()
  1855. for _, c in pairs(v:GetChildren()) do
  1856. if c:IsA("BasePart") then
  1857. if c.Transparency < 1 then
  1858. if c:FindFirstChildOfClass("Decal") then
  1859. c:FindFirstChildOfClass("Decal"):remove()
  1860. end
  1861. particles(c)
  1862. c.PE.Enabled = true
  1863. c.Parent = Effects
  1864. c.CanCollide = false
  1865. c.Material = "Neon"
  1866. c.Color = C3(1,0,0)
  1867. c.Transparency = 1
  1868. local grav = Instance.new("BodyPosition",c)
  1869. grav.P = 20000
  1870. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1871. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  1872. grav.Name = "GravityForce"
  1873. coroutine.resume(coroutine.create(function()
  1874. for i = 1, 20 do
  1875. Swait()
  1876. c.Transparency = c.Transparency + 1/20
  1877. end
  1878. c.PE.Enabled = false
  1879. Debris:AddItem(c,2)
  1880. end))
  1881. end
  1882. end
  1883. end
  1884. end
  1885.  
  1886. function SmiteAoE(POSITION,RANGE)
  1887. local CHILDREN = workspace:GetDescendants()
  1888. for index, CHILD in pairs(CHILDREN) do
  1889. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1890. local LISTED = false
  1891. for LIST = 1, #WHITELIST do
  1892. if WHITELIST[LIST] ~= nil then
  1893. if CHILD.Name == WHITELIST[LIST] then
  1894. LISTED = true
  1895. end
  1896. end
  1897. end
  1898. if LISTED == false then
  1899. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1900. if HUM then
  1901. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1902. if TORSO then
  1903. if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
  1904. KillChildren(CHILD)
  1905. end
  1906. end
  1907. end
  1908. end
  1909. end
  1910. end
  1911. end
  1912.  
  1913. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1914. if hit.Parent == nil then
  1915. return
  1916. end
  1917. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1918. for _, v in pairs(hit.Parent:children()) do
  1919. if v:IsA("Humanoid") then
  1920. h = v
  1921. end
  1922. end
  1923. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1924. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1925. return
  1926. end
  1927. local c = Create("ObjectValue")({
  1928. Name = "creator",
  1929. Value = game:GetService("Players")Goldenknight577,
  1930. Parent = h
  1931. })
  1932. game:GetService("Debris"):AddItem(c, 0.5)
  1933. if HitSound ~= nil and HitPitch ~= nil then
  1934. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1935. end
  1936. local Damage = math.random(minim, maxim)
  1937. local blocked = false
  1938. local block = hit.Parent:findFirstChild("Block")
  1939. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1940. blocked = true
  1941. block.Value = block.Value - 1
  1942. print(block.Value)
  1943. end
  1944. if blocked == false then
  1945. HitHealth = h.Health
  1946. h.MaxHealth = 100
  1947. h.Health = h.Health - Damage
  1948. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1949. print("gained kill")
  1950. end
  1951. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1952. else
  1953. h.Health = h.Health - Damage / 2
  1954. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1955. end
  1956. if Type == "Knockdown" then
  1957. local hum = hit.Parent.Humanoid
  1958. hum.PlatformStand = true
  1959. coroutine.resume(coroutine.create(function(HHumanoid)
  1960. Swait(1)
  1961. HHumanoid.PlatformStand = false
  1962. end), hum)
  1963. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1964. local bodvol = Create("BodyVelocity")({
  1965. velocity = angle * knockback,
  1966. P = 5000,
  1967. maxForce = Vector3.new(8000, 8000, 8000),
  1968. Parent = hit
  1969. })
  1970. local rl = Create("BodyAngularVelocity")({
  1971. P = 3000,
  1972. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1973. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1974. Parent = hit
  1975. })
  1976. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1977. game:GetService("Debris"):AddItem(rl, 0.5)
  1978. elseif Type == "Normal" then
  1979. local vp = Create("BodyVelocity")({
  1980. P = 500,
  1981. maxForce = Vector3.new(math.huge, 0, math.huge),
  1982. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1983. })
  1984. if knockback > 0 then
  1985. vp.Parent = hit.Parent.Head
  1986. end
  1987. game:GetService("Debris"):AddItem(vp, 0.5)
  1988. elseif Type == "Up" then
  1989. local bodyVelocity = Create("BodyVelocity")({
  1990. velocity = Vector3.new(0, 20, 0),
  1991. P = 5000,
  1992. maxForce = Vector3.new(8000, 8000, 8000),
  1993. Parent = hit
  1994. })
  1995. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1996. local bodyVelocity = Create("BodyVelocity")({
  1997. velocity = Vector3.new(0, 20, 0),
  1998. P = 5000,
  1999. maxForce = Vector3.new(8000, 8000, 8000),
  2000. Parent = hit
  2001. })
  2002. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2003. elseif Type == "Leech" then
  2004. local hum = hit.Parent.Humanoid
  2005. if hum ~= nil then
  2006. for i = 0, 2 do
  2007. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  2008. end
  2009. Humanoid.Health = Humanoid.Health + 10
  2010. end
  2011. elseif Type == "UpKnock" then
  2012. local hum = hit.Parent.Humanoid
  2013. hum.PlatformStand = true
  2014. if hum ~= nil then
  2015. hitr = true
  2016. end
  2017. coroutine.resume(coroutine.create(function(HHumanoid)
  2018. Swait(5)
  2019. HHumanoid.PlatformStand = false
  2020. hitr = false
  2021. end), hum)
  2022. local bodyVelocity = Create("BodyVelocity")({
  2023. velocity = Vector3.new(0, 20, 0),
  2024. P = 5000,
  2025. maxForce = Vector3.new(8000, 8000, 8000),
  2026. Parent = hit
  2027. })
  2028. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2029. local bodyVelocity = Create("BodyVelocity")({
  2030. velocity = Vector3.new(0, 20, 0),
  2031. P = 5000,
  2032. maxForce = Vector3.new(8000, 8000, 8000),
  2033. Parent = hit
  2034. })
  2035. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2036. elseif Type == "Snare" then
  2037. local bp = Create("BodyPosition")({
  2038. P = 2000,
  2039. D = 100,
  2040. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2041. position = hit.Parent.Torso.Position,
  2042. Parent = hit.Parent.Torso
  2043. })
  2044. game:GetService("Debris"):AddItem(bp, 1)
  2045. elseif Type == "Slashnare" then
  2046. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  2047. for i = 1, math.random(4, 5) do
  2048. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  2049. end
  2050. local bp = Create("BodyPosition")({
  2051. P = 2000,
  2052. D = 100,
  2053. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2054. position = hit.Parent.Torso.Position,
  2055. Parent = hit.Parent.Torso
  2056. })
  2057. game:GetService("Debris"):AddItem(bp, 1)
  2058. elseif Type == "Spike" then
  2059. CreateBigIceSword(hit.Parent.Torso.CFrame)
  2060. local bp = Create("BodyPosition")({
  2061. P = 2000,
  2062. D = 100,
  2063. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2064. position = hit.Parent.Torso.Position,
  2065. Parent = hit.Parent.Torso
  2066. })
  2067. game:GetService("Debris"):AddItem(bp, 1)
  2068. elseif Type == "Freeze" then
  2069. local BodPos = Create("BodyPosition")({
  2070. P = 50000,
  2071. D = 1000,
  2072. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2073. position = hit.Parent.Torso.Position,
  2074. Parent = hit.Parent.Torso
  2075. })
  2076. local BodGy = Create("BodyGyro")({
  2077. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2078. P = 20000,
  2079. Parent = hit.Parent.Torso,
  2080. cframe = hit.Parent.Torso.CFrame
  2081. })
  2082. hit.Parent.Torso.Anchored = true
  2083. coroutine.resume(coroutine.create(function(Part)
  2084. Swait(1.5)
  2085. Part.Anchored = false
  2086. end), hit.Parent.Torso)
  2087. game:GetService("Debris"):AddItem(BodPos, 3)
  2088. game:GetService("Debris"):AddItem(BodGy, 3)
  2089. end
  2090. local debounce = Create("BoolValue")({
  2091. Name = "DebounceHit",
  2092. Parent = hit.Parent,
  2093. Value = true
  2094. })
  2095. game:GetService("Debris"):AddItem(debounce, Delay)
  2096. c = Instance.new("ObjectValue")
  2097. c.Name = "creator"
  2098. c.Value = Player
  2099. c.Parent = h
  2100. game:GetService("Debris"):AddItem(c, 0.5)
  2101. end
  2102. end
  2103. function ShowDamage(Pos, Text, Time, Color)
  2104. local Rate = 0.03333333333333333
  2105. local Pos = Pos or Vector3.new(0, 0, 0)
  2106. local Text = Text or ""
  2107. local Time = Time or 2
  2108. local Color = Color or Color3.new(1, 0, 1)
  2109. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2110. EffectPart.Anchored = true
  2111. local BillboardGui = Create("BillboardGui")({
  2112. Size = UDim2.new(3, 0, 3, 0),
  2113. Adornee = EffectPart,
  2114. Parent = EffectPart
  2115. })
  2116. local TextLabel = Create("TextLabel")({
  2117. BackgroundTransparency = 1,
  2118. Size = UDim2.new(1, 0, 1, 0),
  2119. Text = Text,
  2120. TextColor3 = Color,
  2121. TextScaled = true,
  2122. Font = Enum.Font.ArialBold,
  2123. Parent = BillboardGui
  2124. })
  2125. game.Debris:AddItem(EffectPart, Time + 0.1)
  2126. EffectPart.Parent = game:GetService("Workspace")
  2127. delay(0, function()
  2128. local Frames = Time / Rate
  2129. for Frame = 1, Frames do
  2130. wait(Rate)
  2131. local Percent = Frame / Frames
  2132. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2133. TextLabel.TextTransparency = Percent
  2134. end
  2135. if EffectPart and EffectPart.Parent then
  2136. EffectPart:Destroy()
  2137. end
  2138. end)
  2139. end
  2140. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2141. for _, c in pairs(workspace:children()) do
  2142. local hum = c:findFirstChildOfClass("Humanoid")
  2143. if hum ~= nil then
  2144. local head = c:findFirstChild("Head")
  2145. if head ~= nil then
  2146. local targ = head.Position - Part.Position
  2147. local mag = targ.magnitude
  2148. if magni >= mag and c.Name ~= Player.Name then
  2149. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2150. end
  2151. end
  2152. end
  2153. end
  2154. end
  2155.  
  2156. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  2157. local type = type
  2158. local rng = Instance.new("Part", char)
  2159. rng.Anchored = true
  2160. rng.BrickColor = color
  2161. rng.Color = color3
  2162. rng.CanCollide = false
  2163. rng.FormFactor = 3
  2164. rng.Name = "Ring"
  2165. rng.Material = "Neon"
  2166. rng.Size = Vector3.new(1, 1, 1)
  2167. rng.Transparency = 0
  2168. rng.TopSurface = 0
  2169. rng.BottomSurface = 0
  2170. rng.CFrame = pos
  2171. local rngm = Instance.new("SpecialMesh", rng)
  2172. rngm.MeshType = "Brick"
  2173. rngm.Scale = scale
  2174. local scaler2 = 1
  2175. local scaler2b = 1
  2176. local scaler2c = 1
  2177. if type == "Add" then
  2178. scaler2 = 1*value
  2179. scaler2b = 1*value2
  2180. scaler2c = 1*value3
  2181. elseif type == "Divide" then
  2182. scaler2 = 1/value
  2183. scaler2b = 1/value2
  2184. scaler2c = 1/value3
  2185. end
  2186. coroutine.resume(coroutine.create(function()
  2187. for i = 0,10/bonuspeed,0.1 do
  2188. swait()
  2189. if type == "Add" then
  2190. scaler2 = scaler2 - 0.01*value/bonuspeed
  2191. scaler2b = scaler2b - 0.01*value/bonuspeed
  2192. scaler2c = scaler2c - 0.01*value/bonuspeed
  2193. elseif type == "Divide" then
  2194. scaler2 = scaler2 - 0.01/value*bonuspeed
  2195. scaler2b = scaler2b - 0.01/value*bonuspeed
  2196. scaler2c = scaler2c - 0.01/value*bonuspeed
  2197. end
  2198. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2199. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2200. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2201. end
  2202. rng:Destroy()
  2203. end))
  2204. end
  2205.  
  2206. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  2207. PLAYMAINANIM = false
  2208. if WhichPose == "Cast1" then
  2209. for i=0, Time, 0.1 / Animation_Speed do
  2210. Swait()
  2211. if Magic == true then
  2212. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2213. end
  2214. if Gyro ~= nil and Gyro ~= false then
  2215. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2216. end
  2217. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  2218. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  2219. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2220. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2221. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2222. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2223. end
  2224. elseif WhichPose == "Cast2" then
  2225. for i=0, Time, 0.1 / Animation_Speed do
  2226. Swait()
  2227. if Magic == true then
  2228. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2229. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2230. end
  2231. if Gyro ~= nil and Gyro ~= false then
  2232. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2233. end
  2234. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2235. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  2236. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2237. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2238. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2239. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2240. end
  2241. elseif WhichPose == "RightArmUp" then
  2242. for i=0, Time, 0.1 / Animation_Speed do
  2243. Swait()
  2244. if Magic == true then
  2245. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2246. end
  2247. if Gyro ~= nil and Gyro ~= false then
  2248. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2249. end
  2250. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  2251. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2252. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2253. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2254. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2255. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2256. end
  2257. elseif WhichPose == "Taunt" then
  2258. for i=0, Time, 0.1 / Animation_Speed do
  2259. Swait()
  2260. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2261. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  2262. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2263. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2264. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2265. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2266. end
  2267. HATWELD.Part0 = RightArm
  2268. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  2269. CreateSound(221057812,Torso,10,1,false)
  2270. for i=0, Time*2, 0.1 / Animation_Speed do
  2271. Swait()
  2272. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2273. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  2274. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2275. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2276. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2277. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2278. end
  2279. for i=0, Time, 0.1 / Animation_Speed do
  2280. Swait()
  2281. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  2282. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  2283. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2284. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2285. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2286. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2287. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  2288. end
  2289. HATWELD.Part0 = Head
  2290. HATWELD.C0 = CF(0,0.35,0)
  2291. elseif WhichPose == "Prepare key" then
  2292. for i=0, Time, 0.1 / Animation_Speed do
  2293. Swait()
  2294. if Gyro ~= nil and Gyro ~= false then
  2295. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  2296. end
  2297. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  2298. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  2299. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2300. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2301. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2302. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2303. end
  2304. elseif WhichPose == "Turn key" then
  2305. for i=0, Time, 0.1 / Animation_Speed do
  2306. Swait()
  2307. if Gyro ~= nil and Gyro ~= false then
  2308. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  2309. end
  2310. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  2311. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  2312. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  2313. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  2314. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  2315. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  2316. end
  2317. end
  2318. PLAYMAINANIM = true
  2319. end
  2320.  
  2321. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  2322. local CHILDREN = workspace:GetDescendants()
  2323. for index, CHILD in pairs(CHILDREN) do
  2324. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2325. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2326. if HUM then
  2327. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2328. if TORSO then
  2329. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  2330. CHILD:BreakJoints()
  2331. if FLING ~= 0 then
  2332. for _, c in pairs(CHILD:GetChildren()) do
  2333. if c:IsA("BasePart") and c.Transparency == 0 then
  2334. if BURN == true then
  2335. Fire(c)
  2336. end
  2337. local bv = Instance.new("BodyVelocity")
  2338. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2339. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  2340. bv.Parent = c
  2341. Debris:AddItem(bv,0.05)
  2342. end
  2343. end
  2344. end
  2345. end
  2346. end
  2347. end
  2348. end
  2349. end
  2350. end
  2351.  
  2352. function recurse(root,callback,i)
  2353. i= i or 0
  2354. for _,v in pairs(root:GetChildren()) do
  2355. i = i + 1
  2356. callback(i,v)
  2357.  
  2358. if #v:GetChildren() > 0 then
  2359. i = recurse(v,callback,i)
  2360. end
  2361. end
  2362.  
  2363. return i
  2364. end
  2365.  
  2366. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  2367. attachmentName = attachmentName.."RigAttachment"
  2368. local constraint = Instance.new(className.."Constraint")
  2369. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  2370. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  2371. constraint.Name = "RagdollConstraint"..part1.Name
  2372.  
  2373. for _,propertyData in next,properties or {} do
  2374. constraint[propertyData[1]] = propertyData[2]
  2375. end
  2376.  
  2377. constraint.Parent = character
  2378. end
  2379.  
  2380. function getAttachment0(character, attachmentName)
  2381. for _,child in next,character:GetChildren() do
  2382. local attachment = child:FindFirstChild(attachmentName)
  2383. if attachment then
  2384. return attachment
  2385. end
  2386. end
  2387. end
  2388.  
  2389. function ArtificialHitbox(Part)
  2390. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  2391. HITBOX.CanCollide = true
  2392. HITBOX.CFrame = Part.CFrame
  2393. weldBetween(Part,HITBOX)
  2394. end
  2395.  
  2396. function R15Ragdoll(character,KeepArms)
  2397. character:BreakJoints()
  2398. coroutine.resume(coroutine.create(function()
  2399. recurse(character, function(_,v)
  2400. if v:IsA("Attachment") then
  2401. v.Axis = Vector3.new(0, 1, 0)
  2402. v.SecondaryAxis = Vector3.new(0, 0, 1)
  2403. v.Rotation = Vector3.new(0, 0, 0)
  2404. end
  2405. end)
  2406. for _,child in next,character:GetChildren() do
  2407. if child:IsA("Accoutrement") then
  2408. for _,part in next,child:GetChildren() do
  2409. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  2410. local attachment1 = part:FindFirstChildOfClass("Attachment")
  2411. local attachment0 = getAttachment0(character,attachment1.Name)
  2412. if attachment0 and attachment1 then
  2413. local constraint = Instance.new("HingeConstraint")
  2414. constraint.Attachment0 = attachment0
  2415. constraint.Attachment1 = attachment1
  2416. constraint.LimitsEnabled = true
  2417. constraint.UpperAngle = 0
  2418. constraint.LowerAngle = 0
  2419. constraint.Parent = character
  2420. end
  2421. ArtificialHitbox(part)
  2422. elseif part.Name == "HumanoidRootPart" then
  2423. part:remove()
  2424. end
  2425. end
  2426. end
  2427. end
  2428.  
  2429. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  2430. {"LimitsEnabled",true};
  2431. {"UpperAngle",5};
  2432. })
  2433. if character:FindFirstChild("Head") then
  2434. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  2435. {"LimitsEnabled",true};
  2436. {"UpperAngle",15};
  2437. })
  2438. end
  2439.  
  2440. local handProperties = {
  2441. {"LimitsEnabled", true};
  2442. {"UpperAngle",0};
  2443. {"LowerAngle",0};
  2444. }
  2445. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  2446. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  2447.  
  2448. local shinProperties = {
  2449. {"LimitsEnabled", true};
  2450. {"UpperAngle", 0};
  2451. {"LowerAngle", -75};
  2452. }
  2453. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  2454. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  2455.  
  2456. local footProperties = {
  2457. {"LimitsEnabled", true};
  2458. {"UpperAngle", 15};
  2459. {"LowerAngle", -45};
  2460. }
  2461. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  2462. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  2463. if KeepArms == true then
  2464. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  2465. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  2466. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  2467. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  2468. end
  2469. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  2470. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  2471. Debris:AddItem(character,5)
  2472. end))
  2473. end
  2474.  
  2475. function Ragdoll(Character2,CharTorso,KeepArms)
  2476. coroutine.resume(coroutine.create(function()
  2477. Character2:BreakJoints()
  2478. local hum = Character2:findFirstChild("Humanoid")
  2479. hum:remove()
  2480. local function Scan(ch)
  2481. local e
  2482. for e = 1,#ch do
  2483. Scan(ch[e]:GetChildren())
  2484. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  2485. ch[e]:remove()
  2486. end
  2487. end
  2488. end
  2489. local NEWHUM = IT("Humanoid")
  2490. NEWHUM.Name = "Corpse"
  2491. NEWHUM.Health = 0
  2492. NEWHUM.MaxHealth = 0
  2493. NEWHUM.PlatformStand = true
  2494. NEWHUM.Parent = Character2
  2495. NEWHUM.DisplayDistanceType = "None"
  2496.  
  2497. local ch = Character2:GetChildren()
  2498. local i
  2499. for i = 1,#ch do
  2500. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  2501. ch[i]:remove()
  2502. end
  2503. end
  2504.  
  2505. local Torso2 = Character2.Torso
  2506. local movevector = Vector3.new()
  2507.  
  2508. if Torso2 then
  2509. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  2510. local Head = Character2:FindFirstChild("Head")
  2511. if Head then
  2512. local Neck = Instance.new("Weld")
  2513. Neck.Name = "Neck"
  2514. Neck.Part0 = Torso2
  2515. Neck.Part1 = Head
  2516. Neck.C0 = CFrame.new(0, 1.5, 0)
  2517. Neck.C1 = CFrame.new()
  2518. Neck.Parent = Torso2
  2519.  
  2520. end
  2521. local Limb = Character2:FindFirstChild("Right Arm")
  2522. if Limb and KeepArms == true then
  2523.  
  2524. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  2525. local Joint = Instance.new("Glue")
  2526. Joint.Name = "RightShoulder"
  2527. Joint.Part0 = Torso2
  2528. Joint.Part1 = Limb
  2529. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2530. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2531. Joint.Parent = Torso2
  2532.  
  2533. local B = Instance.new("Part")
  2534. B.TopSurface = 0
  2535. B.BottomSurface = 0
  2536. B.formFactor = "Symmetric"
  2537. B.Size = Vector3.new(1, 1, 1)
  2538. B.Transparency = 1
  2539. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2540. B.Parent = Character2
  2541. local W = Instance.new("Weld")
  2542. W.Part0 = Limb
  2543. W.Part1 = B
  2544. W.C0 = CFrame.new(0, -0.5, 0)
  2545. W.Parent = Limb
  2546.  
  2547. end
  2548. local Limb = Character2:FindFirstChild("Left Arm")
  2549. if Limb and KeepArms == true then
  2550.  
  2551. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  2552. local Joint = Instance.new("Glue")
  2553. Joint.Name = "LeftShoulder"
  2554. Joint.Part0 = Torso2
  2555. Joint.Part1 = Limb
  2556. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2557. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2558. Joint.Parent = Torso2
  2559.  
  2560. local B = Instance.new("Part")
  2561. B.TopSurface = 0
  2562. B.BottomSurface = 0
  2563. B.formFactor = "Symmetric"
  2564. B.Size = Vector3.new(1, 1, 1)
  2565. B.Transparency = 1
  2566. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2567. B.Parent = Character2
  2568. local W = Instance.new("Weld")
  2569. W.Part0 = Limb
  2570. W.Part1 = B
  2571. W.C0 = CFrame.new(0, -0.5, 0)
  2572. W.Parent = Limb
  2573.  
  2574. end
  2575. local Limb = Character2:FindFirstChild("Right Leg")
  2576. if Limb then
  2577.  
  2578. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  2579. local Joint = Instance.new("Glue")
  2580. Joint.Name = "RightHip"
  2581. Joint.Part0 = Torso2
  2582. Joint.Part1 = Limb
  2583. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2584. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2585. Joint.Parent = Torso2
  2586.  
  2587. local B = Instance.new("Part")
  2588. B.TopSurface = 0
  2589. B.BottomSurface = 0
  2590. B.formFactor = "Symmetric"
  2591. B.Size = Vector3.new(1, 1, 1)
  2592. B.Transparency = 1
  2593. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2594. B.Parent = Character2
  2595. local W = Instance.new("Weld")
  2596. W.Part0 = Limb
  2597. W.Part1 = B
  2598. W.C0 = CFrame.new(0, -0.5, 0)
  2599. W.Parent = Limb
  2600.  
  2601. end
  2602. local Limb = Character2:FindFirstChild("Left Leg")
  2603. if Limb then
  2604.  
  2605. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  2606. local Joint = Instance.new("Glue")
  2607. Joint.Name = "LeftHip"
  2608. Joint.Part0 = Torso2
  2609. Joint.Part1 = Limb
  2610. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2611. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2612. Joint.Parent = Torso2
  2613.  
  2614. local B = Instance.new("Part")
  2615. B.TopSurface = 0
  2616. B.BottomSurface = 0
  2617. B.formFactor = "Symmetric"
  2618. B.Size = Vector3.new(1, 1, 1)
  2619. B.Transparency = 1
  2620. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  2621. B.Parent = Character2
  2622. local W = Instance.new("Weld")
  2623. W.Part0 = Limb
  2624. W.Part1 = B
  2625. W.C0 = CFrame.new(0, -0.5, 0)
  2626. W.Parent = Limb
  2627.  
  2628. end
  2629. --[
  2630. local Bar = Instance.new("Part")
  2631. Bar.TopSurface = 0
  2632. Bar.BottomSurface = 0
  2633. Bar.formFactor = "Symmetric"
  2634. Bar.Size = Vector3.new(1, 1, 1)
  2635. Bar.Transparency = 1
  2636. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  2637. Bar.Parent = Character2
  2638. local Weld = Instance.new("Weld")
  2639. Weld.Part0 = Torso2
  2640. Weld.Part1 = Bar
  2641. Weld.C0 = CFrame.new(0, 0.5, 0)
  2642. Weld.Parent = Torso2
  2643. --]]
  2644. end
  2645. Character2.Parent = workspace
  2646. Debris:AddItem(Character2,5)
  2647.  
  2648. return Character2,Torso2
  2649. end))
  2650. end
  2651.  
  2652. --//=================================\\
  2653. --|| ATTACK FUNCTIONS AND STUFF
  2654. --\\=================================//
  2655.  
  2656. function LimbRip()
  2657. ATTACK = true
  2658. Rooted = false
  2659. local TARGET = nil
  2660. local ROOT = nil
  2661. local HUMAN = nil
  2662. local DIST = 4
  2663. Speed = 12
  2664. for i=0, 1, 0.1 / Animation_Speed do
  2665. Swait()
  2666. local CHILDREN = workspace:GetDescendants()
  2667. for index, CHILD in pairs(CHILDREN) do
  2668. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2669. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2670. if HUM then
  2671. local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2672. if TORSO and HUM.Health > 0 then
  2673. if (TORSO.Position - RightArm.Position).Magnitude <= DIST then
  2674. DIST = (TORSO.Position - RightArm.Position).Magnitude
  2675. ROOT = TORSO
  2676. HUMAN = HUM
  2677. TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2678. end
  2679. end
  2680. end
  2681. end
  2682. end
  2683. if ROOT then
  2684. break
  2685. end
  2686. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2687. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed)
  2688. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2689. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2690. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2691. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2692. end
  2693. Speed = 16
  2694. if ROOT then
  2695. CreateSound(305685800,Torso,5,1.3,false)
  2696. Rooted = true
  2697. local GORED = false
  2698. coroutine.resume(coroutine.create(function()
  2699. repeat
  2700. Swait()
  2701. ROOT.Anchored = true
  2702. until GORED == true
  2703. ROOT.Anchored = false
  2704. end))
  2705. RootPart.CFrame = ROOT.CFrame*CF(0,0,2.25)
  2706. if TARGET.Name == "Torso" then
  2707. local RARM = TARGET.Parent:FindFirstChild("Right Arm")
  2708. local LARM = TARGET.Parent:FindFirstChild("Left Arm")
  2709. if RARM and LARM then
  2710. for i=0, 1, 0.1 / Animation_Speed do
  2711. Swait()
  2712. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2713. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2714. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2715. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2716. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2717. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2718. end
  2719. for _, c in pairs(TARGET.Parent:GetDescendants()) do
  2720. if c:IsA("JointInstance") then
  2721. if c.Part1 == RARM or c.Part1 == LARM or c.Part0 == RARM or c.Part0 == LARM then
  2722. c:remove()
  2723. end
  2724. end
  2725. end
  2726. CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false)
  2727. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2728. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2729. for i=0, 1, 0.1 / Animation_Speed do
  2730. Swait()
  2731. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2732. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2733. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2734. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2735. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2736. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2737. end
  2738. for i=0, 1, 0.1 / Animation_Speed do
  2739. Swait()
  2740. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed)
  2741. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
  2742. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2743. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2744. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed)
  2745. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2746. end
  2747. for i=0, 0.1, 0.1 / Animation_Speed do
  2748. Swait()
  2749. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed)
  2750. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
  2751. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2752. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2753. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed)
  2754. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2755. end
  2756. GORED = true
  2757. Ragdoll(TARGET.Parent,Torso)
  2758. if ROOT.Name ~= "Torso" then
  2759. ROOT:remove()
  2760. end
  2761. local RGRAB = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2762. local LGRAB = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2763. local bv = Instance.new("BodyVelocity",TARGET)
  2764. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2765. bv.velocity = TARGET.CFrame.lookVector*75
  2766. Debris:AddItem(bv,0.05)
  2767. CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false)
  2768. for i=0, 0.5, 0.1 / Animation_Speed do
  2769. Swait()
  2770. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed)
  2771. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
  2772. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2773. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2774. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed)
  2775. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2776. end
  2777. for i=0, 1, 0.1 / Animation_Speed do
  2778. Swait()
  2779. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2780. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  2781. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed)
  2782. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.6 / Animation_Speed)
  2783. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2784. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2785. end
  2786. local HITBOX = CreatePart(3, RARM, "Metal", 0, 1, "Really black", "Part", RARM.Size, false)
  2787. HITBOX.CFrame = RARM.CFrame
  2788. HITBOX.CanCollide = true
  2789. weldBetween(RARM,HITBOX)
  2790. local HITBOX = CreatePart(3, LARM, "Metal", 0, 1, "Really black", "Part", RARM.Size, false)
  2791. HITBOX.CFrame = LARM.CFrame
  2792. HITBOX.CanCollide = true
  2793. weldBetween(LARM,HITBOX)
  2794. RGRAB:remove()
  2795. LGRAB:remove()
  2796. for i=0, 0.4, 0.1 / Animation_Speed do
  2797. Swait()
  2798. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2799. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  2800. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2801. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2802. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2803. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2804. end
  2805. end
  2806. elseif TARGET.Name == "UpperTorso" then
  2807. if TARGET.Parent:FindFirstChild("RightUpperArm") and TARGET.Parent:FindFirstChild("LeftUpperArm") then
  2808. for i=0, 0.3, 0.1 / Animation_Speed do
  2809. Swait()
  2810. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2811. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2812. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(140), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2813. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2814. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2815. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2816. end
  2817. local SAWBLADE = CreatePart(3, Weapon, "Neon", 0, 0.5, "Really red", "Part", VT(0,0,0),false)
  2818. local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  2819. local BLADE = true
  2820. CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(1,1,1), VT(0,0,0))
  2821. coroutine.resume(coroutine.create(function()
  2822. repeat
  2823. Swait()
  2824. WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25))
  2825. until BLADE == false
  2826. SAWBLADE:remove()
  2827. end))
  2828. CreateSound(1165167936, SAWBLADE, 2, 1, true)
  2829. for i=0, 1, 0.1 / Animation_Speed do
  2830. Swait()
  2831. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2832. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2833. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(140), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2834. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2835. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2836. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2837. end
  2838. for i=0, 3, 0.1 / Animation_Speed do
  2839. Swait()
  2840. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2841. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2842. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  2843. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2844. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2845. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2846. end
  2847. CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false)
  2848. TARGET.Parent:FindFirstChild("RightUpperArm").RightShoulder:remove()
  2849. for i=0, 1, 0.1 / Animation_Speed do
  2850. Swait()
  2851. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0.3) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed)
  2852. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed)
  2853. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2854. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2855. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2856. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2857. end
  2858. for i=0, 3, 0.1 / Animation_Speed do
  2859. Swait()
  2860. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed)
  2861. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed)
  2862. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  2863. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2864. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2865. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2866. end
  2867. CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false)
  2868. TARGET.Parent:FindFirstChild("LeftUpperArm").LeftShoulder:remove()
  2869. BLADE = false
  2870. for i=0, 0.5, 0.1 / Animation_Speed do
  2871. Swait()
  2872. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed)
  2873. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
  2874. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2875. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2876. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed)
  2877. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2878. end
  2879. for i=0, 0.1, 0.1 / Animation_Speed do
  2880. Swait()
  2881. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed)
  2882. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
  2883. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2884. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2885. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed)
  2886. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2887. end
  2888. GORED = true
  2889. TARGET.Parent:BreakJoints()
  2890. R15Ragdoll(TARGET.Parent)
  2891. if ROOT.Name ~= "Torso" then
  2892. ROOT:remove()
  2893. end
  2894. local bv = Instance.new("BodyVelocity",TARGET)
  2895. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2896. bv.velocity = TARGET.CFrame.lookVector*75
  2897. Debris:AddItem(bv,0.05)
  2898. CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false)
  2899. for i=0, 0.3, 0.1 / Animation_Speed do
  2900. Swait()
  2901. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed)
  2902. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed)
  2903. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2904. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2905. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed)
  2906. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2907. end
  2908. end
  2909. end
  2910. end
  2911. ATTACK = false
  2912. Rooted = false
  2913. end
  2914.  
  2915. function SHATTER()
  2916. ATTACK = true
  2917. Rooted = true
  2918. Cooldown2 = true
  2919. local MAINRUINCOLOR = BrickColor.new("Dark green")
  2920. for i=0, 0.6, 0.1 / Animation_Speed do
  2921. Swait()
  2922. WACKYEFFECT({Time = 10, EffectType = "Block", Size = VT(4,4,4), Size2 = VT(0,0,0), Transparency = 0.7, Transparency2 = 1, CFrame = Barrel.CFrame*CF(0,3,0) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0.2,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2923. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2924. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2925. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.9, 0) * ANGLES(RAD(165), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2926. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.9, 0) * ANGLES(RAD(165), RAD(0), RAD(17.5)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2927. 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.4 / Animation_Speed)
  2928. 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.4 / Animation_Speed)
  2929. end
  2930. CFuncs["Sound"].Create("rbxassetid://1718412034", RootPart, 15, 1)
  2931. CFuncs["EchoSound"].Create("rbxassetid://1718412034", Character, 5, 1,0,10,0.15,0.5,1)
  2932. for i=0, 3, 0.1 / Animation_Speed do
  2933. Swait()
  2934. WACKYEFFECT({Time = 10, EffectType = "Block", Size = VT(MRANDOM(2,8),MRANDOM(2,8),MRANDOM(2,8)), Size2 = VT(0,0,0), Transparency = 0.7, Transparency2 = 1, CFrame = Barrel.CFrame*CF(0,3,0) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0.2,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2935. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2936. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  2937. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.9, 0) * ANGLES(RAD(165), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
  2938. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.9, 0) * ANGLES(RAD(165), RAD(0), RAD(17.5)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  2939. 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.4 / Animation_Speed)
  2940. 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.4 / Animation_Speed)
  2941. end
  2942. for i=0, 0.25, 0.1 / Animation_Speed do
  2943. Swait()
  2944. WACKYEFFECT({Time = 10, EffectType = "Block", Size = VT(MRANDOM(2,6),MRANDOM(2,6),MRANDOM(2,6)), Size2 = VT(0,0,0), Transparency = 0.7, Transparency2 = 1, CFrame = Barrel.CFrame*CF(0,3,0) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(MRANDOM(0,0.2)/0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2945. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2946. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2947. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2948. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(17.5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2949. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2950. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2951. end
  2952. sphere2(2,"Add",RootPart.CFrame,VT(1,1,1),1,1,1,BrickColor.new("Dark green"),BrickColor.new("Lime green").Color)
  2953. sphere2(2,"Add",RootPart.CFrame,VT(1,1,1),2,2,2,BrickColor.new("Lime green"),BrickColor.new("Dark green").Color)
  2954. sphere2(2,"Add",RootPart.CFrame,VT(1,1,1),4,4,4,BrickColor.new("Dark green"),BrickColor.new("Lime green").Color)
  2955. sphere2(2,"Add",RootPart.CFrame,VT(1,1,1),8,8,8,BrickColor.new("Lime green"),BrickColor.new("Dark green").Color)
  2956. CFuncs["Sound"].Create("rbxassetid://1841058541", RootPart, 10,1)
  2957. CFuncs["Sound"].Create("rbxassetid://2095993595", Character, 5,0.8)
  2958. CFuncs["Sound"].Create("rbxassetid://1841058541", Character, 5,1)
  2959. Humanoid.CameraOffset = VT(0,0,0)
  2960. for i = 0, 24 do
  2961. slash(math.random(10,30)/10,5,true,"Round","Add","Out",RootPart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),VT(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.new("Dark green"))
  2962. end
  2963. local distam = 0
  2964. coroutine.resume(coroutine.create(function()
  2965. for i = 0, 99 do
  2966. wait()
  2967. distam = distam + 1.5
  2968. local xa = CreateParta(Character,1,1,"SmoothPlastic",BrickColor.new("Dark green"))
  2969. xa.Anchored = true
  2970. xa.CFrame = RootPart.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  2971. game:GetService("Debris"):AddItem(xa, 5)
  2972. coroutine.resume(coroutine.create(function()
  2973. local eff = Instance.new("ParticleEmitter",xa)
  2974. eff.Texture = "rbxassetid://2092248396"
  2975. eff.LightEmission = 1
  2976. eff.Color = ColorSequence.new(BrickColor.new("Lime green").Color)
  2977. eff.Rate = 500000
  2978. eff.Lifetime = NumberRange.new(1,3)
  2979. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  2980. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2981. eff.Speed = NumberRange.new(50,500)
  2982. eff.Drag = 5
  2983. eff.Rotation = NumberRange.new(-500,500)
  2984. eff.VelocitySpread = 9000
  2985. eff.RotSpeed = NumberRange.new(-50,50)
  2986. wait(0.25)
  2987. eff.Enabled = false
  2988. end))
  2989. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  2990. sphere2(5,"Add",xa.CFrame,VT(1,1,1),0.5,0.5,0.5,BrickColor.new("Lime green"),BrickColor.new("Dark green").Color)
  2991. sphere2(5,"Add",xa.CFrame,VT(1,1,1),1,1,1,BrickColor.new("Dark green"),BrickColor.new("Lime green").Color)
  2992. sphere2(5,"Add",xa.CFrame,VT(1,1,1),0.5,0.5,0.5,BrickColor.new("Lime green"),BrickColor.new("Dark green").Color)
  2993. sphere2(5,"Add",xa.CFrame,VT(1,1,1),1,1,1,BrickColor.new("Dark green"),BrickColor.new("Lime green").Color)
  2994. sphere2(5,"Add",xa.CFrame,VT(1,1,1),0.5,0.5,0.5,BrickColor.new("Lime green"),BrickColor.new("Dark green").Color)
  2995. sphere2(5,"Add",xa.CFrame,VT(1,1,1),1,1,1,BrickColor.new("Dark green"),BrickColor.new("Lime green").Color)
  2996. SmiteAoE(xa.Position, 30)
  2997. end
  2998. end))
  2999. ATTACK = false
  3000. Rooted = false
  3001. wait(3)
  3002. Cooldown2 = false
  3003. end
  3004.  
  3005. function Shot()
  3006. ATTACK = true
  3007. Rooted = false
  3008. for i=0, 0.1, 0.1 / Animation_Speed do
  3009. Swait()
  3010. turnto(Mouse.Hit.p)
  3011. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.4 / Animation_Speed*3)
  3012. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5))), 1)
  3013. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3014. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(12), RAD(0), RAD(0))* LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3015. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 24), 0) * ANGLES(RAD(0), RAD(78), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3016. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 24), 0) * ANGLES(RAD(0), RAD(-78), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3017. end
  3018. repeat
  3019. for i=0, 0.1, 0.1 / Animation_Speed do
  3020. Swait()
  3021. turnto(Mouse.Hit.p)
  3022. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.4 / Animation_Speed*3)
  3023. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5))), 1)
  3024. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3025. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(12), RAD(0), RAD(0))* LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3026. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 24), 0) * ANGLES(RAD(0), RAD(78), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3027. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 24), 0) * ANGLES(RAD(0), RAD(-78), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3028. end
  3029. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  3030. SpawnTrail(Hole.Position,POS)
  3031. if HIT ~= nil then
  3032. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  3033. Banish(HIT.Parent)
  3034. end
  3035. end
  3036. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0.2,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  3037. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0.2,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  3038. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0.2,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  3039. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0.2,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  3040. for i=0, 0.1, 0.1 / Animation_Speed do
  3041. Swait()
  3042. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.4 / Animation_Speed*3)
  3043. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5))), 1)
  3044. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(110), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3045. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(42), RAD(0), RAD(0))* LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3046. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 24), 0) * ANGLES(RAD(0), RAD(78), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3047. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 24), 0) * ANGLES(RAD(0), RAD(-78), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3048. end
  3049. until KEYHOLD == false
  3050. ATTACK = false
  3051. Rooted = false
  3052. end
  3053.  
  3054. function Tuk()
  3055. ATTACK = true
  3056. Rooted = true
  3057. CreateSound("1238240145", Torso, 6, 0.9)
  3058. CreateSound(363808674, Torso, 6, 1, false)
  3059. for i=0, 0.6, 0.1 / Animation_Speed do
  3060. Swait()
  3061. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3062. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  3063. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3064. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3065. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3066. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3067. end
  3068. CreateSound(363808674, Torso, 6, 1, false)
  3069. for i=0, 0.6, 0.1 / Animation_Speed do
  3070. Swait()
  3071. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3072. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  3073. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3074. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3075. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3076. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3077. end
  3078. CreateSound(363808674, Torso, 6, 1, false)
  3079. for i=0, 0.6, 0.1 / Animation_Speed do
  3080. Swait()
  3081. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3082. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  3083. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3084. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3085. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3086. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3087. end
  3088. CreateSound(363808674, Torso, 6, 1, false)
  3089. for i=0, 0.6, 0.1 / Animation_Speed do
  3090. Swait()
  3091. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3092. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  3093. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3094. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3095. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3096. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3097. end
  3098. CreateSound(363808674, Torso, 6, 1, false)
  3099. for i=0, 0.6, 0.1 / Animation_Speed do
  3100. Swait()
  3101. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3102. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  3103. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3104. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3105. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3106. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3107. end
  3108. CreateSound(363808674, Torso, 6, 1, false)
  3109. for i=0, 0.6, 0.1 / Animation_Speed do
  3110. Swait()
  3111. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3112. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  3113. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3114. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3115. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3116. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3117. end
  3118. ATTACK = false
  3119. Rooted = false
  3120. end
  3121.  
  3122. --//=================================\\
  3123. --|| ASSIGN THINGS TO KEYS
  3124. --\\=================================//
  3125.  
  3126. function MouseDown(Mouse)
  3127. if ATTACK == false then
  3128. end
  3129. end
  3130.  
  3131. function MouseUp(Mouse)
  3132. HOLD = false
  3133. end
  3134.  
  3135. function KeyDown(Key)
  3136. KEYHOLD = true
  3137. if Key == "z" and ATTACK == false then
  3138. Shot()
  3139. end
  3140.  
  3141. if Key == "t" and ATTACK == false then
  3142. Tuk()
  3143. end
  3144.  
  3145. if Key == "c" and ATTACK == false then
  3146. LimbRip()
  3147. end
  3148.  
  3149. if Key == "v" and ATTACK == false then
  3150. end
  3151.  
  3152. if Key == "x" and ATTACK == false then
  3153. SHATTER()
  3154. end
  3155. end
  3156.  
  3157. function KeyUp(Key)
  3158. KEYHOLD = false
  3159. end
  3160.  
  3161. Mouse.Button1Down:connect(function(NEWKEY)
  3162. MouseDown(NEWKEY)
  3163. end)
  3164. Mouse.Button1Up:connect(function(NEWKEY)
  3165. MouseUp(NEWKEY)
  3166. end)
  3167. Mouse.KeyDown:connect(function(NEWKEY)
  3168. KeyDown(NEWKEY)
  3169. end)
  3170. Mouse.KeyUp:connect(function(NEWKEY)
  3171. KeyUp(NEWKEY)
  3172. end)
  3173.  
  3174. --//=================================\\
  3175. --\\=================================//
  3176.  
  3177.  
  3178. function unanchor()
  3179. if UNANCHOR == true then
  3180. g = Character:GetChildren()
  3181. for i = 1, #g do
  3182. if g[i].ClassName == "Part" then
  3183. g[i].Anchored = false
  3184. end
  3185. end
  3186. end
  3187. end
  3188.  
  3189.  
  3190. --//=================================\\
  3191. --|| WRAP THE WHOLE SCRIPT UP
  3192. --\\=================================//
  3193.  
  3194. Humanoid.Changed:connect(function(Jump)
  3195. if Jump == "Jump" and (Disable_Jump == true) then
  3196. Humanoid.Jump = false
  3197. end
  3198. end)
  3199.  
  3200. local CONNECT = nil
  3201.  
  3202. while true do
  3203. Swait()
  3204. ANIMATE.Parent = nil
  3205. if Character:FindFirstChildOfClass("Humanoid") == nil then
  3206. Humanoid = IT("Humanoid",Character)
  3207. end
  3208. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  3209. v:Stop();
  3210. end
  3211. SINE = SINE + CHANGE
  3212. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  3213. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  3214. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  3215. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  3216. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  3217. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3218. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3219. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3220. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  3221. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  3222. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3223. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3224. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3225. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3226. end
  3227. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3228. ANIM = "Jump"
  3229. if ATTACK == false then
  3230. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3231. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3232. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3233. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3234. 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)
  3235. 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)
  3236. end
  3237. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3238. ANIM = "Fall"
  3239. if ATTACK == false then
  3240. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3241. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5))), 1)
  3242. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3243. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3244. 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)
  3245. 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)
  3246. end
  3247. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3248. ANIM = "Idle"
  3249. if ATTACK == false then
  3250. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.4 / Animation_Speed*3)
  3251. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5))), 1)
  3252. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3253. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(15), RAD(-45)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
  3254. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 24), 0) * ANGLES(RAD(0), RAD(78), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3255. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 24), 0) * ANGLES(RAD(0), RAD(-78), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
  3256. end
  3257. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3258. ANIM = "Walk"
  3259. if ATTACK == false then
  3260. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3261. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5)), RAD(MRANDOM(-5.5,5.5))), 1)
  3262. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  3263. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  3264. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  3265. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  3266. end
  3267. end
  3268. unanchor()
  3269. Humanoid.MaxHealth = "inf"
  3270. Humanoid.Health = "inf"
  3271. if Rooted == false then
  3272. Disable_Jump = false
  3273. Humanoid.WalkSpeed = Speed
  3274. elseif Rooted == true then
  3275. Disable_Jump = true
  3276. Humanoid.WalkSpeed = 0
  3277. end
  3278. for LW = 1, #LEFTWINGS do
  3279. if LEFTWINGS[LW] ~= nil then
  3280. LEFTWINGS[LW].C1 = Clerp(LEFTWINGS[LW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(-3 + 3 * SIN(SINE / 12))), 1 / Animation_Speed)
  3281. end
  3282. end
  3283. for RW = 1, #RIGHTWINGS do
  3284. if RIGHTWINGS[RW] ~= nil then
  3285. RIGHTWINGS[RW].C1 = Clerp(RIGHTWINGS[RW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(3 - 3 * SIN(SINE / 12))), 1 / Animation_Speed)
  3286. end
  3287. end
  3288. sick.Parent = Torso
  3289. sick:resume()
  3290. sick.Volume = 2
  3291. sick.Pitch = 1.02
  3292. sick.SoundId = "rbxassetid://186712548"
  3293. sick.Name = "Dead"
  3294. end
  3295.  
  3296. --//=================================\\
  3297. --\\=================================//
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303. --//====================================================\\--
  3304. --|| END OF SCRIPT
  3305. --\\====================================================//--
  3306.  
  3307. -------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement