Advertisement
Acc_kili

Untitled

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