Advertisement
Okkkkk

DARKNESS BANISHER FE

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