Advertisement
Ichigo13

gunC

Jan 19th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 127.21 KB | None | 0 0
  1. script.Name = "Banisher Gun V3 / 1"
  2. --//====================================================\\--
  3. --|| CREATED BY SHACKLUSTER Edit By NameClan
  4. --\\====================================================//--
  5.  
  6. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  7. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  8. do
  9. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  10. script.Parent = Player.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent and t.Function then
  36. t.Function(...)
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=Player then return end
  44. if io.isMouse then
  45. m.Target = io.Target
  46. m.Hit = io.Hit
  47. else
  48. local b = io.UserInputState == Enum.UserInputState.Begin
  49. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  50. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  51. end
  52. for _,t in pairs(CAS.Actions) do
  53. for _,k in pairs(t.Keys) do
  54. if k==io.KeyCode then
  55. t.Function(t.Name,io.UserInputState,io)
  56. end
  57. end
  58. end
  59. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  60. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  61. end
  62. end)
  63. Event.Parent = NLS([==[
  64. local Player = game:GetService("Players").LocalPlayer
  65. local Event = script:WaitForChild("UserInput_Event")
  66.  
  67. local UIS = game:GetService("UserInputService")
  68. local input = function(io,a)
  69. if a then return end
  70. --Since InputObject is a client-side instance, we create and pass table instead
  71. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75.  
  76. local Mouse = Player:GetMouse()
  77. local h,t
  78. --Give the server mouse data 30 times every second, but only if the values changed
  79. --If player is not moving their mouse, client won't fire events
  80. while wait(1/30) do
  81. if h~=Mouse.Hit or t~=Mouse.Target then
  82. h,t=Mouse.Hit,Mouse.Target
  83. Event:FireServer({isMouse=true,Target=t,Hit=h})
  84. end
  85. end]==],Player.Character)
  86. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  87. end
  88.  
  89. script:ClearAllChildren()
  90. wait(0.2)
  91. local LIGHTHITSOUNDS = {"1177780949","1177781153","1177784554"}
  92. local FireSound = "904051531"
  93. local LAUGHS = {834001699,834001752,834001797,834001828}
  94. Player = owner
  95. PlayerGui = Player.PlayerGui
  96. Cam = workspace.CurrentCamera
  97. Backpack = Player.Backpack
  98. Character = Player.Character
  99. Humanoid = Character.Humanoid
  100. RootPart = Character["HumanoidRootPart"]
  101. Torso = Character["Torso"]
  102. Head = Character["Head"]
  103. RightArm = Character["Right Arm"]
  104. LeftArm = Character["Left Arm"]
  105. RightLeg = Character["Right Leg"]
  106. LeftLeg = Character["Left Leg"]
  107. local sick = Instance.new("Sound",Character)
  108. q = Character:GetChildren()
  109. for u = 1, #q do
  110. if q[u].ClassName == "Accessory" then
  111. q[u]:Destroy()
  112. elseif q[u].ClassName == "CharacterMesh" then
  113. q[u]:Destroy()
  114. end
  115. end
  116. Head.face:Destroy()
  117. Head.Mesh:Destroy()
  118. newmesh = Instance.new("SpecialMesh")
  119. newmesh.Scale = Vector3.new(1.1,1.1,1.1)
  120. newmesh.MeshId = "http://www.roblox.com/asset/?id=0"
  121. newmesh.TextureId = "http://www.roblox.com/asset/?id=0"
  122. newmesh.Parent = Head
  123.  
  124. local function weldBetween(a, b)
  125. local weldd = Instance.new("ManualWeld")
  126. weldd.Part0 = a
  127. weldd.Part1 = b
  128. weldd.C0 = CFrame.new()
  129. weldd.C1 = b.CFrame:inverse() * a.CFrame
  130. weldd.Parent = a
  131. return weldd
  132. end
  133. RootJoint = RootPart["RootJoint"]
  134. Neck = Torso["Neck"]
  135. RightShoulder = Torso["Right Shoulder"]
  136. LeftShoulder = Torso["Left Shoulder"]
  137. RightHip = Torso["Right Hip"]
  138. LeftHip = Torso["Left Hip"]
  139. local TIME = 0
  140. local sick = Instance.new("Sound",Torso)
  141.  
  142. IT = Instance.new
  143. CF = CFrame.new
  144. VT = Vector3.new
  145. RAD = math.rad
  146. C3 = Color3.new
  147. UD2 = UDim2.new
  148. BRICKC = BrickColor.new
  149. ANGLES = CFrame.Angles
  150. EULER = CFrame.fromEulerAnglesXYZ
  151. COS = math.cos
  152. ACOS = math.acos
  153. SIN = math.sin
  154. ASIN = math.asin
  155. ABS = math.abs
  156. MRANDOM = math.random
  157. FLOOR = math.floor
  158.  
  159.  
  160. it = Instance.new
  161.  
  162. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  163. local fp=it("Part")
  164. fp.formFactor=formfactor
  165. fp.Parent=parent
  166. fp.Reflectance=reflectance
  167. fp.Transparency=transparency
  168. fp.CanCollide=false
  169. fp.Locked=true
  170. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  171. fp.Name=name
  172. fp.Size=size
  173. fp.Position=Character.Torso.Position
  174. fp.Material=material
  175. fp:BreakJoints()
  176. return fp
  177. end
  178.  
  179. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  180. local mesh=it(Mesh)
  181. mesh.Parent=part
  182. if Mesh=="SpecialMesh" then
  183. mesh.MeshType=meshtype
  184. mesh.MeshId=meshid
  185. end
  186. mesh.Offset=offset
  187. mesh.Scale=scale
  188. return mesh
  189. end
  190.  
  191. function weld(parent,part0,part1,c0,c1)
  192. local weld=it("Weld")
  193. weld.Parent=parent
  194. weld.Part0=part0
  195. weld.Part1=part1
  196. weld.C0=c0
  197. weld.C1=c1
  198. return weld
  199. end
  200.  
  201. q = "Really black"
  202. Claw1=part(Enum.FormFactor.Custom,Character,Enum.Material.SmoothPlastic,0,0,q,"Claw",Vector3.new(0.400000006, 0.400000036, 0.400000006))
  203. Claw1weld=weld(Character,RightArm,Claw1,CFrame.new(0.25, -2.3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00980377197, -0.0303750038, 0.719708443, -5, 3.10001451e-005, 3.09999632e-005, 3.10008145e-005, 0, 0, 0, -4, -1))
  204. mesh("SpecialMesh",Claw1,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=10681506",Vector3.new(0, 0, 0),Vector3.new(-1,-1.8,-1))
  205. Claw2=part(Enum.FormFactor.Custom,Character,Enum.Material.SmoothPlastic,0,0,q,"Claw",Vector3.new(0.400000006, 0.400000036, 0.400000006))
  206. Claw2weld=weld(Character,LeftArm,Claw2,CFrame.new(-0.25, -2.3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00980377197, -0.0303750038, 0.719708443, 5, 3.10001451e-005, 3.09999632e-005, 3.10008145e-005, 0, 0, 0, -4, -1))
  207. mesh("SpecialMesh",Claw2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=10681506",Vector3.new(0, 0, 0),Vector3.new(-1,-1.8,-1))
  208.  
  209. --//=================================\\
  210. --|| USEFUL VALUES
  211. --\\=================================//
  212.  
  213. Animation_Speed = 3
  214. local FORCERESET = false
  215. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  216. local Speed = 16
  217. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  218. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  219. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  220. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  221. local DAMAGEMULTIPLIER = 1
  222. local ANIM = "Idle"
  223. local ATTACK = false
  224. local EQUIPPED = false
  225. local HOLD = false
  226. local COMBO = 1
  227. local COMBO2 = 1
  228. local Rooted = false
  229. local SINE = 0
  230. local STAGGERHITANIM = false
  231. local STAGGERANIM = false
  232. local KEYHOLD = false
  233. local CHANGE = 2 / Animation_Speed
  234. local WALKINGANIM = false
  235. local VALUE1 = false
  236. local NOWALK = false
  237. local VALUE2 = false
  238. local INTRO = false
  239. local TRANSFORMED = false
  240. local ROBLOXIDLEANIMATION = IT("Animation")
  241. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  242. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  243. --ROBLOXIDLEANIMATION.Parent = Humanoid
  244. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  245. WEAPONGUI.Name = "BanishV3Gui"
  246. local Weapon = IT("Model")
  247. Weapon.Name = "Adds"
  248. local Effects = IT("Folder", Weapon)
  249. Effects.Name = "Effects"
  250. local ANIMATOR = Humanoid.Animator
  251. local ANIMATE = Character:FindFirstChild("Animate")
  252. local UNANCHOR = true
  253. local TOBANISH = {}
  254. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  255. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  256. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  257. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  258. script.Parent = PlayerGui
  259.  
  260. --//=================================\\
  261. --\\=================================//
  262.  
  263.  
  264. --//=================================\\
  265. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  266. --\\=================================//
  267.  
  268.  
  269. Class_Name = "Beserker"
  270. Weapon_Name = "Claws"
  271.  
  272. Custom_Colors = {
  273. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  274. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  275.  
  276. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  277. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  278. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  279. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  280. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  281.  
  282. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  283. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  284. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  285. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  286. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  287. }
  288.  
  289. Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar.
  290. Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar.
  291. Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar.
  292. Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar.
  293. Ability_Background_Transparency = 0 --Transparency for the background of the abilities.
  294. Stat_Background_Transparency = 0 --Transparency for the background of the stats.
  295.  
  296. Player_Size = 1 --Size of the player.
  297. Animation_Speed = 2
  298. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  299.  
  300. Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui.
  301. Enable_Stats = false --Enables or disables stats.
  302. Put_Stats_In_Character = false --Places stats in Character.
  303. Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort.
  304. Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort.
  305. Enable_Stagger = false --Enables or disables staggering.
  306. Enable_Stun = false --Enables or disables the stun mechanic.
  307. Enable_Abilities = false --Enables abilites with cooldowns and mana costs.
  308. Enable_Secondary_Bar = false --Enables the secondary mana bar, if true.
  309.  
  310. Start_Equipped = false --Starts the player equipped with their weapon.
  311. Start_Equipped_With_Equipped_Animation = false --Used in conjunction with the above option. Starts your equip animation.
  312. Can_Equip_Or_Unequip = true --Enables or disables the ability to unequip or equip your weapon.
  313. Disable_Animator = true --Disables the Animator in the humanoid.
  314. Disable_Animate = true --Disables the Animate script in the character.
  315. Disable_Moving_Arms = false --Keeps the arms from moving around.
  316. Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms.
  317. Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory.
  318. Disable_Jump = false --Disables jumping.
  319. Use_HopperBin = true --Uses a hopperbin to do things.
  320.  
  321. Player_Size = 1 --Size of the player.
  322. Animation_Speed = 2
  323. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  324.  
  325. Cooldown_1 = 0 --Cooldowns for abilites.
  326. Cooldown_2 = 0
  327. Cooldown_3 = 0
  328. Cooldown_4 = 0
  329. Skill_1_Mana_Cost = 0 --How much mana is required to use the skill.
  330. Skill_2_Mana_Cost = 0
  331. Skill_3_Mana_Cost = 0
  332. Skill_4_Mana_Cost = 0
  333. Max_Mana = 0 --Maximum amount of mana you can have.
  334. Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have.
  335. Mana_Name = "Mana" --Name for the mana bar.
  336. Secondary_Mana_Name = "Block" --Name for the secondary mana bar.
  337. Max_Stun = 1 --Maximum amount of stun you can have.
  338. Recover_Mana = 0 --How much mana you gain.
  339. Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another.
  340. Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another.
  341. Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another.
  342. Recover_Secondary_Mana = 0 --How much secondary mana you gain.
  343. Lose_Stun = 0 --How much stun you lose.
  344. Stun_Wait = 0 --Delay between losing stun.
  345. Mana_Wait = 0 --Delay between gaining mana.
  346. Secondary_Mana_Wait = 0 --Delay between gaining secondary mana.
  347. Menu_Update_Speed = 0 --How fast the Weapon Gui will update.
  348. Constant_Update = false --Removes the delay between updating the Weapon GUI.
  349. Show_Stats = false --Hides or shows stats.
  350. Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78}
  351.  
  352. ArtificialHB = Instance.new("BindableEvent", script)
  353. ArtificialHB.Name = "ArtificialHB"
  354.  
  355. script:WaitForChild("ArtificialHB")
  356.  
  357. frame = Frame_Speed
  358. tf = 0
  359. allowframeloss = false
  360. tossremainder = false
  361. lastframe = tick()
  362. script.ArtificialHB:Fire()
  363.  
  364. game:GetService("RunService").Heartbeat:connect(function(s, p)
  365. tf = tf + s
  366. if tf >= frame then
  367. if allowframeloss then
  368. script.ArtificialHB:Fire()
  369. lastframe = tick()
  370. else
  371. for i = 1, math.floor(tf / frame) do
  372. script.ArtificialHB:Fire()
  373. end
  374. lastframe = tick()
  375. end
  376. if tossremainder then
  377. tf = 0
  378. else
  379. tf = tf - frame * math.floor(tf / frame)
  380. end
  381. end
  382. end)
  383.  
  384. --//=================================\\
  385. --\\=================================//
  386.  
  387. --//=================================\\
  388. --|| SOME FUNCTIONS
  389. --\\=================================//
  390.  
  391. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  392. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  393. end
  394.  
  395. function PositiveAngle(NUMBER)
  396. if NUMBER >= 0 then
  397. NUMBER = 0
  398. end
  399. return NUMBER
  400. end
  401.  
  402. function NegativeAngle(NUMBER)
  403. if NUMBER <= 0 then
  404. NUMBER = 0
  405. end
  406. return NUMBER
  407. end
  408.  
  409. function Swait(NUMBER)
  410. if NUMBER == 0 or NUMBER == nil then
  411. ArtificialHB.Event:wait()
  412. else
  413. for i = 1, NUMBER do
  414. ArtificialHB.Event:wait()
  415. end
  416. end
  417. end
  418.  
  419. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  420. local NEWMESH = IT(MESH)
  421. if MESH == "SpecialMesh" then
  422. NEWMESH.MeshType = MESHTYPE
  423. if MESHID ~= "nil" and MESHID ~= "" then
  424. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  425. end
  426. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  427. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  428. end
  429. end
  430. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  431. NEWMESH.Scale = SCALE
  432. NEWMESH.Parent = PARENT
  433. return NEWMESH
  434. end
  435.  
  436. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  437. local NEWPART = IT("Part")
  438. NEWPART.formFactor = FORMFACTOR
  439. NEWPART.Reflectance = REFLECTANCE
  440. NEWPART.Transparency = TRANSPARENCY
  441. NEWPART.CanCollide = false
  442. NEWPART.Locked = true
  443. NEWPART.Anchored = true
  444. if ANCHOR == false then
  445. NEWPART.Anchored = false
  446. end
  447. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  448. NEWPART.Name = NAME
  449. NEWPART.Size = SIZE
  450. NEWPART.Position = Torso.Position
  451. NEWPART.Material = MATERIAL
  452. NEWPART:BreakJoints()
  453. NEWPART.Parent = PARENT
  454. return NEWPART
  455. end
  456.  
  457. local function weldBetween(a, b)
  458. local weldd = Instance.new("ManualWeld")
  459. weldd.Part0 = a
  460. weldd.Part1 = b
  461. weldd.C0 = CFrame.new()
  462. weldd.C1 = b.CFrame:inverse() * a.CFrame
  463. weldd.Parent = a
  464. return weldd
  465. end
  466.  
  467.  
  468. function QuaternionFromCFrame(cf)
  469. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  470. local trace = m00 + m11 + m22
  471. if trace > 0 then
  472. local s = math.sqrt(1 + trace)
  473. local recip = 0.5 / s
  474. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  475. else
  476. local i = 0
  477. if m11 > m00 then
  478. i = 1
  479. end
  480. if m22 > (i == 0 and m00 or m11) then
  481. i = 2
  482. end
  483. if i == 0 then
  484. local s = math.sqrt(m00 - m11 - m22 + 1)
  485. local recip = 0.5 / s
  486. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  487. elseif i == 1 then
  488. local s = math.sqrt(m11 - m22 - m00 + 1)
  489. local recip = 0.5 / s
  490. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  491. elseif i == 2 then
  492. local s = math.sqrt(m22 - m00 - m11 + 1)
  493. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  494. end
  495. end
  496. end
  497.  
  498. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  499. local xs, ys, zs = x + x, y + y, z + z
  500. local wx, wy, wz = w * xs, w * ys, w * zs
  501. local xx = x * xs
  502. local xy = x * ys
  503. local xz = x * zs
  504. local yy = y * ys
  505. local yz = y * zs
  506. local zz = z * zs
  507. 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))
  508. end
  509.  
  510. function QuaternionSlerp(a, b, t)
  511. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  512. local startInterp, finishInterp;
  513. if cosTheta >= 0.0001 then
  514. if (1 - cosTheta) > 0.0001 then
  515. local theta = ACOS(cosTheta)
  516. local invSinTheta = 1 / SIN(theta)
  517. startInterp = SIN((1 - t) * theta) * invSinTheta
  518. finishInterp = SIN(t * theta) * invSinTheta
  519. else
  520. startInterp = 1 - t
  521. finishInterp = t
  522. end
  523. else
  524. if (1 + cosTheta) > 0.0001 then
  525. local theta = ACOS(-cosTheta)
  526. local invSinTheta = 1 / SIN(theta)
  527. startInterp = SIN((t - 1) * theta) * invSinTheta
  528. finishInterp = SIN(t * theta) * invSinTheta
  529. else
  530. startInterp = t - 1
  531. finishInterp = t
  532. end
  533. end
  534. 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
  535. end
  536.  
  537. function Clerp(a, b, t)
  538. local qa = {QuaternionFromCFrame(a)}
  539. local qb = {QuaternionFromCFrame(b)}
  540. local ax, ay, az = a.x, a.y, a.z
  541. local bx, by, bz = b.x, b.y, b.z
  542. local _t = 1 - t
  543. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  544. end
  545.  
  546. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  547. local frame = IT("Frame")
  548. frame.BackgroundTransparency = TRANSPARENCY
  549. frame.BorderSizePixel = BORDERSIZEPIXEL
  550. frame.Position = POSITION
  551. frame.Size = SIZE
  552. frame.BackgroundColor3 = COLOR
  553. frame.BorderColor3 = BORDERCOLOR
  554. frame.Name = NAME
  555. frame.Parent = PARENT
  556. return frame
  557. end
  558.  
  559.  
  560. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  561. local label = IT("TextLabel")
  562. label.BackgroundTransparency = 1
  563. label.Size = UD2(1, 0, 1, 0)
  564. label.Position = UD2(0, 0, 0, 0)
  565. label.TextColor3 = TEXTCOLOR
  566. label.TextStrokeTransparency = STROKETRANSPARENCY
  567. label.TextTransparency = TRANSPARENCY
  568. label.FontSize = TEXTFONTSIZE
  569. label.Font = TEXTFONT
  570. label.BorderSizePixel = BORDERSIZEPIXEL
  571. label.TextScaled = false
  572. label.Text = TEXT
  573. label.Name = NAME
  574. label.Parent = PARENT
  575. return label
  576. end
  577.  
  578. function NoOutlines(PART)
  579. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  580. end
  581.  
  582. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  583. local NEWWELD = IT(TYPE)
  584. NEWWELD.Part0 = PART0
  585. NEWWELD.Part1 = PART1
  586. NEWWELD.C0 = C0
  587. NEWWELD.C1 = C1
  588. NEWWELD.Parent = PARENT
  589. return NEWWELD
  590. end
  591.  
  592. local S = IT("Sound")
  593. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  594. local NEWSOUND = nil
  595. coroutine.resume(coroutine.create(function()
  596. NEWSOUND = S:Clone()
  597. NEWSOUND.Parent = PARENT
  598. NEWSOUND.Volume = VOLUME
  599. NEWSOUND.Pitch = PITCH
  600. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  601. NEWSOUND:play()
  602. if DOESLOOP == true then
  603. NEWSOUND.Looped = true
  604. else
  605. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  606. NEWSOUND:remove()
  607. end
  608. end))
  609. return NEWSOUND
  610. end
  611.  
  612. function CFrameFromTopBack(at, top, back)
  613. local right = top:Cross(back)
  614. 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)
  615. end
  616.  
  617. --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})
  618. function WACKYEFFECT(Table)
  619. local TYPE = (Table.EffectType or "Sphere")
  620. local SIZE = (Table.Size or VT(1,1,1))
  621. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  622. local TRANSPARENCY = (Table.Transparency or 0)
  623. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  624. local CFRAME = (Table.CFrame or Torso.CFrame)
  625. local MOVEDIRECTION = (Table.MoveToPos or nil)
  626. local ROTATION1 = (Table.RotationX or 0)
  627. local ROTATION2 = (Table.RotationY or 0)
  628. local ROTATION3 = (Table.RotationZ or 0)
  629. local MATERIAL = (Table.Material or "Neon")
  630. local COLOR = (Table.Color or C3(1,1,1))
  631. local TIME = (Table.Time or 45)
  632. local SOUNDID = (Table.SoundID or nil)
  633. local SOUNDPITCH = (Table.SoundPitch or nil)
  634. local SOUNDVOLUME = (Table.SoundVolume or nil)
  635. coroutine.resume(coroutine.create(function()
  636. local PLAYSSOUND = false
  637. local SOUND = nil
  638. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  639. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  640. PLAYSSOUND = true
  641. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  642. end
  643. EFFECT.Color = COLOR
  644. local MSH = nil
  645. if TYPE == "Sphere" then
  646. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  647. elseif TYPE == "Block" then
  648. MSH = IT("BlockMesh",EFFECT)
  649. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  650. elseif TYPE == "Wave" then
  651. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  652. elseif TYPE == "Ring" then
  653. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  654. elseif TYPE == "Slash" then
  655. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  656. elseif TYPE == "Round Slash" then
  657. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  658. elseif TYPE == "Swirl" then
  659. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  660. elseif TYPE == "Skull" then
  661. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  662. elseif TYPE == "Crystal" then
  663. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  664. end
  665. if MSH ~= nil then
  666. local MOVESPEED = nil
  667. if MOVEDIRECTION ~= nil then
  668. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  669. end
  670. local GROWTH = SIZE - ENDSIZE
  671. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  672. if TYPE == "Block" then
  673. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  674. else
  675. EFFECT.CFrame = CFRAME
  676. end
  677. for LOOP = 1, TIME+1 do
  678. Swait()
  679. MSH.Scale = MSH.Scale - GROWTH/TIME
  680. if TYPE == "Wave" then
  681. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  682. end
  683. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  684. if TYPE == "Block" then
  685. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  686. else
  687. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  688. end
  689. if MOVEDIRECTION ~= nil then
  690. local ORI = EFFECT.Orientation
  691. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  692. EFFECT.Orientation = ORI
  693. end
  694. end
  695. if PLAYSSOUND == false then
  696. EFFECT:remove()
  697. else
  698. SOUND.Stopped:Connect(function()
  699. EFFECT:remove()
  700. end)
  701. end
  702. else
  703. if PLAYSSOUND == false then
  704. EFFECT:remove()
  705. else
  706. repeat Swait() until SOUND.Playing == false
  707. EFFECT:remove()
  708. end
  709. end
  710. end))
  711. end
  712.  
  713. function MakeForm(PART,TYPE)
  714. if TYPE == "Cyl" then
  715. local MSH = IT("CylinderMesh",PART)
  716. elseif TYPE == "Ball" then
  717. local MSH = IT("SpecialMesh",PART)
  718. MSH.MeshType = "Sphere"
  719. elseif TYPE == "Wedge" then
  720. local MSH = IT("SpecialMesh",PART)
  721. MSH.MeshType = "Wedge"
  722. end
  723. end
  724.  
  725. local asd = Instance.new("ParticleEmitter")
  726. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  727. asd.LightEmission = .1
  728. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  729. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  730. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  731. asd.Transparency = bbb
  732. asd.Size = aaa
  733. asd.ZOffset = .9
  734. asd.Acceleration = Vector3.new(0, -15, 0)
  735. asd.LockedToPart = false
  736. asd.EmissionDirection = "Back"
  737. asd.Lifetime = NumberRange.new(1, 2)
  738. asd.Rotation = NumberRange.new(-100, 100)
  739. asd.RotSpeed = NumberRange.new(-100, 100)
  740. asd.Speed = NumberRange.new(10)
  741. asd.Enabled = false
  742. asd.VelocitySpread = 999
  743.  
  744. function getbloody(victim,amount)
  745. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  746. PART.CFrame = victim.CFrame
  747. local HITPLAYERSOUNDS = {"356551938","264486467"}
  748. Debris:AddItem(PART,5)
  749. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  750. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  751. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  752. local prtcl = asd:Clone()
  753. prtcl.Parent = PART
  754. prtcl:Emit(amount*10)
  755. end
  756.  
  757. local Particle = IT("ParticleEmitter",nil)
  758. Particle.Enabled = false
  759. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  760. Particle.LightEmission = 0.5
  761. Particle.Rate = 150
  762. Particle.ZOffset = 1
  763. Particle.Rotation = NumberRange.new(-180, 180)
  764. Particle.RotSpeed = NumberRange.new(-180, 180)
  765. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  766. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  767.  
  768. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  769. function ParticleEmitter(Table)
  770. local PRTCL = Particle:Clone()
  771. local Speed = Table.Speed or 5
  772. local Drag = Table.Drag or 0
  773. local Size1 = Table.Size1 or 1
  774. local Size2 = Table.Size2 or 5
  775. local Lifetime1 = Table.Lifetime1 or 1
  776. local Lifetime2 = Table.Lifetime2 or 1.5
  777. local Parent = Table.Parent or Torso
  778. local Emit = Table.Emit or 100
  779. local Offset = Table.Offset or 360
  780. local Acel = Table.Acel or VT(0,0,0)
  781. local Enabled = Table.Enabled or false
  782. PRTCL.Parent = Parent
  783. PRTCL.Size = NumberSequence.new(Size1,Size2)
  784. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  785. PRTCL.Speed = NumberRange.new(Speed)
  786. PRTCL.VelocitySpread = Offset
  787. PRTCL.Drag = Drag
  788. PRTCL.Acceleration = Acel
  789. if Enabled == false then
  790. PRTCL:Emit(Emit)
  791. Debris:AddItem(PRTCL,Lifetime2)
  792. else
  793. PRTCL.Enabled = true
  794. end
  795. return PRTCL
  796. end
  797.  
  798. function SpawnTrail(FROM,TO,BIG)
  799. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  800. MakeForm(TRAIL,"Cyl")
  801. local DIST = (FROM - TO).Magnitude
  802. if BIG == true then
  803. TRAIL.Size = VT(0.5,DIST,0.5)
  804. else
  805. TRAIL.Size = VT(0.25,DIST,0.25)
  806. end
  807. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  808. coroutine.resume(coroutine.create(function()
  809. for i = 1, 5 do
  810. Swait()
  811. TRAIL.Transparency = TRAIL.Transparency + 0.1
  812. end
  813. TRAIL:remove()
  814. end))
  815. end
  816.  
  817. Debris = game:GetService("Debris")
  818.  
  819. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  820. local DIRECTION = CF(StartPos,EndPos).lookVector
  821. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  822. end
  823.  
  824. function turnto(position)
  825. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  826. end
  827.  
  828. --//=================================\\
  829. --|| RESIZE PLAYER
  830. --\\=================================//
  831.  
  832. if Player_Size ~= 1 then
  833. RootPart.Size = RootPart.Size * Player_Size
  834. Torso.Size = Torso.Size * Player_Size
  835. Head.Size = Head.Size * Player_Size
  836. RightArm.Size = RightArm.Size * Player_Size
  837. LeftArm.Size = LeftArm.Size * Player_Size
  838. RightLeg.Size = RightLeg.Size * Player_Size
  839. LeftLeg.Size = LeftLeg.Size * Player_Size
  840. RootJoint.Parent = RootPart
  841. Neck.Parent = Torso
  842. RightShoulder.Parent = Torso
  843. LeftShoulder.Parent = Torso
  844. RightHip.Parent = Torso
  845. LeftHip.Parent = Torso
  846.  
  847. RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  848. RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
  849. Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  850. Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
  851. RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
  852. LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
  853. if Disable_Moving_Arms == false then
  854. RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  855. LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
  856. else
  857. RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  858. LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
  859. end
  860. RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  861. LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  862. RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  863. LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  864. end
  865.  
  866.  
  867. --//=================================\\
  868. --\\=================================//
  869.  
  870. --//=================================\\
  871. --|| WEAPON CREATION
  872. --\\=================================//
  873.  
  874. local PRT = CreatePart(3, char, "Fabric", 0, 0, "", "The Mask", VT(1,1,1),false)
  875. PRT.Color = C3(0,0,0)
  876. local MaskWeld = CreateWeldOrSnapOrMotor("Weld", hed, hed, PRT, CF(0,0.2,0), CF(0, 0.15, 0))
  877. CreateMesh("SpecialMesh", PRT, "FileMesh", "62146989", "145633085", VT(1.1,1.1,1.1)*1.05, VT(0,0,0))
  878.  
  879. function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
  880. local TORSO = Torso
  881. local HUM = Humanoid
  882. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  883. coroutine.wrap(function()
  884. VT = Vector3.new
  885. MRANDOM = math.random
  886. local A = TIME
  887. local B = INTENSITY
  888. local C = true
  889. local HUMANOID = Humanoid
  890. local TIMER = A or 35
  891. local SHAKE = B or 5
  892. local FADE = C or true
  893. if HUMANOID then
  894. local FADER = SHAKE / TIMER
  895. for i = 1, TIMER do
  896. wait()
  897. HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10)
  898. end
  899. HUMANOID.CameraOffset = VT(0, 0, 0)
  900. end
  901.  
  902. end)()
  903. end
  904. end
  905.  
  906.  
  907. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  908. PRT.Color = C3(0,0,0)
  909. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  910. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  911. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  912. PRT.Color = C3(0,0,0)
  913.  
  914. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false)
  915. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
  916. MakeForm(Part,"Wedge")
  917.  
  918. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false)
  919. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  920. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
  921. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
  922. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
  923. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
  924. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false)
  925. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  926. local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false)
  927. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  928.  
  929. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false)
  930. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
  931. MakeForm(Part,"Wedge")
  932.  
  933. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false)
  934. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  935. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
  936. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
  937. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
  938. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
  939. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false)
  940. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  941. local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false)
  942. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  943.  
  944. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false)
  945. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
  946. MakeForm(Part,"Wedge")
  947.  
  948. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false)
  949. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  950. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
  951. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0))
  952. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false)
  953. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0))
  954. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false)
  955. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  956. local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false)
  957. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  958.  
  959. --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})
  960. function WACKYEFFECT(Table)
  961. local TYPE = (Table.EffectType or "Sphere")
  962. local SIZE = (Table.Size or VT(1,1,1))
  963. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  964. local TRANSPARENCY = (Table.Transparency or 0)
  965. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  966. local CFRAME = (Table.CFrame or Torso.CFrame)
  967. local MOVEDIRECTION = (Table.MoveToPos or nil)
  968. local ROTATION1 = (Table.RotationX or 0)
  969. local ROTATION2 = (Table.RotationY or 0)
  970. local ROTATION3 = (Table.RotationZ or 0)
  971. local MATERIAL = (Table.Material or "Neon")
  972. local COLOR = (Table.Color or C3(1,1,1))
  973. local TIME = (Table.Time or 45)
  974. local SOUNDID = (Table.SoundID or nil)
  975. local SOUNDPITCH = (Table.SoundPitch or nil)
  976. local SOUNDVOLUME = (Table.SoundVolume or nil)
  977. coroutine.resume(coroutine.create(function()
  978. local PLAYSSOUND = false
  979. local SOUND = nil
  980. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true)
  981. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  982. PLAYSSOUND = true
  983. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  984. end
  985. EFFECT.Color = COLOR
  986. local MSH = nil
  987. if TYPE == "Sphere" then
  988. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  989. elseif TYPE == "Block" then
  990. MSH = IT("BlockMesh",EFFECT)
  991. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  992. elseif TYPE == "Wave" then
  993. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  994. elseif TYPE == "Ring" then
  995. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  996. elseif TYPE == "Slash" then
  997. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  998. elseif TYPE == "Round Slash" then
  999. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1000. elseif TYPE == "Swirl" then
  1001. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1002. elseif TYPE == "Skull" then
  1003. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1004. elseif TYPE == "Crystal" then
  1005. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1006. end
  1007. if MSH ~= nil then
  1008. local MOVESPEED = nil
  1009. if MOVEDIRECTION ~= nil then
  1010. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1011. end
  1012. local GROWTH = SIZE - ENDSIZE
  1013. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1014. if TYPE == "Block" then
  1015. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1016. else
  1017. EFFECT.CFrame = CFRAME
  1018. end
  1019. for LOOP = 1, TIME+1 do
  1020. Swait()
  1021. MSH.Scale = MSH.Scale - GROWTH/TIME
  1022. if TYPE == "Wave" then
  1023. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1024. end
  1025. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1026. if TYPE == "Block" then
  1027. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1028. else
  1029. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1030. end
  1031. if MOVEDIRECTION ~= nil then
  1032. local ORI = EFFECT.Orientation
  1033. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1034. EFFECT.Orientation = ORI
  1035. end
  1036. end
  1037. if PLAYSSOUND == false then
  1038. EFFECT:remove()
  1039. else
  1040. SOUND.Stopped:Connect(function()
  1041. EFFECT:remove()
  1042. end)
  1043. end
  1044. else
  1045. if PLAYSSOUND == false then
  1046. EFFECT:remove()
  1047. else
  1048. repeat Swait() until SOUND.Playing == false
  1049. EFFECT:remove()
  1050. end
  1051. end
  1052. end))
  1053. end
  1054.  
  1055.  
  1056. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  1057. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1058. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
  1059. wave.CFrame = CFRAME
  1060. coroutine.resume(coroutine.create(function(PART)
  1061. for i = 1, WAIT do
  1062. Swait()
  1063. mesh.Scale = mesh.Scale + GROW
  1064. if DOESROT == true then
  1065. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1066. end
  1067. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1068. if wave.Transparency > 0.99 then
  1069. wave:remove()
  1070. end
  1071. end
  1072. end))
  1073. end
  1074.  
  1075. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  1076. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1077. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  1078. wave.CFrame = CFRAME
  1079. coroutine.resume(coroutine.create(function(PART)
  1080. for i = 1, WAIT do
  1081. Swait()
  1082. mesh.Scale = mesh.Scale + GROW
  1083. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  1084. if DOESROT == true then
  1085. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1086. end
  1087. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1088. if wave.Transparency > 0.99 then
  1089. wave:remove()
  1090. end
  1091. end
  1092. end))
  1093. end
  1094.  
  1095. --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})
  1096. function WACKYEFFECT(Table)
  1097. local TYPE = (Table.EffectType or "Sphere")
  1098. local SIZE = (Table.Size or VT(1,1,1))
  1099. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1100. local TRANSPARENCY = (Table.Transparency or 0)
  1101. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1102. local CFRAME = (Table.CFrame or Torso.CFrame)
  1103. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1104. local ROTATION1 = (Table.RotationX or 0)
  1105. local ROTATION2 = (Table.RotationY or 0)
  1106. local ROTATION3 = (Table.RotationZ or 0)
  1107. local MATERIAL = (Table.Material or "Neon")
  1108. local COLOR = (Table.Color or C3(1,1,1))
  1109. local TIME = (Table.Time or 45)
  1110. local SOUNDID = (Table.SoundID or nil)
  1111. local SOUNDPITCH = (Table.SoundPitch or nil)
  1112. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1113. coroutine.resume(coroutine.create(function()
  1114. local PLAYSSOUND = false
  1115. local SOUND = nil
  1116. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1117. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1118. PLAYSSOUND = true
  1119. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1120. end
  1121. EFFECT.Color = COLOR
  1122. local MSH = nil
  1123. if TYPE == "Sphere" then
  1124. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1125. elseif TYPE == "Block" then
  1126. MSH = IT("BlockMesh",EFFECT)
  1127. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1128. elseif TYPE == "Wave" then
  1129. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1130. elseif TYPE == "Ring" then
  1131. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1132. elseif TYPE == "Slash" then
  1133. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1134. elseif TYPE == "Round Slash" then
  1135. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1136. elseif TYPE == "Swirl" then
  1137. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1138. elseif TYPE == "Skull" then
  1139. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1140. elseif TYPE == "Crystal" then
  1141. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1142. end
  1143. if MSH ~= nil then
  1144. local MOVESPEED = nil
  1145. if MOVEDIRECTION ~= nil then
  1146. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1147. end
  1148. local GROWTH = SIZE - ENDSIZE
  1149. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1150. if TYPE == "Block" then
  1151. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1152. else
  1153. EFFECT.CFrame = CFRAME
  1154. end
  1155. for LOOP = 1, TIME+1 do
  1156. Swait()
  1157. MSH.Scale = MSH.Scale - GROWTH/TIME
  1158. if TYPE == "Wave" then
  1159. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1160. end
  1161. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1162. if TYPE == "Block" then
  1163. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1164. else
  1165. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1166. end
  1167. if MOVEDIRECTION ~= nil then
  1168. local ORI = EFFECT.Orientation
  1169. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1170. EFFECT.Orientation = ORI
  1171. end
  1172. end
  1173. if PLAYSSOUND == false then
  1174. EFFECT:remove()
  1175. else
  1176. SOUND.Stopped:Connect(function()
  1177. EFFECT:remove()
  1178. end)
  1179. end
  1180. else
  1181. if PLAYSSOUND == false then
  1182. EFFECT:remove()
  1183. else
  1184. repeat Swait() until SOUND.Playing == false
  1185. EFFECT:remove()
  1186. end
  1187. end
  1188. end))
  1189. end
  1190.  
  1191. function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
  1192. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  1193. local mesh
  1194. if KIND == "Base" then
  1195. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
  1196. elseif KIND == "Thin" then
  1197. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  1198. elseif KIND == "Round" then
  1199. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  1200. end
  1201. wave.CFrame = CFRAME
  1202. coroutine.resume(coroutine.create(function(PART)
  1203. for i = 1, WAIT do
  1204. Swait()
  1205. mesh.Scale = mesh.Scale + GROW / 10
  1206. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1207. if wave.Transparency > 0.99 then
  1208. wave:remove()
  1209. end
  1210. end
  1211. end))
  1212. end
  1213.  
  1214. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  1215. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  1216. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
  1217. wave.CFrame = CFRAME
  1218. coroutine.resume(coroutine.create(function(PART)
  1219. for i = 1, WAIT do
  1220. Swait()
  1221. mesh.Scale = mesh.Scale + GROW
  1222. if DOESROT == true then
  1223. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  1224. end
  1225. wave.Transparency = wave.Transparency + 0.5 / WAIT
  1226. if wave.Transparency > 0.99 then
  1227. wave:remove()
  1228. end
  1229. end
  1230. end))
  1231. end
  1232. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  1233. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  1234. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
  1235. wave.CFrame = CFRAME
  1236. coroutine.resume(coroutine.create(function(PART)
  1237. for i = 1, WAIT do
  1238. Swait()
  1239. mesh.Scale = mesh.Scale + GROW
  1240. wave.Transparency = wave.Transparency + 1 / WAIT
  1241. if wave.Transparency > 0.99 then
  1242. wave:remove()
  1243. end
  1244. end
  1245. end))
  1246. end
  1247.  
  1248. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  1249. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  1250. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
  1251. wave.CFrame = CFRAME
  1252. coroutine.resume(coroutine.create(function(PART)
  1253. for i = 1, WAIT do
  1254. Swait()
  1255. mesh.Scale = mesh.Scale + GROW
  1256. wave.Transparency = wave.Transparency + 1 / WAIT
  1257. if wave.Transparency > 0.99 then
  1258. wave:remove()
  1259. end
  1260. end
  1261. end))
  1262. end
  1263.  
  1264.  
  1265. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1266. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1267. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1268. MakeForm(Part,"Wedge")
  1269. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1270. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1271. MakeForm(Part,"Wedge")
  1272. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1273. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1274. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1275. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1276. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1277. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1278. MakeForm(Part,"Cyl")
  1279. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1280. for i = 1, 8 do
  1281. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1282. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1283. end
  1284. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1285. MakeForm(Part,"Cyl")
  1286. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1287. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1288. MakeForm(Part,"Ball")
  1289. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1290. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1291. MakeForm(Part,"Wedge")
  1292. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1293. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1294. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1295. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1296. MakeForm(Part,"Cyl")
  1297. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1298. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1299. MakeForm(Part,"Cyl")
  1300. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1301. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1302. MakeForm(Part,"Cyl")
  1303. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1304. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1305. MakeForm(Part,"Wedge")
  1306. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1307. local LASTPART = Handle
  1308. for i = 1, 10 do
  1309. if LASTPART == Handle then
  1310. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1311. LASTPART = Part
  1312. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1313. else
  1314. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1315. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1316. LASTPART = Part
  1317. end
  1318. end
  1319.  
  1320. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1321. MakeForm(Barrel,"Cyl")
  1322. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1323. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1324. MakeForm(Part,"Cyl")
  1325. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1326. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1327. MakeForm(Part,"Wedge")
  1328. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1329. local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1330. MakeForm(Hole2,"Cyl")
  1331. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
  1332. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1333. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1334. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1335. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1336. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1337. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1338. coroutine.resume(coroutine.create(function()
  1339. while wait() do
  1340. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1341. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1342. end
  1343. end))
  1344.  
  1345. 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)})
  1346. --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)})
  1347.  
  1348. for _, c in pairs(Weapon:GetDescendants()) do
  1349. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1350. c.Material = "Glass"
  1351. c.Color = C3(0,0,0)
  1352. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1353. c.Color = C3(1,0,0)
  1354. c.Material = "Neon"
  1355. end
  1356. end
  1357.  
  1358. Weapon.Parent = Character
  1359. for _, c in pairs(Weapon:GetChildren()) do
  1360. if c.ClassName == "Part" then
  1361. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1362. end
  1363. end
  1364.  
  1365. function ParticleEmitter(Table)
  1366. local PRTCL = Particle:Clone()
  1367. local Speed = Table.Speed or 5
  1368. local Drag = Table.Drag or 0
  1369. local Size1 = Table.Size1 or 1
  1370. local Size2 = Table.Size2 or 5
  1371. local Lifetime1 = Table.Lifetime1 or 1
  1372. local Lifetime2 = Table.Lifetime2 or 1.5
  1373. local Parent = Table.Parent or Torso
  1374. local Emit = Table.Emit or 100
  1375. local Offset = Table.Offset or 360
  1376. local Acel = Table.Acel or VT(0,0,0)
  1377. local Enabled = Table.Enabled or false
  1378. PRTCL.Parent = Parent
  1379. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1380. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1381. PRTCL.Speed = NumberRange.new(Speed)
  1382. PRTCL.VelocitySpread = Offset
  1383. PRTCL.Drag = Drag
  1384. PRTCL.Acceleration = Acel
  1385. if Enabled == false then
  1386. PRTCL:Emit(Emit)
  1387. Debris:AddItem(PRTCL,Lifetime2)
  1388. else
  1389. PRTCL.Enabled = true
  1390. end
  1391. return PRTCL
  1392. end
  1393.  
  1394. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1395. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1396. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1397. MakeForm(Part,"Wedge")
  1398. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1399. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1400. MakeForm(Part,"Wedge")
  1401. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1402. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1403. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1404. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1405. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1406. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1407. MakeForm(Part,"Cyl")
  1408. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1409. for i = 1, 8 do
  1410. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1411. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1412. end
  1413. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1414. MakeForm(Part,"Cyl")
  1415. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1416. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1417. MakeForm(Part,"Ball")
  1418. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1419. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1420. MakeForm(Part,"Wedge")
  1421. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1422. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1423. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1424. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1425. MakeForm(Part,"Cyl")
  1426. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1427. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1428. MakeForm(Part,"Cyl")
  1429. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1430. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1431. MakeForm(Part,"Cyl")
  1432. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1433. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1434. MakeForm(Part,"Wedge")
  1435. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1436. local LASTPART = Handle
  1437. for i = 1, 10 do
  1438. if LASTPART == Handle then
  1439. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1440. LASTPART = Part
  1441. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1442. else
  1443. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1444. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1445. LASTPART = Part
  1446. end
  1447. end
  1448.  
  1449. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1450. MakeForm(Barrel,"Cyl")
  1451. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1452. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1453. MakeForm(Part,"Cyl")
  1454. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1455. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1456. MakeForm(Part,"Wedge")
  1457. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1458. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1459. MakeForm(Hole,"Cyl")
  1460. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1461. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1462. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1463. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1464. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1465. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1466. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1467. coroutine.resume(coroutine.create(function()
  1468. while wait() do
  1469. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1470. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1471. end
  1472. end))
  1473.  
  1474. 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)})
  1475. --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)})
  1476.  
  1477. for _, c in pairs(Weapon:GetDescendants()) do
  1478. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1479. c.Material = "Glass"
  1480. c.Color = C3(0,0,0)
  1481. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1482. c.Color = C3(1,0,0)
  1483. c.Material = "Neon"
  1484. end
  1485. end
  1486.  
  1487. Weapon.Parent = Character
  1488. for _, c in pairs(Weapon:GetChildren()) do
  1489. if c.ClassName == "Part" then
  1490. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1491. end
  1492. end
  1493.  
  1494. local SKILLTEXTCOLOR = C3(1,0,0)
  1495. local SKILLFONT = "Antique"
  1496. local SKILLTEXTSIZE = 7
  1497.  
  1498. Humanoid.Died:connect(function()
  1499. ATTACK = true
  1500. end)
  1501.  
  1502. 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")
  1503. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1504. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1505. 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")
  1506. 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")
  1507. ]]
  1508. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1509. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1510. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1511. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1512. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1513. ]]
  1514. function printbye(Name)
  1515. 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, "}
  1516. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1517. end
  1518.  
  1519. workspace.ChildAdded:connect(function(instance)
  1520. for BANISH = 1, #TOBANISH do
  1521. if TOBANISH[BANISH] ~= nil then
  1522. if instance.Name == TOBANISH[BANISH] then
  1523. coroutine.resume(coroutine.create(function()
  1524. printbye(instance.Name)
  1525. instance:ClearAllChildren()
  1526. Debris:AddItem(instance,0.0005)
  1527. end))
  1528. end
  1529. end
  1530. end
  1531. end)
  1532.  
  1533. --//=================================\\
  1534. --|| DAMAGING
  1535. --\\=================================//
  1536.  
  1537. function Banish(Foe)
  1538. if Foe then
  1539. coroutine.resume(coroutine.create(function()
  1540. --if game.Players:FindFirstChild(Foe.Name) then
  1541. table.insert(TOBANISH,Foe.Name)
  1542. printbye(Foe.Name)
  1543. --end
  1544. Foe.Archivable = true
  1545. local CLONE = Foe:Clone()
  1546. Foe:Destroy()
  1547. CLONE.Parent = Effects
  1548. CLONE:BreakJoints()
  1549. local MATERIALS = {"Glass","Neon"}
  1550. for _, c in pairs(CLONE:GetDescendants()) do
  1551. if c:IsA("BasePart") then
  1552. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1553. CreateSound(340722848, c, 10, 1, false)
  1554. end
  1555. c.Anchored = true
  1556. c.Transparency = c.Transparency + 0.2
  1557. c.Material = MATERIALS[MRANDOM(1,2)]
  1558. c.Color = C3(1,0,0)
  1559. if c.ClassName == "MeshPart" then
  1560. c.TextureID = ""
  1561. end
  1562. if c:FindFirstChildOfClass("SpecialMesh") then
  1563. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1564. end
  1565. if c:FindFirstChildOfClass("Decal") then
  1566. c:FindFirstChildOfClass("Decal"):remove()
  1567. end
  1568. c.Name = "Banished"
  1569. c.CanCollide = false
  1570. else
  1571. c:remove()
  1572. end
  1573. end
  1574. local A = false
  1575. for i = 1, 35 do
  1576. if A == false then
  1577. A = true
  1578. elseif A == true then
  1579. A = false
  1580. end
  1581. for _, c in pairs(CLONE:GetDescendants()) do
  1582. if c:IsA("BasePart") then
  1583. c.Anchored = true
  1584. c.Material = MATERIALS[MRANDOM(1,2)]
  1585. c.Transparency = c.Transparency + 0.8/35
  1586. if A == false then
  1587. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1588. elseif A == true then
  1589. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1590. end
  1591. end
  1592. end
  1593. Swait()
  1594. end
  1595. CLONE:remove()
  1596. end))
  1597. end
  1598. end
  1599.  
  1600. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1601. local CHILDREN = workspace:GetDescendants()
  1602. for index, CHILD in pairs(CHILDREN) do
  1603. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1604. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1605. if HUM then
  1606. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1607. if TORSO then
  1608. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1609. if ISBANISH == true then
  1610. Banish(CHILD)
  1611. else
  1612. if ISBANISH == "Gravity" then
  1613. HUM.PlatformStand = true
  1614. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1615. local grav = Instance.new("BodyPosition",TORSO)
  1616. grav.D = 15
  1617. grav.P = 20000
  1618. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1619. grav.position = TORSO.Position
  1620. grav.Name = "V3BanishForce"..Player.Name
  1621. else
  1622. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1623. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1624. end
  1625. else
  1626. HUM.PlatformStand = false
  1627. end
  1628. end
  1629. elseif ISBANISH == "Gravity" then
  1630. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1631. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1632. HUM.PlatformStand = false
  1633. end
  1634. end
  1635. end
  1636. end
  1637. end
  1638. end
  1639. end
  1640.  
  1641. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  1642. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1643. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  1644. local BODYGYRO = IT("BodyGyro", STATPART)
  1645. local BODYPOSITION = IT("BodyPosition", STATPART)
  1646. BODYPOSITION.P = 2000
  1647. BODYPOSITION.D = 100
  1648. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  1649. if LABELTYPE == "Normal" then
  1650. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  1651. elseif LABELTYPE == "Debuff" then
  1652. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
  1653. elseif LABELTYPE == "Interruption" then
  1654. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
  1655. end
  1656. game:GetService("Debris"):AddItem(STATPART ,5)
  1657. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1658. BILLBOARDGUI.Adornee = STATPART
  1659. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1660. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1661. BILLBOARDGUI.AlwaysOnTop = false
  1662. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1663. TEXTLABEL.BackgroundTransparency = 1
  1664. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1665. TEXTLABEL.Text = TEXT
  1666. TEXTLABEL.Font = "SourceSans"
  1667. TEXTLABEL.FontSize="Size42"
  1668. TEXTLABEL.TextColor3 = COLOR
  1669. TEXTLABEL.TextStrokeTransparency = 0
  1670. TEXTLABEL.TextScaled = true
  1671. TEXTLABEL.TextWrapped = true
  1672. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1673. wait(0.2)
  1674. for i=1, 5 do
  1675. wait()
  1676. THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
  1677. end
  1678. wait(1.2)
  1679. for i=1, 5 do
  1680. wait()
  1681. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  1682. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  1683. THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
  1684. end
  1685. THEPART.Parent = nil
  1686. end),STATPART, BODYPOSITION, TEXTLABEL)
  1687. end
  1688.  
  1689. function IncreaseOrDecreaseStat(LOCATION, STAT, AMOUNT, DURATION, SHOWTHESTAT)
  1690. if LOCATION:FindFirstChild("Stats") ~= nil then
  1691. if LOCATION.Stats:FindFirstChild("Block") ~= nil then
  1692. if LOCATION.Stats:FindFirstChild("Block").Value == true then
  1693. return
  1694. end
  1695. end
  1696. if LOCATION.Stats:FindFirstChild("ChangeStat") ~= nil and LOCATION.Stats:FindFirstChild("Block").Value == false then
  1697. local NewStatChange = IT("NumberValue")
  1698. NewStatChange.Value = AMOUNT
  1699. if STAT == "Defense" then
  1700. NewStatChange.Name = "ChangeDefense"
  1701. elseif STAT == "Damage" then
  1702. NewStatChange.Name = "ChangeDamage"
  1703. elseif STAT == "Movement" then
  1704. NewStatChange.Name = "ChangeMovement"
  1705. end
  1706. if SHOWTHESTAT == true then
  1707. if AMOUNT < 0 then
  1708. StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "-"..STAT, C3(1, 1, 1))
  1709. elseif AMOUNT > 0 then
  1710. StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "+"..STAT, C3(1, 1, 1))
  1711. end
  1712. end
  1713. if DURATION ~= nil and DURATION ~= 0 then
  1714. local StatDuration = IT("NumberValue")
  1715. StatDuration.Name = "Duration"
  1716. StatDuration.Value = DURATION
  1717. StatDuration.Parent = NewStatChange
  1718. end
  1719. NewStatChange.Parent = LOCATION.Stats:FindFirstChild("ChangeStat")
  1720. end
  1721. end
  1722. end
  1723.  
  1724. --Usage: DamageFunction(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, hit, false, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  1725. function DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  1726. if HIT.Parent == nil then
  1727. return
  1728. end
  1729. local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid")
  1730. for _, v in pairs(HIT.Parent:GetChildren()) do
  1731. if v:IsA("Humanoid") then
  1732. HITHUMANOID = v
  1733. end
  1734. end
  1735. if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then
  1736. StaggerHit.Value = true
  1737. if Play_Hitbox_Hit_Sound == true then
  1738. if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then
  1739. CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH)
  1740. end
  1741. end
  1742. return
  1743. end
  1744. if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then
  1745. HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid")
  1746. end
  1747. if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then
  1748. HIT = HIT.Parent.Parent:FindFirstChild("Head")
  1749. end
  1750. if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then
  1751. if HIT.Parent:FindFirstChild("DebounceHit") ~= nil then
  1752. if HIT.Parent.DebounceHit.Value == true then
  1753. return
  1754. end
  1755. end
  1756. if AntiTeamKill.Value == true then
  1757. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then
  1758. if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then
  1759. return
  1760. end
  1761. end
  1762. end
  1763. if HITEVENWHENDEAD == false then
  1764. if HIT.Parent:FindFirstChild("Humanoid") ~= nil then
  1765. if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then
  1766. return
  1767. end
  1768. end
  1769. end
  1770. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1771. if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then
  1772. HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN
  1773. end
  1774. end
  1775. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1776. if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then
  1777. if STAGGER == true and Enable_Stagger == true then
  1778. HIT.Parent.Stats:FindFirstChild("Stagger").Value = true
  1779. end
  1780. end
  1781. end
  1782. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1783. if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then
  1784. if HIT.Parent.Stats:FindFirstChild("Block").Value == true then
  1785. HASBEENBLOCKED = true
  1786. if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce") == nil then
  1787. StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Blocked!", C3(0, 100 / 255, 255 / 255))
  1788. if RANGED ~= true then
  1789. if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then
  1790. CreateSound(HITBLOCKSOUND, HIT, 1, HITBLOCKSOUNDPITCH)
  1791. end
  1792. end
  1793. local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block"))
  1794. BlockDebounce.Name = "BlockDebounce"
  1795. BlockDebounce.Value = true
  1796. if RANGED ~= true then
  1797. game:GetService("Debris"):AddItem(BlockDebounce, 0.5)
  1798. else
  1799. game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
  1800. end
  1801. end
  1802. if RANGED ~= true and Enable_Stagger == true then
  1803. HIT.Parent.Stats:FindFirstChild("Block").Value = false
  1804. Stagger.Value = true
  1805. end
  1806. return
  1807. end
  1808. end
  1809. end
  1810. if DECREASETHESTAT ~= nil then
  1811. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1812. IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
  1813. end
  1814. end
  1815. local DAMAGE = MRANDOM(MINIMUMDAMAGE,MAXIMUMDAMAGE) * Damage.Value
  1816. if HIT.Parent:FindFirstChild("Stats") ~= nil then
  1817. if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then
  1818. if CanPenetrateArmor.Value == true then
  1819. DAMAGE = DAMAGE
  1820. else
  1821. DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value
  1822. end
  1823. elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then
  1824. DAMAGE = DAMAGE
  1825. end
  1826. end
  1827. if CanCrit.Value == true then
  1828. CRITCHANCENUMBER = MRANDOM(1, CritChance.Value)
  1829. if CRITCHANCENUMBER == 1 then
  1830. DAMAGE = DAMAGE * 2
  1831. end
  1832. end
  1833. DAMAGE = math.floor(DAMAGE)
  1834. if HASBEENBLOCKED == false then
  1835. HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE
  1836. end
  1837. if DAMAGE <= 3 and HASBEENBLOCKED == false then
  1838. if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then
  1839. StaggerHit.Value = true
  1840. end
  1841. if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then
  1842. CreateSound(HITARMORSOUND, HIT, 1, HITARMORSOUNDPITCH)
  1843. end
  1844. elseif DAMAGE > 3 and HASBEENBLOCKED == false then
  1845. if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then
  1846. CreateSound(HITPLAYERSOUND, HIT, 1, HITPLAYERSOUNDPITCH)
  1847. end
  1848. end
  1849. if DAMAGE > 3 and DAMAGE < 20 and HASBEENBLOCKED == false then
  1850. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1851. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
  1852. CreateSound("296102734", HIT, 1, 1)
  1853. else
  1854. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 220/255, 0))
  1855. end
  1856. elseif DAMAGE >= 20 and HASBEENBLOCKED == false then
  1857. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1858. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
  1859. CreateSound("296102734", HIT, 1, 1)
  1860. else
  1861. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 0, 0))
  1862. end
  1863. elseif DAMAGE <= 3 and HASBEENBLOCKED == false then
  1864. if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
  1865. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
  1866. CreateSound("296102734", HIT, 1, 1)
  1867. else
  1868. StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(225/255, 225/255, 225/255))
  1869. end
  1870. end
  1871. if TYPE == "Normal" then
  1872. local vp = IT("BodyVelocity")
  1873. vp.P=500
  1874. vp.maxForce = VT(math.huge, 0, math.huge)
  1875. if KNOCKBACKTYPE == 1 then
  1876. vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK + PROPERTY.Velocity / 1.05
  1877. elseif KNOCKBACKTYPE == 2 then
  1878. vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK
  1879. end
  1880. if KNOCKBACK > 0 and HASBEENBLOCKED == false then
  1881. vp.Parent = HIT--.Parent.Torso
  1882. end
  1883. game:GetService("Debris"):AddItem(vp, 0.5)
  1884. end
  1885. HASBEENBLOCKED = false
  1886. RecentEnemy.Value = HIT.Parent
  1887. local DebounceHit = IT("BoolValue", HIT.Parent)
  1888. DebounceHit.Name = "DebounceHit"
  1889. DebounceHit.Value = true
  1890. game:GetService("Debris"):AddItem(DebounceHit, DELAY)
  1891. end
  1892. end
  1893.  
  1894. --Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
  1895. function MagnitudeDamage(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  1896. for _, c in pairs(workspace:GetChildren()) do
  1897. local HUMANOID = c:FindFirstChild("Humanoid")
  1898. local HEAD = nil
  1899. if HUMANOID ~= nil then
  1900. for _, d in pairs(c:GetChildren()) do
  1901. if d.ClassName == "Model" and RANGED ~= true then
  1902. HEAD = d:FindFirstChild("Hitbox")
  1903. if HEAD ~= nil then
  1904. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  1905. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  1906. if Play_Hitbox_Hit_Sound == true then
  1907. local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1908. HitRefpart.Anchored = true
  1909. HitRefpart.CFrame = CF(HEAD.Position)
  1910. CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH)
  1911. end
  1912. if Enable_Stagger_Hit == true then
  1913. StaggerHit.Value = true
  1914. end
  1915. end
  1916. end
  1917. elseif d:IsA"BasePart" then
  1918. HEAD = d
  1919. if HEAD ~= nil then
  1920. local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
  1921. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  1922. DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
  1923. end
  1924. end
  1925. end
  1926. end
  1927. end
  1928. end
  1929. end
  1930.  
  1931. --Usage: MagnitudeBuffOrDebuff(Part, 5, "Defense", -0.1, 3, true, true)
  1932. function MagnitudeBuffOrDebuff(PART, MAGNITUDE, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF, APPLYTOOTHERSINSTEAD)
  1933. if Player.Neutral == true then
  1934. IncreaseOrDecreaseStat(Character, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  1935. end
  1936. for _, c in pairs(workspace:GetChildren()) do
  1937. local HUMANOID = c:FindFirstChild("Humanoid")
  1938. local THEHEAD = nil
  1939. if HUMANOID ~= nil then
  1940. if c:FindFirstChild("Torso") ~= nil then
  1941. THEHEAD = c:FindFirstChild("Torso")
  1942. elseif c:FindFirstChild("UpperTorso") ~= nil then
  1943. THEHEAD = c:FindFirstChild("UpperTorso")
  1944. end
  1945. if THEHEAD ~= nil then
  1946. local THEMAGNITUDE = (THEHEAD.Position - PART.Position).magnitude
  1947. print("yes 1")
  1948. if APPLYTOOTHERSINSTEAD == true then
  1949. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
  1950. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
  1951. if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
  1952. IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  1953. end
  1954. end
  1955. end
  1956. elseif APPLYTOOTHERSINSTEAD == false then
  1957. if THEMAGNITUDE <= (MAGNITUDE * Player_Size) then
  1958. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
  1959. if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
  1960. IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
  1961. end
  1962. end
  1963. end
  1964. end
  1965. end
  1966. end
  1967. end
  1968. end
  1969.  
  1970.  
  1971.  
  1972. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  1973. local dmg = math.random(min,max)
  1974. for i,v in ipairs(workspace:GetChildren()) do
  1975. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1976. local body = v:GetChildren()
  1977. for part = 1, #body do
  1978. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1979. if(body[part].Position - position).Magnitude < radius then
  1980. if v.ClassName == "Model" then
  1981. if v:FindFirstChildOfClass("Humanoid") then
  1982. if CanBeDodgedByJumping == true then
  1983. if body[part].Position.Y < position.Y+5 then
  1984. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1985. end
  1986. else
  1987. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1988. end
  1989. local bv = Instance.new("BodyVelocity")
  1990. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1991. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  1992. bv.Parent = body[part]
  1993. Debris:AddItem(bv,0.2)
  1994. end
  1995. end
  1996. end
  1997. end
  1998. end
  1999. end
  2000. if v:FindFirstChild("HitBy"..Player.Name) then
  2001. v:FindFirstChild("HitBy"..Player.Name):remove()
  2002. end
  2003. end
  2004. end
  2005.  
  2006. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  2007. local defence = Instance.new("BoolValue",Humanoid.Parent)
  2008. defence.Name = ("HitBy"..Player.Name)
  2009. game:GetService("Debris"):AddItem(defence, 0.5)
  2010. Humanoid.Health = Humanoid.Health - Damage
  2011. if Humanoid.Parent:FindFirstChild("Head") then
  2012. StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
  2013. end
  2014. end
  2015.  
  2016.  
  2017. --//=================================\\
  2018. --|| ATTACK FUNCTIONS AND STUFF
  2019. --\\=================================//
  2020.  
  2021. function Oblivion()
  2022. ATTACK = true
  2023. Rooted = true
  2024. for i=0, 2, 0.1 / Animation_Speed do
  2025. Swait()
  2026. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2027. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2028. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2029. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2030. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2031. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2032. end
  2033. for i=0, 0.5, 0.1 / Animation_Speed do
  2034. Swait()
  2035. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2036. 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.5 / Animation_Speed)
  2037. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2038. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2039. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  2040. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  2041. end
  2042. for i = 1, 75 do
  2043. Swait()
  2044. MagicSphere(VT(0.5,0.5,5),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Really red",VT(-0.005,-0.005,0.03),0)
  2045. end
  2046. CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5)
  2047. CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5)
  2048. AoEDamage(Torso.Position,45,45,58,0,false,2,2,false,true)
  2049. MagicSphere(VT(0,0,0),25,Torso.CFrame,"Really red",VT(5,5,5))
  2050. MagicSphere(VT(0,0,0),50,Torso.CFrame,"Lime green",VT(2.5,2.5,2.5))
  2051. MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Really black",VT(6,0,6))
  2052. MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Pearl",VT(6,0,6))
  2053. ATTACK = false
  2054. Rooted = false
  2055. end
  2056.  
  2057. function kiss()
  2058. ATTACK = true
  2059. Rooted = false
  2060. local HASGRABBED = false
  2061. local GRABTARGET = nil
  2062. local TORS = nil
  2063. local WELD = nil
  2064. for i=0, 1, 0.1 / Animation_Speed do
  2065. Swait()
  2066. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2067. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2068. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2069. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2070. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2071. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2072. end
  2073. local GRAB1 = RightArm.Touched:Connect(function(hit)
  2074. if hit.Parent:FindFirstChild("Humanoid") then
  2075. if hit.Parent.Humanoid.Health ~= 0 then
  2076. UNANCHOR = false
  2077. RootPart.Anchored = true
  2078. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  2079. TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0))
  2080. WELD = weldBetween(RootPart,TORS)
  2081. HASGRABBED = true
  2082. Rooted = true
  2083. end
  2084. end
  2085. end)
  2086. local GRAB2 = LeftArm.Touched:Connect(function(hit)
  2087. if hit.Parent:FindFirstChild("Humanoid") then
  2088. if hit.Parent.Humanoid.Health ~= 0 then
  2089. UNANCHOR = false
  2090. RootPart.Anchored = true
  2091. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  2092. TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0))
  2093. WELD = weldBetween(RootPart,TORS)
  2094. HASGRABBED = true
  2095. Rooted = true
  2096. end
  2097. end
  2098. end)
  2099. for i=0, 1, 0.1 / Animation_Speed do
  2100. Swait()
  2101. if HASGRABBED == true then
  2102. break
  2103. end
  2104. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2105. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2106. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2107. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2108. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2109. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2110. end
  2111. GRAB1:disconnect()
  2112. GRAB2:disconnect()
  2113. if HASGRABBED == true then
  2114. TORS.Anchored = false
  2115. GRABTARGET = TORS.Parent
  2116. HED = GRABTARGET:FindFirstChild("Head")
  2117. for i=0, 2, 0.1 / Animation_Speed do
  2118. Swait()
  2119. 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)
  2120. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2121. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2122. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2123. 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)
  2124. 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)
  2125. end
  2126. local heart = CreatePart(1, HED, "SmoothPlastic", 0, 0, "Really red", "Heart", VT(1,1,1), false)
  2127. local msh = CreateMesh("SpecialMesh", heart, "FileMesh", "431221914", "", VT(0.3, 0.3, 0.3), VT(0,0,0))
  2128. CreateWeldOrSnapOrMotor("Weld", HED, heart, HED,CF(0, -2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  2129. local ECH = 0
  2130.  
  2131. for i=0, 8, 0.1 / Animation_Speed do
  2132. Swait()
  2133. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2134. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(25 * SIN(SINE / 3)), RAD(0)), 0.5 / Animation_Speed)
  2135. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2136. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2137. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2138. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2139. end
  2140. WELD:remove()
  2141. end
  2142. UNANCHOR = true
  2143. ATTACK = false
  2144. Rooted = false
  2145. end
  2146.  
  2147. function Kick()
  2148. ATTACK = true
  2149. Rooted = false
  2150. VALUE1 = true
  2151. NOWALK = true
  2152. if COMBO2 == 1 then
  2153. COMBO2 = 2
  2154. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  2155. for i=0, 0.5, 0.1 / Animation_Speed do
  2156. Swait()
  2157. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(45)), 2 / Animation_Speed)
  2158. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-45)), 2 / Animation_Speed)
  2159. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2160. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2161. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed)
  2162. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  2163. end
  2164. elseif COMBO2 == 2 then
  2165. COMBO2 = 1
  2166. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  2167. for i=0, 0.5, 0.1 / Animation_Speed do
  2168. Swait()
  2169. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-45)), 2 / Animation_Speed)
  2170. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 2 / Animation_Speed)
  2171. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2172. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2173. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  2174. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed)
  2175. end
  2176. end
  2177. NOWALK = false
  2178. VALUE1 = false
  2179. ATTACK = false
  2180. Rooted = false
  2181. end
  2182.  
  2183. function StaggerHitAnimation()
  2184. ATTACK = true
  2185. if Weapon:FindFirstChild("Hitbox") ~= nil then
  2186. for i = 1, MRANDOM(2, 4) do
  2187. ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  2188. end
  2189. end
  2190. for i = 0, 1, 0.1 / Animation_Speed do
  2191. Swait()
  2192. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
  2193. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.3 / Animation_Speed)
  2194. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30), RAD(0), RAD(60)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2195. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * ANGLES(RAD(0), RAD(20), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  2196. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
  2197. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.3 / Animation_Speed)
  2198. if Stagger.Value == true or Stun.Value == true then
  2199. break
  2200. end
  2201. end
  2202. ATTACK = false
  2203. end
  2204.  
  2205. function Shot()
  2206. ATTACK = true
  2207. Rooted = false
  2208. for i=0, 0.5, 0.1 / Animation_Speed do
  2209. Swait()
  2210. turnto(Mouse.Hit.p)
  2211. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2212. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.5 / Animation_Speed)
  2213. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2214. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2215. 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.5 / Animation_Speed)
  2216. 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.5 / Animation_Speed)
  2217. end
  2218. repeat
  2219. for i=0, 0.5, 0.1 / Animation_Speed do
  2220. Swait()
  2221. turnto(Mouse.Hit.p)
  2222. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2223. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.5 / Animation_Speed)
  2224. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2225. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2226. 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.5 / Animation_Speed)
  2227. 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.5 / Animation_Speed)
  2228. end
  2229. local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
  2230. SpawnTrail(Hole2.Position,POS)
  2231. if HIT ~= nil then
  2232. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2233. Banish(HIT.Parent)
  2234. end
  2235. end
  2236. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  2237. SpawnTrail(Hole.Position,POS)
  2238. if HIT ~= nil then
  2239. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2240. Banish(HIT.Parent)
  2241. end
  2242. end
  2243. 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2244. 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(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2245. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2246. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2247. CreateSound("159882477", Head, 6, 1)
  2248. for i=0, 0.5, 0.1 / Animation_Speed do
  2249. Swait()
  2250. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2251. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.5 / Animation_Speed)
  2252. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2253. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2254. 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.5 / Animation_Speed)
  2255. 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.5 / Animation_Speed)
  2256. end
  2257. 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2258. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2259. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2260. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2261. until KEYHOLD == false
  2262. ATTACK = false
  2263. Rooted = false
  2264. end
  2265.  
  2266. function Punch()
  2267. ATTACK = true
  2268. Rooted = false
  2269. for i=0, 0.2, 0.1 / Animation_Speed do
  2270. Swait()
  2271. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2272. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2273. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0+ 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(150), RAD(35), RAD(-5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2274. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0 + 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(130), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2275. 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)), 1 / Animation_Speed)
  2276. 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)), 1 / Animation_Speed)
  2277. end
  2278. VALUE1 = true
  2279. if COMBO == 1 then
  2280. COMBO = 2
  2281. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  2282. for i=0, 0.3, 0.1 / Animation_Speed do
  2283. Swait()
  2284. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1)
  2285. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 2 / Animation_Speed)
  2286. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(65)), 2 / Animation_Speed)
  2287. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2288. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(25)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2289. 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)), 2 / Animation_Speed)
  2290. 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)), 2 / Animation_Speed)
  2291. end
  2292. elseif COMBO == 2 then
  2293. COMBO = 1
  2294. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  2295. for i=0, 0.3, 0.1 / Animation_Speed do
  2296. Swait()
  2297. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1)
  2298. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 2 / Animation_Speed)
  2299. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 2 / Animation_Speed)
  2300. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2301. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2302. 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)), 2 / Animation_Speed)
  2303. 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)), 2 / Animation_Speed)
  2304. end
  2305. end
  2306. VALUE1 = false
  2307. ATTACK = false
  2308. Rooted = false
  2309. end
  2310.  
  2311. function AttackTemplate()
  2312. ATTACK = true
  2313. Rooted = false
  2314. for i=0, 1, 0.1 / Animation_Speed do
  2315. Swait()
  2316. 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)
  2317. 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)
  2318. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2319. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2320. 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)
  2321. 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)
  2322. end
  2323. ATTACK = false
  2324. Rooted = false
  2325. end
  2326.  
  2327. function Nuke()
  2328. ATTACK = true
  2329. Rooted = true
  2330. local CHARGE = false
  2331. local BLASTS = {468991944, 468991990}
  2332. coroutine.resume(coroutine.create(function()
  2333. repeat
  2334. Swait()
  2335. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-45)), 2 / Animation_Speed)
  2336. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 2 / Animation_Speed)
  2337. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2338. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2339. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  2340. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed)
  2341. until CHARGE == true
  2342. for i = 0, 0.4, 0.1 / Animation_Speed do
  2343. Swait()
  2344. WACKYEFFECT({
  2345. Time = 15,
  2346. EffectType = "Sphere",
  2347. Size = VT(60, 60, 60),
  2348. Size2 = VT(0, 0, 0),
  2349. Transparency = 1,
  2350. Transparency2 = 0.7,
  2351. CFrame = CF(RootPart.Position),
  2352. MoveToPos = nil,
  2353. RotationX = 0,
  2354. RotationY = 0,
  2355. RotationZ = 0,
  2356. Material = "Neon",
  2357. Color = C3(0, 0, 0),
  2358. SoundID = nil,
  2359. SoundPitch = nil,
  2360. SoundVolume = nil
  2361. })
  2362. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(45)), 2 / Animation_Speed)
  2363. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-45)), 2 / Animation_Speed)
  2364. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2365. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2366. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-38), RAD(0), RAD(0)), 2 / Animation_Speed)
  2367. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  2368. end
  2369. coroutine.resume(coroutine.create(function()
  2370. local POS = RootPart.Position
  2371. wait(0.2)
  2372. for i = 1, 5 do
  2373. WACKYEFFECT({
  2374. Time = 65,
  2375. EffectType = "Sphere",
  2376. Size = VT(2, 2, 2),
  2377. Size2 = VT(0, 0, 500),
  2378. Transparency = 1,
  2379. Transparency2 = 0,
  2380. CFrame = CF(POS),
  2381. MoveToPos = nil,
  2382. RotationX = MRANDOM(-2, 2),
  2383. RotationY = MRANDOM(-12, 12),
  2384. RotationZ = MRANDOM(-2, 2),
  2385. Material = "Neon",
  2386. Color = C3(1, 0, 0),
  2387. SoundID = nil,
  2388. SoundPitch = nil,
  2389. SoundVolume = nil
  2390. })
  2391. end
  2392. wait(1)
  2393. SHAKECAM(POS, 9999999999, 25, 25)
  2394. ApplyAoE(POS, 450, true)
  2395. WACKYEFFECT({
  2396. Time = 85,
  2397. EffectType = "Sphere",
  2398. Size = VT(120, 120, 120),
  2399. Size2 = VT(350, 350, 350),
  2400. Transparency = 0,
  2401. Transparency2 = 1,
  2402. CFrame = CF(POS),
  2403. MoveToPos = nil,
  2404. RotationX = 0,
  2405. RotationY = 0,
  2406. RotationZ = 0,
  2407. Material = "Neon",
  2408. Color = C3(1, 1, 1),
  2409. SoundID = nil,
  2410. SoundPitch = 1,
  2411. SoundVolume = 10
  2412. })
  2413. for i = 1, 20 do
  2414. WACKYEFFECT({
  2415. Time = 85,
  2416. EffectType = "Sphere",
  2417. Size = VT(120, 120, 120),
  2418. Size2 = VT(120, 120, 144) + VT(i * 3, i * 3, i * 3),
  2419. Transparency = 0.8,
  2420. Transparency2 = 1,
  2421. CFrame = CF(POS),
  2422. MoveToPos = nil,
  2423. RotationX = 0,
  2424. RotationY = 0,
  2425. RotationZ = 0,
  2426. Material = "Neon",
  2427. Color = C3(0, 1, 0),
  2428. SoundID = nil,
  2429. SoundPitch = 1,
  2430. SoundVolume = 10
  2431. })
  2432. WACKYEFFECT({
  2433. Time = 100,
  2434. EffectType = "Wave",
  2435. Size = VT(25, 2, 25),
  2436. Size2 = VT(400, 0, 400) * 1.2,
  2437. Transparency = 0,
  2438. Transparency2 = 1,
  2439. CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  2440. MoveToPos = nil,
  2441. RotationX = 0,
  2442. RotationY = 0,
  2443. RotationZ = 0,
  2444. Material = "Neon",
  2445. Color = C3(0, 0, 0),
  2446. SoundID = nil,
  2447. SoundPitch = nil,
  2448. SoundVolume = nil
  2449. })
  2450. end
  2451. local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character)
  2452. for i = 1, 5 do
  2453. CreateSound(438666077, Effects, 15, 1 - i / 15, false)
  2454. WACKYEFFECT({
  2455. Time = 120,
  2456. EffectType = "Wave",
  2457. Size = VT(150, 2, 150),
  2458. Size2 = VT(300 + i * 170, 0, 300 + i * 170) * 1.2,
  2459. Transparency = 0,
  2460. Transparency2 = 1,
  2461. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  2462. MoveToPos = nil,
  2463. RotationX = 0,
  2464. RotationY = 0,
  2465. RotationZ = 0,
  2466. Material = "Neon",
  2467. Color = C3(1, 0, 0),
  2468. SoundID = nil,
  2469. SoundPitch = nil,
  2470. SoundVolume = nil
  2471. })
  2472. end
  2473. end))
  2474. for i = 0, 1, 0.1 / Animation_Speed do
  2475. Swait()
  2476. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2477. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2478. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0+ 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(150), RAD(35), RAD(-5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2479. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0 + 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(130), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2480. 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)), 1 / Animation_Speed)
  2481. 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)), 1 / Animation_Speed)
  2482. end
  2483. ATTACK = false
  2484. Rooted = false
  2485. end))
  2486. for i = 1, 30 do
  2487. wait(0.01)
  2488. local POS = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(10, 150))
  2489. local HITFLOOR, HITPOS = Raycast(POS.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character)
  2490. if HITFLOOR then
  2491. ApplyAoE(HITPOS, 65, true)
  2492. local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0))
  2493. WACKYEFFECT({
  2494. Time = 25,
  2495. EffectType = "Sphere",
  2496. Size = VT(22, 22, 22),
  2497. Size2 = VT(85, 85, 85),
  2498. Transparency = 0,
  2499. Transparency2 = 1,
  2500. CFrame = CF(HITPOS),
  2501. MoveToPos = nil,
  2502. RotationX = 0,
  2503. RotationY = 0,
  2504. RotationZ = 0,
  2505. Material = "Neon",
  2506. Color = C3(0, 0, 0),
  2507. SoundID = BLASTS[MRANDOM(1, #BLASTS)],
  2508. SoundPitch = MRANDOM(9, 12) / 10,
  2509. SoundVolume = 10
  2510. })
  2511. for e = 1, 3 do
  2512. WACKYEFFECT({
  2513. EffectType = "Wave",
  2514. Size = VT(25, 0, 25),
  2515. Size2 = VT(40, 0, 40) + VT(e * 6, e / 5, e * 6),
  2516. Transparency = 0,
  2517. Transparency2 = 1,
  2518. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)),
  2519. MoveToPos = nil,
  2520. RotationX = 0,
  2521. RotationY = 3,
  2522. RotationZ = 0,
  2523. Material = "Neon",
  2524. Color = C3(0, 1, 0),
  2525. SoundID = nil,
  2526. SoundPitch = nil,
  2527. SoundVolume = nil
  2528. })
  2529. WACKYEFFECT({
  2530. Time = 35,
  2531. EffectType = "Sphere",
  2532. Size = VT(22, 45, 22),
  2533. Size2 = VT(25, 45 + e * 75, 25),
  2534. Transparency = 0,
  2535. Transparency2 = 1,
  2536. CFrame = CF(HITPOS) * TURN,
  2537. MoveToPos = nil,
  2538. RotationX = 0,
  2539. RotationY = 0,
  2540. RotationZ = 0,
  2541. Material = "Neon",
  2542. Color = C3(1, 1, 1),
  2543. SoundID = nil,
  2544. SoundPitch = MRANDOM(9, 12) / 10,
  2545. SoundVolume = 10
  2546. })
  2547. end
  2548. end
  2549. end
  2550. CHARGE = true
  2551. end
  2552.  
  2553. function Taunt()
  2554. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false)
  2555. ATTACK = true
  2556. Rooted = true
  2557. for i=0, 0.3, 0.1 / Animation_Speed do
  2558. Swait()
  2559. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2560. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2561. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2562. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2563. if HITFLOOR then
  2564. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  2565. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  2566. elseif HITFLOOR == nil then
  2567. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
  2568. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
  2569. end
  2570. end
  2571. for i = 1, 8 do
  2572. for i=0, 0.2, 0.1 / Animation_Speed do
  2573. Swait()
  2574. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2575. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2576. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2577. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 0.7 / Animation_Speed)
  2578. if HITFLOOR then
  2579. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  2580. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  2581. elseif HITFLOOR == nil then
  2582. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
  2583. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
  2584. end
  2585. end
  2586. CreateSound(FireSound, Gun1, 5, 1, false)
  2587. for i=0, 0.2, 0.1 / Animation_Speed do
  2588. Swait()
  2589. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2590. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2591. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.7 / Animation_Speed)
  2592. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(-180)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2593. if HITFLOOR then
  2594. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  2595. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  2596. elseif HITFLOOR == nil then
  2597. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed)
  2598. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed)
  2599. end
  2600. end
  2601. CreateSound(FireSound, Gun2, 5, 1, false)
  2602. end
  2603. ATTACK = false
  2604. Rooted = false
  2605. end
  2606. --//=================================\\
  2607. --|| ASSIGN THINGS TO KEYS
  2608. --\\=================================//
  2609.  
  2610. function MouseDown(Mouse)
  2611. if ATTACK == false then
  2612. end
  2613. end
  2614.  
  2615. function MouseUp(Mouse)
  2616. HOLD = falseW
  2617. end
  2618.  
  2619. function KeyDown(Key)
  2620. KEYHOLD = true
  2621. if Key == "z" and ATTACK == false then
  2622. Shot()
  2623. end
  2624.  
  2625. if Key == "b" and ATTACK == false then
  2626. Kick()
  2627. end
  2628.  
  2629. if Key == "n" and ATTACK == false then
  2630. Punch()
  2631. end
  2632.  
  2633. if Key == "t" and ATTACK == false then
  2634. Taunt()
  2635. end
  2636.  
  2637. if Key == "c" and ATTACK == false then
  2638. kiss()
  2639. end
  2640.  
  2641. if Key == "v" and ATTACK == false then
  2642. Oblivion()
  2643. end
  2644.  
  2645. if Key == "x" and ATTACK == false then
  2646. Nuke()
  2647. end
  2648. end
  2649.  
  2650. function KeyUp(Key)
  2651. KEYHOLD = false
  2652. end
  2653.  
  2654. Mouse.Button1Down:connect(function(NEWKEY)
  2655. MouseDown(NEWKEY)
  2656. end)
  2657. Mouse.Button1Up:connect(function(NEWKEY)
  2658. MouseUp(NEWKEY)
  2659. end)
  2660. Mouse.KeyDown:connect(function(NEWKEY)
  2661. KeyDown(NEWKEY)
  2662. end)
  2663. Mouse.KeyUp:connect(function(NEWKEY)
  2664. KeyUp(NEWKEY)
  2665. end)
  2666.  
  2667. --//=================================\\
  2668. --\\=================================//
  2669.  
  2670.  
  2671. function unanchor()
  2672. if UNANCHOR == true then
  2673. g = Character:GetChildren()
  2674. for i = 1, #g do
  2675. if g[i].ClassName == "Part" then
  2676. g[i].Anchored = false
  2677. end
  2678. end
  2679. end
  2680. end
  2681.  
  2682.  
  2683. --//=================================\\
  2684. --|| WRAP THE WHOLE SCRIPT UP
  2685. --\\=================================//
  2686.  
  2687. Humanoid.Changed:connect(function(Jump)
  2688. if Jump == "Jump" and (Disable_Jump == true) then
  2689. Humanoid.Jump = false
  2690. end
  2691. end)
  2692.  
  2693. local CONNECT = nil
  2694.  
  2695. while true do
  2696. Swait()
  2697. ANIMATE.Parent = nil
  2698. if Character:FindFirstChildOfClass("Humanoid") == nil then
  2699. Humanoid = IT("Humanoid",Character)
  2700. end
  2701. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2702. v:Stop();
  2703. end
  2704. SINE = SINE + CHANGE
  2705. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2706. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2707. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2708. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2709. if ANIM == "Walk" and TORSOVELOCITY > 1 and NOWALK == false then
  2710. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2711. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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)
  2712. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * 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)
  2713. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * 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)
  2714. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or NOWALK == true then
  2715. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2716. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2717. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2718. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2719. end
  2720. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2721. ANIM = "Jump"
  2722. if ATTACK == false then
  2723. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2724. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2725. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2726. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2727. 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)
  2728. 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)
  2729. end
  2730. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2731. ANIM = "Fall"
  2732. if ATTACK == false then
  2733. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2734. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2735. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2736. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2737. 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)
  2738. 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)
  2739. end
  2740. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2741. ANIM = "Idle"
  2742. if ATTACK == false then
  2743. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  2744. 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)
  2745. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0+ 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(150), RAD(35), RAD(-5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2746. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0 + 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(130), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2747. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2748. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-76), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2749. end
  2750. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2751. ANIM = "Walk"
  2752. if ATTACK == false then
  2753. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(25)), 0.15 / Animation_Speed)
  2754. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed)
  2755. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0+ 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(150), RAD(35), RAD(-5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2756. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0 + 0.15 * COS(SINE / 12), -0.2) * ANGLES(RAD(130), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2757. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2758. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-115), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2759. end
  2760. end
  2761. unanchor()
  2762. Humanoid.MaxHealth = "inf"
  2763. Humanoid.Health = "inf"
  2764. if Rooted == false then
  2765. Disable_Jump = false
  2766. Humanoid.WalkSpeed = Speed
  2767. elseif Rooted == true then
  2768. Disable_Jump = true
  2769. Humanoid.WalkSpeed = 0
  2770. end
  2771.  
  2772. sick.Parent = Torso
  2773. sick:resume()
  2774. sick.Volume = 1
  2775. sick.Pitch = 1
  2776. sick.SoundId = "rbxassetid://733456981"
  2777. sick.Name = "Un sen"
  2778. end
  2779. --//=================================\\
  2780. --\\=================================//
  2781.  
  2782.  
  2783. --//====================================================\\--
  2784. --|| END OF SCRIPT
  2785. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement