AlphaPhoenix21

Dead Hunter

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