Advertisement
EnderPlayBro

Untitled

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