Advertisement
Rider_Lol

Untitled

Dec 10th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.40 KB | None | 0 0
  1. Player = Owner
  2. Character = Player.Character
  3. local txt = Instance.new("BillboardGui", Character)
  4. txt.Adornee = Character.Head
  5. txt.Name = "_status"
  6. txt.Size = UDim2.new(2, 0, 1.2, 0)
  7. txt.StudsOffset = Vector3.new(-9, 8, 0)
  8. local text = Instance.new("TextLabel", txt)
  9. text.Size = UDim2.new(10, 0, 7, 0)
  10. text.FontSize = "Size24"
  11. text.TextScaled = true
  12. text.TextTransparency = 0
  13. text.BackgroundTransparency = 1
  14. text.TextTransparency = 0
  15. text.TextStrokeTransparency = 0
  16. text.Font = "Antique"
  17. text.TextStrokeColor3 = Color3.new(245,205,48)
  18. text.Text = "OOF God"
  19. script.Name = "Banisher Gun V3 / 1"
  20. --//====================================================\\--
  21. --|| CREATED BY SHACKLUSTER
  22. --\\====================================================//--
  23.  
  24. script:ClearAllChildren()
  25. wait(0.2)
  26.  
  27. Player = game:GetService("Players").LocalPlayer
  28. PlayerGui = Player.PlayerGui
  29. Cam = workspace.CurrentCamera
  30. Backpack = Player.Backpack
  31. Character = Player.Character
  32. Humanoid = Character.Humanoid
  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 = 1.7
  71. local FORCERESET = false
  72. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  73. local Speed = 20
  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, "Bright yellow", "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.  
  519. local Particle = IT("ParticleEmitter",nil)
  520. Particle.Enabled = false
  521. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  522. Particle.LightEmission = 0.5
  523. Particle.Rate = 150
  524. Particle.ZOffset = 0.2
  525. Particle.Rotation = NumberRange.new(-180, 180)
  526. Particle.RotSpeed = NumberRange.new(-180, 180)
  527. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  528. Particle.Color = ColorSequence.new(C3(1,1,0),C3(1,1,0))
  529.  
  530. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  531. function ParticleEmitter(Table)
  532. local PRTCL = Particle:Clone()
  533. local Speed = Table.Speed or 5
  534. local Drag = Table.Drag or 0
  535. local Size1 = Table.Size1 or 1
  536. local Size2 = Table.Size2 or 5
  537. local Lifetime1 = Table.Lifetime1 or 1
  538. local Lifetime2 = Table.Lifetime2 or 1.5
  539. local Parent = Table.Parent or Torso
  540. local Emit = Table.Emit or 100
  541. local Offset = Table.Offset or 360
  542. local Acel = Table.Acel or VT(0,0,0)
  543. local Enabled = Table.Enabled or false
  544. PRTCL.Parent = Parent
  545. PRTCL.Size = NumberSequence.new(Size1,Size2)
  546. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  547. PRTCL.Speed = NumberRange.new(Speed)
  548. PRTCL.VelocitySpread = Offset
  549. PRTCL.Drag = Drag
  550. PRTCL.Acceleration = Acel
  551. if Enabled == false then
  552. PRTCL:Emit(Emit)
  553. Debris:AddItem(PRTCL,Lifetime2)
  554. else
  555. PRTCL.Enabled = true
  556. end
  557. return PRTCL
  558. end
  559.  
  560. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.2,0.6,0.2),false)
  561. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  562. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.2,0.5,0.2),false)
  563. MakeForm(Part,"Wedge")
  564. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  565. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.2,0.3,0.2),false)
  566. MakeForm(Part,"Wedge")
  567. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  568. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.3,0.3,0.3),false)
  569. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  570. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.3,0.5,0.5),false)
  571. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  572. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.4,0.4,0.4),false)
  573. MakeForm(Part,"Cyl")
  574. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  575. for i = 1, 8 do
  576. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Eye", VT(0,0.35,0.41),false)
  577. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  578. end
  579. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Eye", VT(0.38,0.41,0.38),false)
  580. MakeForm(Part,"Cyl")
  581. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  582. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.37,0.5,0.37),false)
  583. MakeForm(Part,"Ball")
  584. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  585. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.2,0.7,0.4),false)
  586. MakeForm(Part,"Wedge")
  587. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  588. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.3,0.4,0.2),false)
  589. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  590. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.35,0.35,0.35),false)
  591. MakeForm(Part,"Cyl")
  592. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  593. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.5,0.1,0.5),false)
  594. MakeForm(Part,"Cyl")
  595. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  596. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.5,0.1,0.45),false)
  597. MakeForm(Part,"Cyl")
  598. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  599. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.2,0.5,0.2),false)
  600. MakeForm(Part,"Wedge")
  601. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  602. local LASTPART = Handle
  603. for i = 1, 10 do
  604. if LASTPART == Handle then
  605. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.1,0.2,0),false)
  606. LASTPART = Part
  607. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  608. else
  609. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.1,0.05,0),false)
  610. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  611. LASTPART = Part
  612. end
  613. end
  614.  
  615. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.15,2,0.15),false)
  616. MakeForm(Barrel,"Cyl")
  617. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  618. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0.25,1,0.25),false)
  619. MakeForm(Part,"Cyl")
  620. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  621. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0,0.1,0.2),false)
  622. MakeForm(Part,"Wedge")
  623. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  624. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Eye", VT(0.125,0,0.125),false)
  625. MakeForm(Hole,"Cyl")
  626. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  627. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Bright yellow", "Part", VT(0,0,0),false)
  628. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  629. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  630. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Bright yellow", "Eye", VT(0,0,0),false)
  631. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  632. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  633. coroutine.resume(coroutine.create(function()
  634. while wait() do
  635. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  636. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  637. end
  638. end))
  639.  
  640. local A = IT("Attachment",Barrel)
  641. A.Position = VT(0,-2.5,0)
  642. local B = IT("Attachment",Barrel)
  643. B.Position = VT(0,2.5,0)
  644. local Trail = IT("Trail",Barrel)
  645. Trail.Attachment0 = A
  646. Trail.Attachment1 = B
  647. Trail.Lifetime = 0.2
  648. Trail.Color = ColorSequence.new(BRICKC"Bright yellow".Color)
  649. Trail.Transparency = NumberSequence.new(0, 1)
  650. Trail.Enabled = true
  651.  
  652. local bladeefo = Instance.new("ParticleEmitter",Barrel)
  653. bladeefo.Texture = "http://www.roblox.com/asset/?id=59666049"
  654. bladeefo.LightEmission = 1
  655. bladeefo.LockedToPart = true
  656. bladeefo.Color = ColorSequence.new(BrickColor.new("Bright yellow").Color)
  657. bladeefo.Rate = 900
  658. bladeefo.VelocitySpread = 900000000000
  659. bladeefo.Lifetime = NumberRange.new(0.25)
  660. bladeefo.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.25,0),NumberSequenceKeypoint.new(1,0,0)})
  661. bladeefo.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)})
  662. bladeefo.Rotation = NumberRange.new(-500,500)
  663. bladeefo.RotSpeed = NumberRange.new(-500,500)
  664. bladeefo.Speed = NumberRange.new(5,7.5)
  665.  
  666. local dd = Instance.new("ParticleEmitter",hole)
  667. dd.Texture = "http://www.roblox.com/asset/?id=745304849"
  668. dd.LightEmission = 1
  669. dd.Color = ColorSequence.new(Color3.new(245,205,48))
  670. dd.Rate = 50
  671. dd.Lifetime = NumberRange.new(0.5)
  672. dd.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(1,0,0)})
  673. dd.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)})
  674. dd.Speed = NumberRange.new(0)
  675. dd.Rotation = NumberRange.new(-500,500)
  676. dd.VelocitySpread = 90000
  677. dd.LockedToPart = true
  678.  
  679. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.3, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  680. --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)})
  681.  
  682. for _, c in pairs(Weapon:GetDescendants()) do
  683. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  684. c.Material = "Glass"
  685. c.Color = C3(1,1,0)
  686. elseif c.ClassName == "Part" and c.Name == "Eye" then
  687. c.Color = C3(1,1,0)
  688. c.Material = "Neon"
  689. end
  690. end
  691.  
  692. Weapon.Parent = Character
  693. for _, c in pairs(Weapon:GetChildren()) do
  694. if c.ClassName == "Part" then
  695. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  696. end
  697. end
  698.  
  699. local SKILLTEXTCOLOR = C3(1,1,0)
  700. local SKILLFONT = "Antique"
  701. local SKILLTEXTSIZE = 7
  702.  
  703. Humanoid.Died:connect(function()
  704. ATTACK = true
  705. end)
  706.  
  707. 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")
  708. --[[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")
  709. 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")
  710. 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")
  711. 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")
  712. ]]
  713. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Laser Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  714. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  715. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  716. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  717. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  718. ]]
  719. function printbye(Name)
  720. 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, "}
  721. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  722. end
  723.  
  724. workspace.ChildAdded:connect(function(instance)
  725. for BANISH = 1, #TOBANISH do
  726. if TOBANISH[BANISH] ~= nil then
  727. if instance.Name == TOBANISH[BANISH] then
  728. coroutine.resume(coroutine.create(function()
  729. printbye(instance.Name)
  730. instance:ClearAllChildren()
  731. Debris:AddItem(instance,0.0005)
  732. end))
  733. end
  734. end
  735. end
  736. end)
  737.  
  738. --//=================================\\
  739. --|| DAMAGING
  740. --\\=================================//
  741.  
  742. function Banish(Foe)
  743. if Foe then
  744. coroutine.resume(coroutine.create(function()
  745. --if game.Players:FindFirstChild(Foe.Name) then
  746. table.insert(TOBANISH,Foe.Name)
  747. printbye(Foe.Name)
  748. --end
  749. Foe.Archivable = true
  750. local CLONE = Foe:Clone()
  751. Foe:Destroy()
  752. CLONE.Parent = Effects
  753. CLONE:BreakJoints()
  754. local MATERIALS = {"Glass","Neon"}
  755. for _, c in pairs(CLONE:GetDescendants()) do
  756. if c:IsA("BasePart") then
  757. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  758. CreateSound(340722848, c, 10, 1, false)
  759. end
  760. c.Anchored = true
  761. c.Transparency = c.Transparency + 0.2
  762. c.Material = MATERIALS[MRANDOM(1,2)]
  763. c.Color = C3(1,1,0)
  764. if c.ClassName == "MeshPart" then
  765. c.TextureID = ""
  766. end
  767. if c:FindFirstChildOfClass("SpecialMesh") then
  768. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  769. end
  770. if c:FindFirstChildOfClass("Decal") then
  771. c:FindFirstChildOfClass("Decal"):remove()
  772. end
  773. c.Name = "Banished"
  774. c.CanCollide = false
  775. else
  776. c:remove()
  777. end
  778. end
  779. local A = false
  780. for i = 1, 35 do
  781. if A == false then
  782. A = true
  783. elseif A == true then
  784. A = false
  785. end
  786. for _, c in pairs(CLONE:GetDescendants()) do
  787. if c:IsA("BasePart") then
  788. c.Anchored = true
  789. c.Material = MATERIALS[MRANDOM(1,2)]
  790. c.Transparency = c.Transparency + 0.8/35
  791. if A == false then
  792. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  793. elseif A == true then
  794. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  795. end
  796. end
  797. end
  798. Swait()
  799. end
  800. CLONE:remove()
  801. end))
  802. end
  803. end
  804.  
  805. function ApplyAoE(POSITION,RANGE,ISBANISH)
  806. local CHILDREN = workspace:GetDescendants()
  807. for index, CHILD in pairs(CHILDREN) do
  808. if CHILD.ClassName == "Model" and CHILD ~= Character then
  809. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  810. if HUM then
  811. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  812. if TORSO then
  813. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  814. if ISBANISH == true then
  815. Banish(CHILD)
  816. else
  817. if ISBANISH == "Gravity" then
  818. HUM.PlatformStand = true
  819. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  820. local grav = Instance.new("BodyPosition",TORSO)
  821. grav.D = 15
  822. grav.P = 20000
  823. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  824. grav.position = TORSO.Position
  825. grav.Name = "V3BanishForce"..Player.Name
  826. else
  827. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  828. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  829. end
  830. else
  831. HUM.PlatformStand = false
  832. end
  833. end
  834. elseif ISBANISH == "Gravity" then
  835. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  836. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  837. HUM.PlatformStand = false
  838. end
  839. end
  840. end
  841. end
  842. end
  843. end
  844. end
  845.  
  846. --//=================================\\
  847. --|| ATTACK FUNCTIONS AND STUFF
  848. --\\=================================//
  849.  
  850. function Shot()
  851. ATTACK = true
  852. Rooted = false
  853. for i=0, 0.4, 0.1 / Animation_Speed do
  854. Swait()
  855. turnto(Mouse.Hit.p)
  856. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.1 / Animation_Speed)
  857. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  858. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  859. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  860. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  861. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  862. end
  863. repeat
  864. for i=0, 0.2, 0.1 / Animation_Speed do
  865. Swait()
  866. turnto(Mouse.Hit.p)
  867. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.1 / Animation_Speed)
  868. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  869. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  870. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  871. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  872. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  873. end
  874. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  875. SpawnTrail(Hole.Position,POS)
  876. if HIT ~= nil then
  877. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  878. Banish(HIT.Parent)
  879. end
  880. end
  881. 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,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  882. 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,1,0), SoundID = 151414336, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  883. 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,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  884. 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,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  885. for i=0, 0.3, 0.1 / Animation_Speed do
  886. Swait()
  887. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.1 / Animation_Speed)
  888. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  889. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  890. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  891. 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)
  892. 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)
  893. end
  894. until KEYHOLD == false
  895. ATTACK = false
  896. Rooted = false
  897. end
  898.  
  899. function AttackTemplate()
  900. ATTACK = true
  901. Rooted = false
  902. for i=0, 1, 0.1 / Animation_Speed do
  903. Swait()
  904. 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)
  905. 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)
  906. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  907. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  908. 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)
  909. 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)
  910. end
  911. ATTACK = false
  912. Rooted = false
  913. end
  914.  
  915. --//=================================\\
  916. --|| ASSIGN THINGS TO KEYS
  917. --\\=================================//
  918.  
  919. function MouseDown(Mouse)
  920. if ATTACK == false then
  921. end
  922. end
  923.  
  924. function MouseUp(Mouse)
  925. HOLD = false
  926. end
  927.  
  928. function KeyDown(Key)
  929. KEYHOLD = true
  930. if Key == "z" and ATTACK == false then
  931. Shot()
  932. end
  933.  
  934. if Key == "b" and ATTACK == false then
  935. end
  936.  
  937. if Key == "c" and ATTACK == false then
  938. end
  939.  
  940. if Key == "v" and ATTACK == false then
  941. end
  942.  
  943. if Key == "x" and ATTACK == false then
  944. end
  945. end
  946.  
  947. function KeyUp(Key)
  948. KEYHOLD = false
  949. end
  950.  
  951. Mouse.Button1Down:connect(function(NEWKEY)
  952. MouseDown(NEWKEY)
  953. end)
  954. Mouse.Button1Up:connect(function(NEWKEY)
  955. MouseUp(NEWKEY)
  956. end)
  957. Mouse.KeyDown:connect(function(NEWKEY)
  958. KeyDown(NEWKEY)
  959. end)
  960. Mouse.KeyUp:connect(function(NEWKEY)
  961. KeyUp(NEWKEY)
  962. end)
  963.  
  964. --//=================================\\
  965. --\\=================================//
  966.  
  967.  
  968. function unanchor()
  969. if UNANCHOR == true then
  970. g = Character:GetChildren()
  971. for i = 1, #g do
  972. if g[i].ClassName == "Part" then
  973. g[i].Anchored = false
  974. end
  975. end
  976. end
  977. end
  978.  
  979.  
  980. --//=================================\\
  981. --|| WRAP THE WHOLE SCRIPT UP
  982. --\\=================================//
  983.  
  984. Humanoid.Changed:connect(function(Jump)
  985. if Jump == "Jump" and (Disable_Jump == true) then
  986. Humanoid.Jump = false
  987. end
  988. end)
  989.  
  990. local CONNECT = nil
  991.  
  992. while true do
  993. Swait()
  994. ANIMATE.Parent = nil
  995. if Character:FindFirstChildOfClass("Humanoid") == nil then
  996. Humanoid = IT("Humanoid",Character)
  997. end
  998. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  999. v:Stop();
  1000. end
  1001. SINE = SINE + CHANGE
  1002. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1003. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1004. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1005. local WALKSPEEDVALUE = 3 / (Humanoid.WalkSpeed / 16)
  1006. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1007. 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)
  1008. 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)
  1009. 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)
  1010. 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)
  1011. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1012. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1013. 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)
  1014. 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)
  1015. 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)
  1016. end
  1017. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1018. ANIM = "Jump"
  1019. if ATTACK == false then
  1020. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1021. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1022. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1023. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1024. 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)
  1025. 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)
  1026. end
  1027. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1028. ANIM = "Fall"
  1029. if ATTACK == false then
  1030. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1031. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1032. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1033. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1034. 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)
  1035. 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)
  1036. end
  1037. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1038. ANIM = "Idle"
  1039. if ATTACK == false then
  1040. 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)
  1041. 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)
  1042. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1043. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1044. 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)
  1045. 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)
  1046. end
  1047. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1048. ANIM = "Walk"
  1049. if ATTACK == false then
  1050. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1051. 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)
  1052. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1053. 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)
  1054. 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)
  1055. 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)
  1056. end
  1057. end
  1058. unanchor()
  1059. Humanoid.MaxHealth = "inf"
  1060. Humanoid.Health = "inf"
  1061. if Rooted == false then
  1062. Disable_Jump = false
  1063. Humanoid.WalkSpeed = Speed
  1064. elseif Rooted == true then
  1065. Disable_Jump = true
  1066. Humanoid.WalkSpeed = 0
  1067. end
  1068. sick.Parent = Torso
  1069. sick:resume()
  1070. sick.Volume = 8.2
  1071. sick.Pitch = 1
  1072. sick.SoundId = "rbxassetid://1713855118"
  1073. sick.Name = "Dead"
  1074. end
  1075.  
  1076. --//=================================\\
  1077. --\\=================================//
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083. --//====================================================\\--
  1084. --|| END OF SCRIPT
  1085. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement