Advertisement
Darxiusss

Untitled

Aug 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 89.94 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 sick = Instance.new("Sound",Torso)
  88. --//======================================================\\--
  89. --|| CREATED BY SHACKLUSTER, EDITED BANISHER v3 BY MATHIA
  90. --\\======================================================//--
  91.  
  92.  
  93. script:ClearAllChildren()
  94. wait(0.2)
  95.  
  96. Player = owner
  97. PlayerGui = Player.PlayerGui
  98. Cam = workspace.CurrentCamera
  99. Backpack = Player.Backpack
  100. Character = Player.Character
  101. Humanoid = Character.Humanoid
  102. RootPart = Character["HumanoidRootPart"]
  103. Torso = Character["Torso"]
  104. Head = Character["Head"]
  105. RightArm = Character["Right Arm"]
  106. LeftArm = Character["Left Arm"]
  107. RightLeg = Character["Right Leg"]
  108. LeftLeg = Character["Left Leg"]
  109. RootJoint = RootPart["RootJoint"]
  110. Neck = Torso["Neck"]
  111. RightShoulder = Torso["Right Shoulder"]
  112. LeftShoulder = Torso["Left Shoulder"]
  113. RightHip = Torso["Right Hip"]
  114. LeftHip = Torso["Left Hip"]
  115. sick.Parent = Torso
  116. local TIME = 0
  117.  
  118. m = owner
  119. char = m.Character
  120. local txt = Instance.new("BillboardGui", char)
  121. txt.Adornee = char.Head
  122. txt.Name = "_status"
  123. txt.Size = UDim2.new(2, 0, 1.2, 0)
  124. txt.StudsOffset = Vector3.new(-9, 8, 0)
  125. local text = Instance.new("TextLabel", txt)
  126. text.Size = UDim2.new(10, 0, 7, 0)
  127. text.FontSize = "Size24"
  128. text.TextScaled = false
  129. text.TextTransparency = 0
  130. text.BackgroundTransparency = 1
  131. text.TextTransparency = 0
  132. text.TextColor3 = Color3.new(0,0,0)
  133. text.TextStrokeTransparency = 0
  134. text.Font = "SciFi"
  135. text.TextStrokeColor3 = Color3.new(0,1,1)
  136. text.Text = "Techno Banisher"
  137.  
  138. IT = Instance.new
  139. CF = CFrame.new
  140. VT = Vector3.new
  141. RAD = math.rad
  142. C3 = Color3.new
  143. UD2 = UDim2.new
  144. BRICKC = BrickColor.new
  145. ANGLES = CFrame.Angles
  146. EULER = CFrame.fromEulerAnglesXYZ
  147. COS = math.cos
  148. ACOS = math.acos
  149. SIN = math.sin
  150. ASIN = math.asin
  151. ABS = math.abs
  152. MRANDOM = math.random
  153. FLOOR = math.floor
  154.  
  155. --//=================================\\
  156. --|| USEFUL VALUES
  157. --\\=================================//
  158.  
  159. Animation_Speed = 3
  160. local FORCERESET = false
  161. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  162. local Speed = 16
  163. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  164. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  165. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  166. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  167. local DAMAGEMULTIPLIER = 1
  168. local ANIM = "Idle"
  169. local ATTACK = false
  170. local EQUIPPED = false
  171. local HOLD = false
  172. local COMBO = 1
  173. local Rooted = false
  174. local SINE = 0
  175. local SIZE = 0
  176. local KEYHOLD = false
  177. local CHANGE = 2 / Animation_Speed
  178. local WALKINGANIM = false
  179. local VALUE1 = false
  180. local VALUE2 = false
  181. local ROBLOXIDLEANIMATION = IT("Animation")
  182. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  183. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  184. --ROBLOXIDLEANIMATION.Parent = Humanoid
  185. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  186. WEAPONGUI.Name = "BanishV3Gui"
  187. local Weapon = IT("Model")
  188. Weapon.Name = "Adds"
  189. local Effects = IT("Folder", Weapon)
  190. Effects.Name = "Effects"
  191. local Weapon2 = IT("Model")
  192. Weapon2Name = "Adds"
  193. local Effects2 = IT("Folder", Weapon2)
  194. Effects2.Name = "Effects"
  195. local ANIMATOR = Humanoid.Animator
  196. local ANIMATE = Character:FindFirstChild("Animate")
  197. local UNANCHOR = true
  198. local TOBANISH = {}
  199. script.Parent = PlayerGui
  200.  
  201. --//=================================\\
  202. --\\=================================//
  203.  
  204.  
  205. --//=================================\\
  206. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  207. --\\=================================//
  208.  
  209. ArtificialHB = Instance.new("BindableEvent", script)
  210. ArtificialHB.Name = "ArtificialHB"
  211.  
  212. script:WaitForChild("ArtificialHB")
  213.  
  214. frame = Frame_Speed
  215. tf = 0
  216. allowframeloss = false
  217. tossremainder = false
  218. lastframe = tick()
  219. script.ArtificialHB:Fire()
  220.  
  221. game:GetService("RunService").Heartbeat:connect(function(s, p)
  222. tf = tf + s
  223. if tf >= frame then
  224. if allowframeloss then
  225. script.ArtificialHB:Fire()
  226. lastframe = tick()
  227. else
  228. for i = 1, math.floor(tf / frame) do
  229. script.ArtificialHB:Fire()
  230. end
  231. lastframe = tick()
  232. end
  233. if tossremainder then
  234. tf = 0
  235. else
  236. tf = tf - frame * math.floor(tf / frame)
  237. end
  238. end
  239. end)
  240.  
  241. --//=================================\\
  242. --\\=================================//
  243.  
  244. --//=================================\\
  245. --|| SOME FUNCTIONS
  246. --\\=================================//
  247.  
  248. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  249. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  250. end
  251.  
  252. local Create = LoadLibrary("RbxUtility").Create
  253.  
  254. function RemoveOutlines(part)
  255. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  256. end
  257.  
  258. CFuncs = {
  259. ["Part"] = {
  260. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  261. local Part = Create("Part"){
  262. Parent = Parent,
  263. Reflectance = Reflectance,
  264. Transparency = Transparency,
  265. CanCollide = false,
  266. Locked = true,
  267. BrickColor = BrickColor.new(tostring(BColor)),
  268. Name = Name,
  269. Size = Size,
  270. Material = Material,
  271. }
  272. RemoveOutlines(Part)
  273. return Part
  274. end;
  275. };
  276.  
  277. ["Mesh"] = {
  278. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  279. local Msh = Create(Mesh){
  280. Parent = Part,
  281. Offset = OffSet,
  282. Scale = Scale,
  283. }
  284. if Mesh == "SpecialMesh" then
  285. Msh.MeshType = MeshType
  286. Msh.MeshId = MeshId
  287. end
  288. return Msh
  289. end;
  290. };
  291.  
  292. ["Mesh"] = {
  293. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  294. local Msh = Create(Mesh){
  295. Parent = Part,
  296. Offset = OffSet,
  297. Scale = Scale,
  298. }
  299. if Mesh == "SpecialMesh" then
  300. Msh.MeshType = MeshType
  301. Msh.MeshId = MeshId
  302. end
  303. return Msh
  304. end;
  305. };
  306.  
  307. ["Weld"] = {
  308. Create = function(Parent, Part0, Part1, C0, C1)
  309. local Weld = Create("Weld"){
  310. Parent = Parent,
  311. Part0 = Part0,
  312. Part1 = Part1,
  313. C0 = C0,
  314. C1 = C1,
  315. }
  316. return Weld
  317. end;
  318. };
  319.  
  320. ["Sound"] = {
  321. Create = function(id, par, vol, pit)
  322. coroutine.resume(coroutine.create(function()
  323. local S = Create("Sound"){
  324. Volume = vol,
  325. Name = "EffectSoundo",
  326. Pitch = pit or 1,
  327. SoundId = id,
  328. Parent = par or workspace,
  329. }
  330. wait()
  331. S:play()
  332. game:GetService("Debris"):AddItem(S, 10)
  333. end))
  334. end;
  335. };
  336.  
  337. ["TimeSound"] = {
  338. Create = function(id, par, vol, pit, timepos)
  339. coroutine.resume(coroutine.create(function()
  340. local S = Create("Sound"){
  341. Volume = vol,
  342. Name = "EffectSoundo",
  343. Pitch = pit or 1,
  344. SoundId = id,
  345. TimePosition = timepos,
  346. Parent = par or workspace,
  347. }
  348. wait()
  349. S:play()
  350. game:GetService("Debris"):AddItem(S, 10)
  351. end))
  352. end;
  353. };
  354. ["EchoSound"] = {
  355. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  356. coroutine.resume(coroutine.create(function()
  357. local Sas = Create("Sound"){
  358. Volume = vol,
  359. Name = "EffectSoundo",
  360. Pitch = pit or 1,
  361. SoundId = id,
  362. TimePosition = timepos,
  363. Parent = par or workspace,
  364. }
  365. local E = Create("EchoSoundEffect"){
  366. Delay = echodelay,
  367. Name = "Echo",
  368. Feedback = fedb,
  369. DryLevel = dryl,
  370. Parent = Sas,
  371. }
  372. wait()
  373. Sas:play()
  374. game:GetService("Debris"):AddItem(Sas, delays)
  375. end))
  376. end;
  377. };
  378.  
  379. ["LongSound"] = {
  380. Create = function(id, par, vol, pit)
  381. coroutine.resume(coroutine.create(function()
  382. local S = Create("Sound"){
  383. Volume = vol,
  384. Pitch = pit or 1,
  385. SoundId = id,
  386. Parent = par or workspace,
  387. }
  388. wait()
  389. S:play()
  390. game:GetService("Debris"):AddItem(S, 60)
  391. end))
  392. end;
  393. };
  394.  
  395. ["ParticleEmitter"] = {
  396. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  397. local fp = Create("ParticleEmitter"){
  398. Parent = Parent,
  399. Color = ColorSequence.new(Color1, Color2),
  400. LightEmission = LightEmission,
  401. Size = Size,
  402. Texture = Texture,
  403. Transparency = Transparency,
  404. ZOffset = ZOffset,
  405. Acceleration = Accel,
  406. Drag = Drag,
  407. LockedToPart = LockedToPart,
  408. VelocityInheritance = VelocityInheritance,
  409. EmissionDirection = EmissionDirection,
  410. Enabled = Enabled,
  411. Lifetime = LifeTime,
  412. Rate = Rate,
  413. Rotation = Rotation,
  414. RotSpeed = RotSpeed,
  415. Speed = Speed,
  416. VelocitySpread = VelocitySpread,
  417. }
  418. return fp
  419. end;
  420. };
  421.  
  422. CreateTemplate = {
  423.  
  424. };
  425. }
  426.  
  427. function PositiveAngle(NUMBER)
  428. if NUMBER >= 0 then
  429. NUMBER = 0
  430. end
  431. return NUMBER
  432. end
  433.  
  434. function NegativeAngle(NUMBER)
  435. if NUMBER <= 0 then
  436. NUMBER = 0
  437. end
  438. return NUMBER
  439. end
  440.  
  441. function Swait(NUMBER)
  442. if NUMBER == 0 or NUMBER == nil then
  443. ArtificialHB.Event:wait()
  444. else
  445. for i = 1, NUMBER do
  446. ArtificialHB.Event:wait()
  447. end
  448. end
  449. end
  450.  
  451. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  452. local NEWMESH = IT(MESH)
  453. if MESH == "SpecialMesh" then
  454. NEWMESH.MeshType = MESHTYPE
  455. if MESHID ~= "nil" and MESHID ~= "" then
  456. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  457. end
  458. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  459. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  460. end
  461. end
  462. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  463. NEWMESH.Scale = SCALE
  464. NEWMESH.Parent = PARENT
  465. return NEWMESH
  466. end
  467.  
  468. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  469. local NEWPART = IT("Part")
  470. NEWPART.formFactor = FORMFACTOR
  471. NEWPART.Reflectance = REFLECTANCE
  472. NEWPART.Transparency = TRANSPARENCY
  473. NEWPART.CanCollide = false
  474. NEWPART.Locked = true
  475. NEWPART.Anchored = true
  476. if ANCHOR == false then
  477. NEWPART.Anchored = false
  478. end
  479. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  480. NEWPART.Name = NAME
  481. NEWPART.Size = SIZE
  482. NEWPART.Position = Torso.Position
  483. NEWPART.Material = MATERIAL
  484. NEWPART:BreakJoints()
  485. NEWPART.Parent = PARENT
  486. return NEWPART
  487. end
  488.  
  489. local function weldBetween(a, b)
  490. local weldd = Instance.new("ManualWeld")
  491. weldd.Part0 = a
  492. weldd.Part1 = b
  493. weldd.C0 = CFrame.new()
  494. weldd.C1 = b.CFrame:inverse() * a.CFrame
  495. weldd.Parent = a
  496. return weldd
  497. end
  498.  
  499.  
  500. function QuaternionFromCFrame(cf)
  501. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  502. local trace = m00 + m11 + m22
  503. if trace > 0 then
  504. local s = math.sqrt(1 + trace)
  505. local recip = 0.5 / s
  506. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  507. else
  508. local i = 0
  509. if m11 > m00 then
  510. i = 1
  511. end
  512. if m22 > (i == 0 and m00 or m11) then
  513. i = 2
  514. end
  515. if i == 0 then
  516. local s = math.sqrt(m00 - m11 - m22 + 1)
  517. local recip = 0.5 / s
  518. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  519. elseif i == 1 then
  520. local s = math.sqrt(m11 - m22 - m00 + 1)
  521. local recip = 0.5 / s
  522. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  523. elseif i == 2 then
  524. local s = math.sqrt(m22 - m00 - m11 + 1)
  525. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  526. end
  527. end
  528. end
  529.  
  530. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  531. local xs, ys, zs = x + x, y + y, z + z
  532. local wx, wy, wz = w * xs, w * ys, w * zs
  533. local xx = x * xs
  534. local xy = x * ys
  535. local xz = x * zs
  536. local yy = y * ys
  537. local yz = y * zs
  538. local zz = z * zs
  539. 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))
  540. end
  541.  
  542. function QuaternionSlerp(a, b, t)
  543. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  544. local startInterp, finishInterp;
  545. if cosTheta >= 0.0001 then
  546. if (1 - cosTheta) > 0.0001 then
  547. local theta = ACOS(cosTheta)
  548. local invSinTheta = 1 / SIN(theta)
  549. startInterp = SIN((1 - t) * theta) * invSinTheta
  550. finishInterp = SIN(t * theta) * invSinTheta
  551. else
  552. startInterp = 1 - t
  553. finishInterp = t
  554. end
  555. else
  556. if (1 + cosTheta) > 0.0001 then
  557. local theta = ACOS(-cosTheta)
  558. local invSinTheta = 1 / SIN(theta)
  559. startInterp = SIN((t - 1) * theta) * invSinTheta
  560. finishInterp = SIN(t * theta) * invSinTheta
  561. else
  562. startInterp = t - 1
  563. finishInterp = t
  564. end
  565. end
  566. 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
  567. end
  568.  
  569. function Clerp(a, b, t)
  570. local qa = {QuaternionFromCFrame(a)}
  571. local qb = {QuaternionFromCFrame(b)}
  572. local ax, ay, az = a.x, a.y, a.z
  573. local bx, by, bz = b.x, b.y, b.z
  574. local _t = 1 - t
  575. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  576. end
  577.  
  578. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  579. local frame = IT("Frame")
  580. frame.BackgroundTransparency = TRANSPARENCY
  581. frame.BorderSizePixel = BORDERSIZEPIXEL
  582. frame.Position = POSITION
  583. frame.Size = SIZE
  584. frame.BackgroundColor3 = COLOR
  585. frame.BorderColor3 = BORDERCOLOR
  586. frame.Name = NAME
  587. frame.Parent = PARENT
  588. return frame
  589. end
  590.  
  591. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  592. local label = IT("TextLabel")
  593. label.BackgroundTransparency = 1
  594. label.Size = UD2(1, 0, 1, 0)
  595. label.Position = UD2(0, 0, 0, 0)
  596. label.TextColor3 = TEXTCOLOR
  597. label.TextStrokeTransparency = STROKETRANSPARENCY
  598. label.TextTransparency = TRANSPARENCY
  599. label.FontSize = TEXTFONTSIZE
  600. label.Font = TEXTFONT
  601. label.BorderSizePixel = BORDERSIZEPIXEL
  602. label.TextScaled = false
  603. label.Text = TEXT
  604. label.Name = NAME
  605. label.Parent = PARENT
  606. return label
  607. end
  608.  
  609. function NoOutlines(PART)
  610. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  611. end
  612.  
  613. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  614. local NEWWELD = IT(TYPE)
  615. NEWWELD.Part0 = PART0
  616. NEWWELD.Part1 = PART1
  617. NEWWELD.C0 = C0
  618. NEWWELD.C1 = C1
  619. NEWWELD.Parent = PARENT
  620. return NEWWELD
  621. end
  622.  
  623. local S = IT("Sound")
  624. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  625. local NEWSOUND = nil
  626. coroutine.resume(coroutine.create(function()
  627. NEWSOUND = S:Clone()
  628. NEWSOUND.Parent = PARENT
  629. NEWSOUND.Volume = VOLUME
  630. NEWSOUND.Pitch = PITCH
  631. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  632. NEWSOUND:play()
  633. if DOESLOOP == true then
  634. NEWSOUND.Looped = true
  635. else
  636. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  637. NEWSOUND:remove()
  638. end
  639. end))
  640. return NEWSOUND
  641. end
  642.  
  643. function CFrameFromTopBack(at, top, back)
  644. local right = top:Cross(back)
  645. 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)
  646. end
  647.  
  648. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  649. local type = type
  650. local rng = Instance.new("Part", Character)
  651. rng.Anchored = true
  652. if ModeOfGlitch ~= 9 then
  653. rng.BrickColor = color
  654. elseif ModeOfGlitch == 9 then
  655. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  656. end
  657. rng.CanCollide = false
  658. rng.FormFactor = 3
  659. rng.Name = "Ring"
  660. rng.Material = "Neon"
  661. rng.Size = Vector3.new(1, 1, 1)
  662. rng.Transparency = 0
  663. rng.TopSurface = 0
  664. rng.BottomSurface = 0
  665. rng.CFrame = pos
  666. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  667. local rngm = Instance.new("SpecialMesh", rng)
  668. rngm.MeshType = "Sphere"
  669. rngm.Scale = VT(x1,y1,z1)
  670. if rainbowmode == true then
  671. rng.Color = Color3.new(r/255,g/255,b/255)
  672. end
  673. if ModeOfGlitch == 9 then
  674. coroutine.resume(coroutine.create(function()
  675. while true do
  676. Swait()
  677. if rng.Parent ~= nil then
  678. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  679. else
  680. break
  681. end
  682. end
  683. end))
  684. end
  685. local scaler2 = 1
  686. local speeder = FastSpeed
  687. if type == "Add" then
  688. scaler2 = 1*value
  689. elseif type == "Divide" then
  690. scaler2 = 1/value
  691. end
  692. coroutine.resume(coroutine.create(function()
  693. for i = 0,10/bonuspeed,0.1 do
  694. Swait()
  695. if rainbowmode == true then
  696. rng.Color = Color3.new(r/255,g/255,b/255)
  697. end
  698. if type == "Add" then
  699. scaler2 = scaler2 - 0.01*value/bonuspeed
  700. elseif type == "Divide" then
  701. scaler2 = scaler2 - 0.01/value*bonuspeed
  702. end
  703. if chaosmode == true then
  704. rng.BrickColor = BrickColor.random()
  705. end
  706. speeder = speeder - 0.01*FastSpeed*bonuspeed
  707. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  708. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  709. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  710. end
  711. rng:Destroy()
  712. end))
  713. end
  714.  
  715. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  716. local type = type
  717. local rng = Instance.new("Part", char)
  718. rng.Anchored = true
  719. if ModeOfGlitch ~= 9 then
  720. rng.BrickColor = color
  721. elseif ModeOfGlitch == 9 then
  722. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  723. end
  724. rng.CanCollide = false
  725. rng.FormFactor = 3
  726. rng.Name = "Ring"
  727. rng.Material = "Neon"
  728. rng.Size = Vector3.new(1, 1, 1)
  729. rng.Transparency = 1
  730. rng.TopSurface = 0
  731. rng.BottomSurface = 0
  732. rng.CFrame = pos
  733. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  734. local rngm = Instance.new("SpecialMesh", rng)
  735. rngm.MeshType = "Sphere"
  736. rngm.Scale = vt(x1,y1,z1)
  737. if rainbowmode == true then
  738. rng.Color = Color3.new(r/255,g/255,b/255)
  739. end
  740. if ModeOfGlitch == 9 then
  741. coroutine.resume(coroutine.create(function()
  742. while true do
  743. swait()
  744. if rng.Parent ~= nil then
  745. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  746. else
  747. break
  748. end
  749. end
  750. end))
  751. end
  752. local scaler2 = 1
  753. local speeder = FastSpeed
  754. if type == "Add" then
  755. scaler2 = 1*value
  756. elseif type == "Divide" then
  757. scaler2 = 1/value
  758. end
  759. coroutine.resume(coroutine.create(function()
  760. for i = 0,10/bonuspeed,0.1 do
  761. swait()
  762. if rainbowmode == true then
  763. rng.Color = Color3.new(r/255,g/255,b/255)
  764. end
  765. if type == "Add" then
  766. scaler2 = scaler2 - 0.01*value/bonuspeed
  767. elseif type == "Divide" then
  768. scaler2 = scaler2 - 0.01/value*bonuspeed
  769. end
  770. if chaosmode == true then
  771. rng.BrickColor = BrickColor.random()
  772. end
  773. speeder = speeder - 0.01*FastSpeed*bonuspeed
  774. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  775. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  776. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  777. end
  778. rng:Destroy()
  779. end))
  780. end
  781.  
  782. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  783. local type = type
  784. local rotenable = rotatingop
  785. local rng = Instance.new("Part", Character)
  786. rng.Anchored = true
  787. rng.BrickColor = color
  788. rng.CanCollide = false
  789. rng.FormFactor = 3
  790. rng.Name = "Ring"
  791. rng.Material = "Neon"
  792. rng.Size = Vector3.new(1, 1, 1)
  793. rng.Transparency = 0
  794. if typeoftrans == "In" then
  795. rng.Transparency = 1
  796. end
  797. rng.TopSurface = 0
  798. rng.BottomSurface = 0
  799. rng.CFrame = pos
  800. local rngm = Instance.new("SpecialMesh", rng)
  801. rngm.MeshType = "FileMesh"
  802. if typeofshape == "Normal" then
  803. rngm.MeshId = "rbxassetid://662586858"
  804. elseif typeofshape == "Round" then
  805. rngm.MeshId = "rbxassetid://662585058"
  806. end
  807. rngm.Scale = scale
  808. local scaler2 = 1/10
  809. if type == "Add" then
  810. scaler2 = 1*value/10
  811. elseif type == "Divide" then
  812. scaler2 = 1/value/10
  813. end
  814. local randomrot = math.random(1,2)
  815. coroutine.resume(coroutine.create(function()
  816. for i = 0,10/bonuspeed,0.1 do
  817. Swait()
  818. if type == "Add" then
  819. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  820. elseif type == "Divide" then
  821. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  822. end
  823. if rotenable == true then
  824. if randomrot == 1 then
  825. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  826. elseif randomrot == 2 then
  827. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  828. end
  829. end
  830. if typeoftrans == "Out" then
  831. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  832. elseif typeoftrans == "In" then
  833. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  834. end
  835. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  836. end
  837. rng:Destroy()
  838. end))
  839. end
  840.  
  841. --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})
  842. function WACKYEFFECT(Table)
  843. local TYPE = (Table.EffectType or "Sphere")
  844. local SIZE = (Table.Size or VT(1,1,1))
  845. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  846. local TRANSPARENCY = (Table.Transparency or 0)
  847. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  848. local CFRAME = (Table.CFrame or Torso.CFrame)
  849. local MOVEDIRECTION = (Table.MoveToPos or nil)
  850. local ROTATION1 = (Table.RotationX or 0)
  851. local ROTATION2 = (Table.RotationY or 0)
  852. local ROTATION3 = (Table.RotationZ or 0)
  853. local MATERIAL = (Table.Material or "Neon")
  854. local COLOR = (Table.Color or C3(1,1,1))
  855. local TIME = (Table.Time or 45)
  856. local SOUNDID = (Table.SoundID or nil)
  857. local SOUNDPITCH = (Table.SoundPitch or nil)
  858. local SOUNDVOLUME = (Table.SoundVolume or nil)
  859. coroutine.resume(coroutine.create(function()
  860. local PLAYSSOUND = false
  861. local SOUND = nil
  862. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  863. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  864. PLAYSSOUND = true
  865. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  866. end
  867. EFFECT.Color = COLOR
  868. local MSH = nil
  869. if TYPE == "Sphere" then
  870. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  871. elseif TYPE == "Block" then
  872. MSH = IT("BlockMesh",EFFECT)
  873. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  874. elseif TYPE == "Wave" then
  875. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  876. elseif TYPE == "Ring" then
  877. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  878. elseif TYPE == "Slash" then
  879. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  880. elseif TYPE == "Round Slash" then
  881. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  882. elseif TYPE == "Swirl" then
  883. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  884. elseif TYPE == "Skull" then
  885. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  886. elseif TYPE == "Crystal" then
  887. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  888. end
  889. if MSH ~= nil then
  890. local MOVESPEED = nil
  891. if MOVEDIRECTION ~= nil then
  892. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  893. end
  894. local GROWTH = SIZE - ENDSIZE
  895. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  896. if TYPE == "Block" then
  897. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  898. else
  899. EFFECT.CFrame = CFRAME
  900. end
  901. for LOOP = 1, TIME+1 do
  902. Swait()
  903. MSH.Scale = MSH.Scale - GROWTH/TIME
  904. if TYPE == "Wave" then
  905. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  906. end
  907. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  908. if TYPE == "Block" then
  909. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  910. else
  911. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  912. end
  913. if MOVEDIRECTION ~= nil then
  914. local ORI = EFFECT.Orientation
  915. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  916. EFFECT.Orientation = ORI
  917. end
  918. end
  919. if PLAYSSOUND == false then
  920. EFFECT:remove()
  921. else
  922. SOUND.Stopped:Connect(function()
  923. EFFECT:remove()
  924. end)
  925. end
  926. else
  927. if PLAYSSOUND == false then
  928. EFFECT:remove()
  929. else
  930. repeat Swait() until SOUND.Playing == false
  931. EFFECT:remove()
  932. end
  933. end
  934. end))
  935. end
  936.  
  937. function MakeForm(PART,TYPE)
  938. if TYPE == "Cyl" then
  939. local MSH = IT("CylinderMesh",PART)
  940. elseif TYPE == "Ball" then
  941. local MSH = IT("SpecialMesh",PART)
  942. MSH.MeshType = "Sphere"
  943. elseif TYPE == "Wedge" then
  944. local MSH = IT("SpecialMesh",PART)
  945. MSH.MeshType = "Wedge"
  946. end
  947. end
  948.  
  949. function SpawnTrail(FROM,TO,BIG)
  950. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Cyan", "Trail", VT(0,0,0))
  951. MakeForm(TRAIL,"Cyl")
  952. local DIST = (FROM - TO).Magnitude
  953. if BIG == true then
  954. TRAIL.Size = VT(0.5,DIST,0.5)
  955. else
  956. TRAIL.Size = VT(0.25,DIST,0.25)
  957. end
  958. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  959. coroutine.resume(coroutine.create(function()
  960. for i = 1, 5 do
  961. Swait()
  962. TRAIL.Transparency = TRAIL.Transparency + 0.1
  963. end
  964. TRAIL:remove()
  965. end))
  966. end
  967.  
  968. Debris = game:GetService("Debris")
  969.  
  970. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  971. local DIRECTION = CF(StartPos,EndPos).lookVector
  972. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  973. end
  974.  
  975. function turnto(position)
  976. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  977. end
  978.  
  979. --//=================================\\
  980. --|| WEAPON CREATION
  981. --\\=================================//
  982.  
  983. local Particle = IT("ParticleEmitter",nil)
  984. Particle.Enabled = false
  985. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  986. Particle.LightEmission = 0.5
  987. Particle.Rate = 150
  988. Particle.ZOffset = 0.2
  989. Particle.Rotation = NumberRange.new(-180, 180)
  990. Particle.RotSpeed = NumberRange.new(-180, 180)
  991. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  992. Particle.Color = ColorSequence.new(C3(0,1,1),C3(0.4,0,0))
  993.  
  994. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  995. function ParticleEmitter(Table)
  996. local PRTCL = Particle:Clone()
  997. local Speed = Table.Speed or 5
  998. local Drag = Table.Drag or 0
  999. local Size1 = Table.Size1 or 1
  1000. local Size2 = Table.Size2 or 5
  1001. local Lifetime1 = Table.Lifetime1 or 1
  1002. local Lifetime2 = Table.Lifetime2 or 1.5
  1003. local Parent = Table.Parent or Torso
  1004. local Emit = Table.Emit or 100
  1005. local Offset = Table.Offset or 360
  1006. local Acel = Table.Acel or VT(0,0,0)
  1007. local Enabled = Table.Enabled or false
  1008. PRTCL.Parent = Parent
  1009. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1010. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1011. PRTCL.Speed = NumberRange.new(Speed)
  1012. PRTCL.VelocitySpread = Offset
  1013. PRTCL.Drag = Drag
  1014. PRTCL.Acceleration = Acel
  1015. if Enabled == false then
  1016. PRTCL:Emit(Emit)
  1017. Debris:AddItem(PRTCL,Lifetime2)
  1018. else
  1019. PRTCL.Enabled = true
  1020. end
  1021. return PRTCL
  1022. end
  1023.  
  1024.  
  1025.  
  1026. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1027. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1028. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1029. MakeForm(Part,"Wedge")
  1030. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1031. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1032. MakeForm(Part,"Wedge")
  1033. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1034. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1035. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1036. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1037. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1038. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1039. MakeForm(Part,"Cyl")
  1040. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1041. for i = 1, 8 do
  1042. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1043. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1044. end
  1045. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1046. MakeForm(Part,"Cyl")
  1047. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1048. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1049. MakeForm(Part,"Ball")
  1050. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1051. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1052. MakeForm(Part,"Wedge")
  1053. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1054. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1055. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1056. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1057. MakeForm(Part,"Cyl")
  1058. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1059. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1060. MakeForm(Part,"Cyl")
  1061. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1062. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1063. MakeForm(Part,"Cyl")
  1064. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1065. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1066. MakeForm(Part,"Wedge")
  1067. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1068. local LASTPART = Handle
  1069. for i = 1, 10 do
  1070. if LASTPART == Handle then
  1071. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1072. LASTPART = Part
  1073. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1074. else
  1075. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1076. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1077. LASTPART = Part
  1078. end
  1079. end
  1080.  
  1081. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1082. MakeForm(Barrel,"Cyl")
  1083. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1084. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1085. MakeForm(Part,"Cyl")
  1086. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1087. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1088. MakeForm(Part,"Wedge")
  1089. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1090. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1091. MakeForm(Hole,"Cyl")
  1092. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1093. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1094. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1095. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1096. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1097. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1098. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1099. coroutine.resume(coroutine.create(function()
  1100. while wait() do
  1101. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1102. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1103. end
  1104. end))
  1105.  
  1106. 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)})
  1107. --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)})
  1108.  
  1109. for _, c in pairs(Weapon:GetDescendants()) do
  1110. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1111. c.Material = "Glass"
  1112. c.Color = C3(0,0,0)
  1113. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1114. c.Color = C3(0,1,1)
  1115. c.Material = "Neon"
  1116. end
  1117. end
  1118.  
  1119. Weapon.Parent = Character
  1120. for _, c in pairs(Weapon:GetChildren()) do
  1121. if c.ClassName == "Part" then
  1122. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1123. end
  1124. end
  1125.  
  1126. local Handle = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1127. local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1128. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1129. MakeForm(Part,"Wedge")
  1130. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1131. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1132. MakeForm(Part,"Wedge")
  1133. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1134. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1135. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1136. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1137. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1138. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1139. MakeForm(Part,"Cyl")
  1140. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1141. for i = 1, 8 do
  1142. local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1143. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1144. end
  1145. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1146. MakeForm(Part,"Cyl")
  1147. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1148. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1149. MakeForm(Part,"Ball")
  1150. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1151. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1152. MakeForm(Part,"Wedge")
  1153. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1154. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1155. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1156. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1157. MakeForm(Part,"Cyl")
  1158. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1159. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1160. MakeForm(Part,"Cyl")
  1161. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1162. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1163. MakeForm(Part,"Cyl")
  1164. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1165. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1166. MakeForm(Part,"Wedge")
  1167. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1168. local LASTPART = Handle
  1169. for i = 1, 10 do
  1170. if LASTPART == Handle then
  1171. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1172. LASTPART = Part
  1173. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1174. else
  1175. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1176. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1177. LASTPART = Part
  1178. end
  1179. end
  1180.  
  1181. local Barrel2 = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1182. MakeForm(Barrel2,"Cyl")
  1183. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel2, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1184. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1185. MakeForm(Part,"Cyl")
  1186. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel2, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1187. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1188. MakeForm(Part,"Wedge")
  1189. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel2, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1190. local Hole2 = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1191. MakeForm(Hole2,"Cyl")
  1192. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel2, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
  1193. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1194. local GEARWELD3 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1195. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1196. local Part = CreatePart(3, Weapon2, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1197. local GEARWELD4 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1198. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1199. coroutine.resume(coroutine.create(function()
  1200. while wait() do
  1201. GEARWELD3.C0 = GEARWELD3.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1202. GEARWELD4.C0 = GEARWELD4.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1203. end
  1204. end))
  1205.  
  1206. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1207. --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)})
  1208.  
  1209. for _, c in pairs(Weapon2:GetDescendants()) do
  1210. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1211. c.Material = "Glass"
  1212. c.Color = C3(0,0,0)
  1213. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1214. c.Color = C3(0,1,1)
  1215. c.Material = "Neon"
  1216. end
  1217. end
  1218.  
  1219. Weapon2.Parent = Character
  1220. for _, c in pairs(Weapon2:GetChildren()) do
  1221. if c.ClassName == "Part" then
  1222. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1223. end
  1224. end
  1225.  
  1226. local A = IT("Attachment",Barrel)
  1227. A.Position = VT(0,-2.5,0)
  1228. local B = IT("Attachment",Barrel)
  1229. B.Position = VT(0,2.5,0)
  1230. local Trail = IT("Trail",Barrel)
  1231. Trail.Attachment0 = A
  1232. Trail.Attachment1 = B
  1233. Trail.Lifetime = 0.2
  1234. Trail.Color = ColorSequence.new(BRICKC"Cyan".Color)
  1235. Trail.Transparency = NumberSequence.new(0, 1)
  1236. Trail.Enabled = false
  1237.  
  1238. local SKILLTEXTCOLOR = C3(0,1,1)
  1239. local SKILLFONT = "SciFi"
  1240. local SKILLTEXTSIZE = 7
  1241.  
  1242. Humanoid.Died:connect(function()
  1243. ATTACK = true
  1244. end)
  1245.  
  1246. 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")
  1247. --local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.65, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1248. --local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0., 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1249. --[[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")
  1250. 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")
  1251. ]]
  1252. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] [T] [CLICK]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1253. --local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[T] Taunt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1254. --local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[CLICK] Execute", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1255. --[[local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1256. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1257. ]]
  1258. function printbye(Name)
  1259. 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, "}
  1260. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1261. end
  1262.  
  1263. workspace.ChildAdded:connect(function(instance)
  1264. for BANISH = 1, #TOBANISH do
  1265. if TOBANISH[BANISH] ~= nil then
  1266. if instance.Name == TOBANISH[BANISH] then
  1267. coroutine.resume(coroutine.create(function()
  1268. printbye(instance.Name)
  1269. instance:ClearAllChildren()
  1270. Debris:AddItem(instance,0.0005)
  1271. end))
  1272. end
  1273. end
  1274. end
  1275. end)
  1276.  
  1277. --//=================================\\
  1278. --|| DAMAGING
  1279. --\\=================================//
  1280.  
  1281. function ApplyDamage(Humanoid,Damage,OneShot)
  1282. Damage = Damage * DAMAGEMULTIPLIER
  1283. local DEAD = false
  1284. if Humanoid.Health < 2000 and OneShot == false then
  1285. if Humanoid.Health - Damage > 0 then
  1286. Humanoid.Health = Humanoid.Health - Damage
  1287. else
  1288. Banish(Humanoid.Parent)
  1289. DEAD = true
  1290. end
  1291. else
  1292. DEAD = true
  1293. Banish(Humanoid.Parent)
  1294. end
  1295. if DEAD == true then
  1296. local PARTS = {}
  1297. for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do
  1298. if CHILD:IsA("BasePart") then
  1299. table.insert(PARTS,CHILD)
  1300. end
  1301. end
  1302. coroutine.resume(coroutine.create(function()
  1303. wait(2)
  1304. repeat
  1305. Swait()
  1306. local PIECE = nil
  1307. if MRANDOM(1,5) == 1 then
  1308. for E = 1, #PARTS do
  1309. if MRANDOM(1,5) == 1 then
  1310. PIECE = PARTS[E]
  1311. table.remove(PARTS,E)
  1312. break
  1313. end
  1314. end
  1315. end
  1316. if PIECE ~= nil then
  1317. if PIECE.Name == "Head" then
  1318. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0,0,0), SoundID = 0, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1319. else
  1320. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0,0,0), SoundID = 0, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1321. end
  1322. PIECE:remove()
  1323. end
  1324. until #PARTS == 0
  1325. end))
  1326. end
  1327. end
  1328.  
  1329.  
  1330. function Banish(Foe)
  1331. if Foe then
  1332. coroutine.resume(coroutine.create(function()
  1333. --if game.Players:FindFirstChild(Foe.Name) then
  1334. table.insert(TOBANISH,Foe.Name)
  1335. printbye(Foe.Name)
  1336. --end
  1337. Foe.Archivable = true
  1338. local CLONE = Foe:Clone()
  1339. Foe:Destroy()
  1340. CLONE.Parent = Effects
  1341. CLONE:BreakJoints()
  1342. local MATERIALS = {"Glass","Neon"}
  1343. for _, c in pairs(CLONE:GetDescendants()) do
  1344. if c:IsA("BasePart") then
  1345. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1346. CreateSound(340722848, c, 10, 1, false)
  1347. end
  1348. c.Anchored = true
  1349. c.Transparency = c.Transparency + 0.2
  1350. c.Material = MATERIALS[MRANDOM(1,2)]
  1351. c.Color = C3(0,1,1)
  1352. if c.ClassName == "MeshPart" then
  1353. c.TextureID = ""
  1354. end
  1355. if c:FindFirstChildOfClass("SpecialMesh") then
  1356. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1357. end
  1358. if c:FindFirstChildOfClass("Decal") then
  1359. c:FindFirstChildOfClass("Decal"):remove()
  1360. end
  1361. c.Name = "Banished"
  1362. c.CanCollide = false
  1363. else
  1364. c:remove()
  1365. end
  1366. end
  1367. local A = false
  1368. for i = 1, 35 do
  1369. if A == false then
  1370. A = true
  1371. elseif A == true then
  1372. A = false
  1373. end
  1374. for _, c in pairs(CLONE:GetDescendants()) do
  1375. if c:IsA("BasePart") then
  1376. c.Anchored = true
  1377. c.Material = MATERIALS[MRANDOM(1,2)]
  1378. c.Transparency = c.Transparency + 0.8/35
  1379. if A == false then
  1380. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1381. elseif A == true then
  1382. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1383. end
  1384. end
  1385. end
  1386. Swait()
  1387. end
  1388. CLONE:remove()
  1389. end))
  1390. end
  1391. end
  1392.  
  1393. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1394. local CHILDREN = workspace:GetDescendants()
  1395. for index, CHILD in pairs(CHILDREN) do
  1396. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1397. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1398. if HUM then
  1399. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1400. if TORSO then
  1401. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1402. if ISBANISH == true then
  1403. Banish(CHILD)
  1404. else
  1405. if ISBANISH == "Gravity" then
  1406. HUM.PlatformStand = true
  1407. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1408. local grav = Instance.new("BodyPosition",TORSO)
  1409. grav.D = 15
  1410. grav.P = 20000
  1411. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1412. grav.position = TORSO.Position
  1413. grav.Name = "V3BanishForce"..Player.Name
  1414. else
  1415. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1416. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1417. end
  1418. else
  1419. HUM.PlatformStand = false
  1420. end
  1421. end
  1422. elseif ISBANISH == "Gravity" then
  1423. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1424. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1425. HUM.PlatformStand = false
  1426. end
  1427. end
  1428. end
  1429. end
  1430. end
  1431. end
  1432. end
  1433.  
  1434. --[[function getbloody(victim,amount)
  1435. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Really black", "Blood", victim.Size)
  1436. PART.CFrame = victim.CFrame
  1437. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1438. Debris:AddItem(PART,5)
  1439. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1440. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1441. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1442. local prtcl = asd:Clone()
  1443. prtcl.Parent = PART
  1444. prtcl:Emit(amount*10)
  1445. end--]]
  1446.  
  1447. --[[function getbloody(victim,amount)
  1448. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Really black", "Blood", victim.Size)
  1449. PART.CFrame = victim.CFrame
  1450. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1451. Debris:AddItem(PART,5)
  1452. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1453. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1454. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1455. local prtcl = asd:Clone()
  1456. prtcl.Parent = PART
  1457. prtcl:Emit(amount*10)
  1458. end--]]
  1459.  
  1460.  
  1461.  
  1462. function Kill2(Char)
  1463. local NewCharacter = IT("Model",Effects)
  1464. NewCharacter.Name = "Ow im ded ;-;"
  1465. for _, c in pairs(Char:GetDescendants()) do
  1466. if c:IsA("BasePart") and c.Transparency == 0 then
  1467. if c.Parent == Char then
  1468. --getbloody(c,5)
  1469. end
  1470. c:BreakJoints()
  1471. c.Material = "Neon"
  1472. c.Color = C3(0,1,1)
  1473. c.CanCollide = true
  1474. c.Transparency = 0.3
  1475. if c:FindFirstChildOfClass("SpecialMesh") then
  1476. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1477. end
  1478. if c.Name == "Head" then
  1479. c:ClearAllChildren()
  1480. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1481. end
  1482. if c.ClassName == "MeshPart" then
  1483. c.TextureID = ""
  1484. end
  1485. if c:FindFirstChildOfClass("BodyPosition") then
  1486. c:FindFirstChildOfClass("BodyPosition"):remove()
  1487. end
  1488. if c:FindFirstChildOfClass("ParticleEmitter") then
  1489. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1490. end
  1491. c.Parent = NewCharacter
  1492. c.Name = "DeadPart"
  1493. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1494. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1495. end
  1496. end
  1497. Char:remove()
  1498. Debris:AddItem(NewCharacter,5)
  1499. end
  1500.  
  1501. function BulletDetection(FROM,TO,BRUTAL)
  1502. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1503. coroutine.resume(coroutine.create(function()
  1504. if AIMHIT ~= nil then
  1505. if AIMHIT.Parent ~= Character then
  1506. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1507. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1508. if BRUTAL == true then
  1509. Kill2(AIMHIT.Parent)
  1510. else
  1511. --getbloody(AIMHIT,15)
  1512. AIMHIT.Parent:BreakJoints()
  1513. if AIMHIT.Name == "Head" then
  1514. AIMHIT.Name = "HEADSHOT"
  1515. AIMHIT:remove()
  1516. end
  1517. end
  1518. else
  1519. if BRUTAL == true then
  1520. Kill2(AIMHIT.Parent.Parent)
  1521. else
  1522. Banish(AIMHIT.Parent.Parent)
  1523. end
  1524. end
  1525. end
  1526. end
  1527. end
  1528. end))
  1529. SpawnTrail(FROM,AIMPOS)
  1530. return AIMHIT,AIMPOS,NORMAL
  1531. end
  1532.  
  1533. function BulletDetection2(FROM,TO,BRUTAL)
  1534. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  1535. coroutine.resume(coroutine.create(function()
  1536. if AIMHIT ~= nil then
  1537. if AIMHIT.Parent ~= Character then
  1538. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1539. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  1540. if BRUTAL == true then
  1541. Banish(AIMHIT.Parent)
  1542. else
  1543. --getbloody(AIMHIT,15)
  1544. AIMHIT.Parent:BreakJoints()
  1545. if AIMHIT.Name == "Head" then
  1546. AIMHIT.Name = "HEADSHOT"
  1547. AIMHIT:remove()
  1548. end
  1549. end
  1550. else
  1551. if BRUTAL == true then
  1552. Banish(AIMHIT.Parent.Parent)
  1553. else
  1554. Kill2(AIMHIT.Parent.Parent)
  1555. end
  1556. end
  1557. end
  1558. end
  1559. end
  1560. end))
  1561. SpawnTrail(FROM,AIMPOS)
  1562. return AIMHIT,AIMPOS,NORMAL
  1563. end
  1564.  
  1565. function ApplyAoE2(POSITION,RANGE,ISBANISH)
  1566. local CHILDREN = workspace:GetDescendants()
  1567. for index, CHILD in pairs(CHILDREN) do
  1568. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1569. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1570. if HUM then
  1571. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1572. if TORSO then
  1573. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1574. if ISBANISH == true then
  1575. Banish(CHILD)
  1576. else
  1577. if ISBANISH == "Gravity" then
  1578. HUM.PlatformStand = true
  1579. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1580. local grav = Instance.new("BodyPosition",TORSO)
  1581. grav.D = 15
  1582. grav.P = 20000
  1583. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1584. grav.position = TORSO.Position
  1585. grav.Name = "V3BanishForce"..Player.Name
  1586. else
  1587. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1588. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1589. end
  1590. else
  1591. HUM.PlatformStand = false
  1592. end
  1593. end
  1594. elseif ISBANISH == "Gravity" then
  1595. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1596. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1597. HUM.PlatformStand = false
  1598. end
  1599. end
  1600. end
  1601. end
  1602. end
  1603. end
  1604. end
  1605.  
  1606.  
  1607. --//=================================\\
  1608. --|| ATTACK FUNCTIONS AND STUFF
  1609. --\\=================================//
  1610.  
  1611.  
  1612. function Kill(Char)
  1613. local NewCharacter = IT("Model",Effects)
  1614. NewCharacter.Name = "Ow im ded ;-;"
  1615. for _, c in pairs(Char:GetDescendants()) do
  1616. if c:IsA("BasePart") and c.Transparency == 0 then
  1617. if c.Parent == Char then
  1618. --getbloody(c,5)
  1619. end
  1620. c:BreakJoints()
  1621. c.Material = "Neon"
  1622. c.Color = C3(0,1,1)
  1623. c.CanCollide = true
  1624. c.Transparency = 0.3
  1625. if c:FindFirstChildOfClass("SpecialMesh") then
  1626. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1627. end
  1628. if c.Name == "Head" then
  1629. c:ClearAllChildren()
  1630. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1631. end
  1632. if c.ClassName == "MeshPart" then
  1633. c.TextureID = ""
  1634. end
  1635. if c:FindFirstChildOfClass("BodyPosition") then
  1636. c:FindFirstChildOfClass("BodyPosition"):remove()
  1637. end
  1638. if c:FindFirstChildOfClass("ParticleEmitter") then
  1639. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1640. end
  1641. c.Parent = NewCharacter
  1642. c.Name = "DeadPart"
  1643. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1644. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1645. end
  1646. end
  1647. Char:remove()
  1648. Debris:AddItem(NewCharacter,5)
  1649. end
  1650.  
  1651. function ApplyAoE6(POSITION, RANGE, MINDMG, MAXDMG, FLING, KILLD)
  1652. local CHILDREN = workspace:GetDescendants()
  1653. for index, CHILD in pairs(CHILDREN) do
  1654. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1655. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1656. if HUM then
  1657. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1658. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  1659. if KILLD == true then
  1660. Kill2(CHILD)
  1661. else
  1662. local DMG = MRANDOM(MINDMG, MAXDMG)
  1663. ApplyDamage(HUM, DMG, TORSO)
  1664. end
  1665. if FLING > 0 then
  1666. for _, c in pairs(CHILD:GetChildren()) do
  1667. if c:IsA("BasePart") then
  1668. local bv = Instance.new("BodyVelocity")
  1669. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1670. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  1671. bv.Parent = c
  1672. Debris:AddItem(bv, 0.05)
  1673. end
  1674. end
  1675. end
  1676. end
  1677. end
  1678. end
  1679. end
  1680. end
  1681.  
  1682. function chatfunc(text)
  1683. local chat = coroutine.wrap(function()
  1684. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1685. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1686. end
  1687. local Bill = Instance.new("BillboardGui",Character)
  1688. Bill.Size = UDim2.new(0,100,0,40)
  1689. Bill.StudsOffset = Vector3.new(0,3,0)
  1690. Bill.Adornee = Character.Head
  1691. Bill.Name = "TalkingBillBoard"
  1692. local Hehe = Instance.new("TextLabel",Bill)
  1693. Hehe.BackgroundTransparency = 1
  1694. Hehe.BorderSizePixel = 0
  1695. Hehe.Text = ""
  1696. Hehe.Font = "SciFi"
  1697. Hehe.TextSize = 40
  1698. Hehe.TextStrokeTransparency = 0
  1699. Hehe.Size = UDim2.new(1,0,0.5,0)
  1700. coroutine.resume(coroutine.create(function()
  1701. while Hehe ~= nil do
  1702. Swait()
  1703. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1704. Hehe.Rotation = math.random(-5,5)
  1705. Hehe.TextColor3 = Color3.new(0,1,1)
  1706. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  1707. end
  1708. end))
  1709. for i = 1,string.len(text),1 do
  1710. Swait()
  1711. Hehe.Text = string.sub(text,1,i)
  1712. end
  1713. Swait(90)--Re[math.random(1, 93)]
  1714. for i = 0, 1, .025 do
  1715. Swait()
  1716. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  1717. Hehe.TextStrokeTransparency = i
  1718. Hehe.TextTransparency = i
  1719. end
  1720. Bill:Destroy()
  1721. end)
  1722. chat()
  1723. end
  1724.  
  1725. function onChatted(msg)
  1726. chatfunc(msg)
  1727. end
  1728.  
  1729. Player.Chatted:connect(onChatted)
  1730.  
  1731. function printbye(Name)
  1732. local MESSAGES = {"No return form there,", "Perish,"}
  1733. chatfunc(MESSAGES[MRANDOM(2,#MESSAGES)]..Name..".")
  1734. end
  1735.  
  1736. function Execute()
  1737. ATTACK = true
  1738. Rooted = false
  1739. for i=0, 0.5, 0.1 / Animation_Speed do
  1740. Swait()
  1741. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.2) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1742. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1743. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(180), RAD(0), RAD(-13)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1744. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(-32), RAD(0), RAD(-13)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1745. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1746. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.7) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(13)), 4 / Animation_Speed)
  1747. end
  1748. Trail.Enabled = true
  1749. CreateSound(541909867, RootPart, 7, 1, false)
  1750. for i=0, 0.35, 0.1 / Animation_Speed do
  1751. Swait()
  1752. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.2) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1753. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1754. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(180), RAD(0), RAD(-13)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1755. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(-32), RAD(0), RAD(-13)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1756. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1757. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.7) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(13)), 4 / Animation_Speed)
  1758. end
  1759. ApplyAoE6(RootPart.Position, 5, 0, 0, 0, true)
  1760. for i=0, 0.35, 0.1 / Animation_Speed do
  1761. Swait()
  1762. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), 4 / Animation_Speed)
  1763. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 4 / Animation_Speed)
  1764. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(0), RAD(0), RAD(-13)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1765. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(-32), RAD(0), RAD(-13)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1766. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1767. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.7) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(13)), 4 / Animation_Speed)
  1768. end
  1769. Trail.Enabled = false
  1770. ATTACK = false
  1771. Rooted = false
  1772. end
  1773.  
  1774. function Taunt()
  1775. ATTACK = true
  1776. Rooted = true
  1777. Weapon2.Parent = nil
  1778. Weapon.Parent = nil
  1779. CreateSound(363808674, Torso, 6, 1, false)
  1780. for i=0, 0.6, 0.1 / Animation_Speed do
  1781. Swait()
  1782. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.2 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1783. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1784. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1785. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(180), RAD(0), RAD(45)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1786. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1787. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.7) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(13)), 4 / Animation_Speed)
  1788.  
  1789. end
  1790. CreateSound(649634100,Head,10,0.7,false)
  1791. for i=0, 0.6, 0.1 / Animation_Speed do
  1792. Swait()
  1793. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.2 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1794. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0.5, 0 + ((1) - 1)) * ANGLES(RAD(35 - 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1795. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(180), RAD(-32), RAD(-45)) * RIGHTSHOULDERC0, 4 / Animation_Speed)
  1796. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(180), RAD(32), RAD(45)) * LEFTSHOULDERC0, 4 / Animation_Speed)
  1797. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 4 / Animation_Speed)
  1798. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.7) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(13)), 4 / Animation_Speed)
  1799. end
  1800. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(30,30,30), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 999999})
  1801. Weapon2.Parent = Character
  1802. Weapon.Parent = Character
  1803. ATTACK = false
  1804. Rooted = false
  1805. end
  1806.  
  1807. function Shot()
  1808. ATTACK = true
  1809. Rooted = false
  1810. repeat
  1811. local GYRO = IT("BodyGyro",RootPart)
  1812. GYRO.D = 175
  1813. GYRO.P = 20000
  1814. GYRO.MaxTorque = VT(0,40000,0)
  1815. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1816. if COMBO == 1 then
  1817. COMBO = 2
  1818. for i=0, 0, 0.1 / Animation_Speed do
  1819. Swait()
  1820. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1821. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.2 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1822. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1823. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1824. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(55), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1825. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1826. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.7) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(13)), 1 / Animation_Speed)
  1827.  
  1828. end
  1829. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1830. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1831. CreateSound(570196601, Hole2, 7, 1, false)
  1832. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1833. SpawnTrail(Hole.Position,POS)
  1834. if HIT ~= nil then
  1835. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1836. Banish(HIT.Parent)
  1837. end
  1838. end
  1839. for i=0, 0.05, 0.1 / Animation_Speed do
  1840. Swait()
  1841. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.2 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1842. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1843. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1844. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1845. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1846. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.7) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(13)), 1 / Animation_Speed)
  1847.  
  1848. end
  1849. elseif COMBO == 2 then
  1850. COMBO = 1
  1851. for i=0, 0.05, 0.1 / Animation_Speed do
  1852. Swait()
  1853. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1854. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.2 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1855. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1856. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1857. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(55), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1858. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1859. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.7) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(13)), 1 / Animation_Speed)
  1860.  
  1861. end
  1862. 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,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1863. 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 = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1864. CreateSound(570196601, Hole, 7, 1, false)
  1865. local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
  1866. SpawnTrail(Hole2.Position,POS)
  1867. if HIT ~= nil then
  1868. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1869. Banish(HIT.Parent)
  1870. end
  1871. end
  1872. for i=0, 0.05, 0.1 / Animation_Speed do
  1873. Swait()
  1874. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.2 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1875. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1876. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1877. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1878. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1879. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.7) * ANGLES(RAD(-30 + 5.5 * SIN(SINE / 20)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(13)), 1 / Animation_Speed)
  1880.  
  1881. end
  1882. end
  1883. GYRO:remove()
  1884. until KEYHOLD == false
  1885. ATTACK = false
  1886. Rooted = false
  1887. end
  1888.  
  1889. function Shot2()
  1890. ATTACK = true
  1891. Rooted = false
  1892. repeat
  1893. local GYRO = IT("BodyGyro",RootPart)
  1894. GYRO.D = 175
  1895. GYRO.P = 20000
  1896. GYRO.MaxTorque = VT(0,40000,0)
  1897. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1898. if COMBO == 1 then
  1899. COMBO = 2
  1900. for i=0, 0, 0.1 / Animation_Speed do
  1901. Swait()
  1902. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1903. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 3 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  1904. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  1905. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1906. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1907. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1908. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1909. end
  1910. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1911. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1912. CreateSound(335711481, Hole2, 7, 1, false)
  1913. BulletDetection(Hole2.Position,Mouse.Hit.p,true)
  1914.  
  1915. for i=0, 0.05, 0.1 / Animation_Speed do
  1916. Swait()
  1917. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 3 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  1918. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  1919. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1920. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1921. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1922. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1923. end
  1924. elseif COMBO == 2 then
  1925. COMBO = 1
  1926. for i=0, 0.05, 0.1 / Animation_Speed do
  1927. Swait()
  1928. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1929. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 3 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
  1930. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
  1931. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1932. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1933. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1934. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1935. end
  1936. 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,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1937. 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 = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1938. CreateSound(335711481, Hole, 7, 1, false)
  1939. BulletDetection(Hole.Position,Mouse.Hit.p,true)
  1940. for i=0, 0.05, 0.1 / Animation_Speed do
  1941. Swait()
  1942. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 3 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
  1943. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
  1944. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1945. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1946. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1947. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1948. end
  1949. end
  1950. GYRO:remove()
  1951. until KEYHOLD == false
  1952. ATTACK = false
  1953. Rooted = false
  1954. end
  1955.  
  1956. function AttackTemplate()
  1957. ATTACK = true
  1958. Rooted = false
  1959. for i=0, 1, 0.1 / Animation_Speed do
  1960. Swait()
  1961. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1962. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1963. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1964. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1965. 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.15 / Animation_Speed)
  1966. 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.15 / Animation_Speed)
  1967. end
  1968. ATTACK = false
  1969. Rooted = false
  1970. end
  1971.  
  1972. --//=================================\\
  1973. --|| ASSIGN THINGS TO KEYS
  1974. --\\=================================//
  1975.  
  1976. function MouseDown(Mouse)
  1977. if ATTACK == false then
  1978. Execute()
  1979. end
  1980. end
  1981.  
  1982. function MouseUp(Mouse)
  1983. HOLD = false
  1984. end
  1985.  
  1986. function KeyDown(Key)
  1987. KEYHOLD = true
  1988. if Key == "z" and ATTACK == false then
  1989. Shot()
  1990. end
  1991. if Key == "t" and ATTACK == false then
  1992. Taunt()
  1993. end
  1994.  
  1995. if Key == "c" and ATTACK == false then
  1996. Shot2()
  1997. end
  1998.  
  1999. if Key == "v" and ATTACK == false then
  2000. end
  2001.  
  2002. if Key == "x" and ATTACK == false then
  2003. end
  2004. end
  2005.  
  2006. function KeyUp(Key)
  2007. KEYHOLD = false
  2008. end
  2009.  
  2010. Mouse.Button1Down:connect(function(NEWKEY)
  2011. MouseDown(NEWKEY)
  2012. end)
  2013. Mouse.Button1Up:connect(function(NEWKEY)
  2014. MouseUp(NEWKEY)
  2015. end)
  2016. Mouse.KeyDown:connect(function(NEWKEY)
  2017. KeyDown(NEWKEY)
  2018. end)
  2019. Mouse.KeyUp:connect(function(NEWKEY)
  2020. KeyUp(NEWKEY)
  2021. end)
  2022.  
  2023. --//=================================\\
  2024. --\\=================================//
  2025.  
  2026.  
  2027. function unanchor()
  2028. if UNANCHOR == true then
  2029. g = Character:GetChildren()
  2030. for i = 1, #g do
  2031. if g[i].ClassName == "Part" then
  2032. g[i].Anchored = false
  2033. end
  2034. end
  2035. end
  2036. end
  2037.  
  2038.  
  2039. --//=================================\\
  2040. --|| WRAP THE WHOLE SCRIPT UP
  2041. --\\=================================//
  2042.  
  2043. Humanoid.Changed:connect(function(Jump)
  2044. if Jump == "Jump" and (Disable_Jump == true) then
  2045. Humanoid.Jump = false
  2046. end
  2047. end)
  2048. coroutine.resume(coroutine.create(function()
  2049. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2050. while true do
  2051. Swait()
  2052. sphereMK(2,math.random(5,10)/45,"Add",RootPart.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),0.5,0.5,0.5,0,BrickColor.new("Toothpaste"),0)
  2053. slash(math.random(50,100)/10,5,true,"Round","Add","Out",RootPart.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),VT(0.01,0.002,0.01),math.random(5,10)/250,BrickColor.new("White"))
  2054. end
  2055. end))
  2056. coroutine.resume(coroutine.create(function()
  2057. repeat
  2058. Swait()
  2059. SKILL1FRAME.Rotation = 0 - 5 * math.cos(SINE / 23)
  2060. text.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  2061. text.Rotation = math.random(-1,1)
  2062. until Humanoid.Health == 0
  2063. end))
  2064. local CONNECT = nil
  2065.  
  2066. while true do
  2067. Swait()
  2068. ANIMATE.Parent = nil
  2069. if Character:FindFirstChildOfClass("Humanoid") == nil then
  2070. Humanoid = IT("Humanoid",Character)
  2071. end
  2072. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2073. v:Stop();
  2074. end
  2075. SINE = SINE + CHANGE
  2076. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2077. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2078. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2079. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2080. --[[if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2081. 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)
  2082. 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)
  2083. 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)
  2084. 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)
  2085. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2086. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2087. 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)
  2088. 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)
  2089. 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)
  2090. end--]]
  2091. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2092. ANIM = "Jump"
  2093. if ATTACK == false then
  2094. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2095. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2096. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2097. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2098. 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)
  2099. 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)
  2100. end
  2101. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2102. ANIM = "Fall"
  2103. if ATTACK == false then
  2104. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2105. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2106. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2107. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2108. 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)
  2109. 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)
  2110. end
  2111. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2112. ANIM = "Idle"
  2113. if ATTACK == false then
  2114. --[[RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  2115. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  2116. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2117. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2118. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2119. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)--]]
  2120. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.2 + 0.1 * COS(SINE / 20)) * ANGLES(RAD(-25 + 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2121. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 5.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2122. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(45 - 5.5 * SIN(SINE / 20)), RAD(0), RAD(-13)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2123. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.1 * COS(SINE / 20), 0) * ANGLES(RAD(-32 - 5.5 * SIN(SINE / 20)), RAD(0), RAD(-13)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2124. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 + 5.5 * SIN(SINE / 20)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2125. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.7) * ANGLES(RAD(-25 + 5.5 * SIN(SINE / 20)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 20)), RAD(0), RAD(13)), 0.2 / Animation_Speed)
  2126.  
  2127. end
  2128. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2129. ANIM = "Walk"
  2130. if ATTACK == false then
  2131. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.5 - 0.15 * COS(SINE / 7)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2132. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2133. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2134. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2135. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0 - 25 * SIN(SINE / 15))), 0.2 / Animation_Speed)
  2136. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0 - 25 * SIN(SINE / 15))), 0.2 / Animation_Speed)
  2137. end
  2138. end
  2139. unanchor()
  2140. Humanoid.MaxHealth = "inf"
  2141. Humanoid.Health = "inf"
  2142. if Rooted == false then
  2143. Disable_Jump = false
  2144. Humanoid.WalkSpeed = Speed
  2145. elseif Rooted == true then
  2146. Disable_Jump = true
  2147. Humanoid.WalkSpeed = 0
  2148. end
  2149. if sick.Parent ~= Torso then
  2150. sick = IT("Sound", Torso)
  2151. end
  2152. sick.Parent = Torso
  2153. sick.Volume = 1
  2154. sick.Pitch = 1
  2155. sick.SoundId = "rbxassetid://1222970152"
  2156. sick.Name = "Dead"
  2157. sick.Looped = true
  2158. sick:Resume()
  2159. end
  2160.  
  2161. --//=================================\\
  2162. --\\=================================//
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168. --//====================================================\\--
  2169. --|| END OF SCRIPT
  2170. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement