Advertisement
sneakydodge123

izuku

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