Advertisement
gecksad

Untitled

Nov 22nd, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 91.73 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("By lolfarmer")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. --//====================================================\\--
  87. --|| CREATED BY SHACKLUSTER
  88. --\\====================================================//--
  89.  
  90. script:ClearAllChildren()
  91. wait(0.2)
  92.  
  93. Player = owner
  94. PlayerGui = Player.PlayerGui
  95. Cam = workspace.CurrentCamera
  96. Backpack = Player.Backpack
  97. Character = Player.Character
  98. Humanoid = Character.Humanoid
  99. RootPart = Character["HumanoidRootPart"]
  100. Torso = Character["Torso"]
  101. Head = Character["Head"]
  102. RightArm = Character["Right Arm"]
  103. LeftArm = Character["Left Arm"]
  104. RightLeg = Character["Right Leg"]
  105. LeftLeg = Character["Left Leg"]
  106. RootJoint = RootPart["RootJoint"]
  107. Neck = Torso["Neck"]
  108. RightShoulder = Torso["Right Shoulder"]
  109. LeftShoulder = Torso["Left Shoulder"]
  110. RightHip = Torso["Right Hip"]
  111. LeftHip = Torso["Left Hip"]
  112. local TIME = 0
  113. local sick = Instance.new("Sound",Torso)
  114.  
  115. IT = Instance.new
  116. CF = CFrame.new
  117. VT = Vector3.new
  118. RAD = math.rad
  119. C3 = Color3.new
  120. UD2 = UDim2.new
  121. BRICKC = BrickColor.new
  122. ANGLES = CFrame.Angles
  123. EULER = CFrame.fromEulerAnglesXYZ
  124. COS = math.cos
  125. ACOS = math.acos
  126. SIN = math.sin
  127. ASIN = math.asin
  128. ABS = math.abs
  129. MRANDOM = math.random
  130. FLOOR = math.floor
  131.  
  132. --//=================================\\
  133. --|| USEFUL VALUES
  134. --\\=================================//
  135.  
  136. Animation_Speed = 3
  137. local FORCERESET = false
  138. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  139. local Speed = 16
  140. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  141. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  142. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  143. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  144. local DAMAGEMULTIPLIER = 1
  145. local ANIM = "Idle"
  146. local ATTACK = false
  147. local EQUIPPED = false
  148. local HOLD = false
  149. local COMBO = 1
  150. local Rooted = false
  151. local SINE = 0
  152. local KEYHOLD = false
  153. local CHANGE = 2 / Animation_Speed
  154. local WALKINGANIM = false
  155. local VALUE1 = false
  156. local VALUE2 = false
  157. local ROBLOXIDLEANIMATION = IT("Animation")
  158. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  159. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  160. --ROBLOXIDLEANIMATION.Parent = Humanoid
  161. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  162. WEAPONGUI.Name = "BanishV3Gui"
  163. local Weapon = IT("Model")
  164. Weapon.Name = "Adds"
  165. local Effects = IT("Folder", Weapon)
  166. Effects.Name = "Effects"
  167. local ANIMATOR = Humanoid.Animator
  168. local ANIMATE = Character:FindFirstChild("Animate")
  169. local UNANCHOR = true
  170. local TOBANISH = {}
  171. script.Parent = PlayerGui
  172.  
  173. --//=================================\\
  174. --\\=================================//
  175.  
  176.  
  177. --//=================================\\
  178. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  179. --\\=================================//
  180.  
  181. ArtificialHB = Instance.new("BindableEvent", script)
  182. ArtificialHB.Name = "ArtificialHB"
  183.  
  184. script:WaitForChild("ArtificialHB")
  185.  
  186. frame = Frame_Speed
  187. tf = 0
  188. allowframeloss = false
  189. tossremainder = false
  190. lastframe = tick()
  191. script.ArtificialHB:Fire()
  192.  
  193. game:GetService("RunService").Heartbeat:connect(function(s, p)
  194. tf = tf + s
  195. if tf >= frame then
  196. if allowframeloss then
  197. script.ArtificialHB:Fire()
  198. lastframe = tick()
  199. else
  200. for i = 1, math.floor(tf / frame) do
  201. script.ArtificialHB:Fire()
  202. end
  203. lastframe = tick()
  204. end
  205. if tossremainder then
  206. tf = 0
  207. else
  208. tf = tf - frame * math.floor(tf / frame)
  209. end
  210. end
  211. end)
  212.  
  213. --//=================================\\
  214. --\\=================================//
  215.  
  216. --//=================================\\
  217. --|| SOME FUNCTIONS
  218. --\\=================================//
  219.  
  220. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  221. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  222. end
  223.  
  224. function PositiveAngle(NUMBER)
  225. if NUMBER >= 0 then
  226. NUMBER = 0
  227. end
  228. return NUMBER
  229. end
  230.  
  231. function NegativeAngle(NUMBER)
  232. if NUMBER <= 0 then
  233. NUMBER = 0
  234. end
  235. return NUMBER
  236. end
  237.  
  238. function Swait(NUMBER)
  239. if NUMBER == 0 or NUMBER == nil then
  240. ArtificialHB.Event:wait()
  241. else
  242. for i = 1, NUMBER do
  243. ArtificialHB.Event:wait()
  244. end
  245. end
  246. end
  247.  
  248. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  249. local NEWMESH = IT(MESH)
  250. if MESH == "SpecialMesh" then
  251. NEWMESH.MeshType = MESHTYPE
  252. if MESHID ~= "nil" and MESHID ~= "" then
  253. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  254. end
  255. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  256. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  257. end
  258. end
  259. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  260. NEWMESH.Scale = SCALE
  261. NEWMESH.Parent = PARENT
  262. return NEWMESH
  263. end
  264.  
  265. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  266. local NEWPART = IT("Part")
  267. NEWPART.formFactor = FORMFACTOR
  268. NEWPART.Reflectance = REFLECTANCE
  269. NEWPART.Transparency = TRANSPARENCY
  270. NEWPART.CanCollide = false
  271. NEWPART.Locked = true
  272. NEWPART.Anchored = true
  273. if ANCHOR == false then
  274. NEWPART.Anchored = false
  275. end
  276. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  277. NEWPART.Name = NAME
  278. NEWPART.Size = SIZE
  279. NEWPART.Position = Torso.Position
  280. NEWPART.Material = MATERIAL
  281. NEWPART:BreakJoints()
  282. NEWPART.Parent = PARENT
  283. return NEWPART
  284. end
  285.  
  286. local function weldBetween(a, b)
  287. local weldd = Instance.new("ManualWeld")
  288. weldd.Part0 = a
  289. weldd.Part1 = b
  290. weldd.C0 = CFrame.new()
  291. weldd.C1 = b.CFrame:inverse() * a.CFrame
  292. weldd.Parent = a
  293. return weldd
  294. end
  295.  
  296.  
  297. function QuaternionFromCFrame(cf)
  298. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  299. local trace = m00 + m11 + m22
  300. if trace > 0 then
  301. local s = math.sqrt(1 + trace)
  302. local recip = 0.5 / s
  303. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  304. else
  305. local i = 0
  306. if m11 > m00 then
  307. i = 1
  308. end
  309. if m22 > (i == 0 and m00 or m11) then
  310. i = 2
  311. end
  312. if i == 0 then
  313. local s = math.sqrt(m00 - m11 - m22 + 1)
  314. local recip = 0.5 / s
  315. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  316. elseif i == 1 then
  317. local s = math.sqrt(m11 - m22 - m00 + 1)
  318. local recip = 0.5 / s
  319. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  320. elseif i == 2 then
  321. local s = math.sqrt(m22 - m00 - m11 + 1)
  322. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  323. end
  324. end
  325. end
  326.  
  327. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  328. local xs, ys, zs = x + x, y + y, z + z
  329. local wx, wy, wz = w * xs, w * ys, w * zs
  330. local xx = x * xs
  331. local xy = x * ys
  332. local xz = x * zs
  333. local yy = y * ys
  334. local yz = y * zs
  335. local zz = z * zs
  336. 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))
  337. end
  338.  
  339. function QuaternionSlerp(a, b, t)
  340. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  341. local startInterp, finishInterp;
  342. if cosTheta >= 0.0001 then
  343. if (1 - cosTheta) > 0.0001 then
  344. local theta = ACOS(cosTheta)
  345. local invSinTheta = 1 / SIN(theta)
  346. startInterp = SIN((1 - t) * theta) * invSinTheta
  347. finishInterp = SIN(t * theta) * invSinTheta
  348. else
  349. startInterp = 1 - t
  350. finishInterp = t
  351. end
  352. else
  353. if (1 + cosTheta) > 0.0001 then
  354. local theta = ACOS(-cosTheta)
  355. local invSinTheta = 1 / SIN(theta)
  356. startInterp = SIN((t - 1) * theta) * invSinTheta
  357. finishInterp = SIN(t * theta) * invSinTheta
  358. else
  359. startInterp = t - 1
  360. finishInterp = t
  361. end
  362. end
  363. 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
  364. end
  365.  
  366. function Clerp(a, b, t)
  367. local qa = {QuaternionFromCFrame(a)}
  368. local qb = {QuaternionFromCFrame(b)}
  369. local ax, ay, az = a.x, a.y, a.z
  370. local bx, by, bz = b.x, b.y, b.z
  371. local _t = 1 - t
  372. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  373. end
  374.  
  375. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  376. local frame = IT("Frame")
  377. frame.BackgroundTransparency = TRANSPARENCY
  378. frame.BorderSizePixel = BORDERSIZEPIXEL
  379. frame.Position = POSITION
  380. frame.Size = SIZE
  381. frame.BackgroundColor3 = COLOR
  382. frame.BorderColor3 = BORDERCOLOR
  383. frame.Name = NAME
  384. frame.Parent = PARENT
  385. return frame
  386. end
  387.  
  388. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  389. local label = IT("TextLabel")
  390. label.BackgroundTransparency = 1
  391. label.Size = UD2(1, 0, 1, 0)
  392. label.Position = UD2(0, 0, 0, 0)
  393. label.TextColor3 = TEXTCOLOR
  394. label.TextStrokeTransparency = STROKETRANSPARENCY
  395. label.TextTransparency = TRANSPARENCY
  396. label.FontSize = TEXTFONTSIZE
  397. label.Font = TEXTFONT
  398. label.BorderSizePixel = BORDERSIZEPIXEL
  399. label.TextScaled = false
  400. label.Text = TEXT
  401. label.Name = NAME
  402. label.Parent = PARENT
  403. return label
  404. end
  405.  
  406. function NoOutlines(PART)
  407. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  408. end
  409.  
  410. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  411. local NEWWELD = IT(TYPE)
  412. NEWWELD.Part0 = PART0
  413. NEWWELD.Part1 = PART1
  414. NEWWELD.C0 = C0
  415. NEWWELD.C1 = C1
  416. NEWWELD.Parent = PARENT
  417. return NEWWELD
  418. end
  419.  
  420. local S = IT("Sound")
  421. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  422. local NEWSOUND = nil
  423. coroutine.resume(coroutine.create(function()
  424. NEWSOUND = S:Clone()
  425. NEWSOUND.Parent = PARENT
  426. NEWSOUND.Volume = VOLUME
  427. NEWSOUND.Pitch = PITCH
  428. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  429. NEWSOUND:play()
  430. if DOESLOOP == true then
  431. NEWSOUND.Looped = true
  432. else
  433. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  434. NEWSOUND:remove()
  435. end
  436. end))
  437. return NEWSOUND
  438. end
  439.  
  440. function CFrameFromTopBack(at, top, back)
  441. local right = top:Cross(back)
  442. 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)
  443. end
  444.  
  445. --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})
  446. function WACKYEFFECT(Table)
  447. local TYPE = (Table.EffectType or "Sphere")
  448. local SIZE = (Table.Size or VT(1,1,1))
  449. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  450. local TRANSPARENCY = (Table.Transparency or 0)
  451. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  452. local CFRAME = (Table.CFrame or Torso.CFrame)
  453. local MOVEDIRECTION = (Table.MoveToPos or nil)
  454. local ROTATION1 = (Table.RotationX or 0)
  455. local ROTATION2 = (Table.RotationY or 0)
  456. local ROTATION3 = (Table.RotationZ or 0)
  457. local MATERIAL = (Table.Material or "Neon")
  458. local COLOR = (Table.Color or C3(1,1,1))
  459. local TIME = (Table.Time or 45)
  460. local SOUNDID = (Table.SoundID or nil)
  461. local SOUNDPITCH = (Table.SoundPitch or nil)
  462. local SOUNDVOLUME = (Table.SoundVolume or nil)
  463. coroutine.resume(coroutine.create(function()
  464. local PLAYSSOUND = false
  465. local SOUND = nil
  466. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  467. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  468. PLAYSSOUND = true
  469. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  470. end
  471. EFFECT.Color = COLOR
  472. local MSH = nil
  473. if TYPE == "Sphere" then
  474. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  475. elseif TYPE == "Block" then
  476. MSH = IT("BlockMesh",EFFECT)
  477. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  478. elseif TYPE == "Wave" then
  479. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  480. elseif TYPE == "Ring" then
  481. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  482. elseif TYPE == "Slash" then
  483. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  484. elseif TYPE == "Round Slash" then
  485. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  486. elseif TYPE == "Swirl" then
  487. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  488. elseif TYPE == "Skull" then
  489. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  490. elseif TYPE == "Crystal" then
  491. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  492. end
  493. if MSH ~= nil then
  494. local MOVESPEED = nil
  495. if MOVEDIRECTION ~= nil then
  496. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  497. end
  498. local GROWTH = SIZE - ENDSIZE
  499. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  500. if TYPE == "Block" then
  501. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  502. else
  503. EFFECT.CFrame = CFRAME
  504. end
  505. for LOOP = 1, TIME+1 do
  506. Swait()
  507. MSH.Scale = MSH.Scale - GROWTH/TIME
  508. if TYPE == "Wave" then
  509. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  510. end
  511. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  512. if TYPE == "Block" then
  513. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  514. else
  515. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  516. end
  517. if MOVEDIRECTION ~= nil then
  518. local ORI = EFFECT.Orientation
  519. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  520. EFFECT.Orientation = ORI
  521. end
  522. end
  523. if PLAYSSOUND == false then
  524. EFFECT:remove()
  525. else
  526. SOUND.Stopped:Connect(function()
  527. EFFECT:remove()
  528. end)
  529. end
  530. else
  531. if PLAYSSOUND == false then
  532. EFFECT:remove()
  533. else
  534. repeat Swait() until SOUND.Playing == false
  535. EFFECT:remove()
  536. end
  537. end
  538. end))
  539. end
  540.  
  541. function MakeForm(PART,TYPE)
  542. if TYPE == "Cyl" then
  543. local MSH = IT("CylinderMesh",PART)
  544. elseif TYPE == "Ball" then
  545. local MSH = IT("SpecialMesh",PART)
  546. MSH.MeshType = "Sphere"
  547. elseif TYPE == "Wedge" then
  548. local MSH = IT("SpecialMesh",PART)
  549. MSH.MeshType = "Wedge"
  550. end
  551. end
  552.  
  553. function SpawnTrail(FROM,TO,BIG)
  554. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  555. MakeForm(TRAIL,"Cyl")
  556. local DIST = (FROM - TO).Magnitude
  557. if BIG == true then
  558. TRAIL.Size = VT(0.5,DIST,0.5)
  559. else
  560. TRAIL.Size = VT(0.25,DIST,0.25)
  561. end
  562. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  563. coroutine.resume(coroutine.create(function()
  564. for i = 1, 5 do
  565. Swait()
  566. TRAIL.Transparency = TRAIL.Transparency + 0.1
  567. end
  568. TRAIL:remove()
  569. end))
  570. end
  571.  
  572. Debris = game:GetService("Debris")
  573.  
  574. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  575. local DIRECTION = CF(StartPos,EndPos).lookVector
  576. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  577. end
  578.  
  579. function turnto(position)
  580. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  581. end
  582.  
  583. --//=================================\\
  584. --|| WEAPON CREATION
  585. --\\=================================//
  586.  
  587. local Particle = IT("ParticleEmitter",nil)
  588. Particle.Enabled = false
  589. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  590. Particle.LightEmission = 0.5
  591. Particle.Rate = 150
  592. Particle.ZOffset = 0.2
  593. Particle.Rotation = NumberRange.new(-180, 180)
  594. Particle.RotSpeed = NumberRange.new(-180, 180)
  595. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  596. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  597.  
  598. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  599. function ParticleEmitter(Table)
  600. local PRTCL = Particle:Clone()
  601. local Speed = Table.Speed or 5
  602. local Drag = Table.Drag or 0
  603. local Size1 = Table.Size1 or 1
  604. local Size2 = Table.Size2 or 5
  605. local Lifetime1 = Table.Lifetime1 or 1
  606. local Lifetime2 = Table.Lifetime2 or 1.5
  607. local Parent = Table.Parent or Torso
  608. local Emit = Table.Emit or 100
  609. local Offset = Table.Offset or 360
  610. local Acel = Table.Acel or VT(0,0,0)
  611. local Enabled = Table.Enabled or false
  612. PRTCL.Parent = Parent
  613. PRTCL.Size = NumberSequence.new(Size1,Size2)
  614. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  615. PRTCL.Speed = NumberRange.new(Speed)
  616. PRTCL.VelocitySpread = Offset
  617. PRTCL.Drag = Drag
  618. PRTCL.Acceleration = Acel
  619. if Enabled == false then
  620. PRTCL:Emit(Emit)
  621. Debris:AddItem(PRTCL,Lifetime2)
  622. else
  623. PRTCL.Enabled = true
  624. end
  625. return PRTCL
  626. end
  627.  
  628. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  629. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  630. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  631. MakeForm(Part,"Wedge")
  632. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  633. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  634. MakeForm(Part,"Wedge")
  635. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  636. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  637. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  638. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  639. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  640. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  641. MakeForm(Part,"Cyl")
  642. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  643. for i = 1, 8 do
  644. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  645. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  646. end
  647. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  648. MakeForm(Part,"Cyl")
  649. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  650. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  651. MakeForm(Part,"Ball")
  652. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  653. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  654. MakeForm(Part,"Wedge")
  655. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  656. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  657. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  658. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  659. MakeForm(Part,"Cyl")
  660. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  661. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  662. MakeForm(Part,"Cyl")
  663. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  664. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  665. MakeForm(Part,"Cyl")
  666. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  667. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  668. MakeForm(Part,"Wedge")
  669. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  670. local LASTPART = Handle
  671. for i = 1, 10 do
  672. if LASTPART == Handle then
  673. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  674. LASTPART = Part
  675. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  676. else
  677. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  678. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  679. LASTPART = Part
  680. end
  681. end
  682.  
  683. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  684. MakeForm(Barrel,"Cyl")
  685. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  686. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  687. MakeForm(Part,"Cyl")
  688. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  689. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  690. MakeForm(Part,"Wedge")
  691. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  692. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  693. MakeForm(Hole,"Cyl")
  694. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  695. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  696. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  697. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  698. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  699. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  700. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  701. coroutine.resume(coroutine.create(function()
  702. while wait() do
  703. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  704. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  705. end
  706. end))
  707.  
  708. 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)})
  709. --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)})
  710.  
  711. for _, c in pairs(Weapon:GetDescendants()) do
  712. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  713. c.Material = "Glass"
  714. c.Color = C3(0,0,0)
  715. elseif c.ClassName == "Part" and c.Name == "Eye" then
  716. c.Color = C3(1,0,0)
  717. c.Material = "Neon"
  718. end
  719. end
  720.  
  721. Weapon.Parent = Character
  722. for _, c in pairs(Weapon:GetChildren()) do
  723. if c.ClassName == "Part" then
  724. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  725. end
  726. end
  727.  
  728. local SKILLTEXTCOLOR = C3(1,0,0)
  729. local SKILLFONT = "Antique"
  730. local SKILLTEXTSIZE = 7
  731.  
  732. Humanoid.Died:connect(function()
  733. ATTACK = true
  734. end)
  735.  
  736. 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")
  737. --[[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")
  738. 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")
  739. 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")
  740. 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")
  741. ]]
  742. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banish Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  743. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  744. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  745. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  746. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  747. ]]
  748. function printbye(Name)
  749. 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, "}
  750. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  751. end
  752.  
  753. workspace.ChildAdded:connect(function(instance)
  754. for BANISH = 1, #TOBANISH do
  755. if TOBANISH[BANISH] ~= nil then
  756. if instance.Name == TOBANISH[BANISH] then
  757. coroutine.resume(coroutine.create(function()
  758. printbye(instance.Name)
  759. instance:ClearAllChildren()
  760. Debris:AddItem(instance,0.0005)
  761. end))
  762. end
  763. end
  764. end
  765. end)
  766.  
  767. --//=================================\\
  768. --|| DAMAGING
  769. --\\=================================//
  770.  
  771. function Banish(Foe)
  772. if Foe then
  773. coroutine.resume(coroutine.create(function()
  774. --if game.Players:FindFirstChild(Foe.Name) then
  775. table.insert(TOBANISH,Foe.Name)
  776. printbye(Foe.Name)
  777. --end
  778. Foe.Archivable = true
  779. local CLONE = Foe:Clone()
  780. Foe:Destroy()
  781. CLONE.Parent = Effects
  782. CLONE:BreakJoints()
  783. local MATERIALS = {"Glass","Neon"}
  784. for _, c in pairs(CLONE:GetDescendants()) do
  785. if c:IsA("BasePart") then
  786. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  787. CreateSound(340722848, c, 10, 1, false)
  788. end
  789. c.Anchored = true
  790. c.Transparency = c.Transparency + 0.2
  791. c.Material = MATERIALS[MRANDOM(1,2)]
  792. c.Color = C3(1,0,0)
  793. if c.ClassName == "MeshPart" then
  794. c.TextureID = ""
  795. end
  796. if c:FindFirstChildOfClass("SpecialMesh") then
  797. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  798. end
  799. if c:FindFirstChildOfClass("Decal") then
  800. c:FindFirstChildOfClass("Decal"):remove()
  801. end
  802. c.Name = "Banished"
  803. c.CanCollide = false
  804. else
  805. c:remove()
  806. end
  807. end
  808. local A = false
  809. for i = 1, 35 do
  810. if A == false then
  811. A = true
  812. elseif A == true then
  813. A = false
  814. end
  815. for _, c in pairs(CLONE:GetDescendants()) do
  816. if c:IsA("BasePart") then
  817. c.Anchored = true
  818. c.Material = MATERIALS[MRANDOM(1,2)]
  819. c.Transparency = c.Transparency + 0.8/35
  820. if A == false then
  821. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  822. elseif A == true then
  823. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  824. end
  825. end
  826. end
  827. Swait()
  828. end
  829. CLONE:remove()
  830. end))
  831. end
  832. end
  833.  
  834. function ApplyAoE(POSITION,RANGE,ISBANISH)
  835. local CHILDREN = workspace:GetDescendants()
  836. for index, CHILD in pairs(CHILDREN) do
  837. if CHILD.ClassName == "Model" and CHILD ~= Character then
  838. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  839. if HUM then
  840. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  841. if TORSO then
  842. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  843. if ISBANISH == true then
  844. Banish(CHILD)
  845. else
  846. if ISBANISH == "Gravity" then
  847. HUM.PlatformStand = true
  848. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  849. local grav = Instance.new("BodyPosition",TORSO)
  850. grav.D = 15
  851. grav.P = 20000
  852. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  853. grav.position = TORSO.Position
  854. grav.Name = "V3BanishForce"..Player.Name
  855. else
  856. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  857. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  858. end
  859. else
  860. HUM.PlatformStand = false
  861. end
  862. end
  863. elseif ISBANISH == "Gravity" then
  864. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  865. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  866. HUM.PlatformStand = false
  867. end
  868. end
  869. end
  870. end
  871. end
  872. end
  873. end
  874.  
  875. --//=================================\\
  876. --|| ATTACK FUNCTIONS AND STUFF
  877. --\\=================================//
  878.  
  879. function Shot()
  880. ATTACK = true
  881. Rooted = false
  882. for i=0, 0.4, 0.1 / Animation_Speed do
  883. Swait()
  884. turnto(Mouse.Hit.p)
  885. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  886. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  887. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  888. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  889. 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)
  890. 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)
  891. end
  892. repeat
  893. for i=0, 0.2, 0.1 / Animation_Speed do
  894. Swait()
  895. turnto(Mouse.Hit.p)
  896. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  897. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  898. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  899. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  900. 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)
  901. 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)
  902. end
  903. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  904. SpawnTrail(Hole.Position,POS)
  905. if HIT ~= nil then
  906. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  907. Banish(HIT.Parent)
  908. end
  909. end
  910. 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})
  911. 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})
  912. 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})
  913. 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})
  914. for i=0, 0.3, 0.1 / Animation_Speed do
  915. Swait()
  916. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  917. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  918. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  919. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  920. 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)
  921. 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)
  922. end
  923. until KEYHOLD == false
  924. ATTACK = false
  925. Rooted = false
  926. end
  927.  
  928. function AttackTemplate()
  929. ATTACK = true
  930. Rooted = false
  931. for i=0, 1, 0.1 / Animation_Speed do
  932. Swait()
  933. 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)
  934. 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)
  935. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  936. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  937. 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)
  938. 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)
  939. end
  940. ATTACK = false
  941. Rooted = false
  942. end
  943.  
  944. --//=================================\\
  945. --|| ASSIGN THINGS TO KEYS
  946. --\\=================================//
  947.  
  948. function MouseDown(Mouse)
  949. if ATTACK == false then
  950. end
  951. end
  952.  
  953. function MouseUp(Mouse)
  954. HOLD = false
  955. end
  956.  
  957. function KeyDown(Key)
  958. KEYHOLD = true
  959. if Key == "z" and ATTACK == false then
  960. Shot()
  961. end
  962.  
  963. if Key == "b" and ATTACK == false then
  964. end
  965.  
  966. if Key == "c" and ATTACK == false then
  967. end
  968.  
  969. if Key == "v" and ATTACK == false then
  970. end
  971.  
  972. if Key == "x" and ATTACK == false then
  973. end
  974. end
  975.  
  976. function KeyUp(Key)
  977. KEYHOLD = false
  978. end
  979.  
  980. Mouse.Button1Down:connect(function(NEWKEY)
  981. MouseDown(NEWKEY)
  982. end)
  983. Mouse.Button1Up:connect(function(NEWKEY)
  984. MouseUp(NEWKEY)
  985. end)
  986. Mouse.KeyDown:connect(function(NEWKEY)
  987. KeyDown(NEWKEY)
  988. end)
  989. Mouse.KeyUp:connect(function(NEWKEY)
  990. KeyUp(NEWKEY)
  991. end)
  992.  
  993. --//=================================\\
  994. --\\=================================//
  995.  
  996.  
  997. function unanchor()
  998. if UNANCHOR == true then
  999. g = Character:GetChildren()
  1000. for i = 1, #g do
  1001. if g[i].ClassName == "Part" then
  1002. g[i].Anchored = false
  1003. end
  1004. end
  1005. end
  1006. end
  1007.  
  1008.  
  1009. --//=================================\\
  1010. --|| WRAP THE WHOLE SCRIPT UP
  1011. --\\=================================//
  1012.  
  1013. Humanoid.Changed:connect(function(Jump)
  1014. if Jump == "Jump" and (Disable_Jump == true) then
  1015. Humanoid.Jump = false
  1016. end
  1017. end)
  1018.  
  1019. local CONNECT = nil
  1020.  
  1021. while true do
  1022. Swait()
  1023. ANIMATE.Parent = nil
  1024. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1025. Humanoid = IT("Humanoid",Character)
  1026. end
  1027. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1028. v:Stop();
  1029. end
  1030. SINE = SINE + CHANGE
  1031. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1032. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1033. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1034. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1035. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1036. 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)
  1037. 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)
  1038. 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)
  1039. 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)
  1040. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1041. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1042. 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)
  1043. 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)
  1044. 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)
  1045. end
  1046. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1047. ANIM = "Jump"
  1048. if ATTACK == false then
  1049. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1050. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1051. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1052. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1053. 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)
  1054. 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)
  1055. end
  1056. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1057. ANIM = "Fall"
  1058. if ATTACK == false then
  1059. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1060. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1061. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1062. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1063. 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)
  1064. 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)
  1065. end
  1066. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1067. ANIM = "Idle"
  1068. if ATTACK == false then
  1069. 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)
  1070. 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)
  1071. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1072. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1073. 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)
  1074. 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)
  1075. end
  1076. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1077. ANIM = "Walk"
  1078. if ATTACK == false then
  1079. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1080. 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)
  1081. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1082. 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)
  1083. 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)
  1084. 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)
  1085. end
  1086. end
  1087. unanchor()
  1088. Humanoid.MaxHealth = "inf"
  1089. Humanoid.Health = "inf"
  1090. if Rooted == false then
  1091. Disable_Jump = false
  1092. Humanoid.WalkSpeed = Speed
  1093. elseif Rooted == true then
  1094. Disable_Jump = true
  1095. Humanoid.WalkSpeed = 0
  1096. end
  1097. sick.Parent = Torso
  1098. sick:resume()
  1099. sick.Volume = 8.2
  1100. sick.Pitch = 1
  1101. sick.SoundId = "rbxassetid://900318768"
  1102. sick.Name = "Dead"
  1103. end
  1104.  
  1105. --//=================================\\
  1106. --\\=================================//
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112. --//====================================================\\--
  1113. --|| END OF SCRIPT
  1114. --\\====================================================//--
  1115. RAW Paste Data
  1116.  
  1117. --//====================================================\\--
  1118. --|| CREATED BY SHACKLUSTER
  1119. --\\====================================================//--
  1120.  
  1121. script:ClearAllChildren()
  1122. wait(0.2)
  1123.  
  1124. Player = owner
  1125. PlayerGui = Player.PlayerGui
  1126. Cam = workspace.CurrentCamera
  1127. Backpack = Player.Backpack
  1128. Character = Player.Character
  1129. Humanoid = Character.Humanoid
  1130. RootPart = Character["HumanoidRootPart"]
  1131. Torso = Character["Torso"]
  1132. Head = Character["Head"]
  1133. RightArm = Character["Right Arm"]
  1134. LeftArm = Character["Left Arm"]
  1135. RightLeg = Character["Right Leg"]
  1136. LeftLeg = Character["Left Leg"]
  1137. RootJoint = RootPart["RootJoint"]
  1138. Neck = Torso["Neck"]
  1139. RightShoulder = Torso["Right Shoulder"]
  1140. LeftShoulder = Torso["Left Shoulder"]
  1141. RightHip = Torso["Right Hip"]
  1142. LeftHip = Torso["Left Hip"]
  1143. local TIME = 0
  1144. local sick = Instance.new("Sound",Torso)
  1145.  
  1146. IT = Instance.new
  1147. CF = CFrame.new
  1148. VT = Vector3.new
  1149. RAD = math.rad
  1150. C3 = Color3.new
  1151. UD2 = UDim2.new
  1152. BRICKC = BrickColor.new
  1153. ANGLES = CFrame.Angles
  1154. EULER = CFrame.fromEulerAnglesXYZ
  1155. COS = math.cos
  1156. ACOS = math.acos
  1157. SIN = math.sin
  1158. ASIN = math.asin
  1159. ABS = math.abs
  1160. MRANDOM = math.random
  1161. FLOOR = math.floor
  1162.  
  1163. --//=================================\\
  1164. --|| USEFUL VALUES
  1165. --\\=================================//
  1166.  
  1167. Animation_Speed = 3
  1168. local FORCERESET = false
  1169. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  1170. local Speed = 16
  1171. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1172. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1173. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1174. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1175. local DAMAGEMULTIPLIER = 1
  1176. local ANIM = "Idle"
  1177. local ATTACK = false
  1178. local EQUIPPED = false
  1179. local HOLD = false
  1180. local COMBO = 1
  1181. local Rooted = false
  1182. local SINE = 0
  1183. local KEYHOLD = false
  1184. local CHANGE = 2 / Animation_Speed
  1185. local WALKINGANIM = false
  1186. local VALUE1 = false
  1187. local VALUE2 = false
  1188. local ROBLOXIDLEANIMATION = IT("Animation")
  1189. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1190. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1191. --ROBLOXIDLEANIMATION.Parent = Humanoid
  1192. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  1193. WEAPONGUI.Name = "BanishV3Gui"
  1194. local Weapon = IT("Model")
  1195. Weapon.Name = "Adds"
  1196. local Effects = IT("Folder", Weapon)
  1197. Effects.Name = "Effects"
  1198. local ANIMATOR = Humanoid.Animator
  1199. local ANIMATE = Character:FindFirstChild("Animate")
  1200. local UNANCHOR = true
  1201. local TOBANISH = {}
  1202. script.Parent = PlayerGui
  1203.  
  1204. --//=================================\\
  1205. --\\=================================//
  1206.  
  1207.  
  1208. --//=================================\\
  1209. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  1210. --\\=================================//
  1211.  
  1212. ArtificialHB = Instance.new("BindableEvent", script)
  1213. ArtificialHB.Name = "ArtificialHB"
  1214.  
  1215. script:WaitForChild("ArtificialHB")
  1216.  
  1217. frame = Frame_Speed
  1218. tf = 0
  1219. allowframeloss = false
  1220. tossremainder = false
  1221. lastframe = tick()
  1222. script.ArtificialHB:Fire()
  1223.  
  1224. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1225. tf = tf + s
  1226. if tf >= frame then
  1227. if allowframeloss then
  1228. script.ArtificialHB:Fire()
  1229. lastframe = tick()
  1230. else
  1231. for i = 1, math.floor(tf / frame) do
  1232. script.ArtificialHB:Fire()
  1233. end
  1234. lastframe = tick()
  1235. end
  1236. if tossremainder then
  1237. tf = 0
  1238. else
  1239. tf = tf - frame * math.floor(tf / frame)
  1240. end
  1241. end
  1242. end)
  1243.  
  1244. --//=================================\\
  1245. --\\=================================//
  1246.  
  1247. --//=================================\\
  1248. --|| SOME FUNCTIONS
  1249. --\\=================================//
  1250.  
  1251. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1252. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1253. end
  1254.  
  1255. function PositiveAngle(NUMBER)
  1256. if NUMBER >= 0 then
  1257. NUMBER = 0
  1258. end
  1259. return NUMBER
  1260. end
  1261.  
  1262. function NegativeAngle(NUMBER)
  1263. if NUMBER <= 0 then
  1264. NUMBER = 0
  1265. end
  1266. return NUMBER
  1267. end
  1268.  
  1269. function Swait(NUMBER)
  1270. if NUMBER == 0 or NUMBER == nil then
  1271. ArtificialHB.Event:wait()
  1272. else
  1273. for i = 1, NUMBER do
  1274. ArtificialHB.Event:wait()
  1275. end
  1276. end
  1277. end
  1278.  
  1279. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1280. local NEWMESH = IT(MESH)
  1281. if MESH == "SpecialMesh" then
  1282. NEWMESH.MeshType = MESHTYPE
  1283. if MESHID ~= "nil" and MESHID ~= "" then
  1284. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1285. end
  1286. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1287. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1288. end
  1289. end
  1290. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1291. NEWMESH.Scale = SCALE
  1292. NEWMESH.Parent = PARENT
  1293. return NEWMESH
  1294. end
  1295.  
  1296. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1297. local NEWPART = IT("Part")
  1298. NEWPART.formFactor = FORMFACTOR
  1299. NEWPART.Reflectance = REFLECTANCE
  1300. NEWPART.Transparency = TRANSPARENCY
  1301. NEWPART.CanCollide = false
  1302. NEWPART.Locked = true
  1303. NEWPART.Anchored = true
  1304. if ANCHOR == false then
  1305. NEWPART.Anchored = false
  1306. end
  1307. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1308. NEWPART.Name = NAME
  1309. NEWPART.Size = SIZE
  1310. NEWPART.Position = Torso.Position
  1311. NEWPART.Material = MATERIAL
  1312. NEWPART:BreakJoints()
  1313. NEWPART.Parent = PARENT
  1314. return NEWPART
  1315. end
  1316.  
  1317. local function weldBetween(a, b)
  1318. local weldd = Instance.new("ManualWeld")
  1319. weldd.Part0 = a
  1320. weldd.Part1 = b
  1321. weldd.C0 = CFrame.new()
  1322. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1323. weldd.Parent = a
  1324. return weldd
  1325. end
  1326.  
  1327.  
  1328. function QuaternionFromCFrame(cf)
  1329. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1330. local trace = m00 + m11 + m22
  1331. if trace > 0 then
  1332. local s = math.sqrt(1 + trace)
  1333. local recip = 0.5 / s
  1334. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1335. else
  1336. local i = 0
  1337. if m11 > m00 then
  1338. i = 1
  1339. end
  1340. if m22 > (i == 0 and m00 or m11) then
  1341. i = 2
  1342. end
  1343. if i == 0 then
  1344. local s = math.sqrt(m00 - m11 - m22 + 1)
  1345. local recip = 0.5 / s
  1346. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1347. elseif i == 1 then
  1348. local s = math.sqrt(m11 - m22 - m00 + 1)
  1349. local recip = 0.5 / s
  1350. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1351. elseif i == 2 then
  1352. local s = math.sqrt(m22 - m00 - m11 + 1)
  1353. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1354. end
  1355. end
  1356. end
  1357.  
  1358. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1359. local xs, ys, zs = x + x, y + y, z + z
  1360. local wx, wy, wz = w * xs, w * ys, w * zs
  1361. local xx = x * xs
  1362. local xy = x * ys
  1363. local xz = x * zs
  1364. local yy = y * ys
  1365. local yz = y * zs
  1366. local zz = z * zs
  1367. 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))
  1368. end
  1369.  
  1370. function QuaternionSlerp(a, b, t)
  1371. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1372. local startInterp, finishInterp;
  1373. if cosTheta >= 0.0001 then
  1374. if (1 - cosTheta) > 0.0001 then
  1375. local theta = ACOS(cosTheta)
  1376. local invSinTheta = 1 / SIN(theta)
  1377. startInterp = SIN((1 - t) * theta) * invSinTheta
  1378. finishInterp = SIN(t * theta) * invSinTheta
  1379. else
  1380. startInterp = 1 - t
  1381. finishInterp = t
  1382. end
  1383. else
  1384. if (1 + cosTheta) > 0.0001 then
  1385. local theta = ACOS(-cosTheta)
  1386. local invSinTheta = 1 / SIN(theta)
  1387. startInterp = SIN((t - 1) * theta) * invSinTheta
  1388. finishInterp = SIN(t * theta) * invSinTheta
  1389. else
  1390. startInterp = t - 1
  1391. finishInterp = t
  1392. end
  1393. end
  1394. 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
  1395. end
  1396.  
  1397. function Clerp(a, b, t)
  1398. local qa = {QuaternionFromCFrame(a)}
  1399. local qb = {QuaternionFromCFrame(b)}
  1400. local ax, ay, az = a.x, a.y, a.z
  1401. local bx, by, bz = b.x, b.y, b.z
  1402. local _t = 1 - t
  1403. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1404. end
  1405.  
  1406. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1407. local frame = IT("Frame")
  1408. frame.BackgroundTransparency = TRANSPARENCY
  1409. frame.BorderSizePixel = BORDERSIZEPIXEL
  1410. frame.Position = POSITION
  1411. frame.Size = SIZE
  1412. frame.BackgroundColor3 = COLOR
  1413. frame.BorderColor3 = BORDERCOLOR
  1414. frame.Name = NAME
  1415. frame.Parent = PARENT
  1416. return frame
  1417. end
  1418.  
  1419. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1420. local label = IT("TextLabel")
  1421. label.BackgroundTransparency = 1
  1422. label.Size = UD2(1, 0, 1, 0)
  1423. label.Position = UD2(0, 0, 0, 0)
  1424. label.TextColor3 = TEXTCOLOR
  1425. label.TextStrokeTransparency = STROKETRANSPARENCY
  1426. label.TextTransparency = TRANSPARENCY
  1427. label.FontSize = TEXTFONTSIZE
  1428. label.Font = TEXTFONT
  1429. label.BorderSizePixel = BORDERSIZEPIXEL
  1430. label.TextScaled = false
  1431. label.Text = TEXT
  1432. label.Name = NAME
  1433. label.Parent = PARENT
  1434. return label
  1435. end
  1436.  
  1437. function NoOutlines(PART)
  1438. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1439. end
  1440.  
  1441. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1442. local NEWWELD = IT(TYPE)
  1443. NEWWELD.Part0 = PART0
  1444. NEWWELD.Part1 = PART1
  1445. NEWWELD.C0 = C0
  1446. NEWWELD.C1 = C1
  1447. NEWWELD.Parent = PARENT
  1448. return NEWWELD
  1449. end
  1450.  
  1451. local S = IT("Sound")
  1452. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1453. local NEWSOUND = nil
  1454. coroutine.resume(coroutine.create(function()
  1455. NEWSOUND = S:Clone()
  1456. NEWSOUND.Parent = PARENT
  1457. NEWSOUND.Volume = VOLUME
  1458. NEWSOUND.Pitch = PITCH
  1459. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1460. NEWSOUND:play()
  1461. if DOESLOOP == true then
  1462. NEWSOUND.Looped = true
  1463. else
  1464. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  1465. NEWSOUND:remove()
  1466. end
  1467. end))
  1468. return NEWSOUND
  1469. end
  1470.  
  1471. function CFrameFromTopBack(at, top, back)
  1472. local right = top:Cross(back)
  1473. 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)
  1474. end
  1475.  
  1476. --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})
  1477. function WACKYEFFECT(Table)
  1478. local TYPE = (Table.EffectType or "Sphere")
  1479. local SIZE = (Table.Size or VT(1,1,1))
  1480. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1481. local TRANSPARENCY = (Table.Transparency or 0)
  1482. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1483. local CFRAME = (Table.CFrame or Torso.CFrame)
  1484. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1485. local ROTATION1 = (Table.RotationX or 0)
  1486. local ROTATION2 = (Table.RotationY or 0)
  1487. local ROTATION3 = (Table.RotationZ or 0)
  1488. local MATERIAL = (Table.Material or "Neon")
  1489. local COLOR = (Table.Color or C3(1,1,1))
  1490. local TIME = (Table.Time or 45)
  1491. local SOUNDID = (Table.SoundID or nil)
  1492. local SOUNDPITCH = (Table.SoundPitch or nil)
  1493. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1494. coroutine.resume(coroutine.create(function()
  1495. local PLAYSSOUND = false
  1496. local SOUND = nil
  1497. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1498. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1499. PLAYSSOUND = true
  1500. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1501. end
  1502. EFFECT.Color = COLOR
  1503. local MSH = nil
  1504. if TYPE == "Sphere" then
  1505. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1506. elseif TYPE == "Block" then
  1507. MSH = IT("BlockMesh",EFFECT)
  1508. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1509. elseif TYPE == "Wave" then
  1510. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1511. elseif TYPE == "Ring" then
  1512. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1513. elseif TYPE == "Slash" then
  1514. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1515. elseif TYPE == "Round Slash" then
  1516. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1517. elseif TYPE == "Swirl" then
  1518. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1519. elseif TYPE == "Skull" then
  1520. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1521. elseif TYPE == "Crystal" then
  1522. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1523. end
  1524. if MSH ~= nil then
  1525. local MOVESPEED = nil
  1526. if MOVEDIRECTION ~= nil then
  1527. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1528. end
  1529. local GROWTH = SIZE - ENDSIZE
  1530. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1531. if TYPE == "Block" then
  1532. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1533. else
  1534. EFFECT.CFrame = CFRAME
  1535. end
  1536. for LOOP = 1, TIME+1 do
  1537. Swait()
  1538. MSH.Scale = MSH.Scale - GROWTH/TIME
  1539. if TYPE == "Wave" then
  1540. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1541. end
  1542. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1543. if TYPE == "Block" then
  1544. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1545. else
  1546. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1547. end
  1548. if MOVEDIRECTION ~= nil then
  1549. local ORI = EFFECT.Orientation
  1550. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1551. EFFECT.Orientation = ORI
  1552. end
  1553. end
  1554. if PLAYSSOUND == false then
  1555. EFFECT:remove()
  1556. else
  1557. SOUND.Stopped:Connect(function()
  1558. EFFECT:remove()
  1559. end)
  1560. end
  1561. else
  1562. if PLAYSSOUND == false then
  1563. EFFECT:remove()
  1564. else
  1565. repeat Swait() until SOUND.Playing == false
  1566. EFFECT:remove()
  1567. end
  1568. end
  1569. end))
  1570. end
  1571.  
  1572. function MakeForm(PART,TYPE)
  1573. if TYPE == "Cyl" then
  1574. local MSH = IT("CylinderMesh",PART)
  1575. elseif TYPE == "Ball" then
  1576. local MSH = IT("SpecialMesh",PART)
  1577. MSH.MeshType = "Sphere"
  1578. elseif TYPE == "Wedge" then
  1579. local MSH = IT("SpecialMesh",PART)
  1580. MSH.MeshType = "Wedge"
  1581. end
  1582. end
  1583.  
  1584. function SpawnTrail(FROM,TO,BIG)
  1585. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  1586. MakeForm(TRAIL,"Cyl")
  1587. local DIST = (FROM - TO).Magnitude
  1588. if BIG == true then
  1589. TRAIL.Size = VT(0.5,DIST,0.5)
  1590. else
  1591. TRAIL.Size = VT(0.25,DIST,0.25)
  1592. end
  1593. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1594. coroutine.resume(coroutine.create(function()
  1595. for i = 1, 5 do
  1596. Swait()
  1597. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1598. end
  1599. TRAIL:remove()
  1600. end))
  1601. end
  1602.  
  1603. Debris = game:GetService("Debris")
  1604.  
  1605. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1606. local DIRECTION = CF(StartPos,EndPos).lookVector
  1607. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1608. end
  1609.  
  1610. function turnto(position)
  1611. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1612. end
  1613.  
  1614. --//=================================\\
  1615. --|| WEAPON CREATION
  1616. --\\=================================//
  1617.  
  1618. local Particle = IT("ParticleEmitter",nil)
  1619. Particle.Enabled = false
  1620. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1621. Particle.LightEmission = 0.5
  1622. Particle.Rate = 150
  1623. Particle.ZOffset = 0.2
  1624. Particle.Rotation = NumberRange.new(-180, 180)
  1625. Particle.RotSpeed = NumberRange.new(-180, 180)
  1626. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1627. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  1628.  
  1629. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1630. function ParticleEmitter(Table)
  1631. local PRTCL = Particle:Clone()
  1632. local Speed = Table.Speed or 5
  1633. local Drag = Table.Drag or 0
  1634. local Size1 = Table.Size1 or 1
  1635. local Size2 = Table.Size2 or 5
  1636. local Lifetime1 = Table.Lifetime1 or 1
  1637. local Lifetime2 = Table.Lifetime2 or 1.5
  1638. local Parent = Table.Parent or Torso
  1639. local Emit = Table.Emit or 100
  1640. local Offset = Table.Offset or 360
  1641. local Acel = Table.Acel or VT(0,0,0)
  1642. local Enabled = Table.Enabled or false
  1643. PRTCL.Parent = Parent
  1644. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1645. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1646. PRTCL.Speed = NumberRange.new(Speed)
  1647. PRTCL.VelocitySpread = Offset
  1648. PRTCL.Drag = Drag
  1649. PRTCL.Acceleration = Acel
  1650. if Enabled == false then
  1651. PRTCL:Emit(Emit)
  1652. Debris:AddItem(PRTCL,Lifetime2)
  1653. else
  1654. PRTCL.Enabled = true
  1655. end
  1656. return PRTCL
  1657. end
  1658.  
  1659. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1660. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1661. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1662. MakeForm(Part,"Wedge")
  1663. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1664. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1665. MakeForm(Part,"Wedge")
  1666. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1667. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1668. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1669. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1670. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1671. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1672. MakeForm(Part,"Cyl")
  1673. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1674. for i = 1, 8 do
  1675. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1676. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1677. end
  1678. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1679. MakeForm(Part,"Cyl")
  1680. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1681. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1682. MakeForm(Part,"Ball")
  1683. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1684. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1685. MakeForm(Part,"Wedge")
  1686. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1687. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1688. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1689. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1690. MakeForm(Part,"Cyl")
  1691. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1692. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1693. MakeForm(Part,"Cyl")
  1694. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1695. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1696. MakeForm(Part,"Cyl")
  1697. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1698. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1699. MakeForm(Part,"Wedge")
  1700. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1701. local LASTPART = Handle
  1702. for i = 1, 10 do
  1703. if LASTPART == Handle then
  1704. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1705. LASTPART = Part
  1706. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1707. else
  1708. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1709. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1710. LASTPART = Part
  1711. end
  1712. end
  1713.  
  1714. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1715. MakeForm(Barrel,"Cyl")
  1716. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1717. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1718. MakeForm(Part,"Cyl")
  1719. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1720. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1721. MakeForm(Part,"Wedge")
  1722. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1723. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1724. MakeForm(Hole,"Cyl")
  1725. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1726. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1727. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1728. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1729. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1730. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1731. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1732. coroutine.resume(coroutine.create(function()
  1733. while wait() do
  1734. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1735. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1736. end
  1737. end))
  1738.  
  1739. 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)})
  1740. --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)})
  1741.  
  1742. for _, c in pairs(Weapon:GetDescendants()) do
  1743. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1744. c.Material = "Glass"
  1745. c.Color = C3(0,0,0)
  1746. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1747. c.Color = C3(1,0,0)
  1748. c.Material = "Neon"
  1749. end
  1750. end
  1751.  
  1752. Weapon.Parent = Character
  1753. for _, c in pairs(Weapon:GetChildren()) do
  1754. if c.ClassName == "Part" then
  1755. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1756. end
  1757. end
  1758.  
  1759. local SKILLTEXTCOLOR = C3(1,0,0)
  1760. local SKILLFONT = "Antique"
  1761. local SKILLTEXTSIZE = 7
  1762.  
  1763. Humanoid.Died:connect(function()
  1764. ATTACK = true
  1765. end)
  1766.  
  1767. 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")
  1768. --[[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")
  1769. 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")
  1770. 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")
  1771. 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")
  1772. ]]
  1773. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banish Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1774. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1775. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1776. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1777. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1778. ]]
  1779. function printbye(Name)
  1780. 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, "}
  1781. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1782. end
  1783.  
  1784. workspace.ChildAdded:connect(function(instance)
  1785. for BANISH = 1, #TOBANISH do
  1786. if TOBANISH[BANISH] ~= nil then
  1787. if instance.Name == TOBANISH[BANISH] then
  1788. coroutine.resume(coroutine.create(function()
  1789. printbye(instance.Name)
  1790. instance:ClearAllChildren()
  1791. Debris:AddItem(instance,0.0005)
  1792. end))
  1793. end
  1794. end
  1795. end
  1796. end)
  1797.  
  1798. --//=================================\\
  1799. --|| DAMAGING
  1800. --\\=================================//
  1801.  
  1802. function Banish(Foe)
  1803. if Foe then
  1804. coroutine.resume(coroutine.create(function()
  1805. --if game.Players:FindFirstChild(Foe.Name) then
  1806. table.insert(TOBANISH,Foe.Name)
  1807. printbye(Foe.Name)
  1808. --end
  1809. Foe.Archivable = true
  1810. local CLONE = Foe:Clone()
  1811. Foe:Destroy()
  1812. CLONE.Parent = Effects
  1813. CLONE:BreakJoints()
  1814. local MATERIALS = {"Glass","Neon"}
  1815. for _, c in pairs(CLONE:GetDescendants()) do
  1816. if c:IsA("BasePart") then
  1817. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1818. CreateSound(340722848, c, 10, 1, false)
  1819. end
  1820. c.Anchored = true
  1821. c.Transparency = c.Transparency + 0.2
  1822. c.Material = MATERIALS[MRANDOM(1,2)]
  1823. c.Color = C3(1,0,0)
  1824. if c.ClassName == "MeshPart" then
  1825. c.TextureID = ""
  1826. end
  1827. if c:FindFirstChildOfClass("SpecialMesh") then
  1828. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1829. end
  1830. if c:FindFirstChildOfClass("Decal") then
  1831. c:FindFirstChildOfClass("Decal"):remove()
  1832. end
  1833. c.Name = "Banished"
  1834. c.CanCollide = false
  1835. else
  1836. c:remove()
  1837. end
  1838. end
  1839. local A = false
  1840. for i = 1, 35 do
  1841. if A == false then
  1842. A = true
  1843. elseif A == true then
  1844. A = false
  1845. end
  1846. for _, c in pairs(CLONE:GetDescendants()) do
  1847. if c:IsA("BasePart") then
  1848. c.Anchored = true
  1849. c.Material = MATERIALS[MRANDOM(1,2)]
  1850. c.Transparency = c.Transparency + 0.8/35
  1851. if A == false then
  1852. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1853. elseif A == true then
  1854. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1855. end
  1856. end
  1857. end
  1858. Swait()
  1859. end
  1860. CLONE:remove()
  1861. end))
  1862. end
  1863. end
  1864.  
  1865. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1866. local CHILDREN = workspace:GetDescendants()
  1867. for index, CHILD in pairs(CHILDREN) do
  1868. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1869. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1870. if HUM then
  1871. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1872. if TORSO then
  1873. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1874. if ISBANISH == true then
  1875. Banish(CHILD)
  1876. else
  1877. if ISBANISH == "Gravity" then
  1878. HUM.PlatformStand = true
  1879. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1880. local grav = Instance.new("BodyPosition",TORSO)
  1881. grav.D = 15
  1882. grav.P = 20000
  1883. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1884. grav.position = TORSO.Position
  1885. grav.Name = "V3BanishForce"..Player.Name
  1886. else
  1887. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1888. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1889. end
  1890. else
  1891. HUM.PlatformStand = false
  1892. end
  1893. end
  1894. elseif ISBANISH == "Gravity" then
  1895. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1896. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1897. HUM.PlatformStand = false
  1898. end
  1899. end
  1900. end
  1901. end
  1902. end
  1903. end
  1904. end
  1905.  
  1906. --//=================================\\
  1907. --|| ATTACK FUNCTIONS AND STUFF
  1908. --\\=================================//
  1909.  
  1910. function Shot()
  1911. ATTACK = true
  1912. Rooted = false
  1913. for i=0, 0.4, 0.1 / Animation_Speed do
  1914. Swait()
  1915. turnto(Mouse.Hit.p)
  1916. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1917. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1918. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1919. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1920. 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)
  1921. 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)
  1922. end
  1923. repeat
  1924. for i=0, 0.2, 0.1 / Animation_Speed do
  1925. Swait()
  1926. turnto(Mouse.Hit.p)
  1927. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1928. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1929. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1930. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1931. 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)
  1932. 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)
  1933. end
  1934. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1935. SpawnTrail(Hole.Position,POS)
  1936. if HIT ~= nil then
  1937. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1938. Banish(HIT.Parent)
  1939. end
  1940. end
  1941. 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})
  1942. 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})
  1943. 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})
  1944. 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})
  1945. for i=0, 0.3, 0.1 / Animation_Speed do
  1946. Swait()
  1947. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1948. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1949. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1950. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1951. 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)
  1952. 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)
  1953. end
  1954. until KEYHOLD == false
  1955. ATTACK = false
  1956. Rooted = false
  1957. end
  1958.  
  1959. function AttackTemplate()
  1960. ATTACK = true
  1961. Rooted = false
  1962. for i=0, 1, 0.1 / Animation_Speed do
  1963. Swait()
  1964. 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)
  1965. 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)
  1966. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1967. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1968. 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)
  1969. 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)
  1970. end
  1971. ATTACK = false
  1972. Rooted = false
  1973. end
  1974.  
  1975. --//=================================\\
  1976. --|| ASSIGN THINGS TO KEYS
  1977. --\\=================================//
  1978.  
  1979. function MouseDown(Mouse)
  1980. if ATTACK == false then
  1981. end
  1982. end
  1983.  
  1984. function MouseUp(Mouse)
  1985. HOLD = false
  1986. end
  1987.  
  1988. function KeyDown(Key)
  1989. KEYHOLD = true
  1990. if Key == "z" and ATTACK == false then
  1991. Shot()
  1992. end
  1993.  
  1994. if Key == "b" and ATTACK == false then
  1995. end
  1996.  
  1997. if Key == "c" and ATTACK == false then
  1998. end
  1999.  
  2000. if Key == "v" and ATTACK == false then
  2001. end
  2002.  
  2003. if Key == "x" and ATTACK == false then
  2004. end
  2005. end
  2006.  
  2007. function KeyUp(Key)
  2008. KEYHOLD = false
  2009. end
  2010.  
  2011. Mouse.Button1Down:connect(function(NEWKEY)
  2012. MouseDown(NEWKEY)
  2013. end)
  2014. Mouse.Button1Up:connect(function(NEWKEY)
  2015. MouseUp(NEWKEY)
  2016. end)
  2017. Mouse.KeyDown:connect(function(NEWKEY)
  2018. KeyDown(NEWKEY)
  2019. end)
  2020. Mouse.KeyUp:connect(function(NEWKEY)
  2021. KeyUp(NEWKEY)
  2022. end)
  2023.  
  2024. --//=================================\\
  2025. --\\=================================//
  2026.  
  2027.  
  2028. function unanchor()
  2029. if UNANCHOR == true then
  2030. g = Character:GetChildren()
  2031. for i = 1, #g do
  2032. if g[i].ClassName == "Part" then
  2033. g[i].Anchored = false
  2034. end
  2035. end
  2036. end
  2037. end
  2038.  
  2039.  
  2040. --//=================================\\
  2041. --|| WRAP THE WHOLE SCRIPT UP
  2042. --\\=================================//
  2043.  
  2044. Humanoid.Changed:connect(function(Jump)
  2045. if Jump == "Jump" and (Disable_Jump == true) then
  2046. Humanoid.Jump = false
  2047. end
  2048. end)
  2049.  
  2050. local CONNECT = nil
  2051.  
  2052. while true do
  2053. Swait()
  2054. ANIMATE.Parent = nil
  2055. if Character:FindFirstChildOfClass("Humanoid") == nil then
  2056. Humanoid = IT("Humanoid",Character)
  2057. end
  2058. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2059. v:Stop();
  2060. end
  2061. SINE = SINE + CHANGE
  2062. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2063. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2064. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2065. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2066. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2067. 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)
  2068. 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)
  2069. 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)
  2070. 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)
  2071. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2072. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2073. 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)
  2074. 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)
  2075. 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)
  2076. end
  2077. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2078. ANIM = "Jump"
  2079. if ATTACK == false then
  2080. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2081. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2082. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2083. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2084. 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)
  2085. 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)
  2086. end
  2087. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2088. ANIM = "Fall"
  2089. if ATTACK == false then
  2090. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2091. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2092. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2093. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2094. 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)
  2095. 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)
  2096. end
  2097. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2098. ANIM = "Idle"
  2099. if ATTACK == false then
  2100. 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)
  2101. 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)
  2102. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2103. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2104. 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)
  2105. 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)
  2106. end
  2107. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2108. ANIM = "Walk"
  2109. if ATTACK == false then
  2110. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2111. 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)
  2112. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2113. 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)
  2114. 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)
  2115. 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)
  2116. end
  2117. end
  2118. unanchor()
  2119. Humanoid.MaxHealth = "inf"
  2120. Humanoid.Health = "inf"
  2121. if Rooted == false then
  2122. Disable_Jump = false
  2123. Humanoid.WalkSpeed = Speed
  2124. elseif Rooted == true then
  2125. Disable_Jump = true
  2126. Humanoid.WalkSpeed = 0
  2127. end
  2128. sick.Parent = Torso
  2129. sick:resume()
  2130. sick.Volume = 8.2
  2131. sick.Pitch = 1
  2132. sick.SoundId = "rbxassetid://900318768"
  2133. sick.Name = "Dead"
  2134. end
  2135.  
  2136. --//=================================\\
  2137. --\\=================================//
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143. --//====================================================\\--
  2144. --|| END OF SCRIPT
  2145. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement