Advertisement
Zach_script_stealer2

Banisher FE

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