Advertisement
Christoffer07700Extr

OK STOP ASKING ME STUFF OK

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