Advertisement
Christoffer07700Extr

skid banisher

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