Advertisement
AirdHeee

Neon Gunner V1.3.05

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