Advertisement
JacksoMykalJunior

Triple Banisher [FE]

Mar 3rd, 2019
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.44 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = owner
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89. script.Name = "Banisher Gun V3 / 1"
  90. --//====================================================\\--
  91. --|| CREATED BY SHACKLUSTER
  92. --\\====================================================//--
  93.  
  94. script:ClearAllChildren()
  95. wait(0.2)
  96.  
  97. Player = owner
  98. PlayerGui = Player.PlayerGui
  99. Cam = workspace.CurrentCamera
  100. Backpack = Player.Backpack
  101. Character = Player.Character
  102. Humanoid = Character.Humanoid
  103. RootPart = Character["HumanoidRootPart"]
  104. Torso = Character["Torso"]
  105. Head = Character["Head"]
  106. RightArm = Character["Right Arm"]
  107. LeftArm = Character["Left Arm"]
  108. RightLeg = Character["Right Leg"]
  109. LeftLeg = Character["Left Leg"]
  110. RootJoint = RootPart["RootJoint"]
  111. Neck = Torso["Neck"]
  112. RightShoulder = Torso["Right Shoulder"]
  113. LeftShoulder = Torso["Left Shoulder"]
  114. RightHip = Torso["Right Hip"]
  115. LeftHip = Torso["Left Hip"]
  116. local TIME = 5
  117. local sick = Instance.new("Sound",Torso)
  118. sick.Parent = Torso
  119. sick.Playing = true
  120. sick.Looped = true
  121. sick.Volume = 2
  122. sick.Pitch = 0.9
  123. sick.TimePosition = 0
  124. sick.SoundId = "rbxassetid://1383666704"
  125.  
  126. IT = Instance.new
  127. CF = CFrame.new
  128. VT = Vector3.new
  129. RAD = math.rad
  130. C3 = Color3.new
  131. UD2 = UDim2.new
  132. BRICKC = BrickColor.new
  133. ANGLES = CFrame.Angles
  134. EULER = CFrame.fromEulerAnglesXYZ
  135. COS = math.cos
  136. ACOS = math.acos
  137. SIN = math.sin
  138. ASIN = math.asin
  139. ABS = math.abs
  140. MRANDOM = math.random
  141. FLOOR = math.floor
  142.  
  143. --//=================================\\
  144. --|| USEFUL VALUES
  145. --\\=================================//
  146.  
  147. Animation_Speed = 3
  148. local FORCERESET = false
  149. Frame_Speed = 1 / 80 -- (1 / 60) OR (1 / 80)
  150. local Speed = 12
  151. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  152. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  153. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  154. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  155. local DAMAGEMULTIPLIER = 1
  156. local ANIM = "Idle"
  157. local ATTACK = false
  158. local EQUIPPED = false
  159. local HOLD = false
  160. local COMBO = 1
  161. local Rooted = false
  162. local SINE = 0
  163. local SIZE = 1
  164. local KEYHOLD = false
  165. local CHANGE = 2 / Animation_Speed
  166. local WALKINGANIM = false
  167. local VALUE1 = false
  168. local VALUE2 = false
  169. local ROBLOXIDLEANIMATION = IT("Animation")
  170. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  171. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  172. --ROBLOXIDLEANIMATION.Parent = Humanoid
  173. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  174. WEAPONGUI.Name = "BanishV3Gui"
  175. local Weapon = IT("Model")
  176. Player_Size = 1 --Size of the player.
  177. Weapon.Name = "Adds"
  178. local Effects = IT("Folder", Weapon)
  179. Effects.Name = "Effects"
  180. local ANIMATOR = Humanoid.Animator
  181. local ANIMATE = Character:FindFirstChild("Animate")
  182. local UNANCHOR = true
  183. local TOBANISH = {}
  184. script.Parent = PlayerGui
  185.  
  186. --//=================================\\
  187. --\\=================================//
  188.  
  189.  
  190. --//=================================\\
  191. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  192. --\\=================================//
  193.  
  194. ArtificialHB = Instance.new("BindableEvent", script)
  195. ArtificialHB.Name = "ArtificialHB"
  196.  
  197. script:WaitForChild("ArtificialHB")
  198.  
  199. frame = Frame_Speed
  200. tf = 0
  201. allowframeloss = false
  202. tossremainder = false
  203. lastframe = tick()
  204. script.ArtificialHB:Fire()
  205.  
  206. game:GetService("RunService").Heartbeat:connect(function(s, p)
  207. tf = tf + s
  208. if tf >= frame then
  209. if allowframeloss then
  210. script.ArtificialHB:Fire()
  211. lastframe = tick()
  212. else
  213. for i = 1, math.floor(tf / frame) do
  214. script.ArtificialHB:Fire()
  215. end
  216. lastframe = tick()
  217. end
  218. if tossremainder then
  219. tf = 0
  220. else
  221. tf = tf - frame * math.floor(tf / frame)
  222. end
  223. end
  224. end)
  225.  
  226. --//=================================\\
  227. --\\=================================//
  228.  
  229. --//=================================\\
  230. --|| SOME FUNCTIONS
  231. --\\=================================//
  232.  
  233. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  234. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  235. end
  236.  
  237. function PositiveAngle(NUMBER)
  238. if NUMBER >= 0 then
  239. NUMBER = 0
  240. end
  241. return NUMBER
  242. end
  243.  
  244. function NegativeAngle(NUMBER)
  245. if NUMBER <= 0 then
  246. NUMBER = 0
  247. end
  248. return NUMBER
  249. end
  250.  
  251. function Swait(NUMBER)
  252. if NUMBER == 0 or NUMBER == nil then
  253. ArtificialHB.Event:wait()
  254. else
  255. for i = 1, NUMBER do
  256. ArtificialHB.Event:wait()
  257. end
  258. end
  259. end
  260.  
  261. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  262. local NEWMESH = IT(MESH)
  263. if MESH == "SpecialMesh" then
  264. NEWMESH.MeshType = MESHTYPE
  265. if MESHID ~= "nil" and MESHID ~= "" then
  266. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  267. end
  268. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  269. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  270. end
  271. end
  272. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  273. NEWMESH.Scale = SCALE
  274. NEWMESH.Parent = PARENT
  275. return NEWMESH
  276. end
  277.  
  278. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  279. local NEWPART = IT("Part")
  280. NEWPART.formFactor = FORMFACTOR
  281. NEWPART.Reflectance = REFLECTANCE
  282. NEWPART.Transparency = TRANSPARENCY
  283. NEWPART.CanCollide = false
  284. NEWPART.Locked = true
  285. NEWPART.Anchored = true
  286. if ANCHOR == false then
  287. NEWPART.Anchored = false
  288. end
  289. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  290. NEWPART.Name = NAME
  291. NEWPART.Size = SIZE
  292. NEWPART.Position = Torso.Position
  293. NEWPART.Material = MATERIAL
  294. NEWPART:BreakJoints()
  295. NEWPART.Parent = PARENT
  296. return NEWPART
  297. end
  298.  
  299. local function weldBetween(a, b)
  300. local weldd = Instance.new("ManualWeld")
  301. weldd.Part0 = a
  302. weldd.Part1 = b
  303. weldd.C0 = CFrame.new()
  304. weldd.C1 = b.CFrame:inverse() * a.CFrame
  305. weldd.Parent = a
  306. return weldd
  307. end
  308.  
  309.  
  310. function QuaternionFromCFrame(cf)
  311. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  312. local trace = m00 + m11 + m22
  313. if trace > 0 then
  314. local s = math.sqrt(1 + trace)
  315. local recip = 0.5 / s
  316. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  317. else
  318. local i = 0
  319. if m11 > m00 then
  320. i = 1
  321. end
  322. if m22 > (i == 0 and m00 or m11) then
  323. i = 2
  324. end
  325. if i == 0 then
  326. local s = math.sqrt(m00 - m11 - m22 + 1)
  327. local recip = 0.5 / s
  328. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  329. elseif i == 1 then
  330. local s = math.sqrt(m11 - m22 - m00 + 1)
  331. local recip = 0.5 / s
  332. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  333. elseif i == 2 then
  334. local s = math.sqrt(m22 - m00 - m11 + 1)
  335. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  336. end
  337. end
  338. end
  339.  
  340. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  341. local xs, ys, zs = x + x, y + y, z + z
  342. local wx, wy, wz = w * xs, w * ys, w * zs
  343. local xx = x * xs
  344. local xy = x * ys
  345. local xz = x * zs
  346. local yy = y * ys
  347. local yz = y * zs
  348. local zz = z * zs
  349. 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))
  350. end
  351.  
  352. function QuaternionSlerp(a, b, t)
  353. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  354. local startInterp, finishInterp;
  355. if cosTheta >= 0.0001 then
  356. if (1 - cosTheta) > 0.0001 then
  357. local theta = ACOS(cosTheta)
  358. local invSinTheta = 1 / SIN(theta)
  359. startInterp = SIN((1 - t) * theta) * invSinTheta
  360. finishInterp = SIN(t * theta) * invSinTheta
  361. else
  362. startInterp = 1 - t
  363. finishInterp = t
  364. end
  365. else
  366. if (1 + cosTheta) > 0.0001 then
  367. local theta = ACOS(-cosTheta)
  368. local invSinTheta = 1 / SIN(theta)
  369. startInterp = SIN((t - 1) * theta) * invSinTheta
  370. finishInterp = SIN(t * theta) * invSinTheta
  371. else
  372. startInterp = t - 1
  373. finishInterp = t
  374. end
  375. end
  376. 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
  377. end
  378.  
  379. function Clerp(a, b, t)
  380. local qa = {QuaternionFromCFrame(a)}
  381. local qb = {QuaternionFromCFrame(b)}
  382. local ax, ay, az = a.x, a.y, a.z
  383. local bx, by, bz = b.x, b.y, b.z
  384. local _t = 1 - t
  385. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  386. end
  387.  
  388. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  389. local frame = IT("Frame")
  390. frame.BackgroundTransparency = TRANSPARENCY
  391. frame.BorderSizePixel = BORDERSIZEPIXEL
  392. frame.Position = POSITION
  393. frame.Size = SIZE
  394. frame.BackgroundColor3 = COLOR
  395. frame.BorderColor3 = BORDERCOLOR
  396. frame.Name = NAME
  397. frame.Parent = PARENT
  398. return frame
  399. end
  400.  
  401. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  402. local label = IT("TextLabel")
  403. label.BackgroundTransparency = 1
  404. label.Size = UD2(1, 0, 1, 0)
  405. label.Position = UD2(0, 0, 0, 0)
  406. label.TextColor3 = TEXTCOLOR
  407. label.TextStrokeTransparency = STROKETRANSPARENCY
  408. label.TextTransparency = TRANSPARENCY
  409. label.FontSize = TEXTFONTSIZE
  410. label.Font = TEXTFONT
  411. label.BorderSizePixel = BORDERSIZEPIXEL
  412. label.TextScaled = false
  413. label.Text = TEXT
  414. label.Name = NAME
  415. label.Parent = PARENT
  416. return label
  417. end
  418.  
  419. function NoOutlines(PART)
  420. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  421. end
  422.  
  423. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  424. local NEWWELD = IT(TYPE)
  425. NEWWELD.Part0 = PART0
  426. NEWWELD.Part1 = PART1
  427. NEWWELD.C0 = C0
  428. NEWWELD.C1 = C1
  429. NEWWELD.Parent = PARENT
  430. return NEWWELD
  431. end
  432.  
  433. local S = IT("Sound")
  434. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  435. local NEWSOUND = nil
  436. coroutine.resume(coroutine.create(function()
  437. NEWSOUND = S:Clone()
  438. NEWSOUND.Parent = PARENT
  439. NEWSOUND.Volume = VOLUME
  440. NEWSOUND.Pitch = PITCH
  441. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  442. NEWSOUND:play()
  443. if DOESLOOP == true then
  444. NEWSOUND.Looped = true
  445. else
  446. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  447. NEWSOUND:remove()
  448. end
  449. end))
  450. return NEWSOUND
  451. end
  452.  
  453. function CFrameFromTopBack(at, top, back)
  454. local right = top:Cross(back)
  455. 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)
  456. end
  457.  
  458. --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})
  459. function WACKYEFFECT(Table)
  460. local TYPE = (Table.EffectType or "Sphere")
  461. local SIZE = (Table.Size or VT(1,1,1))
  462. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  463. local TRANSPARENCY = (Table.Transparency or 0)
  464. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  465. local CFRAME = (Table.CFrame or Torso.CFrame)
  466. local MOVEDIRECTION = (Table.MoveToPos or nil)
  467. local ROTATION1 = (Table.RotationX or 0)
  468. local ROTATION2 = (Table.RotationY or 0)
  469. local ROTATION3 = (Table.RotationZ or 0)
  470. local MATERIAL = (Table.Material or "Neon")
  471. local COLOR = (Table.Color or C3(1,1,1))
  472. local TIME = (Table.Time or 45)
  473. local SOUNDID = (Table.SoundID or nil)
  474. local SOUNDPITCH = (Table.SoundPitch or nil)
  475. local SOUNDVOLUME = (Table.SoundVolume or nil)
  476. coroutine.resume(coroutine.create(function()
  477. local PLAYSSOUND = false
  478. local SOUND = nil
  479. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  480. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  481. PLAYSSOUND = true
  482. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  483. end
  484. EFFECT.Color = COLOR
  485. local MSH = nil
  486. if TYPE == "Sphere" then
  487. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  488. elseif TYPE == "Block" then
  489. MSH = IT("BlockMesh",EFFECT)
  490. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  491. elseif TYPE == "Wave" then
  492. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  493. elseif TYPE == "Ring" then
  494. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  495. elseif TYPE == "Slash" then
  496. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  497. elseif TYPE == "Round Slash" then
  498. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  499. elseif TYPE == "Swirl" then
  500. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  501. elseif TYPE == "Skull" then
  502. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  503. elseif TYPE == "Crystal" then
  504. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  505. end
  506. if MSH ~= nil then
  507. local MOVESPEED = nil
  508. if MOVEDIRECTION ~= nil then
  509. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  510. end
  511. local GROWTH = SIZE - ENDSIZE
  512. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  513. if TYPE == "Block" then
  514. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  515. else
  516. EFFECT.CFrame = CFRAME
  517. end
  518. for LOOP = 1, TIME+1 do
  519. Swait()
  520. MSH.Scale = MSH.Scale - GROWTH/TIME
  521. if TYPE == "Wave" then
  522. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  523. end
  524. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  525. if TYPE == "Block" then
  526. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  527. else
  528. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  529. end
  530. if MOVEDIRECTION ~= nil then
  531. local ORI = EFFECT.Orientation
  532. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  533. EFFECT.Orientation = ORI
  534. end
  535. end
  536. if PLAYSSOUND == false then
  537. EFFECT:remove()
  538. else
  539. SOUND.Stopped:Connect(function()
  540. EFFECT:remove()
  541. end)
  542. end
  543. else
  544. if PLAYSSOUND == false then
  545. EFFECT:remove()
  546. else
  547. repeat Swait() until SOUND.Playing == false
  548. EFFECT:remove()
  549. end
  550. end
  551. end))
  552. end
  553.  
  554. function MakeForm(PART,TYPE)
  555. if TYPE == "Cyl" then
  556. local MSH = IT("CylinderMesh",PART)
  557. elseif TYPE == "Ball" then
  558. local MSH = IT("SpecialMesh",PART)
  559. MSH.MeshType = "Sphere"
  560. elseif TYPE == "Wedge" then
  561. local MSH = IT("SpecialMesh",PART)
  562. MSH.MeshType = "Wedge"
  563. end
  564. end
  565.  
  566. function SpawnTrail(FROM,TO,BIG)
  567. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  568. MakeForm(TRAIL,"Cyl")
  569. local DIST = (FROM - TO).Magnitude
  570. if BIG == true then
  571. TRAIL.Size = VT(0.8,DIST,0.8)
  572. else
  573. TRAIL.Size = VT(0.35,DIST,0.35)
  574. end
  575. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  576. coroutine.resume(coroutine.create(function()
  577. for i = 1, 5 do
  578. Swait()
  579. TRAIL.Transparency = TRAIL.Transparency + 0.1
  580. end
  581. TRAIL:remove()
  582. end))
  583. end
  584.  
  585. Debris = game:GetService("Debris")
  586.  
  587. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  588. local DIRECTION = CF(StartPos,EndPos).lookVector
  589. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  590. end
  591.  
  592. function turnto(position)
  593. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  594. end
  595.  
  596.  
  597. --//=================================\\
  598. --|| WEAPON CREATION
  599. --\\=================================//
  600.  
  601.  
  602. local Particle = IT("ParticleEmitter",nil)
  603. Particle.Enabled = false
  604. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  605. Particle.LightEmission = 0.5
  606. Particle.Rate = 150
  607. Particle.ZOffset = 0.2
  608. Particle.Rotation = NumberRange.new(-180, 180)
  609. Particle.RotSpeed = NumberRange.new(-180, 180)
  610. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  611. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  612.  
  613. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  614. function ParticleEmitter(Table)
  615. local PRTCL = Particle:Clone()
  616. local Speed = Table.Speed or 5
  617. local Drag = Table.Drag or 0
  618. local Size1 = Table.Size1 or 1
  619. local Size2 = Table.Size2 or 5
  620. local Lifetime1 = Table.Lifetime1 or 1
  621. local Lifetime2 = Table.Lifetime2 or 1.5
  622. local Parent = Table.Parent or Torso
  623. local Emit = Table.Emit or 100
  624. local Offset = Table.Offset or 360
  625. local Acel = Table.Acel or VT(0,0,0)
  626. local Enabled = Table.Enabled or false
  627. PRTCL.Parent = Parent
  628. PRTCL.Size = NumberSequence.new(Size1,Size2)
  629. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  630. PRTCL.Speed = NumberRange.new(Speed)
  631. PRTCL.VelocitySpread = Offset
  632. PRTCL.Drag = Drag
  633. PRTCL.Acceleration = Acel
  634. if Enabled == false then
  635. PRTCL:Emit(Emit)
  636. Debris:AddItem(PRTCL,Lifetime2)
  637. else
  638. PRTCL.Enabled = true
  639. end
  640. return PRTCL
  641. end
  642.  
  643. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  644. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  645. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  646. MakeForm(Part,"Wedge")
  647. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  648. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  649. MakeForm(Part,"Wedge")
  650. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  651. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  652. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  653. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  654. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  655. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  656. MakeForm(Part,"Cyl")
  657. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  658. for i = 1, 8 do
  659. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  660. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  661. end
  662. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  663. MakeForm(Part,"Cyl")
  664. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  665. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  666. MakeForm(Part,"Ball")
  667. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  668. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  669. MakeForm(Part,"Wedge")
  670. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  671. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  672. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  673. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  674. MakeForm(Part,"Cyl")
  675. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  676. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  677. MakeForm(Part,"Cyl")
  678. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  679. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  680. MakeForm(Part,"Cyl")
  681. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  682. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  683. MakeForm(Part,"Wedge")
  684. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  685. local LASTPART = Handle
  686. for i = 1, 10 do
  687. if LASTPART == Handle then
  688. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  689. LASTPART = Part
  690. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  691. else
  692. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  693. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  694. LASTPART = Part
  695. end
  696. end
  697.  
  698. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  699. MakeForm(Barrel,"Cyl")
  700. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  701. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  702. MakeForm(Part,"Cyl")
  703. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  704. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  705. MakeForm(Part,"Wedge")
  706. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  707. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  708. MakeForm(Hole,"Cyl")
  709. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  710. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  711. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  712. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  713. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  714. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  715. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  716. coroutine.resume(coroutine.create(function()
  717. while wait() do
  718. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(0 - 25 * SIN(SINE / 25)))
  719. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(0 - -25 * SIN(SINE / 25)))
  720. end
  721. end))
  722.  
  723. local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  724. MakeForm(Hole2,"Cyl")
  725. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0.8, 0.98, 0), CF(0, 0, 0))
  726.  
  727. local Hole3 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  728. MakeForm(Hole3,"Cyl")
  729. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole3, CF(-0.8, 0.98, 0), CF(0, 0, 0))
  730.  
  731. ParticleEmitter({Speed = 0.02, 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)})
  732. ParticleEmitter({Speed = 50, 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)})
  733. ParticleEmitter({Speed = 10, 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)})
  734. --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)})
  735.  
  736. for _, c in pairs(Weapon:GetDescendants()) do
  737. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  738. c.Material = "Glass"
  739. c.Color = C3(3,0,0)
  740. elseif c.ClassName == "Part" and c.Name == "Eye" then
  741. c.Color = C3(1,0,0)
  742. c.Material = "Neon"
  743. end
  744. end
  745.  
  746. Weapon.Parent = Character
  747. for _, c in pairs(Weapon:GetChildren()) do
  748. if c.ClassName == "Part" then
  749. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  750. end
  751. end
  752.  
  753. local SKILLTEXTCOLOR = C3(1,0,0)
  754. local SKILLFONT = "Antique"
  755. local SKILLTEXTSIZE = 7
  756.  
  757. 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")
  758. --[[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")
  759. 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")
  760. 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")
  761. 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")
  762. ]]
  763. local SKILL1TEXT = CreateLabel(SKILL1FRAME, ":/ Edit By NameClan", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  764. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  765. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  766. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  767. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  768. ]]
  769. function printbye(Name)
  770. 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, "}
  771. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  772. end
  773.  
  774. workspace.ChildAdded:connect(function(instance)
  775. for BANISH = 1, #TOBANISH do
  776. if TOBANISH[BANISH] ~= nil then
  777. if instance.Name == TOBANISH[BANISH] then
  778. coroutine.resume(coroutine.create(function()
  779. printbye(instance.Name)
  780. instance:ClearAllChildren()
  781. Debris:AddItem(instance,0.0005)
  782. end))
  783. end
  784. end
  785. end
  786. end)
  787.  
  788. --//=================================\\
  789. --|| DAMAGING
  790. --\\=================================//
  791.  
  792. function Banish(Foe)
  793. if Foe then
  794. coroutine.resume(coroutine.create(function()
  795. --if game.Players:FindFirstChild(Foe.Name) then
  796. table.insert(TOBANISH,Foe.Name)
  797. printbye(Foe.Name)
  798. --end
  799. Foe.Archivable = true
  800. local CLONE = Foe:Clone()
  801. Foe:Destroy()
  802. CLONE.Parent = Effects
  803. CLONE:BreakJoints()
  804. local MATERIALS = {"Glass","Neon"}
  805. for _, c in pairs(CLONE:GetDescendants()) do
  806. if c:IsA("BasePart") then
  807. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  808. CreateSound(340722848, c, 10, 1, false)
  809. end
  810. c.Anchored = true
  811. c.Transparency = c.Transparency + 0.2
  812. c.Material = MATERIALS[MRANDOM(1,2)]
  813. c.Color = C3(1,0,0)
  814. if c.ClassName == "MeshPart" then
  815. c.TextureID = ""
  816. end
  817. if c:FindFirstChildOfClass("SpecialMesh") then
  818. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  819. end
  820. if c:FindFirstChildOfClass("Decal") then
  821. c:FindFirstChildOfClass("Decal"):remove()
  822. end
  823. c.Name = "Banished"
  824. c.CanCollide = false
  825. else
  826. c:remove()
  827. end
  828. end
  829. local A = false
  830. for i = 1, 35 do
  831. if A == false then
  832. A = true
  833. elseif A == true then
  834. A = false
  835. end
  836. for _, c in pairs(CLONE:GetDescendants()) do
  837. if c:IsA("BasePart") then
  838. c.Anchored = true
  839. c.Material = MATERIALS[MRANDOM(1,2)]
  840. c.Transparency = c.Transparency + 0.8/35
  841. if A == false then
  842. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  843. elseif A == true then
  844. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  845. end
  846. end
  847. end
  848. Swait()
  849. end
  850. CLONE:remove()
  851. end))
  852. end
  853. end
  854.  
  855. function ApplyAoE(POSITION,RANGE,ISBANISH)
  856. local CHILDREN = workspace:GetDescendants()
  857. for index, CHILD in pairs(CHILDREN) do
  858. if CHILD.ClassName == "Model" and CHILD ~= Character then
  859. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  860. if HUM then
  861. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  862. if TORSO then
  863. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  864. if ISBANISH == true then
  865. Banish(CHILD)
  866. else
  867. if ISBANISH == "Gravity" then
  868. HUM.PlatformStand = true
  869. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  870. local grav = Instance.new("BodyPosition",TORSO)
  871. grav.D = 15
  872. grav.P = 20000
  873. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  874. grav.position = TORSO.Position
  875. grav.Name = "V3BanishForce"..Player.Name
  876. else
  877. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  878. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  879. end
  880. else
  881. HUM.PlatformStand = false
  882. end
  883. end
  884. elseif ISBANISH == "Gravity" then
  885. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  886. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  887. HUM.PlatformStand = false
  888. end
  889. end
  890. end
  891. end
  892. end
  893. end
  894. end
  895.  
  896. function ApplyDamage(Humanoid,Damage,TorsoPart)
  897. local defence = Instance.new("BoolValue",Humanoid.Parent)
  898. defence.Name = ("HitBy"..Player.Name)
  899. game:GetService("Debris"):AddItem(defence, 0.001)
  900. Damage = Damage * DAMAGEMULTIPLIER
  901. if Humanoid.Health ~= 0 then
  902. local CritChance = MRANDOM(1,100)
  903. if Damage > Humanoid.Health then
  904. Damage = math.ceil(Humanoid.Health)
  905. if Damage == 0 then
  906. Damage = 0.1
  907. end
  908. end
  909. Humanoid.Health = Humanoid.Health - Damage
  910. end
  911. end
  912.  
  913. function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  914. local CHILDREN = workspace:GetDescendants()
  915. for index, CHILD in pairs(CHILDREN) do
  916. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  917. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  918. if HUM then
  919. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  920. if TORSO then
  921. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  922. if INSTAKILL == true then
  923. CHILD:BreakJoints()
  924. else
  925. local DMG = MRANDOM(MINDMG,MAXDMG)
  926. ApplyDamage(HUM,DMG,TORSO)
  927. end
  928. if FLING > 0 then
  929. for _, c in pairs(CHILD:GetChildren()) do
  930. if c:IsA("BasePart") then
  931. local bv = Instance.new("BodyVelocity")
  932. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  933. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  934. bv.Parent = c
  935. Debris:AddItem(bv,0.05)
  936. end
  937. end
  938. end
  939. end
  940. end
  941. end
  942. end
  943. end
  944. end
  945.  
  946. --//=================================\\
  947. --|| ATTACK FUNCTIONS AND STUFF
  948. --\\=================================//
  949.  
  950. function Shot()
  951. ATTACK = true
  952. Rooted = false
  953. for i=0, 1, 0.1 / Animation_Speed do
  954. Swait()
  955. turnto(Mouse.Hit.p)
  956. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  957. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed)
  958. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  959. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  960. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  961. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  962. end
  963. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(120,120,120), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 317129949, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 999999})
  964. repeat
  965. for i=0, 0.2, 0.1 / Animation_Speed do
  966. Swait()
  967. turnto(Mouse.Hit.p)
  968. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  969. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  970. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  971. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  972. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  973. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.2, 0.5, -0.7) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  974. end
  975. local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
  976. SpawnTrail(Hole2.Position,POS)
  977. local HIT,POS = CastProperRay(Hole3.Position, Mouse.Hit.p, 1000, Character)
  978. SpawnTrail(Hole3.Position,POS)
  979. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  980. SpawnTrail(Hole.Position,POS)
  981. if HIT ~= nil then
  982. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  983. Banish(HIT.Parent)
  984. end
  985. end
  986.  
  987. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = Hole3.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})
  988. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  989. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = Hole3.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})
  990. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  991. 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,Hole3.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})
  992. 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,Hole3.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})
  993.  
  994. WACKYEFFECT({Time = 25, EffectType = "Sphere", 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})
  995. WACKYEFFECT({Time = 25, EffectType = "Sphere", 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 = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  996. 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})
  997. 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 = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  998. 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})
  999. 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})
  1000.  
  1001. WACKYEFFECT({Time = 25, EffectType = "Sphere", 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})
  1002. WACKYEFFECT({Time = 25, EffectType = "Sphere", 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 = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1003. 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})
  1004. 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 = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1005. 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})
  1006. 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})
  1007. for i=0, 0.2, 0.1 / Animation_Speed do
  1008. Swait()
  1009. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(95), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1010. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.2, 0.5, 0.04) * ANGLES(RAD(95), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1011. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -1) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1012. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0.1, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1013. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -1) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1014. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1015. end
  1016. until KEYHOLD == false
  1017. ATTACK = false
  1018. Rooted = false
  1019. end
  1020.  
  1021. function Shot2()
  1022. ATTACK = true
  1023. Rooted = false
  1024. for i=0, 3, 0.1 / Animation_Speed do
  1025. Swait()
  1026. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1027. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1028. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1029. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-25), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1030. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-25), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1031. end
  1032. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,45,45), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1033. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(180,180,180), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1034. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(123,123,123), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1035. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,180,1), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1036. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(150,1,150), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1037. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(150,150,150), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1038. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(120,120,120), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 100})
  1039. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(120,120,120), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 999999})
  1040. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,180,1), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1041. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(150,1,150), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1042. WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(150,150,150), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  1043. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(120,120,120), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 100})
  1044. ApplyAoE3(RootPart.Position,95,999,999,999,false)
  1045. for i=0, 0.5, 0.1 / Animation_Speed do
  1046. Swait()
  1047. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(30), RAD(0), RAD(0)), 1 / Animation_Speed)
  1048. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2, 0.5, -0.5) * ANGLES(RAD(75), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed)
  1049. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2, 0.5, -0.5) * ANGLES(RAD(75), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1050. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(30), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1051. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(30), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1052. end
  1053. ATTACK = false
  1054. Rooted = false
  1055. end
  1056.  
  1057. --//=================================\\
  1058. --|| ASSIGN THINGS TO KEYS
  1059. --\\=================================//
  1060.  
  1061. function MouseDown(Mouse)
  1062. if ATTACK == false then
  1063. end
  1064. end
  1065.  
  1066. function MouseUp(Mouse)
  1067. HOLD = false
  1068. end
  1069.  
  1070. function KeyDown(Key)
  1071. KEYHOLD = true
  1072. if Key == "z" and ATTACK == false then
  1073. Shot()
  1074. end
  1075.  
  1076. if Key == "b" and ATTACK == false then
  1077. AttackTemplate()
  1078. end
  1079.  
  1080. if Key == "c" and ATTACK == false then
  1081. Shot2()
  1082. end
  1083.  
  1084. if Key == "v" and ATTACK == false then
  1085. end
  1086.  
  1087. if Key == "x" and ATTACK == false then
  1088. end
  1089. end
  1090.  
  1091. function KeyUp(Key)
  1092. KEYHOLD = false
  1093. end
  1094.  
  1095. Mouse.Button1Down:connect(function(NEWKEY)
  1096. MouseDown(NEWKEY)
  1097. end)
  1098. Mouse.Button1Up:connect(function(NEWKEY)
  1099. MouseUp(NEWKEY)
  1100. end)
  1101. Mouse.KeyDown:connect(function(NEWKEY)
  1102. KeyDown(NEWKEY)
  1103. end)
  1104. Mouse.KeyUp:connect(function(NEWKEY)
  1105. KeyUp(NEWKEY)
  1106. end)
  1107.  
  1108. --//=================================\\
  1109. --\\=================================//
  1110.  
  1111.  
  1112. function unanchor()
  1113. if UNANCHOR == true then
  1114. g = Character:GetChildren()
  1115. for i = 1, #g do
  1116. if g[i].ClassName == "Part" then
  1117. g[i].Anchored = false
  1118. end
  1119. end
  1120. end
  1121. end
  1122.  
  1123.  
  1124. --//=================================\\
  1125. --|| WRAP THE WHOLE SCRIPT UP
  1126. --\\=================================//
  1127.  
  1128. Humanoid.Changed:connect(function(Jump)
  1129. if Jump == "Jump" and (Disable_Jump == true) then
  1130. Humanoid.Jump = false
  1131. end
  1132. end)
  1133.  
  1134. local CONNECT = nil
  1135.  
  1136. while true do
  1137. Swait()
  1138. ANIMATE.Parent = nil
  1139. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1140. Humanoid = IT("Humanoid",Character)
  1141. end
  1142. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1143. v:Stop();
  1144. end
  1145. SINE = SINE + CHANGE
  1146. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1147. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1148. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1149. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1150. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1151. 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)
  1152. 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)
  1153. 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)
  1154. 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)
  1155. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1156. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1157. 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)
  1158. 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)
  1159. 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)
  1160. end
  1161. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1162. ANIM = "Jump"
  1163. if ATTACK == false then
  1164. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1165. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1166. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1167. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1168. 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)
  1169. 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)
  1170. end
  1171. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1172. ANIM = "Fall"
  1173. if ATTACK == false then
  1174. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1175. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1176. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1177. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1178. 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)
  1179. 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)
  1180. end
  1181. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1182. ANIM = "Idle"
  1183. if ATTACK == false then
  1184. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0 + 0.75 * SIN(SINE / 12) - 1.75 * COS(SINE / 12)), RAD(2.75 * SIN(SINE / 12))), 0.2 / Animation_Speed*3)
  1185. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0 + 0.75 * SIN(SINE / 8) - 1.75 * COS(SINE / 8)), RAD(2.75 * SIN(SINE / 8))), 0.2 / Animation_Speed)
  1186. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9, 0.5 + 0.05 * SIN(SINE / (SINE/1)), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1187. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1188. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1189. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1190. end
  1191. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1192. ANIM = "Walk"
  1193. if ATTACK == false then
  1194. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1195. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, -0.025, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1196. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * SIN(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(5), RAD(0 - 40 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1197. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * SIN(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(5), RAD(0 - 40 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1198. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(-5), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1199. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-5), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1200. end
  1201. end
  1202. unanchor()
  1203. Humanoid.MaxHealth = "inf"
  1204. Humanoid.Health = "inf"
  1205. if Rooted == false then
  1206. Disable_Jump = false
  1207. Humanoid.WalkSpeed = Speed
  1208. elseif Rooted == true then
  1209. Disable_Jump = true
  1210. Humanoid.WalkSpeed = 0
  1211. end
  1212. end
  1213.  
  1214. --//=================================\\
  1215. --\\=================================//
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221. --//====================================================\\--
  1222. --|| END OF SCRIPT
  1223. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement