Advertisement
zXzGamePROzXz

something banishing

Mar 22nd, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 82.89 KB | None | 0 0
  1. script.Name = "UGH Another edited :|"
  2. print'Edited by Bacon Hair!'
  3. --// \\--
  4. --}} CREATED BY SHACKLUSTER \\--
  5. --}} EDITED BY nguyenducloi123 //--
  6. --\\ //--
  7.  
  8. print'Update on 20/12/2018.'
  9. script:ClearAllChildren()
  10. wait(0.2)
  11.  
  12. Player = game:GetService("Players").LocalPlayer
  13. print('User is '..Player.Name)
  14. PlayerGui = Player.PlayerGui
  15. Cam = workspace.CurrentCamera
  16. Backpack = Player.Backpack
  17. Character = Player.Character
  18. Humanoid = Character.Humanoid
  19. Mouse = Player:GetMouse()
  20. RootPart = Character["HumanoidRootPart"]
  21. Torso = Character["Torso"]
  22. Head = Character["Head"]
  23. RightArm = Character["Right Arm"]
  24. LeftArm = Character["Left Arm"]
  25. RightLeg = Character["Right Leg"]
  26. LeftLeg = Character["Left Leg"]
  27. RootJoint = RootPart["RootJoint"]
  28. Neck = Torso["Neck"]
  29. RightShoulder = Torso["Right Shoulder"]
  30. LeftShoulder = Torso["Left Shoulder"]
  31. RightHip = Torso["Right Hip"]
  32. LeftHip = Torso["Left Hip"]
  33. LeftArm.Transparency = "0"
  34. Head.Transparency = "0"
  35. LeftLeg.Transparency = "0"
  36. RightArm.Transparency = "0"
  37. RightLeg.Transparency = "0"
  38. Torso.Transparency = "0"
  39. if Character:FindFirstChildOfClass("Accessory") then
  40. Character:FindFirstChildOfClass("Accessory"):remove()
  41. elseif Character:FindFirstChildOfClass("Hat") then
  42. Character:FindFirstChildOfClass("Hat"):remove()
  43. end
  44. Head:ClearAllChildren()
  45. if Character:FindFirstChildOfClass("Accessory") then
  46. Character:FindFirstChildOfClass("Accessory"):remove()
  47. elseif Character:FindFirstChildOfClass("Back") then
  48. Character:FindFirstChildOfClass("Back"):remove()
  49. end
  50. if Character:FindFirstChildOfClass("Accessory") then
  51. Character:FindFirstChildOfClass("Accessory"):remove()
  52. elseif Character:FindFirstChildOfClass("Neck") then
  53. Character:FindFirstChildOfClass("Neck"):remove()
  54. end
  55. if Character:FindFirstChildOfClass("Accessory") then
  56. Character:FindFirstChildOfClass("Accessory"):remove()
  57. elseif Character:FindFirstChildOfClass("Shoulders") then
  58. Character:FindFirstChildOfClass("Shoulders"):remove()
  59. end
  60. pcall(function() Head:FindFirstChildOfClass'Decal':destroy() end)
  61. local sick = Instance.new("Sound",Character)
  62. sick.Parent = Character
  63. sick:resume()
  64. sick.Volume = 7
  65. sick.Pitch = 0.99
  66. sick.Looped = true
  67. sick.SoundId = "rbxassetid://494078566"
  68. sick.Name = ""
  69.  
  70. IT = Instance.new
  71. CF = CFrame.new
  72. VT = Vector3.new
  73. RAD = math.rad
  74. C3 = Color3.new
  75. UD2 = UDim2.new
  76. BRICKC = BrickColor.new
  77. ANGLES = CFrame.Angles
  78. EULER = CFrame.fromEulerAnglesXYZ
  79. COS = math.cos
  80. ACOS = math.acos
  81. SIN = math.sin
  82. ASIN = math.asin
  83. ABS = math.abs
  84. MRANDOM = math.random
  85. FLOOR = math.floor
  86.  
  87. --//=================================\\
  88. --|| USEFUL VALUES
  89. --\\=================================//
  90.  
  91. Player_Size = 1
  92. Animation_Speed = 3
  93. local FORCERESET = false
  94. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  95. local Speed = 16
  96. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  97. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  98. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  99. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  100. local DAMAGEMULTIPLIER = 1
  101. local ANIM = "Idle"
  102. local ATTACK = false
  103. local EQUIPPED = false
  104. local HOLD = false
  105. local COMBO = 1
  106. local Rooted = false
  107. local SINE = 0
  108. local KEYHOLD = false
  109. local CHANGE = 2 / Animation_Speed
  110. local WALKINGANIM = false
  111. local VALUE1 = false
  112. local VALUE2 = false
  113. local ROBLOXIDLEANIMATION = IT("Animation")
  114. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  115. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  116. --ROBLOXIDLEANIMATION.Parent = Humanoid
  117. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  118. WEAPONGUI.Name = "BanishV3Gui"
  119. local Weapon = IT("Model")
  120. Weapon.Name = "Adds"
  121. local Effects = IT("Folder", Weapon)
  122. Effects.Name = "Effects"
  123. local ANIMATOR = Humanoid.Animator
  124. local ANIMATE = Character:FindFirstChild("Animate")
  125. local UNANCHOR = true
  126. local TOBANISH = {}
  127. script.Parent = PlayerGui
  128.  
  129. --//=================================\\
  130. --\\=================================//
  131.  
  132.  
  133. --//=================================\\
  134. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  135. --\\=================================//
  136.  
  137. ArtificialHB = Instance.new("BindableEvent", script)
  138. ArtificialHB.Name = "ArtificialHB"
  139.  
  140. script:WaitForChild("ArtificialHB")
  141.  
  142. frame = Frame_Speed
  143. tf = 0
  144. allowframeloss = false
  145. tossremainder = false
  146. lastframe = tick()
  147. script.ArtificialHB:Fire()
  148.  
  149. game:GetService("RunService").Heartbeat:connect(function(s, p)
  150. tf = tf + s
  151. if tf >= frame then
  152. if allowframeloss then
  153. script.ArtificialHB:Fire()
  154. lastframe = tick()
  155. else
  156. for i = 1, math.floor(tf / frame) do
  157. script.ArtificialHB:Fire()
  158. end
  159. lastframe = tick()
  160. end
  161. if tossremainder then
  162. tf = 0
  163. else
  164. tf = tf - frame * math.floor(tf / frame)
  165. end
  166. end
  167. end)
  168.  
  169. --//=================================\\
  170. --\\=================================//
  171.  
  172. --//=================================\\
  173. --|| SOME FUNCTIONS
  174. --\\=================================//
  175.  
  176. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  177. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  178. end
  179.  
  180. function PositiveAngle(NUMBER)
  181. if NUMBER >= 0 then
  182. NUMBER = 0
  183. end
  184. return NUMBER
  185. end
  186.  
  187. function NegativeAngle(NUMBER)
  188. if NUMBER <= 0 then
  189. NUMBER = 0
  190. end
  191. return NUMBER
  192. end
  193.  
  194. function Swait(NUMBER)
  195. if NUMBER == 0 or NUMBER == nil then
  196. ArtificialHB.Event:wait()
  197. else
  198. for i = 1, NUMBER do
  199. ArtificialHB.Event:wait()
  200. end
  201. end
  202. end
  203.  
  204. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  205. local NEWMESH = IT(MESH)
  206. if MESH == "SpecialMesh" then
  207. NEWMESH.MeshType = MESHTYPE
  208. if MESHID ~= "nil" and MESHID ~= "" then
  209. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  210. end
  211. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  212. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  213. end
  214. end
  215. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  216. NEWMESH.Scale = SCALE
  217. NEWMESH.Parent = PARENT
  218. return NEWMESH
  219. end
  220.  
  221. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  222. local NEWPART = IT("Part")
  223. NEWPART.formFactor = FORMFACTOR
  224. NEWPART.Reflectance = REFLECTANCE
  225. NEWPART.Transparency = TRANSPARENCY
  226. NEWPART.CanCollide = false
  227. NEWPART.Locked = true
  228. NEWPART.Anchored = true
  229. if ANCHOR == false then
  230. NEWPART.Anchored = false
  231. end
  232. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  233. NEWPART.Name = NAME
  234. NEWPART.Size = SIZE
  235. NEWPART.Position = Torso.Position
  236. NEWPART.Material = MATERIAL
  237. NEWPART:BreakJoints()
  238. NEWPART.Parent = PARENT
  239. return NEWPART
  240. end
  241.  
  242. local function weldBetween(a, b)
  243. local weldd = Instance.new("ManualWeld")
  244. weldd.Part0 = a
  245. weldd.Part1 = b
  246. weldd.C0 = CFrame.new()
  247. weldd.C1 = b.CFrame:inverse() * a.CFrame
  248. weldd.Parent = a
  249. return weldd
  250. end
  251.  
  252.  
  253. function QuaternionFromCFrame(cf)
  254. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  255. local trace = m00 + m11 + m22
  256. if trace > 0 then
  257. local s = math.sqrt(1 + trace)
  258. local recip = 0.5 / s
  259. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  260. else
  261. local i = 0
  262. if m11 > m00 then
  263. i = 1
  264. end
  265. if m22 > (i == 0 and m00 or m11) then
  266. i = 2
  267. end
  268. if i == 0 then
  269. local s = math.sqrt(m00 - m11 - m22 + 1)
  270. local recip = 0.5 / s
  271. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  272. elseif i == 1 then
  273. local s = math.sqrt(m11 - m22 - m00 + 1)
  274. local recip = 0.5 / s
  275. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  276. elseif i == 2 then
  277. local s = math.sqrt(m22 - m00 - m11 + 1)
  278. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  279. end
  280. end
  281. end
  282.  
  283. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  284. local xs, ys, zs = x + x, y + y, z + z
  285. local wx, wy, wz = w * xs, w * ys, w * zs
  286. local xx = x * xs
  287. local xy = x * ys
  288. local xz = x * zs
  289. local yy = y * ys
  290. local yz = y * zs
  291. local zz = z * zs
  292. 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))
  293. end
  294.  
  295. function QuaternionSlerp(a, b, t)
  296. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  297. local startInterp, finishInterp;
  298. if cosTheta >= 0.0001 then
  299. if (1 - cosTheta) > 0.0001 then
  300. local theta = ACOS(cosTheta)
  301. local invSinTheta = 1 / SIN(theta)
  302. startInterp = SIN((1 - t) * theta) * invSinTheta
  303. finishInterp = SIN(t * theta) * invSinTheta
  304. else
  305. startInterp = 1 - t
  306. finishInterp = t
  307. end
  308. else
  309. if (1 + cosTheta) > 0.0001 then
  310. local theta = ACOS(-cosTheta)
  311. local invSinTheta = 1 / SIN(theta)
  312. startInterp = SIN((t - 1) * theta) * invSinTheta
  313. finishInterp = SIN(t * theta) * invSinTheta
  314. else
  315. startInterp = t - 1
  316. finishInterp = t
  317. end
  318. end
  319. 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
  320. end
  321.  
  322. function Clerp(a, b, t)
  323. local qa = {QuaternionFromCFrame(a)}
  324. local qb = {QuaternionFromCFrame(b)}
  325. local ax, ay, az = a.x, a.y, a.z
  326. local bx, by, bz = b.x, b.y, b.z
  327. local _t = 1 - t
  328. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  329. end
  330.  
  331. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  332. local frame = IT("Frame")
  333. frame.BackgroundTransparency = TRANSPARENCY
  334. frame.BorderSizePixel = BORDERSIZEPIXEL
  335. frame.Position = POSITION
  336. frame.Size = SIZE
  337. frame.BackgroundColor3 = COLOR
  338. frame.BorderColor3 = BORDERCOLOR
  339. frame.Name = NAME
  340. frame.Parent = PARENT
  341. return frame
  342. end
  343.  
  344. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  345. local label = IT("TextLabel")
  346. label.BackgroundTransparency = 0
  347. label.Size = UD2(1, 0, 1, 0)
  348. label.Position = UD2(0, 0, 0, 0)
  349. label.TextColor3 = TEXTCOLOR
  350. label.TextStrokeTransparency = STROKETRANSPARENCY
  351. label.TextTransparency = TRANSPARENCY
  352. label.FontSize = TEXTFONTSIZE
  353. label.Font = TEXTFONT
  354. label.BorderSizePixel = BORDERSIZEPIXEL
  355. label.TextScaled = false
  356. label.Text = TEXT
  357. label.Name = NAME
  358. label.Parent = PARENT
  359. return label
  360. end
  361.  
  362. function NoOutlines(PART)
  363. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  364. end
  365.  
  366. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  367. local NEWWELD = IT(TYPE)
  368. NEWWELD.Part0 = PART0
  369. NEWWELD.Part1 = PART1
  370. NEWWELD.C0 = C0
  371. NEWWELD.C1 = C1
  372. NEWWELD.Parent = PARENT
  373. return NEWWELD
  374. end
  375.  
  376. local S = IT("Sound")
  377. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  378. local NEWSOUND = nil
  379. coroutine.resume(coroutine.create(function()
  380. NEWSOUND = S:Clone()
  381. NEWSOUND.Parent = PARENT
  382. NEWSOUND.Volume = VOLUME
  383. NEWSOUND.Pitch = PITCH
  384. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  385. NEWSOUND:play()
  386. if DOESLOOP == true then
  387. NEWSOUND.Looped = true
  388. else
  389. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  390. NEWSOUND:remove()
  391. end
  392. end))
  393. return NEWSOUND
  394. end
  395.  
  396. function CFrameFromTopBack(at, top, back)
  397. local right = top:Cross(back)
  398. 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)
  399. end
  400.  
  401. --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})
  402. function WACKYEFFECT(Table)
  403. local TYPE = (Table.EffectType or "Sphere")
  404. local SIZE = (Table.Size or VT(1,1,1))
  405. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  406. local TRANSPARENCY = (Table.Transparency or 0)
  407. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  408. local CFRAME = (Table.CFrame or Torso.CFrame)
  409. local MOVEDIRECTION = (Table.MoveToPos or nil)
  410. local ROTATION1 = (Table.RotationX or 0)
  411. local ROTATION2 = (Table.RotationY or 0)
  412. local ROTATION3 = (Table.RotationZ or 0)
  413. local MATERIAL = (Table.Material or "Neon")
  414. local COLOR = (Table.Color or C3(1,1,1))
  415. local TIME = (Table.Time or 45)
  416. local SOUNDID = (Table.SoundID or nil)
  417. local SOUNDPITCH = (Table.SoundPitch or nil)
  418. local SOUNDVOLUME = (Table.SoundVolume or nil)
  419. coroutine.resume(coroutine.create(function()
  420. local PLAYSSOUND = false
  421. local SOUND = nil
  422. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  423. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  424. PLAYSSOUND = true
  425. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  426. end
  427. EFFECT.Color = COLOR
  428. local MSH = nil
  429. if TYPE == "Sphere" then
  430. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  431. elseif TYPE == "Block" then
  432. MSH = IT("BlockMesh",EFFECT)
  433. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  434. elseif TYPE == "Wave" then
  435. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  436. elseif TYPE == "Ring" then
  437. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  438. elseif TYPE == "Slash" then
  439. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  440. elseif TYPE == "Round Slash" then
  441. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  442. elseif TYPE == "Swirl" then
  443. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  444. elseif TYPE == "Skull" then
  445. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  446. elseif TYPE == "Crystal" then
  447. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  448. end
  449. if MSH ~= nil then
  450. local MOVESPEED = nil
  451. if MOVEDIRECTION ~= nil then
  452. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  453. end
  454. local GROWTH = SIZE - ENDSIZE
  455. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  456. if TYPE == "Block" then
  457. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  458. else
  459. EFFECT.CFrame = CFRAME
  460. end
  461. for LOOP = 1, TIME+1 do
  462. Swait()
  463. MSH.Scale = MSH.Scale - GROWTH/TIME
  464. if TYPE == "Wave" then
  465. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  466. end
  467. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  468. if TYPE == "Block" then
  469. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  470. else
  471. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  472. end
  473. if MOVEDIRECTION ~= nil then
  474. local ORI = EFFECT.Orientation
  475. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  476. EFFECT.Orientation = ORI
  477. end
  478. end
  479. if PLAYSSOUND == false then
  480. EFFECT:remove()
  481. else
  482. SOUND.Stopped:Connect(function()
  483. EFFECT:remove()
  484. end)
  485. end
  486. else
  487. if PLAYSSOUND == false then
  488. EFFECT:remove()
  489. else
  490. repeat Swait() until SOUND.Playing == false
  491. EFFECT:remove()
  492. end
  493. end
  494. end))
  495. end
  496.  
  497. function MakeForm(PART,TYPE)
  498. if TYPE == "Cyl" then
  499. local MSH = IT("CylinderMesh",PART)
  500. elseif TYPE == "Ball" then
  501. local MSH = IT("SpecialMesh",PART)
  502. MSH.MeshType = "Sphere"
  503. elseif TYPE == "Wedge" then
  504. local MSH = IT("SpecialMesh",PART)
  505. MSH.MeshType = "Wedge"
  506. end
  507. end
  508.  
  509. function SpawnTrail(FROM,TO,BIG)
  510. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(10,10,10))
  511. MakeForm(TRAIL,"Cyl")
  512. local DIST = (FROM - TO).Magnitude
  513. if BIG == true then
  514. TRAIL.Size = VT(3,DIST,3)
  515. else
  516. TRAIL.Size = VT(3,DIST,3)
  517. end
  518. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  519. coroutine.resume(coroutine.create(function()
  520. for i = 1, 5 do
  521. Swait()
  522. TRAIL.Transparency = TRAIL.Transparency + 0.1
  523. end
  524. TRAIL:remove()
  525. end))
  526. end
  527.  
  528. Debris = game:GetService("Debris")
  529.  
  530. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  531. local DIRECTION = CF(StartPos,EndPos).lookVector
  532. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  533. end
  534.  
  535. function turnto(position)
  536. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  537. end
  538.  
  539. --//=================================\\
  540. --|| WEAPON CREATION
  541. --\\=================================//
  542.  
  543. function swait(num)
  544. if num == 0 or num == nil then
  545. ArtificialHB.Event:wait()
  546. else
  547. for i = 0, num do
  548. ArtificialHB.Event:wait()
  549. end
  550. end
  551. end
  552.  
  553. function chatfunc(text)
  554. local chat = coroutine.wrap(function()
  555. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  556. Character:FindFirstChild("TalkingBillBoard"):destroy()
  557. end
  558. local Bill = Instance.new("BillboardGui",Character)
  559. Bill.Size = UDim2.new(0,100,0,40)
  560. Bill.StudsOffset = Vector3.new(0,3,0)
  561. Bill.Adornee = Character.Head
  562. Bill.Name = "TalkingBillBoard"
  563. local Hehe = Instance.new("TextLabel",Bill)
  564. Hehe.BackgroundTransparency = 0
  565. Hehe.BorderSizePixel = 0
  566. Hehe.Text = ""
  567. Hehe.Font = "Fantasy"
  568. Hehe.TextSize = 40
  569. Hehe.TextStrokeTransparency = 0
  570. Hehe.Size = UDim2.new(1,0,0.5,0)
  571. coroutine.resume(coroutine.create(function()
  572. while Hehe ~= nil do
  573. swait()
  574. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  575. Hehe.Rotation = math.random(-5,5)
  576. Hehe.TextColor3 = Color3.new(0,0,0)
  577. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  578. end
  579. end))
  580. for i = 1,string.len(text),1 do
  581. swait()
  582. Hehe.Text = string.sub(text,1,i)
  583. end
  584. swait(90)--Re[math.random(1, 93)]
  585. for i = 0, 1, .025 do
  586. swait()
  587. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  588. Hehe.TextStrokeTransparency = i
  589. Hehe.TextTransparency = i
  590. end
  591. Bill:Destroy()
  592. end)
  593. chat()
  594. end
  595.  
  596. function onChatted(msg)
  597. chatfunc(msg)
  598. end
  599.  
  600. Player.Chatted:connect(onChatted)
  601.  
  602. local Particle = IT("ParticleEmitter",nil)
  603. Particle.Enabled = false
  604. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  605. Particle.LightEmission = 0.9
  606. Particle.Rate = 450
  607. Particle.ZOffset = 0.2
  608. Particle.Rotation = NumberRange.new(-180, 180)
  609. Particle.RotSpeed = NumberRange.new(-180, 180)
  610. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  611. Particle.Color = ColorSequence.new(C3(0,0,0),C3(0,0,0))
  612.  
  613. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  614. function ParticleEmitter(Table)
  615. local PRTCL = Particle:Clone()
  616. local Speed = Table.Speed or 5
  617. local Drag = Table.Drag or 0
  618. local Size1 = Table.Size1 or 1
  619. local Size2 = Table.Size2 or 5
  620. local Lifetime1 = Table.Lifetime1 or 1
  621. local Lifetime2 = Table.Lifetime2 or 1.5
  622. local Parent = Table.Parent or Torso
  623. local Emit = Table.Emit or 100
  624. local Offset = Table.Offset or 360
  625. local Acel = Table.Acel or VT(0,0,0)
  626. local Enabled = Table.Enabled or false
  627. PRTCL.Parent = Parent
  628. PRTCL.Size = NumberSequence.new(Size1,Size2)
  629. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  630. PRTCL.Speed = NumberRange.new(Speed)
  631. PRTCL.VelocitySpread = Offset
  632. PRTCL.Drag = Drag
  633. PRTCL.Acceleration = Acel
  634. if Enabled == false then
  635. PRTCL:Emit(Emit)
  636. Debris:AddItem(PRTCL,Lifetime2)
  637. else
  638. PRTCL.Enabled = true
  639. end
  640. return PRTCL
  641. end
  642.  
  643. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  644. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  645. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  646. MakeForm(Part,"Wedge")
  647. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  648. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  649. MakeForm(Part,"Wedge")
  650. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  651. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  652. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  653. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  654. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  655. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  656. MakeForm(Part,"Cyl")
  657. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  658. for i = 1, 8 do
  659. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  660. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  661. end
  662. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  663. MakeForm(Part,"Cyl")
  664. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  665. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  666. MakeForm(Part,"Ball")
  667. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  668. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  669. MakeForm(Part,"Wedge")
  670. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  671. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  672. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  673. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  674. MakeForm(Part,"Cyl")
  675. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  676. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  677. MakeForm(Part,"Cyl")
  678. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  679. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  680. MakeForm(Part,"Cyl")
  681. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  682. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  683. MakeForm(Part,"Wedge")
  684. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  685. local LASTPART = Handle
  686. for i = 1, 10 do
  687. if LASTPART == Handle then
  688. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  689. LASTPART = Part
  690. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  691. else
  692. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  693. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  694. LASTPART = Part
  695. end
  696. end
  697.  
  698. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  699. MakeForm(Barrel,"Cyl")
  700. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  701. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  702. MakeForm(Part,"Cyl")
  703. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  704. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  705. MakeForm(Part,"Wedge")
  706. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  707. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  708. MakeForm(Hole,"Cyl")
  709. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  710. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  711. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  712. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  713. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  714. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  715. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  716. coroutine.resume(coroutine.create(function()
  717. while wait() do
  718. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  719. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  720. end
  721. end))
  722.  
  723. 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)})
  724. --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)})
  725.  
  726. for _, c in pairs(Weapon:GetDescendants()) do
  727. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  728. c.Material = "Glass"
  729. c.Color = C3(0,0,0)
  730. elseif c.ClassName == "Part" and c.Name == "Eye" then
  731. c.Color = C3(0,0,0)
  732. c.Material = "Neon"
  733. end
  734. end
  735.  
  736. Weapon.Parent = Character
  737. for _, c in pairs(Weapon:GetChildren()) do
  738. if c.ClassName == "Part" then
  739. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  740. end
  741. end
  742.  
  743. local SKILLTEXTCOLOR = C3(0,0,0)
  744. local SKILLFONT = "Antique"
  745. local SKILLTEXTSIZE = 7
  746.  
  747. local BODY = {}
  748. for _, c in pairs(Character:GetDescendants()) do
  749. if c:IsA("BasePart") and c.Name ~= "Handle" then
  750. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  751. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  752. end
  753. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  754. elseif c:IsA("JointInstance") then
  755. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  756. end
  757. end
  758. function refit()
  759. Character.Parent = workspace
  760. for e = 1, #BODY do
  761. if BODY[e] ~= nil then
  762. local STUFF = BODY[e]
  763. local PART = STUFF[1]
  764. local PARENT = STUFF[2]
  765. local MATERIAL = STUFF[3]
  766. local COLOR = STUFF[4]
  767. local TRANSPARENCY = STUFF[5]
  768. --local SIZE = STUFF[6]
  769. local NAME = STUFF[7]
  770. if PART.ClassName == "Part" and PART ~= RootPart then
  771. PART.Material = MATERIAL
  772. PART.Transparency = TRANSPARENCY
  773. PART.Name = NAME
  774. end
  775. if PART.Parent ~= PARENT then
  776. Humanoid:remove()
  777. PART.Parent = PARENT
  778. Humanoid = IT("Humanoid",Character)
  779. end
  780. end
  781. end
  782. end
  783.  
  784. Humanoid.Died:connect(function()
  785. refit()
  786. end)
  787. Humanoid.Died:connect(function()
  788. ATTACK = true
  789. end)
  790. Humanoid.Died:connect(function()
  791. Humanoid.Parent = nil
  792. Humanoid.MaxHealth = "inf"
  793. Humanoid.Health = "inf"
  794. end)
  795. 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")
  796. 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")
  797. 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")
  798. 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")
  799. 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")
  800. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  801. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[F] Forgive", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  802. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Guilty", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  803. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[Q] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  804. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[C] Payback", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  805. function printbye(Name)
  806. local MESSAGES = {"Don't EVER return again, "}
  807. chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  808. end
  809.  
  810. workspace.ChildAdded:connect(function(instance)
  811. for BANISH = 1, #TOBANISH do
  812. if TOBANISH[BANISH] ~= nil then
  813. if instance.Name == TOBANISH[BANISH] then
  814. coroutine.resume(coroutine.create(function()
  815. printbye(instance.Name)
  816. instance:ClearAllChildren()
  817. Debris:AddItem(instance,0.0005)
  818. end))
  819. end
  820. end
  821. end
  822. end)
  823.  
  824. --//=================================\\
  825. --|| DAMAGING
  826. --\\=================================//
  827.  
  828. function Banish(Foe)
  829. if Foe then
  830. coroutine.resume(coroutine.create(function()
  831. --if game.Players:FindFirstChild(Foe.Name) then
  832. table.insert(TOBANISH,Foe.Name)
  833. printbye(Foe.Name)
  834. --end
  835. Foe.Archivable = true
  836. local CLONE = Foe:Clone()
  837. Foe:Destroy()
  838. CLONE.Parent = Effects
  839. CLONE:BreakJoints()
  840. local MATERIALS = {"Glass","Neon"}
  841. for _, c in pairs(CLONE:GetDescendants()) do
  842. if c:IsA("BasePart") then
  843. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  844. CreateSound(340722848, c, 10, 0.65, false)
  845. end
  846. c.Anchored = true
  847. c.Transparency = c.Transparency + 0.2
  848. c.Material = MATERIALS[MRANDOM(1,2)]
  849. c.Color = C3(0,0,0)
  850. if c.ClassName == "MeshPart" then
  851. c.TextureID = ""
  852. end
  853. if c:FindFirstChildOfClass("SpecialMesh") then
  854. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  855. end
  856. if c:FindFirstChildOfClass("Decal") then
  857. c:FindFirstChildOfClass("Decal"):remove()
  858. end
  859. c.Name = "Banished"
  860. c.CanCollide = false
  861. else
  862. c:remove()
  863. end
  864. end
  865. local A = false
  866. for i = 1, 35 do
  867. if A == false then
  868. A = true
  869. elseif A == true then
  870. A = false
  871. end
  872. for _, c in pairs(CLONE:GetDescendants()) do
  873. if c:IsA("BasePart") then
  874. c.Anchored = true
  875. c.Material = MATERIALS[MRANDOM(1,2)]
  876. c.Transparency = c.Transparency + 0.8/35
  877. if A == false then
  878. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  879. elseif A == true then
  880. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  881. end
  882. end
  883. end
  884. Swait()
  885. end
  886. CLONE:remove()
  887. end))
  888. end
  889. end
  890.  
  891. function ApplyAoE(POSITION,RANGE,ISBANISH)
  892. local CHILDREN = workspace:GetDescendants()
  893. for index, CHILD in pairs(CHILDREN) do
  894. if CHILD.ClassName == "Model" and CHILD ~= Character then
  895. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  896. if HUM then
  897. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  898. if TORSO then
  899. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  900. if ISBANISH == true then
  901. Banish(CHILD)
  902. else
  903. if ISBANISH == "Gravity" then
  904. HUM.PlatformStand = true
  905. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  906. local grav = Instance.new("BodyPosition",TORSO)
  907. grav.D = 15
  908. grav.P = 20000
  909. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  910. grav.position = TORSO.Position
  911. grav.Name = "V3BanishForce"..Player.Name
  912. else
  913. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  914. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  915. end
  916. else
  917. HUM.PlatformStand = false
  918. end
  919. end
  920. elseif ISBANISH == "Gravity" then
  921. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  922. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  923. HUM.PlatformStand = false
  924. end
  925. end
  926. end
  927. end
  928. end
  929. end
  930. end
  931.  
  932. --//=================================\\
  933. --|| ATTACK FUNCTIONS AND STUFF
  934. --\\=================================//
  935.  
  936. function Bullet()
  937. ATTACK = true
  938. Rooted = false
  939. for i=0, 0.4, 0.088 / Animation_Speed do
  940. Swait()
  941. turnto(Mouse.Hit.p)
  942. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  943. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  944. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  945. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  946. 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)
  947. 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)
  948. end
  949. repeat
  950. for i=0, 0.2, 0.088 / Animation_Speed do
  951. Swait()
  952. turnto(Mouse.Hit.p)
  953. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  954. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  955. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  956. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  957. 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)
  958. 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)
  959. end
  960. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  961. SpawnTrail(Hole.Position,POS)
  962. if HIT ~= nil then
  963. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  964. Banish(HIT.Parent)
  965. end
  966. end
  967. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  968. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  969. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,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(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  970. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,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(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  971. for i=0, 0.3, 0.088 / Animation_Speed do
  972. Swait()
  973. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  974. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  975. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  976. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  977. 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)
  978. 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)
  979. end
  980. until KEYHOLD == false
  981. ATTACK = false
  982. Rooted = false
  983. end
  984.  
  985. function Payback()
  986. ATTACK = true
  987. Rooted = true
  988. for i = 0, 8, 0.75 / Animation_Speed do
  989. Swait()
  990. local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "Really black", VT(2, 2, 2))
  991. MakeForm(CHARGE, "Ball")
  992. CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15))
  993. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  994. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  995. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  996. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  997. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  998. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  999. end
  1000. coroutine.resume(coroutine.create(function()
  1001. local POS = Mouse.Hit.p
  1002. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,1000,0))
  1003. MakeForm(RAY,"Cyl")
  1004. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  1005. MakeForm(SPHERE,"Ball")
  1006. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
  1007. MakeForm(SHIELD,"Ball")
  1008. SHIELD.CFrame = CF(POS)
  1009. RAY.CFrame = CF(POS)
  1010. SPHERE.CFrame = CF(POS)
  1011. CreateSound(440145570, SPHERE, 15, 0.55, false)
  1012. CreateSound(415700134, SPHERE, 15, 0.55, false)
  1013. for i = 1, 200 do
  1014. Swait()
  1015. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1016. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  1017. SPHERE.Size = SPHERE.Size + VT(2.4,2.4,2.4)
  1018. SHIELD.Size = SPHERE.Size + VT(3.4,3.4,3.4)
  1019. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1020. end
  1021. for i = 1, 45 do
  1022. Swait()
  1023. RAY.Transparency = RAY.Transparency + 1/45
  1024. SPHERE.Transparency = RAY.Transparency
  1025. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1026. end
  1027. RAY:remove()
  1028. SHIELD:remove()
  1029. SPHERE:remove()
  1030. end))
  1031. for i=0, 1, 0.09 / Animation_Speed do
  1032. Swait()
  1033. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1034. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1035. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1036. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1037. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1038. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1039. end
  1040. ATTACK = false
  1041. Rooted = false
  1042. end
  1043. local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  1044. MakeForm(RightHole,"Cyl")
  1045. local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  1046. MakeForm(LeftHole,"Cyl")
  1047. function Guilty()
  1048. ATTACK = true
  1049. Rooted = true
  1050. for i=0, 1, 0.1 / Animation_Speed do
  1051. Swait()
  1052. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1053. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1054. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1055. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1056. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1057. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1058. end
  1059. local DONE = false
  1060. local GATE = nil
  1061. local GATESPIN = true
  1062. coroutine.resume(coroutine.create(function()
  1063. repeat
  1064. Swait()
  1065. if GATE ~= nil then
  1066. GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0))
  1067. end
  1068. until GATESPIN == false
  1069. end))
  1070. coroutine.resume(coroutine.create(function()
  1071. repeat
  1072. Swait()
  1073. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1074. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1075. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1076. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1077. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1078. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1079. until DONE == true
  1080. Swait(50)
  1081. for i = 1, 35 do
  1082. Swait(4)
  1083. local FIRED = false
  1084. local CHILDREN = workspace:GetDescendants()
  1085. for index, CHILD in pairs(CHILDREN) do
  1086. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1087. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1088. if HUM then
  1089. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1090. if TORSO then
  1091. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1092. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1093. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1094. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1095. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1096. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1097. Banish(CHILD)
  1098. FIRED = true
  1099. break
  1100. end
  1101. end
  1102. end
  1103. end
  1104. end
  1105. if FIRED == false then
  1106. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1107. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1108. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1109. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1110. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1111. if HITBOD ~= nil then
  1112. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1113. Banish(HITBOD.Parent)
  1114. end
  1115. end
  1116. end
  1117. end
  1118. for i = 1, 45 do
  1119. Swait()
  1120. GATE.Size = GATE.Size - VT(3,0,3)
  1121. end
  1122. GATESPIN = false
  1123. GATE:remove()
  1124. end))
  1125. coroutine.resume(coroutine.create(function()
  1126. repeat
  1127. Swait()
  1128. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1129. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1130. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1131. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1132. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1133. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1134. until DONE == true
  1135. Swait(50)
  1136. for i = 1, 35 do
  1137. Swait(4)
  1138. local FIRED = false
  1139. local CHILDREN = workspace:GetDescendants()
  1140. for index, CHILD in pairs(CHILDREN) do
  1141. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1142. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1143. if HUM then
  1144. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1145. if TORSO then
  1146. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1147. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1148. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1149. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1150. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1151. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1152. Banish(CHILD)
  1153. FIRED = true
  1154. break
  1155. end
  1156. end
  1157. end
  1158. end
  1159. end
  1160. if FIRED == false then
  1161. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1162. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1163. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1164. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1165. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1166. if HITBOD ~= nil then
  1167. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1168. Banish(HITBOD.Parent)
  1169. end
  1170. end
  1171. end
  1172. end
  1173. for i = 1, 45 do
  1174. Swait()
  1175. GATE.Size = GATE.Size - VT(3,0,3)
  1176. end
  1177. GATESPIN = false
  1178. GATE:remove()
  1179. end))
  1180. coroutine.resume(coroutine.create(function()
  1181. repeat
  1182. Swait()
  1183. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1184. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1185. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1186. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1187. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1188. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1189. until DONE == true
  1190. Swait(50)
  1191. for i = 1, 35 do
  1192. Swait(4)
  1193. local FIRED = false
  1194. local CHILDREN = workspace:GetDescendants()
  1195. for index, CHILD in pairs(CHILDREN) do
  1196. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1197. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1198. if HUM then
  1199. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1200. if TORSO then
  1201. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1202. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1203. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1204. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1205. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1206. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1207. Banish(CHILD)
  1208. FIRED = true
  1209. break
  1210. end
  1211. end
  1212. end
  1213. end
  1214. end
  1215. if FIRED == false then
  1216. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1217. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1218. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1219. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1220. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1221. if HITBOD ~= nil then
  1222. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1223. Banish(HITBOD.Parent)
  1224. end
  1225. end
  1226. end
  1227. end
  1228. for i = 1, 45 do
  1229. Swait()
  1230. GATE.Size = GATE.Size - VT(3,0,3)
  1231. end
  1232. GATESPIN = false
  1233. GATE:remove()
  1234. end))
  1235. coroutine.resume(coroutine.create(function()
  1236. repeat
  1237. Swait()
  1238. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1239. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1240. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1241. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1242. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1243. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1244. until DONE == true
  1245. Swait(50)
  1246. for i = 1, 35 do
  1247. Swait(4)
  1248. local FIRED = false
  1249. local CHILDREN = workspace:GetDescendants()
  1250. for index, CHILD in pairs(CHILDREN) do
  1251. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1252. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1253. if HUM then
  1254. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1255. if TORSO then
  1256. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1257. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1258. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1259. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1260. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1261. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1262. Banish(CHILD)
  1263. FIRED = true
  1264. break
  1265. end
  1266. end
  1267. end
  1268. end
  1269. end
  1270. if FIRED == false then
  1271. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1272. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1273. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1274. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1275. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1276. if HITBOD ~= nil then
  1277. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1278. Banish(HITBOD.Parent)
  1279. end
  1280. end
  1281. end
  1282. end
  1283. for i = 1, 45 do
  1284. Swait()
  1285. GATE.Size = GATE.Size - VT(3,0,3)
  1286. end
  1287. GATESPIN = false
  1288. GATE:remove()
  1289. end))
  1290. coroutine.resume(coroutine.create(function()
  1291. repeat
  1292. Swait()
  1293. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1294. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1295. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1296. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1297. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1298. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1299. until DONE == true
  1300. Swait(50)
  1301. for i = 1, 35 do
  1302. Swait(4)
  1303. local FIRED = false
  1304. local CHILDREN = workspace:GetDescendants()
  1305. for index, CHILD in pairs(CHILDREN) do
  1306. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1307. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1308. if HUM then
  1309. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1310. if TORSO then
  1311. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1312. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1313. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1314. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1315. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1316. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1317. Banish(CHILD)
  1318. FIRED = true
  1319. break
  1320. end
  1321. end
  1322. end
  1323. end
  1324. end
  1325. if FIRED == false then
  1326. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1327. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1328. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1329. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1330. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1331. if HITBOD ~= nil then
  1332. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1333. Banish(HITBOD.Parent)
  1334. end
  1335. end
  1336. end
  1337. end
  1338. for i = 1, 45 do
  1339. Swait()
  1340. GATE.Size = GATE.Size - VT(3,0,3)
  1341. end
  1342. GATESPIN = false
  1343. GATE:remove()
  1344. end))
  1345. coroutine.resume(coroutine.create(function()
  1346. repeat
  1347. Swait()
  1348. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1349. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1350. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1351. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1352. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1353. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1354. until DONE == true
  1355. Swait(50)
  1356. for i = 1, 35 do
  1357. Swait(4)
  1358. local FIRED = false
  1359. local CHILDREN = workspace:GetDescendants()
  1360. for index, CHILD in pairs(CHILDREN) do
  1361. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1362. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1363. if HUM then
  1364. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1365. if TORSO then
  1366. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1367. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1368. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1369. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1370. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1371. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1372. Banish(CHILD)
  1373. FIRED = true
  1374. break
  1375. end
  1376. end
  1377. end
  1378. end
  1379. end
  1380. if FIRED == false then
  1381. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1382. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 359736717, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 6})
  1383. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1384. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1385. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1386. if HITBOD ~= nil then
  1387. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1388. Banish(HITBOD.Parent)
  1389. end
  1390. end
  1391. end
  1392. end
  1393. for i = 1, 45 do
  1394. Swait()
  1395. GATE.Size = GATE.Size - VT(3,0,3)
  1396. end
  1397. GATESPIN = false
  1398. GATE:remove()
  1399. end))
  1400. Swait(15)
  1401. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1402. GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Gate", VT(0,0,0))
  1403. local DECAL = IT("Decal",GATE)
  1404. DECAL.Texture = "http://www.roblox.com/asset/?id=59150776"
  1405. DECAL.Face = "Top"
  1406. GATE.CFrame = CF(HITPOS)
  1407. CreateSound(160772554, GATE, 7, 1.3, false)
  1408. for i = 1, 45 do
  1409. Swait()
  1410. GATE.Size = GATE.Size + VT(7,0,7)
  1411. end
  1412. CreateSound(145080998, RightHole, 7, 0.7, false)
  1413. CreateSound(145080998, LeftHole, 7, 0.7, false)
  1414. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1415. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(2,2,2), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1416. ATTACK = false
  1417. Rooted = false
  1418. DONE = true
  1419. end
  1420.  
  1421. function AttackTemplate()
  1422. ATTACK = true
  1423. Rooted = false
  1424. for i=0, 1, 0.1 / Animation_Speed do
  1425. Swait()
  1426. 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)
  1427. 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)
  1428. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1429. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1430. 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)
  1431. 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)
  1432. end
  1433. ATTACK = false
  1434. Rooted = false
  1435. end
  1436.  
  1437. function Laugh()
  1438. ATTACK = true
  1439. Rooted = true
  1440. local TAUNT = CreateSound(137473066,Torso,25,0.74,false)
  1441. coroutine.resume(coroutine.create(function()
  1442. repeat
  1443. CreateSound(363808674, Torso, 6, 1.1, false)
  1444. for i=0, 0.6, 0.1 / Animation_Speed do
  1445. Swait()
  1446. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1447. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  1448. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1449. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1450. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1451. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1452. end
  1453. CreateSound(363808674, Torso, 6, 1.1, false)
  1454. for i=0, 0.6, 0.1 / Animation_Speed do
  1455. Swait()
  1456. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1457. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  1458. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1459. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1460. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1461. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1462. end
  1463. CreateSound(363808674, Torso, 6, 1.1, false)
  1464. for i=0, 0.6, 0.1 / Animation_Speed do
  1465. Swait()
  1466. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1467. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  1468. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1469. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1470. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1471. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1472. end
  1473. CreateSound(363808674, Torso, 6, 1.1, false)
  1474. for i=0, 0.6, 0.1 / Animation_Speed do
  1475. Swait()
  1476. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1477. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  1478. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1479. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1480. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1481. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1482. end
  1483. CreateSound(363808674, Torso, 6, 1.1, false)
  1484. for i=0, 0.6, 0.1 / Animation_Speed do
  1485. Swait()
  1486. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1487. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  1488. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1489. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1490. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1491. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1492. end
  1493. until ATTACK == false
  1494. end))
  1495. repeat wait() until TAUNT.Playing == false
  1496. ATTACK = false
  1497. Rooted = false
  1498. end
  1499.  
  1500. --//=================================\\
  1501. --|| ASSIGN THINGS TO KEYS
  1502. --\\=================================//
  1503.  
  1504. function MouseDown(Mouse)
  1505. if ATTACK == false then
  1506. end
  1507. end
  1508.  
  1509. function MouseUp(Mouse)
  1510. HOLD = false
  1511. end
  1512.  
  1513. function KeyDown(Key)
  1514. KEYHOLD = true
  1515. if Key == "z" and ATTACK == false then
  1516. Bullet()
  1517. end
  1518.  
  1519. if Key == "f" and ATTACK == false then
  1520. chatfunc'You are now Another Ghost....'
  1521. for i = 0, 0.4, 0.03 / Animation_Speed do
  1522. Swait()
  1523. turnto(Mouse.Hit.p)
  1524. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1525. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1526. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1527. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1528. 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)
  1529. 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)
  1530. end
  1531. for i = 0, 0.2, 0.03 / Animation_Speed do
  1532. Swait()
  1533. turnto(Mouse.Hit.p)
  1534. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1535. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1536. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1537. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1538. 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)
  1539. 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)
  1540. end
  1541. TOBANISH = {}
  1542. end
  1543.  
  1544. if Key == "c" and ATTACK == false then
  1545. Payback()
  1546. end
  1547.  
  1548. if Key == "x" and ATTACK == false then
  1549. Guilty()
  1550. end
  1551.  
  1552. if Key == "t" and ATTACK == false then
  1553. Laugh()
  1554. end
  1555.  
  1556. if Key == "q" and ATTACK == false then
  1557. for i=0, 0.5, 0.06 / Animation_Speed do
  1558. Swait()
  1559. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1560. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  1561. end
  1562. local pos = RootPart.Position
  1563. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,5,0),pos)
  1564. end
  1565. end
  1566.  
  1567. function KeyUp(Key)
  1568. KEYHOLD = false
  1569. end
  1570.  
  1571. Mouse.Button1Down:connect(function(NEWKEY)
  1572. MouseDown(NEWKEY)
  1573. end)
  1574. Mouse.Button1Up:connect(function(NEWKEY)
  1575. MouseUp(NEWKEY)
  1576. end)
  1577. Mouse.KeyDown:connect(function(NEWKEY)
  1578. KeyDown(NEWKEY)
  1579. end)
  1580. Mouse.KeyUp:connect(function(NEWKEY)
  1581. KeyUp(NEWKEY)
  1582. end)
  1583.  
  1584. --//=================================\\
  1585. --\\=================================//
  1586.  
  1587.  
  1588. function unanchor()
  1589. if UNANCHOR == true then
  1590. g = Character:GetChildren()
  1591. for i = 1, #g do
  1592. if g[i].ClassName == "Part" then
  1593. g[i].Anchored = false
  1594. end
  1595. end
  1596. end
  1597. end
  1598.  
  1599.  
  1600. --//=================================\\
  1601. --|| WRAP THE WHOLE SCRIPT UP
  1602. --\\=================================//
  1603.  
  1604. Humanoid.Changed:connect(function(Jump)
  1605. if Jump == "Jump" and (Disable_Jump == true) then
  1606. Humanoid.Jump = false
  1607. end
  1608. end)
  1609.  
  1610. local CONNECT = nil
  1611.  
  1612. while true do
  1613. Swait()
  1614. ANIMATE.Parent = nil
  1615. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1616. Humanoid = IT("Humanoid",Character)
  1617. end
  1618. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1619. v:Stop();
  1620. end
  1621. SINE = SINE + CHANGE
  1622. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1623. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1624. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1625. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1626. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1627. 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)
  1628. 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)
  1629. 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)
  1630. 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)
  1631. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1632. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1633. 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)
  1634. 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)
  1635. 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)
  1636. end
  1637. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1638. ANIM = "Jump"
  1639. if ATTACK == false then
  1640. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1641. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1642. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1643. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1644. 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)
  1645. 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)
  1646. end
  1647. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1648. ANIM = "Fall"
  1649. if ATTACK == false then
  1650. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1651. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1652. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1653. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1654. 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)
  1655. 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)
  1656. end
  1657. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1658. ANIM = "Idle"
  1659. if ATTACK == false then
  1660. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1661. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  1662. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1663. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9, 0.25 + 0.05 * SIN(SINE / 12), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1664. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1665. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1666. end
  1667. end
  1668. if TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1669. ANIM = "Walk"
  1670. if ATTACK == false then
  1671. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  1672. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1673. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9, 0.25 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1674. end
  1675. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 2 / Animation_Speed)
  1676. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 2 / Animation_Speed)
  1677. end
  1678. end
  1679. refit()
  1680. unanchor()
  1681. Humanoid.MaxHealth = "inf"
  1682. Humanoid.Health = "inf"
  1683. if Rooted == false then
  1684. Disable_Jump = false
  1685. Humanoid.WalkSpeed = Speed
  1686. elseif Rooted == true then
  1687. Disable_Jump = true
  1688. Humanoid.WalkSpeed = 0
  1689. end
  1690.  
  1691. --//=================================\\
  1692. --\\=================================//
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698. --//====================================================\\--
  1699. --|| END OF SCRIPT
  1700. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement