Advertisement
Basykung7845

Neon Gun

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