Advertisement
AOM-GU-PRO

DG CD

Nov 20th, 2018
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.81 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| Templates BY Aom[WCR]
  3. --\\====================================================//--
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147.  
  148. Player = game:GetService("Players").LocalPlayer
  149. PlayerGui = Player.PlayerGui
  150. Cam = workspace.CurrentCamera
  151. Backpack = Player.Backpack
  152. Character = Player.Character
  153. Humanoid = Character.Humanoid
  154. Mouse = Player:GetMouse()
  155. RootPart = Character["HumanoidRootPart"]
  156. Torso = Character["Torso"]
  157. Head = Character["Head"]
  158. RightArm = Character["Right Arm"]
  159. LeftArm = Character["Left Arm"]
  160. RightLeg = Character["Right Leg"]
  161. LeftLeg = Character["Left Leg"]
  162. RootJoint = RootPart["RootJoint"]
  163. Neck = Torso["Neck"]
  164. RightShoulder = Torso["Right Shoulder"]
  165. LeftShoulder = Torso["Left Shoulder"]
  166. RightHip = Torso["Right Hip"]
  167. LeftHip = Torso["Left Hip"]
  168. local sick = Instance.new("Sound",Character)
  169. sick.SoundId = "rbxassetid://1468374269"
  170. sick.Looped = true
  171. sick.Playing = true
  172. sick.PlayOnRemove = true
  173. sick.Pitch = 1
  174. sick.Volume = 10
  175. Character.Archivable = true
  176. Humanoid.DisplayDistanceType = "None"
  177.  
  178. local naeeym2 = Instance.new("BillboardGui",Character)
  179. naeeym2.AlwaysOnTop = true
  180. naeeym2.Size = UDim2.new(5,35,2,35)
  181. naeeym2.StudsOffset = Vector3.new(0,3,0)
  182. naeeym2.Adornee = Character.Head
  183. naeeym2.Name = "Name"
  184. local tecks2 = Instance.new("TextLabel",naeeym2)
  185. tecks2.BackgroundTransparency = 1
  186. tecks2.TextScaled = true
  187. tecks2.BorderSizePixel = 0
  188. tecks2.Text = "aomFetty"
  189. tecks2.Font = "Code"
  190. tecks2.TextSize = 30
  191. tecks2.TextTransparency = 0
  192. tecks2.TextStrokeTransparency = 1
  193. tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
  194. tecks2.Size = UDim2.new(1,0,0.5,0)
  195. tecks2.Parent = naeeym2
  196.  
  197. IT = Instance.new
  198. CF = CFrame.new
  199. VT = Vector3.new
  200. RAD = math.rad
  201. C3 = Color3.new
  202. UD2 = UDim2.new
  203. BRICKC = BrickColor.new
  204. ANGLES = CFrame.Angles
  205. EULER = CFrame.fromEulerAnglesXYZ
  206. COS = math.cos
  207. ACOS = math.acos
  208. SIN = math.sin
  209. ASIN = math.asin
  210. ABS = math.abs
  211. MRANDOM = math.random
  212. FLOOR = math.floor
  213.  
  214. --//=================================\\
  215. --|| USEFUL VALUES
  216. --\\=================================//
  217.  
  218. Animation_Speed = 5
  219. local FORCERESET = false
  220. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  221. local Speed = 60
  222. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  223. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  224. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  225. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  226. local DAMAGEMULTIPLIER = 1
  227. local ANIM = "Idle"
  228. local ATTACK = false
  229. local EQUIPPED = false
  230. local HOLD = false
  231. local COMBO = 1
  232. local Rooted = false
  233. local SINE = 0
  234. local KEYHOLD = false
  235. local CHANGE = 2 / Animation_Speed
  236. local WALKINGANIM = false
  237. local VALUE1 = false
  238. local VALUE2 = false
  239. local ROBLOXIDLEANIMATION = IT("Animation")
  240. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  241. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  242. --ROBLOXIDLEANIMATION.Parent = Humanoid
  243. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  244. WEAPONGUI.Name = "BanishV3Gui"
  245. local Weapon = IT("Model")
  246. Weapon.Name = "Adds"
  247. local Effects = IT("Folder", Weapon)
  248. Effects.Name = "Effects"
  249. local ANIMATOR = Humanoid.Animator
  250. local ANIMATE = Character:FindFirstChild("Animate")
  251. local UNANCHOR = true
  252. local TOBANISH = {}
  253. local INTRO = false
  254. script.Parent = PlayerGui
  255.  
  256. --//=================================\\
  257. --\\=================================//
  258.  
  259.  
  260. --//=================================\\
  261. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  262. --\\=================================//
  263.  
  264. ArtificialHB = Instance.new("BindableEvent", script)
  265. ArtificialHB.Name = "ArtificialHB"
  266.  
  267. script:WaitForChild("ArtificialHB")
  268.  
  269. frame = Frame_Speed
  270. tf = 0
  271. allowframeloss = false
  272. tossremainder = false
  273. lastframe = tick()
  274. script.ArtificialHB:Fire()
  275.  
  276. game:GetService("RunService").Heartbeat:connect(function(s, p)
  277. tf = tf + s
  278. if tf >= frame then
  279. if allowframeloss then
  280. script.ArtificialHB:Fire()
  281. lastframe = tick()
  282. else
  283. for i = 1, math.floor(tf / frame) do
  284. script.ArtificialHB:Fire()
  285. end
  286. lastframe = tick()
  287. end
  288. if tossremainder then
  289. tf = 0
  290. else
  291. tf = tf - frame * math.floor(tf / frame)
  292. end
  293. end
  294. end)
  295.  
  296. --//=================================\\
  297. --\\=================================//
  298.  
  299. --//=================================\\
  300. --|| SOME FUNCTIONS
  301. --\\=================================//
  302.  
  303. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  304. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  305. end
  306.  
  307. function PositiveAngle(NUMBER)
  308. if NUMBER >= 0 then
  309. NUMBER = 0
  310. end
  311. return NUMBER
  312. end
  313.  
  314. function NegativeAngle(NUMBER)
  315. if NUMBER <= 0 then
  316. NUMBER = 0
  317. end
  318. return NUMBER
  319. end
  320.  
  321. function Swait(NUMBER)
  322. if NUMBER == 0 or NUMBER == nil then
  323. ArtificialHB.Event:wait()
  324. else
  325. for i = 1, NUMBER do
  326. ArtificialHB.Event:wait()
  327. end
  328. end
  329. end
  330.  
  331. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  332. local NEWMESH = IT(MESH)
  333. if MESH == "SpecialMesh" then
  334. NEWMESH.MeshType = MESHTYPE
  335. if MESHID ~= "nil" and MESHID ~= "" then
  336. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  337. end
  338. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  339. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  340. end
  341. end
  342. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  343. NEWMESH.Scale = SCALE
  344. NEWMESH.Parent = PARENT
  345. return NEWMESH
  346. end
  347.  
  348. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  349. local NEWPART = IT("Part")
  350. NEWPART.formFactor = FORMFACTOR
  351. NEWPART.Reflectance = REFLECTANCE
  352. NEWPART.Transparency = TRANSPARENCY
  353. NEWPART.CanCollide = false
  354. NEWPART.Locked = true
  355. NEWPART.Anchored = true
  356. if ANCHOR == false then
  357. NEWPART.Anchored = false
  358. end
  359. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  360. NEWPART.Name = NAME
  361. NEWPART.Size = SIZE
  362. NEWPART.Position = Torso.Position
  363. NEWPART.Material = MATERIAL
  364. NEWPART:BreakJoints()
  365. NEWPART.Parent = PARENT
  366. return NEWPART
  367. end
  368.  
  369. local function weldBetween(a, b)
  370. local weldd = Instance.new("ManualWeld")
  371. weldd.Part0 = a
  372. weldd.Part1 = b
  373. weldd.C0 = CFrame.new()
  374. weldd.C1 = b.CFrame:inverse() * a.CFrame
  375. weldd.Parent = a
  376. return weldd
  377. end
  378.  
  379.  
  380. function QuaternionFromCFrame(cf)
  381. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  382. local trace = m00 + m11 + m22
  383. if trace > 0 then
  384. local s = math.sqrt(1 + trace)
  385. local recip = 0.5 / s
  386. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  387. else
  388. local i = 0
  389. if m11 > m00 then
  390. i = 1
  391. end
  392. if m22 > (i == 0 and m00 or m11) then
  393. i = 2
  394. end
  395. if i == 0 then
  396. local s = math.sqrt(m00 - m11 - m22 + 1)
  397. local recip = 0.5 / s
  398. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  399. elseif i == 1 then
  400. local s = math.sqrt(m11 - m22 - m00 + 1)
  401. local recip = 0.5 / s
  402. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  403. elseif i == 2 then
  404. local s = math.sqrt(m22 - m00 - m11 + 1)
  405. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  406. end
  407. end
  408. end
  409.  
  410. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  411. local xs, ys, zs = x + x, y + y, z + z
  412. local wx, wy, wz = w * xs, w * ys, w * zs
  413. local xx = x * xs
  414. local xy = x * ys
  415. local xz = x * zs
  416. local yy = y * ys
  417. local yz = y * zs
  418. local zz = z * zs
  419. 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))
  420. end
  421.  
  422. function QuaternionSlerp(a, b, t)
  423. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  424. local startInterp, finishInterp;
  425. if cosTheta >= 0.0001 then
  426. if (1 - cosTheta) > 0.0001 then
  427. local theta = ACOS(cosTheta)
  428. local invSinTheta = 1 / SIN(theta)
  429. startInterp = SIN((1 - t) * theta) * invSinTheta
  430. finishInterp = SIN(t * theta) * invSinTheta
  431. else
  432. startInterp = 1 - t
  433. finishInterp = t
  434. end
  435. else
  436. if (1 + cosTheta) > 0.0001 then
  437. local theta = ACOS(-cosTheta)
  438. local invSinTheta = 1 / SIN(theta)
  439. startInterp = SIN((t - 1) * theta) * invSinTheta
  440. finishInterp = SIN(t * theta) * invSinTheta
  441. else
  442. startInterp = t - 1
  443. finishInterp = t
  444. end
  445. end
  446. 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
  447. end
  448.  
  449. function Clerp(a, b, t)
  450. local qa = {QuaternionFromCFrame(a)}
  451. local qb = {QuaternionFromCFrame(b)}
  452. local ax, ay, az = a.x, a.y, a.z
  453. local bx, by, bz = b.x, b.y, b.z
  454. local _t = 1 - t
  455. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  456. end
  457.  
  458. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  459. local frame = IT("Frame")
  460. frame.BackgroundTransparency = TRANSPARENCY
  461. frame.BorderSizePixel = BORDERSIZEPIXEL
  462. frame.Position = POSITION
  463. frame.Size = SIZE
  464. frame.BackgroundColor3 = COLOR
  465. frame.BorderColor3 = BORDERCOLOR
  466. frame.Name = NAME
  467. frame.Parent = PARENT
  468. return frame
  469. end
  470.  
  471. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  472. local label = IT("TextLabel")
  473. label.BackgroundTransparency = 1
  474. label.Size = UD2(1, 0, 1, 0)
  475. label.Position = UD2(0, 0, 0, 0)
  476. label.TextColor3 = TEXTCOLOR
  477. label.TextStrokeTransparency = STROKETRANSPARENCY
  478. label.TextTransparency = TRANSPARENCY
  479. label.FontSize = TEXTFONTSIZE
  480. label.Font = TEXTFONT
  481. label.BorderSizePixel = BORDERSIZEPIXEL
  482. label.TextScaled = false
  483. label.Text = TEXT
  484. label.Name = NAME
  485. label.Parent = PARENT
  486. return label
  487. end
  488.  
  489. function NoOutlines(PART)
  490. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  491. end
  492.  
  493. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  494. local NEWWELD = IT(TYPE)
  495. NEWWELD.Part0 = PART0
  496. NEWWELD.Part1 = PART1
  497. NEWWELD.C0 = C0
  498. NEWWELD.C1 = C1
  499. NEWWELD.Parent = PARENT
  500. return NEWWELD
  501. end
  502.  
  503. local S = IT("Sound")
  504. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  505. local NEWSOUND = nil
  506. coroutine.resume(coroutine.create(function()
  507. NEWSOUND = S:Clone()
  508. NEWSOUND.Parent = PARENT
  509. NEWSOUND.Volume = VOLUME
  510. NEWSOUND.Pitch = PITCH
  511. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  512. NEWSOUND:play()
  513. if DOESLOOP == true then
  514. NEWSOUND.Looped = true
  515. else
  516. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  517. NEWSOUND:remove()
  518. end
  519. end))
  520. return NEWSOUND
  521. end
  522.  
  523. function CFrameFromTopBack(at, top, back)
  524. local right = top:Cross(back)
  525. 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)
  526. end
  527.  
  528. --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})
  529. function WACKYEFFECT(Table)
  530. local TYPE = (Table.EffectType or "Sphere")
  531. local SIZE = (Table.Size or VT(1,1,1))
  532. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  533. local TRANSPARENCY = (Table.Transparency or 0)
  534. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  535. local CFRAME = (Table.CFrame or Torso.CFrame)
  536. local MOVEDIRECTION = (Table.MoveToPos or nil)
  537. local ROTATION1 = (Table.RotationX or 0)
  538. local ROTATION2 = (Table.RotationY or 0)
  539. local ROTATION3 = (Table.RotationZ or 0)
  540. local MATERIAL = (Table.Material or "Neon")
  541. local COLOR = (Table.Color or C3(1,1,1))
  542. local TIME = (Table.Time or 45)
  543. local SOUNDID = (Table.SoundID or nil)
  544. local SOUNDPITCH = (Table.SoundPitch or nil)
  545. local SOUNDVOLUME = (Table.SoundVolume or nil)
  546. coroutine.resume(coroutine.create(function()
  547. local PLAYSSOUND = false
  548. local SOUND = nil
  549. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  550. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  551. PLAYSSOUND = true
  552. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  553. end
  554. EFFECT.Color = COLOR
  555. local MSH = nil
  556. if TYPE == "Sphere" then
  557. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  558. elseif TYPE == "Block" then
  559. MSH = IT("BlockMesh",EFFECT)
  560. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  561. elseif TYPE == "Wave" then
  562. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  563. elseif TYPE == "Ring" then
  564. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  565. elseif TYPE == "Slash" then
  566. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  567. elseif TYPE == "Round Slash" then
  568. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  569. elseif TYPE == "Swirl" then
  570. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  571. elseif TYPE == "Skull" then
  572. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  573. elseif TYPE == "Crystal" then
  574. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  575. end
  576. if MSH ~= nil then
  577. local MOVESPEED = nil
  578. if MOVEDIRECTION ~= nil then
  579. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  580. end
  581. local GROWTH = SIZE - ENDSIZE
  582. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  583. if TYPE == "Block" then
  584. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  585. else
  586. EFFECT.CFrame = CFRAME
  587. end
  588. for LOOP = 1, TIME+1 do
  589. Swait()
  590. MSH.Scale = MSH.Scale - GROWTH/TIME
  591. if TYPE == "Wave" then
  592. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  593. end
  594. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  595. if TYPE == "Block" then
  596. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  597. else
  598. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  599. end
  600. if MOVEDIRECTION ~= nil then
  601. local ORI = EFFECT.Orientation
  602. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  603. EFFECT.Orientation = ORI
  604. end
  605. end
  606. if PLAYSSOUND == false then
  607. EFFECT:remove()
  608. else
  609. SOUND.Stopped:Connect(function()
  610. EFFECT:remove()
  611. end)
  612. end
  613. else
  614. if PLAYSSOUND == false then
  615. EFFECT:remove()
  616. else
  617. repeat Swait() until SOUND.Playing == false
  618. EFFECT:remove()
  619. end
  620. end
  621. end))
  622. end
  623.  
  624. function MakeForm(PART,TYPE)
  625. if TYPE == "Cyl" then
  626. local MSH = IT("CylinderMesh",PART)
  627. elseif TYPE == "Ball" then
  628. local MSH = IT("SpecialMesh",PART)
  629. MSH.MeshType = "Sphere"
  630. elseif TYPE == "Wedge" then
  631. local MSH = IT("SpecialMesh",PART)
  632. MSH.MeshType = "Wedge"
  633. end
  634. end
  635.  
  636. function SpawnTrail(FROM,TO,BIG)
  637. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  638. MakeForm(TRAIL,"Cyl")
  639. local DIST = (FROM - TO).Magnitude
  640. if BIG == true then
  641. TRAIL.Size = VT(0.5,DIST,0.5)
  642. else
  643. TRAIL.Size = VT(0.25,DIST,0.25)
  644. end
  645. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  646. coroutine.resume(coroutine.create(function()
  647. for i = 1, 5 do
  648. Swait()
  649. TRAIL.Transparency = TRAIL.Transparency + 0.1
  650. end
  651. TRAIL:remove()
  652. end))
  653. end
  654.  
  655. Debris = game:GetService("Debris")
  656.  
  657. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  658. local DIRECTION = CF(StartPos,EndPos).lookVector
  659. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  660. end
  661.  
  662. function turnto(position)
  663. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  664. end
  665.  
  666. function CreateSound(ID, PARENT, VOLUME, PITCH)
  667. local NEWSOUND = nil
  668. coroutine.resume(coroutine.create(function()
  669. NEWSOUND = IT("Sound", PARENT)
  670. NEWSOUND.Volume = VOLUME
  671. NEWSOUND.Pitch = PITCH
  672. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  673. Swait()
  674. NEWSOUND:play()
  675. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  676. end))
  677. return NEWSOUND
  678. end
  679.  
  680. --//=================================\\
  681. --|| WEAPON CREATION
  682. --\\=================================//
  683. local EXE = Instance.new("Shirt")
  684. EXE.ShirtTemplate = "rbxassetid://236410507"
  685. EXE.Parent = Character
  686. EXE.Name = "Cloth"
  687. local LOL = Instance.new("Pants")
  688. LOL.PantsTemplate = "rbxassetid://236412261"
  689. LOL.Parent = Character
  690. LOL.Name = "Cloth"
  691.  
  692. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Wistband part", VT(1.015,0.15,1.015),false)
  693. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  694. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.035,0.1,1.035),false)
  695. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.35, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  696. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.035,0.1,1.035),false)
  697. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.45, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  698. MakeForm(part,"Wedge")
  699. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.025,0.05,1.025),false)
  700. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.22, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  701. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.025,0.1,1.025),false)
  702. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  703. MakeForm(part,"Wedge")
  704. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(0.8,0.05,0.8),false)
  705. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.5, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  706. MakeForm(part,"Cyl")
  707. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Wistband part", VT(0.81,0.05,0.81),false)
  708. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.49, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  709. MakeForm(part,"Cyl")
  710. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Really red", "Wistband part", VT(0.5,0.05,0.5),false)
  711. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.51, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  712. MakeForm(part,"Cyl")
  713. local blade = CreatePart(3, Weapon, "Marble", 0, 0, "Really black", "Wistband part", VT(0.5,0.05,0.5),false)
  714. local armweld = CreateWeldOrSnapOrMotor("Weld", blade, RightArm, blade, CF(0.52, -0.306, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  715. CreateMesh("SpecialMesh", blade, "FileMesh", "340607397", "", VT(0.35,0.35,0.35), VT(-0.015, 0, -0.05))
  716. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "Wistband part", VT(0.2,0.05,0.2),false)
  717. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  718. MakeForm(part,"Ball")
  719. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(0.15,0.06,0.15),false)
  720. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  721. MakeForm(part,"Ball")
  722. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Wistband part", VT(0.1,0.07,0.1),false)
  723. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  724. MakeForm(part,"Ball")
  725.  
  726.  
  727. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Wistband part", VT(1.015,0.15,1.015),false)
  728. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  729. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.035,0.1,1.035),false)
  730. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0, -0.35, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  731. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.035,0.1,1.035),false)
  732. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0, -0.45, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  733. MakeForm(part,"Wedge")
  734. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.025,0.05,1.025),false)
  735. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0, -0.22, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  736. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(1.025,0.1,1.025),false)
  737. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0, -0.15, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  738. MakeForm(part,"Wedge")
  739. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(0.8,0.05,0.8),false)
  740. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0.5, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  741. MakeForm(part,"Cyl")
  742. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Wistband part", VT(0.81,0.05,0.81),false)
  743. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0.49, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  744. MakeForm(part,"Cyl")
  745. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Really red", "Wistband part", VT(0.5,0.05,0.5),false)
  746. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0.51, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  747. MakeForm(part,"Cyl")
  748. local blade = CreatePart(3, Weapon, "Marble", 0, 0, "Really black", "Wistband part", VT(0.5,0.05,0.5),false)
  749. local armweld = CreateWeldOrSnapOrMotor("Weld", blade, RightLeg, blade, CF(0.52, -0.306, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  750. CreateMesh("SpecialMesh", blade, "FileMesh", "340607397", "", VT(0.35,0.35,0.35), VT(-0.015, 0, -0.05))
  751. local part = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "Wistband part", VT(0.2,0.05,0.2),false)
  752. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  753. MakeForm(part,"Ball")
  754. local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "Wistband part", VT(0.15,0.06,0.15),false)
  755. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  756. MakeForm(part,"Ball")
  757. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Wistband part", VT(0.1,0.07,0.1),false)
  758. local weld = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0.52, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  759. MakeForm(part,"Ball")
  760.  
  761.  
  762. local BODY = {}
  763.  
  764. for _, c in pairs(Character:GetChildren()) do
  765. if c.ClassName == "Part" and c.Name ~= "Eye" then
  766. c.Material = "Neon"
  767. if c:FindFirstChildOfClass("ParticleEmitter") then
  768. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  769. end
  770. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  771. c:remove()
  772. end
  773. end
  774.  
  775. for e = 1, #BODY do
  776. if BODY[e] ~= nil then
  777. local STUFF = BODY[e]
  778. local PART = STUFF[1]
  779. local PARENT = STUFF[2]
  780. local MATERIAL = STUFF[3]
  781. local COLOR = STUFF[4]
  782. local TRANSPARENCY = STUFF[5]
  783. if PART.ClassName == "Part" and PART ~= RootPart then
  784. PART.Material = MATERIAL
  785. PART.Color = COLOR
  786. PART.Transparency = TRANSPARENCY
  787. end
  788. PART.AncestryChanged:Connect(function()
  789. PART.Parent = PARENT
  790. end)
  791. end
  792. end
  793.  
  794. function refit()
  795. Character.Parent = workspace
  796. for e = 1, #BODY do
  797. if BODY[e] ~= nil then
  798. local STUFF = BODY[e]
  799. local PART = STUFF[1]
  800. local PARENT = STUFF[2]
  801. local MATERIAL = STUFF[3]
  802. local COLOR = STUFF[4]
  803. local TRANSPARENCY = STUFF[5]
  804. if PART.ClassName == "Part" and PART ~= RootPart then
  805. PART.Material = MATERIAL
  806. PART.Color = COLOR
  807. PART.Transparency = TRANSPARENCY
  808. end
  809. if PART.Parent ~= PARENT then
  810. Humanoid:remove()
  811. PART.Parent = PARENT
  812. Humanoid = IT("Humanoid",Character)
  813. end
  814. end
  815. end
  816. end
  817.  
  818. for _, c in pairs(Weapon:GetDescendants()) do
  819. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  820. c.Material = "Glass"
  821. c.Color = C3(0,0,0)
  822. elseif c.ClassName == "Part" and c.Name == "Eye" then
  823. c.Color = C3(1,0,0)
  824. c.Material = "Neon"
  825. end
  826. end
  827.  
  828. Weapon.Parent = Character
  829. for _, c in pairs(Weapon:GetChildren()) do
  830. if c.ClassName == "Part" then
  831. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  832. end
  833. end
  834.  
  835. local SKILLTEXTCOLOR = C3(1,0,0)
  836. local SKILLFONT = "Antique"
  837. local SKILLTEXTSIZE = 7
  838.  
  839. Humanoid.Died:connect(function()
  840. ATTACK = true
  841. end)
  842.  
  843. 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")
  844.  
  845. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z][X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  846.  
  847. function printbye(Name)
  848. 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, "}
  849. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  850. end
  851.  
  852. workspace.ChildAdded:connect(function(instance)
  853. for BANISH = 1, #TOBANISH do
  854. if TOBANISH[BANISH] ~= nil then
  855. if instance.Name == TOBANISH[BANISH] then
  856. coroutine.resume(coroutine.create(function()
  857. printbye(instance.Name)
  858. instance:ClearAllChildren()
  859. Debris:AddItem(instance,0.0005)
  860. end))
  861. end
  862. end
  863. end
  864. end)
  865.  
  866. --//=================================\\
  867. --|| DAMAGING
  868. --\\=================================//
  869. function Banish(Foe)
  870. if Foe then
  871. coroutine.resume(coroutine.create(function()
  872. --if game.Players:FindFirstChild(Foe.Name) then
  873. table.insert(TOBANISH,Foe.Name)
  874. printbye(Foe.Name)
  875. --end
  876. Foe.Archivable = true
  877. local CLONE = Foe:Clone()
  878. Foe:Destroy()
  879. CLONE.Parent = Effects
  880. CLONE:BreakJoints()
  881. local MATERIALS = {"Glass","Neon"}
  882. for _, c in pairs(CLONE:GetDescendants()) do
  883. if c:IsA("BasePart") then
  884. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  885. CreateSound(340722848, c, 10, 1, false)
  886. end
  887. c.Anchored = true
  888. c.Transparency = c.Transparency + 0.2
  889. c.Material = MATERIALS[MRANDOM(1,2)]
  890. c.Color = C3(1,0,0)
  891. if c.ClassName == "MeshPart" then
  892. c.TextureID = ""
  893. end
  894. if c:FindFirstChildOfClass("SpecialMesh") then
  895. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  896. end
  897. if c:FindFirstChildOfClass("Decal") then
  898. c:FindFirstChildOfClass("Decal"):remove()
  899. end
  900. c.Name = "Banished"
  901. c.CanCollide = false
  902. else
  903. c:remove()
  904. end
  905. end
  906. local A = false
  907. for i = 1, 35 do
  908. if A == false then
  909. A = true
  910. elseif A == true then
  911. A = false
  912. end
  913. for _, c in pairs(CLONE:GetDescendants()) do
  914. if c:IsA("BasePart") then
  915. c.Anchored = true
  916. c.Material = MATERIALS[MRANDOM(1,2)]
  917. c.Transparency = c.Transparency + 0.8/35
  918. if A == false then
  919. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  920. elseif A == true then
  921. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  922. end
  923. end
  924. end
  925. Swait()
  926. end
  927. CLONE:remove()
  928. end))
  929. end
  930. end
  931.  
  932. function ApplyAoE(POSITION,RANGE,ISBANISH)
  933. local CHILDREN = workspace:GetDescendants()
  934. for index, CHILD in pairs(CHILDREN) do
  935. if CHILD.ClassName == "Model" and CHILD ~= Character then
  936. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  937. if HUM then
  938. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  939. if TORSO then
  940. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  941. if ISBANISH == true then
  942. Banish(CHILD)
  943. else
  944. if ISBANISH == "Gravity" then
  945. HUM.PlatformStand = true
  946. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  947. local grav = Instance.new("BodyPosition",TORSO)
  948. grav.D = 15
  949. grav.P = 20000
  950. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  951. grav.position = TORSO.Position
  952. grav.Name = "V3BanishForce"..Player.Name
  953. else
  954. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  955. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  956. end
  957. else
  958. HUM.PlatformStand = false
  959. end
  960. end
  961. elseif ISBANISH == "Gravity" then
  962. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  963. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  964. HUM.PlatformStand = false
  965. end
  966. end
  967. end
  968. end
  969. end
  970. end
  971. end
  972.  
  973. function killnearest(position,range,maxstrength,direction)
  974. for i,v in ipairs(workspace:GetChildren()) do
  975. local body = v:GetChildren()
  976. for part = 1, #body do
  977. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  978. if(body[part].Position - position).Magnitude < range then
  979. if v.ClassName == "Model" then
  980. --v:BreakJoints()
  981. end
  982. local POS = position
  983. coroutine.resume(coroutine.create(function()
  984. body[part].Anchored = true
  985. body[part].Parent = Effects
  986. body[part].CanCollide = true
  987. local SIZE = body[part].Size
  988. body[part].Material = "Neon"
  989. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  990. for i = 1, 75 do
  991. Swait()
  992. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  993. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  994. end
  995. coroutine.resume(coroutine.create(function()
  996. while true do
  997. Swait()
  998. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  999. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1000. end
  1001. end))
  1002. body[part].Anchored = false
  1003. body[part].Velocity = direction.lookVector*maxstrength
  1004. end))
  1005. end
  1006. end
  1007. end
  1008. if v.ClassName == "Part" then
  1009. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1010. local POS = position
  1011. coroutine.resume(coroutine.create(function()
  1012. v.Anchored = true
  1013. v.Parent = Effects
  1014. local SIZE = v.Size
  1015. v.Material = "Neon"
  1016. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1017. for i = 1, 75 do
  1018. Swait()
  1019. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1020. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1021. end
  1022. coroutine.resume(coroutine.create(function()
  1023. while true do
  1024. Swait()
  1025. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1026. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1027. end
  1028. end))
  1029. v.Anchored = false
  1030. v.Velocity = direction.lookVector*maxstrength
  1031. end))
  1032. end
  1033. end
  1034. end
  1035. end
  1036.  
  1037. function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
  1038. local TORSO = Torso
  1039. local HUM = Humanoid
  1040. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  1041. coroutine.wrap(function()
  1042. VT = Vector3.new
  1043. MRANDOM = math.random
  1044. local A = TIME
  1045. local B = INTENSITY
  1046. local C = true
  1047. local HUMANOID = Humanoid
  1048. local TIMER = A or 35
  1049. local SHAKE = B or 5
  1050. local FADE = C or true
  1051. if HUMANOID then
  1052. local FADER = SHAKE / TIMER
  1053. for i = 1, TIMER do
  1054. wait()
  1055. 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)
  1056. end
  1057. HUMANOID.CameraOffset = VT(0, 0, 0)
  1058. end
  1059.  
  1060. end)()
  1061. end
  1062. end
  1063.  
  1064. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,BESERK)
  1065. local dmg = math.random(10000,100000)
  1066. for i,v in ipairs(workspace:GetChildren()) do
  1067. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1068. local body = v:GetChildren()
  1069. for part = 1, #body do
  1070. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1071. if(body[part].Position - position).Magnitude < radius then
  1072. if v.ClassName == "Model" then
  1073. if v:FindFirstChildOfClass("Humanoid") then
  1074. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier,BESERK)
  1075. local bv = Instance.new("BodyVelocity")
  1076. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1077. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  1078. bv.Parent = body[part]
  1079. Debris:AddItem(bv,0.2)
  1080. end
  1081. end
  1082. end
  1083. end
  1084. end
  1085. end
  1086. if v:FindFirstChild("HitBy"..Player.Name) then
  1087. v:FindFirstChild("HitBy"..Player.Name):remove()
  1088. end
  1089. end
  1090. end
  1091.  
  1092. function CameraEnshaking(Length, Intensity)
  1093. coroutine.resume(coroutine.create(function()
  1094. local intensity = 1 * Intensity
  1095. local rotM = 0.01 * Intensity
  1096. for i = 0, Length, 0.1 do
  1097. Swait()
  1098. intensity = intensity - 0.05 * Intensity / Length
  1099. rotM = rotM - 5.0E-4 * Intensity / Length
  1100. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1101. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1102. end
  1103. hum.CameraOffset = Vector3.new(0, 0, 0)
  1104. end))
  1105. end
  1106.  
  1107. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1108. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1109. defence.Name = ("HitBy"..Player.Name)
  1110. game:GetService("Debris"):AddItem(defence, 0.001)
  1111. Damage = Damage * DAMAGEMULTIPLIER
  1112. if Humanoid.Health ~= 0 then
  1113. local CritChance = MRANDOM(1,100)
  1114. if Damage > Humanoid.Health then
  1115. Damage = math.ceil(Humanoid.Health)
  1116. if Damage == 0 then
  1117. Damage = 0.1
  1118. end
  1119. end
  1120. Humanoid.Health = Humanoid.Health - Damage
  1121. end
  1122. end
  1123.  
  1124. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1125. local CHILDREN = workspace:GetDescendants()
  1126. for index, CHILD in pairs(CHILDREN) do
  1127. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1128. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1129. if HUM then
  1130. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1131. if TORSO then
  1132. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1133. if INSTAKILL == true then
  1134. CHILD:BreakJoints()
  1135. else
  1136. local DMG = MRANDOM(MINDMG,MAXDMG)
  1137. ApplyDamage(HUM,DMG,TORSO)
  1138. end
  1139. if FLING > 0 then
  1140. for _, c in pairs(CHILD:GetChildren()) do
  1141. if c:IsA("BasePart") then
  1142. local bv = Instance.new("BodyVelocity")
  1143. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1144. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1145. bv.Parent = c
  1146. Debris:AddItem(bv,0.05)
  1147. end
  1148. end
  1149. end
  1150. end
  1151. end
  1152. end
  1153. end
  1154. end
  1155. end
  1156.  
  1157. --//=================================\\
  1158. --|| ATTACK FUNCTIONS AND STUFF
  1159. --\\=================================//
  1160.  
  1161. function Taunt()
  1162. ATTACK = true
  1163. Rooted = true
  1164. local TAUNT = CreateSound(159882303,Torso,10,1,false)
  1165. coroutine.resume(coroutine.create(function()
  1166. repeat
  1167. Swait()
  1168. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 0.1 / Animation_Speed)
  1169. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed)
  1170. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  1171. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  1172. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  1173. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  1174. until ATTACK == false
  1175. end))
  1176. repeat wait() until TAUNT.Playing == false
  1177. ATTACK = false
  1178. Rooted = false
  1179. end
  1180.  
  1181. function BanishmentBeam()
  1182. ATTACK = true
  1183. Rooted = false
  1184. local GYRO = IT("BodyGyro",RootPart)
  1185. GYRO.D = 100
  1186. GYRO.P = 2000
  1187. GYRO.MaxTorque = VT(0,4000000,0)
  1188. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1189. CreateSound("0", RightArm, 5, 1, false)
  1190. for i=0, 0.4, 0.1 / Animation_Speed do
  1191. Swait()
  1192. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  1193. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1194. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
  1195. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
  1196. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1197. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1198. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1199. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1200. end
  1201. local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0))
  1202. local LOOP = CreateSound("340722848", RightArm, 5, 1, false)
  1203. local TOCH = BEAM.Touched:Connect(function(hit)
  1204. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  1205. Kill(hit)
  1206. end
  1207. end)
  1208. local I = 0
  1209. repeat
  1210. Swait()
  1211. I = I + 1
  1212. if I <= 0 then
  1213. BEAM.Transparency = BEAM.Transparency - 0.1
  1214. end
  1215. local STARTPOS = RightArm.CFrame*CF(0,-4,0).p
  1216. local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
  1217. local DISTANCE = (STARTPOS - ENDPOS).Magnitude
  1218. BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5))
  1219. BEAM.Size = VT(2,2,DISTANCE)
  1220. WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = CF(ENDPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1221. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  1222. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  1223. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1224. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
  1225. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  1226. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1227. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1228. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1229. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1230. if ENDHIT ~= nil then
  1231. if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
  1232. Banish(ENDHIT)
  1233. end
  1234. end
  1235. until LOOP.Playing == false
  1236. GYRO:remove()
  1237. BEAM:remove()
  1238. ATTACK = false
  1239. Rooted = false
  1240. end
  1241.  
  1242. function Punch()
  1243. ATTACK = true
  1244. Rooted = false
  1245. for i=0, 0.2, 0.1 / Animation_Speed do
  1246. Swait()
  1247. 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)
  1248. 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)
  1249. 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)
  1250. 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)
  1251. 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)
  1252. 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)
  1253. end
  1254. VALUE1 = true
  1255. if COMBO == 1 then
  1256. COMBO = 2
  1257. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  1258. for i=0, 0.3, 0.1 / Animation_Speed do
  1259. Swait()
  1260. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1)
  1261. 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)
  1262. 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)
  1263. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1264. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(25)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1265. 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)
  1266. 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)
  1267. end
  1268. elseif COMBO == 2 then
  1269. COMBO = 1
  1270. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  1271. for i=0, 0.3, 0.1 / Animation_Speed do
  1272. Swait()
  1273. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1)
  1274. 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)
  1275. 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)
  1276. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1277. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1278. 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)
  1279. 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)
  1280. end
  1281. end
  1282. VALUE1 = false
  1283. ATTACK = false
  1284. Rooted = false
  1285. end
  1286.  
  1287. function Kick()
  1288. ATTACK = true
  1289. Rooted = false
  1290. VALUE1 = true
  1291. NOWALK = true
  1292. if COMBO2 == 1 then
  1293. COMBO2 = 2
  1294. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  1295. for i=0, 0.5, 0.1 / Animation_Speed do
  1296. Swait()
  1297. 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)
  1298. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-45)), 2 / Animation_Speed)
  1299. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1300. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1301. 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)
  1302. 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)
  1303. end
  1304. elseif COMBO2 == 2 then
  1305. COMBO2 = 1
  1306. CreateSound("199150686", Torso, 1, MRANDOM(11,13)/10)
  1307. for i=0, 0.5, 0.1 / Animation_Speed do
  1308. Swait()
  1309. 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)
  1310. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 2 / Animation_Speed)
  1311. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1312. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1313. 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)
  1314. 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)
  1315. end
  1316. end
  1317. NOWALK = false
  1318. VALUE1 = false
  1319. ATTACK = false
  1320. Rooted = false
  1321. end
  1322.  
  1323. --//=================================\\
  1324. --|| ASSIGN THINGS TO KEYS
  1325. --\\=================================//
  1326.  
  1327. function MouseDown(Mouse)
  1328. if ATTACK == false then
  1329. Extreme_Offset()
  1330. end
  1331. end
  1332.  
  1333. function MouseUp(Mouse)
  1334. HOLD = false
  1335. end
  1336.  
  1337. function KeyDown(Key)
  1338. KEYHOLD = true
  1339. if Key == "z" and ATTACK == false then
  1340. Punch()
  1341. end
  1342.  
  1343. if Key == "x" and ATTACK == false then
  1344. BanishmentBeam()
  1345. end
  1346.  
  1347. if Key == "c" and ATTACK == false then
  1348. MagicMissiles()
  1349. end
  1350.  
  1351. KEYHOLD = true
  1352. if Key == "t" and ATTACK == false then
  1353. Taunt()
  1354. end
  1355. end
  1356. function KeyUp(Key)
  1357. KEYHOLD = false
  1358. end
  1359.  
  1360. Mouse.Button1Down:connect(function(NEWKEY)
  1361. MouseDown(NEWKEY)
  1362. end)
  1363. Mouse.Button1Up:connect(function(NEWKEY)
  1364. MouseUp(NEWKEY)
  1365. end)
  1366. Mouse.KeyDown:connect(function(NEWKEY)
  1367. KeyDown(NEWKEY)
  1368. end)
  1369. Mouse.KeyUp:connect(function(NEWKEY)
  1370. KeyUp(NEWKEY)
  1371. end)
  1372.  
  1373. --//=================================\\
  1374. --\\=================================//
  1375.  
  1376.  
  1377. function unanchor()
  1378. if UNANCHOR == true then
  1379. g = Character:GetChildren()
  1380. for i = 1, #g do
  1381. if g[i].ClassName == "Part" then
  1382. g[i].Anchored = false
  1383. end
  1384. end
  1385. end
  1386. end
  1387.  
  1388.  
  1389. --//=================================\\
  1390. --|| WRAP THE WHOLE SCRIPT UP
  1391. --\\=================================//
  1392.  
  1393. Humanoid.Changed:connect(function(Jump)
  1394. if Jump == "Jump" and (Disable_Jump == true) then
  1395. Humanoid.Jump = false
  1396. end
  1397. end)
  1398.  
  1399. local CONNECT = nil
  1400.  
  1401. while true do
  1402. Swait()
  1403. ANIMATE.Parent = nil
  1404. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1405. Humanoid = IT("Humanoid",Character)
  1406. end
  1407. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1408. v:Stop();
  1409. end
  1410. SINE = SINE + CHANGE
  1411. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1412. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1413. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1414. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1415. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1416. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1417. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1418. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1419. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1420. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1421. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1422. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1423. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1424. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1425. end
  1426. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1427. ANIM = "Jump"
  1428. if ATTACK == false then
  1429. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1430. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1431. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1432. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1433. 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)
  1434. 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)
  1435. end
  1436. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1437. ANIM = "Fall"
  1438. if ATTACK == false then
  1439. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1440. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1441. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1442. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1443. 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)
  1444. 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)
  1445. end
  1446. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1447. ANIM = "Idle"
  1448. if ATTACK == false then
  1449. 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)
  1450. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  1451. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1452. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1453. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1454. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1455. end
  1456. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1457. ANIM = "Walk"
  1458. if ATTACK == false then
  1459. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(15), RAD(0), RAD(-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
  1460. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1461. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-80), RAD(-5), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1462. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80), RAD(5), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1463. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1464. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1465. end
  1466. end
  1467. unanchor()
  1468. tecks2.TextColor3 = BrickColor.Random().Color
  1469. tecks2.TextStrokeColor3 = BrickColor.Random().Color
  1470. Humanoid.MaxHealth = "inf"
  1471. Humanoid.Health = "inf"
  1472. if Rooted == false then
  1473. Disable_Jump = false
  1474. Humanoid.WalkSpeed = Speed
  1475. elseif Rooted == true then
  1476. Disable_Jump = true
  1477. Humanoid.WalkSpeed = 0
  1478. end
  1479.  
  1480. end
  1481. --//=================================\\
  1482. --\\=================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement