Advertisement
XSleepyDemonX_17

I m s o r r y .

Oct 7th, 2019
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 293.15 KB | None | 0 0
  1. -- D I E .--
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  7. local rp = RealPlayer
  8. script.Parent = rp.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,Functions={},Connect=function(self,f)table.insert(self.Functions,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 then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local Mouse = Player:GetMouse()
  67. local UIS = game:GetService("UserInputService")
  68. local input = function(io,a)
  69. if a then return end
  70. --Since InputObject is a client-side instance, we create and pass table instead
  71. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75.  
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then return s[k] end
  95. end,
  96. __newindex = function(self,k,v)
  97. local s = rawget(self,"_RealService")
  98. if s then s[k]=v end
  99. end,
  100. __call = function(self,...)
  101. local s = rawget(self,"_RealService")
  102. if s then return s(...) end
  103. end
  104. }
  105. local function FakeService(t,RealService)
  106. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  107. return setmetatable(t,fsmt)
  108. end
  109.  
  110. --Fake game object
  111. local g = {
  112. GetService = function(self,s)
  113. return self[s]
  114. end,
  115. Players = FakeService({
  116. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  117. },"Players"),
  118. UserInputService = FakeService(UIS,"UserInputService"),
  119. ContextActionService = FakeService(CAS,"ContextActionService"),
  120. }
  121. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  122. g.service = g.GetService
  123.  
  124. g.RunService = FakeService({
  125. RenderStepped = _rg:GetService("RunService").Heartbeat,
  126. BindToRenderStep = function(self,name,_,fun)
  127.  
  128. end,
  129. UnbindFromRenderStep = function(self,name)
  130. self._btrs[name]:Disconnect()
  131. end,
  132. },"RunService")
  133.  
  134. setmetatable(g,{
  135. __index=function(self,s)
  136. return _rg:GetService(s) or typeof(_rg[s])=="function"
  137. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  138. end,
  139. __newindex = fsmt.__newindex,
  140. __call = fsmt.__call
  141. })
  142. --Changing owner to fake player object to support owner:GetMouse()
  143. game,owner = g,g.Players.LocalPlayer
  144. end
  145.  
  146. script:ClearAllChildren()
  147. wait(0.2)
  148.  
  149. Player = game:GetService("Players").LocalPlayer
  150. PlayerGui = Player.PlayerGui
  151. Cam = workspace.CurrentCamera
  152. Backpack = Player.Backpack
  153. Character = Player.Character
  154. Humanoid = Character.Humanoid
  155. Mouse = Player:GetMouse()
  156. RootPart = Character["HumanoidRootPart"]
  157. Torso = Character["Torso"]
  158. Head = Character["Head"]
  159. RightArm = Character["Right Arm"]
  160. LeftArm = Character["Left Arm"]
  161. RightLeg = Character["Right Leg"]
  162. LeftLeg = Character["Left Leg"]
  163. RootJoint = RootPart["RootJoint"]
  164. Neck = Torso["Neck"]
  165. RightShoulder = Torso["Right Shoulder"]
  166. LeftShoulder = Torso["Left Shoulder"]
  167. RightHip = Torso["Right Hip"]
  168. LeftHip = Torso["Left Hip"]
  169. print('User: '..Player.Name)
  170. print('Enjoy this Edit ;D')
  171. local sick = Instance.new("Sound",Character)
  172. sick.Parent = Character
  173. sick:resume()
  174. sick.Volume = 5
  175. sick.Pitch = 0.85
  176. sick.Looped = true
  177. sick.SoundId = "rbxassetid://583415095"
  178. sick.Name = ""
  179. -------------Name Tag Stuff.------------------------
  180. local naeeym = Instance.new("BillboardGui",Character)
  181. naeeym.Size = UDim2.new(0,100,0,40)
  182. naeeym.StudsOffset = Vector3.new(0,2,0)
  183. naeeym.Adornee = Character.Head
  184. local tecks = Instance.new("TextLabel",naeeym)
  185. tecks.BackgroundTransparency = 1
  186. tecks.BorderSizePixel = 0
  187. tecks.Text = "W o r t h l e s s"
  188. tecks.Font = "Fantasy"
  189. tecks.FontSize = "Size24"
  190. tecks.TextStrokeTransparency = 0
  191. tecks.TextStrokeColor3 = Color3.new(1,1,1)
  192. tecks.TextColor3 = Color3.new(0,0,0)
  193. tecks.Size = UDim2.new(1,0,0.5,0)
  194. ----------------------------------------------------
  195. function chatfunc(text)
  196. local chat = coroutine.wrap(function()
  197. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  198. Character:FindFirstChild("TalkingBillBoard"):destroy()
  199. end
  200. local naeeym2 = Instance.new("BillboardGui",Character)
  201. naeeym2.Size = UDim2.new(0,100,0,40)
  202. naeeym2.StudsOffset = Vector3.new(0,3,0)
  203. naeeym2.Adornee = Character.Head
  204. naeeym2.Name = "TalkingBillBoard"
  205. local tecks2 = Instance.new("TextLabel",naeeym2)
  206. tecks2.BackgroundTransparency = 1
  207. tecks2.BorderSizePixel = 0
  208. tecks2.Text = ""
  209. tecks2.Font = "Fantasy"
  210. tecks2.TextSize = 30
  211. tecks2.TextStrokeTransparency = 0
  212. tecks2.TextColor3 = Color3.new(0,0,0)
  213. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  214. tecks2.Size = UDim2.new(1,0,0.5,0)
  215. local tecks3 = Instance.new("TextLabel",naeeym2)
  216. tecks3.BackgroundTransparency = 1
  217. tecks3.BorderSizePixel = 0
  218. tecks3.Text = ""
  219. tecks3.Font = "Fantasy"
  220. tecks3.TextSize = 30
  221. tecks3.TextStrokeTransparency = 0
  222. tecks3.TextColor3 = Color3.new(.6,0,0)
  223. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  224. tecks3.Size = UDim2.new(1,0,0.5,0)
  225. for i = 1,string.len(text),1 do
  226. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=387515658", Character, .6, .8)
  227. tecks2.Text = string.sub(text,1,i)
  228. tecks3.Text = string.sub(text,1,i)
  229. wait(0.01)
  230. end
  231. wait(2)
  232. for i = 1, 50 do
  233. swait()
  234. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  235. tecks2.Rotation = tecks2.Rotation - .8
  236. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  237. tecks2.TextTransparency = tecks2.TextTransparency + .04
  238. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  239. tecks3.Rotation = tecks2.Rotation + .8
  240. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  241. tecks3.TextTransparency = tecks2.TextTransparency + .04
  242. end
  243. naeeym2:Destroy()
  244. end)
  245. chat()
  246. end
  247. function onChatted(msg)
  248. chatfunc(msg)
  249. end
  250. Player.Chatted:connect(onChatted)
  251.  
  252. IT = Instance.new
  253. CF = CFrame.new
  254. VT = Vector3.new
  255. RAD = math.rad
  256. C3 = Color3.new
  257. UD2 = UDim2.new
  258. BRICKC = BrickColor.new
  259. ANGLES = CFrame.Angles
  260. EULER = CFrame.fromEulerAnglesXYZ
  261. COS = math.cos
  262. ACOS = math.acos
  263. SIN = math.sin
  264. ASIN = math.asin
  265. ABS = math.abs
  266. MRANDOM = math.random
  267. FLOOR = math.floor
  268.  
  269. local sky = Instance.new('Sky', game:GetService'Lighting')
  270. sky.SkyboxBk = "rbxassetid://48020371"
  271. sky.SkyboxDn = "rbxassetid://48020144"
  272. sky.SkyboxFt = "rbxassetid://48020234"
  273. sky.SkyboxLf = "rbxassetid://48020211"
  274. sky.SkyboxRt = "rbxassetid://48020254"
  275. sky.SkyboxUp = "rbxassetid://48020383"
  276. sky.StarCount = 3000
  277. sky.SunAngularSize = 0
  278. sky.MoonAngularSize = 11
  279. sky.MoonTextureId = "rbxasset://sky/moon.jpg"
  280. sky.CelestialBodiesShown = false
  281.  
  282. Character["Body Colors"].HeadColor = BrickColor.new("Really black")
  283.  
  284. --//=================================\\
  285. --|| USEFUL VALUES
  286. --\\=================================//
  287.  
  288. Player_Size = 1
  289. Animation_Speed = 3
  290. local FORCERESET = false
  291. local Effects2 = {}
  292. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  293. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  294. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  295. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  296. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  297. local DAMAGEMULTIPLIER = 1
  298. local SIZE = 1
  299. local ANIM = "Idle"
  300. local ATTACK = false
  301. local EQUIPPED = false
  302. local HOLD = false
  303. local COMBO = 1
  304. local Rooted = false
  305. local SINE = 0
  306. local KEYHOLD = false
  307. local CHANGE = 2 / Animation_Speed
  308. local WALKINGANIM = false
  309. local VALUE1 = false
  310. local VALUE2 = false
  311. local ROBLOXIDLEANIMATION = IT("Animation")
  312. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  313. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  314. --ROBLOXIDLEANIMATION.Parent = Humanoid
  315. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  316. WEAPONGUI.Name = "BanishV3Gui"
  317. local Weapon = IT("Model")
  318. Weapon.Name = "Adds"
  319. local Effects = IT("Folder", Weapon)
  320. Effects.Name = "Effects"
  321. local ANIMATOR = Humanoid.Animator
  322. local ANIMATE = Character:FindFirstChild("Animate")
  323. local UNANCHOR = true
  324. local TOBANISH = {}
  325. local ROAR = {528589078,528589175,528589274,528589382}
  326. script.Parent = PlayerGui
  327.  
  328. --//=================================\\
  329. --\\=================================//
  330.  
  331. local Speed = 18
  332.  
  333. --//=================================\\
  334. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  335. --\\=================================//
  336.  
  337. ArtificialHB = Instance.new("BindableEvent", script)
  338. ArtificialHB.Name = "ArtificialHB"
  339.  
  340. script:WaitForChild("ArtificialHB")
  341.  
  342. frame = Frame_Speed
  343. tf = 0
  344. allowframeloss = false
  345. tossremainder = false
  346. lastframe = tick()
  347. script.ArtificialHB:Fire()
  348.  
  349. game:GetService("RunService").Heartbeat:connect(function(s, p)
  350. tf = tf + s
  351. if tf >= frame then
  352. if allowframeloss then
  353. script.ArtificialHB:Fire()
  354. lastframe = tick()
  355. else
  356. for i = 1, math.floor(tf / frame) do
  357. script.ArtificialHB:Fire()
  358. end
  359. lastframe = tick()
  360. end
  361. if tossremainder then
  362. tf = 0
  363. else
  364. tf = tf - frame * math.floor(tf / frame)
  365. end
  366. end
  367. end)
  368.  
  369. --//=================================\\
  370. --\\=================================//
  371.  
  372. --//=================================\\
  373. --|| SOME FUNCTIONS
  374. --\\=================================//
  375.  
  376. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  377. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  378. end
  379.  
  380. function PositiveAngle(NUMBER)
  381. if NUMBER >= 0 then
  382. NUMBER = 0
  383. end
  384. return NUMBER
  385. end
  386.  
  387. function NegativeAngle(NUMBER)
  388. if NUMBER <= 0 then
  389. NUMBER = 0
  390. end
  391. return NUMBER
  392. end
  393.  
  394. function Swait(NUMBER)
  395. if NUMBER == 0 or NUMBER == nil then
  396. ArtificialHB.Event:wait()
  397. else
  398. for i = 1, NUMBER do
  399. ArtificialHB.Event:wait()
  400. end
  401. end
  402. end
  403.  
  404. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  405. local NEWMESH = IT(MESH)
  406. if MESH == "SpecialMesh" then
  407. NEWMESH.MeshType = MESHTYPE
  408. if MESHID ~= "nil" and MESHID ~= "" then
  409. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  410. end
  411. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  412. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  413. end
  414. end
  415. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  416. NEWMESH.Scale = SCALE
  417. NEWMESH.Parent = PARENT
  418. return NEWMESH
  419. end
  420.  
  421. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  422. local NEWPART = IT("Part")
  423. NEWPART.formFactor = FORMFACTOR
  424. NEWPART.Reflectance = REFLECTANCE
  425. NEWPART.Transparency = TRANSPARENCY
  426. NEWPART.CanCollide = false
  427. NEWPART.Locked = true
  428. NEWPART.Anchored = true
  429. if ANCHOR == false then
  430. NEWPART.Anchored = false
  431. end
  432. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  433. NEWPART.Name = NAME
  434. NEWPART.Size = SIZE
  435. NEWPART.Position = Torso.Position
  436. NEWPART.Material = MATERIAL
  437. NEWPART:BreakJoints()
  438. NEWPART.Parent = PARENT
  439. return NEWPART
  440. end
  441.  
  442. local function weldBetween(a, b)
  443. local weldd = Instance.new("ManualWeld")
  444. weldd.Part0 = a
  445. weldd.Part1 = b
  446. weldd.C0 = CFrame.new()
  447. weldd.C1 = b.CFrame:inverse() * a.CFrame
  448. weldd.Parent = a
  449. return weldd
  450. end
  451.  
  452.  
  453. function QuaternionFromCFrame(cf)
  454. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  455. local trace = m00 + m11 + m22
  456. if trace > 0 then
  457. local s = math.sqrt(1 + trace)
  458. local recip = 0.5 / s
  459. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  460. else
  461. local i = 0
  462. if m11 > m00 then
  463. i = 1
  464. end
  465. if m22 > (i == 0 and m00 or m11) then
  466. i = 2
  467. end
  468. if i == 0 then
  469. local s = math.sqrt(m00 - m11 - m22 + 1)
  470. local recip = 0.5 / s
  471. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  472. elseif i == 1 then
  473. local s = math.sqrt(m11 - m22 - m00 + 1)
  474. local recip = 0.5 / s
  475. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  476. elseif i == 2 then
  477. local s = math.sqrt(m22 - m00 - m11 + 1)
  478. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  479. end
  480. end
  481. end
  482.  
  483. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  484. local xs, ys, zs = x + x, y + y, z + z
  485. local wx, wy, wz = w * xs, w * ys, w * zs
  486. local xx = x * xs
  487. local xy = x * ys
  488. local xz = x * zs
  489. local yy = y * ys
  490. local yz = y * zs
  491. local zz = z * zs
  492. 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))
  493. end
  494.  
  495. function QuaternionSlerp(a, b, t)
  496. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  497. local startInterp, finishInterp;
  498. if cosTheta >= 0.0001 then
  499. if (1 - cosTheta) > 0.0001 then
  500. local theta = ACOS(cosTheta)
  501. local invSinTheta = 1 / SIN(theta)
  502. startInterp = SIN((1 - t) * theta) * invSinTheta
  503. finishInterp = SIN(t * theta) * invSinTheta
  504. else
  505. startInterp = 1 - t
  506. finishInterp = t
  507. end
  508. else
  509. if (1 + cosTheta) > 0.0001 then
  510. local theta = ACOS(-cosTheta)
  511. local invSinTheta = 1 / SIN(theta)
  512. startInterp = SIN((t - 1) * theta) * invSinTheta
  513. finishInterp = SIN(t * theta) * invSinTheta
  514. else
  515. startInterp = t - 1
  516. finishInterp = t
  517. end
  518. end
  519. 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
  520. end
  521.  
  522. function Clerp(a, b, t)
  523. local qa = {QuaternionFromCFrame(a)}
  524. local qb = {QuaternionFromCFrame(b)}
  525. local ax, ay, az = a.x, a.y, a.z
  526. local bx, by, bz = b.x, b.y, b.z
  527. local _t = 1 - t
  528. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  529. end
  530.  
  531. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  532. local frame = IT("Frame")
  533. frame.BackgroundTransparency = TRANSPARENCY
  534. frame.BorderSizePixel = BORDERSIZEPIXEL
  535. frame.Position = POSITION
  536. frame.Size = SIZE
  537. frame.BackgroundColor3 = COLOR
  538. frame.BorderColor3 = BORDERCOLOR
  539. frame.Name = NAME
  540. frame.Parent = PARENT
  541. return frame
  542. end
  543.  
  544. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  545. local label = IT("TextLabel")
  546. label.BackgroundTransparency = 1
  547. label.Size = UD2(1, 0, 1, 0)
  548. label.Position = UD2(0, 0, 0, 0)
  549. label.TextColor3 = TEXTCOLOR
  550. label.TextStrokeTransparency = STROKETRANSPARENCY
  551. label.TextTransparency = TRANSPARENCY
  552. label.FontSize = TEXTFONTSIZE
  553. label.Font = TEXTFONT
  554. label.BorderSizePixel = BORDERSIZEPIXEL
  555. label.TextScaled = false
  556. label.Text = TEXT
  557. label.Name = NAME
  558. label.Parent = PARENT
  559. return label
  560. end
  561.  
  562. function NoOutlines(PART)
  563. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  564. end
  565.  
  566. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  567. local NEWWELD = IT(TYPE)
  568. NEWWELD.Part0 = PART0
  569. NEWWELD.Part1 = PART1
  570. NEWWELD.C0 = C0
  571. NEWWELD.C1 = C1
  572. NEWWELD.Parent = PARENT
  573. return NEWWELD
  574. end
  575. local S = IT("Sound")
  576. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  577. local NEWSOUND = nil
  578. coroutine.resume(coroutine.create(function()
  579. NEWSOUND = S:Clone()
  580. NEWSOUND.Parent = PARENT
  581. NEWSOUND.Volume = VOLUME
  582. NEWSOUND.Pitch = PITCH
  583. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  584. NEWSOUND:play()
  585. if DOESLOOP == true then
  586. NEWSOUND.Looped = true
  587. else
  588. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  589. NEWSOUND:remove()
  590. end
  591. end))
  592. return NEWSOUND
  593. end
  594.  
  595. function CFrameFromTopBack(at, top, back)
  596. local right = top:Cross(back)
  597. 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)
  598. end
  599.  
  600. --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})
  601. function WACKYEFFECT(Table)
  602. local TYPE = (Table.EffectType or "Sphere")
  603. local SIZE = (Table.Size or VT(1,1,1))
  604. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  605. local TRANSPARENCY = (Table.Transparency or 0)
  606. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  607. local CFRAME = (Table.CFrame or Torso.CFrame)
  608. local MOVEDIRECTION = (Table.MoveToPos or nil)
  609. local ROTATION1 = (Table.RotationX or 0)
  610. local ROTATION2 = (Table.RotationY or 0)
  611. local ROTATION3 = (Table.RotationZ or 0)
  612. local MATERIAL = (Table.Material or "Neon")
  613. local COLOR = (Table.Color or C3(1,1,1))
  614. local TIME = (Table.Time or 45)
  615. local SOUNDID = (Table.SoundID or nil)
  616. local SOUNDPITCH = (Table.SoundPitch or nil)
  617. local SOUNDVOLUME = (Table.SoundVolume or nil)
  618. coroutine.resume(coroutine.create(function()
  619. local PLAYSSOUND = false
  620. local SOUND = nil
  621. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  622. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  623. PLAYSSOUND = true
  624. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  625. end
  626. EFFECT.Color = COLOR
  627. local MSH = nil
  628. if TYPE == "Sphere" then
  629. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  630. elseif TYPE == "Block" then
  631. MSH = IT("BlockMesh",EFFECT)
  632. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  633. elseif TYPE == "Wave" then
  634. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  635. elseif TYPE == "Ring" then
  636. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  637. elseif TYPE == "Slash" then
  638. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  639. elseif TYPE == "Round Slash" then
  640. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  641. elseif TYPE == "Swirl" then
  642. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  643. elseif TYPE == "Skull" then
  644. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  645. elseif TYPE == "Crystal" then
  646. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  647. end
  648. if MSH ~= nil then
  649. local MOVESPEED = nil
  650. if MOVEDIRECTION ~= nil then
  651. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  652. end
  653. local GROWTH = SIZE - ENDSIZE
  654. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  655. if TYPE == "Block" then
  656. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  657. else
  658. EFFECT.CFrame = CFRAME
  659. end
  660. for LOOP = 1, TIME+1 do
  661. Swait()
  662. MSH.Scale = MSH.Scale - GROWTH/TIME
  663. if TYPE == "Wave" then
  664. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  665. end
  666. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  667. if TYPE == "Block" then
  668. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  669. else
  670. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  671. end
  672. if MOVEDIRECTION ~= nil then
  673. local ORI = EFFECT.Orientation
  674. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  675. EFFECT.Orientation = ORI
  676. end
  677. end
  678. if PLAYSSOUND == false then
  679. EFFECT:remove()
  680. else
  681. SOUND.Stopped:Connect(function()
  682. EFFECT:remove()
  683. end)
  684. end
  685. else
  686. if PLAYSSOUND == false then
  687. EFFECT:remove()
  688. else
  689. repeat Swait() until SOUND.Playing == false
  690. EFFECT:remove()
  691. end
  692. end
  693. end))
  694. end
  695.  
  696. function MakeForm(PART,TYPE)
  697. if TYPE == "Cyl" then
  698. local MSH = IT("CylinderMesh",PART)
  699. elseif TYPE == "Ball" then
  700. local MSH = IT("SpecialMesh",PART)
  701. MSH.MeshType = "Sphere"
  702. elseif TYPE == "Wedge" then
  703. local MSH = IT("SpecialMesh",PART)
  704. MSH.MeshType = "Wedge"
  705. end
  706. end
  707.  
  708. function SpawnTrail(FROM,TO,BIG)
  709. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0))
  710. MakeForm(TRAIL,"Cyl")
  711. local DIST = (FROM - TO).Magnitude
  712. if BIG == true then
  713. TRAIL.Size = VT(4.5,DIST,4.5)
  714. else
  715. TRAIL.Size = VT(4.5,DIST,4.5)
  716. end
  717. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  718. coroutine.resume(coroutine.create(function()
  719. for i = 1, 5 do
  720. Swait()
  721. TRAIL.Transparency = TRAIL.Transparency + 0.1
  722. end
  723. TRAIL:remove()
  724. end))
  725. end
  726.  
  727. function SpawnTrail0(FROM,TO,BIG)
  728. local TRAIL0 = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(1,1,1))
  729. MakeForm(TRAIL0,"Cyl")
  730. local DIST = (FROM - TO).Magnitude
  731. if BIG == true then
  732. TRAIL0.Size = VT(0.75,DIST,0.75)
  733. else
  734. TRAIL0.Size = VT(0.65,DIST,0.65)
  735. end
  736. TRAIL0.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  737. coroutine.resume(coroutine.create(function()
  738. for i = 1, 5 do
  739. Swait()
  740. TRAIL0.Transparency = TRAIL0.Transparency + 0.1
  741. end
  742. TRAIL0:remove()
  743. end))
  744. end
  745.  
  746. Debris = game:GetService("Debris")
  747.  
  748. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  749. local DIRECTION = CF(StartPos,EndPos).lookVector
  750. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  751. end
  752.  
  753. function turnto(position)
  754. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  755. end
  756.  
  757. function swait(num)
  758. if num == 0 or num == nil then
  759. ArtificialHB.Event:wait()
  760. else
  761. for i = 0, num do
  762. ArtificialHB.Event:wait()
  763. end
  764. end
  765. end
  766.  
  767. function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  768. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  769. local mesh = IT("SpecialMesh",wave)
  770. mesh.MeshType = "FileMesh"
  771. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  772. mesh.Scale = SIZE
  773. mesh.Offset = VT(0,0,0)
  774. wave.CFrame = CFRAME
  775. coroutine.resume(coroutine.create(function(PART)
  776. for i = 1, WAIT do
  777. Swait()
  778. mesh.Scale = mesh.Scale + GROW
  779. if DOESROT == true then
  780. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  781. end
  782. wave.Transparency = wave.Transparency + (0.5/WAIT)
  783. if wave.Transparency > 0.99 then
  784. wave:remove()
  785. end
  786. end
  787. end))
  788. end
  789.  
  790. function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW)
  791. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  792. local mesh = IT("SpecialMesh",wave)
  793. mesh.MeshType = "Sphere"
  794. mesh.Scale = SIZE
  795. mesh.Offset = VT(0,0,0)
  796. wave.CFrame = CFRAME
  797. coroutine.resume(coroutine.create(function(PART)
  798. for i = 1, WAIT do
  799. Swait()
  800. mesh.Scale = mesh.Scale + GROW
  801. wave.Transparency = wave.Transparency + (1/WAIT)
  802. if wave.Transparency > 0.99 then
  803. wave:remove()
  804. end
  805. end
  806. end))
  807. end
  808.  
  809. function chatfunc(text)
  810. local chat = coroutine.wrap(function()
  811. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  812. Character:FindFirstChild("TalkingBillBoard"):destroy()
  813. end
  814. local Bill = Instance.new("BillboardGui",Character)
  815. Bill.Size = UDim2.new(0,100,0,40)
  816. Bill.StudsOffset = Vector3.new(0,3,0)
  817. Bill.Adornee = Character.Head
  818. Bill.Name = "TalkingBillBoard"
  819. local Hehe = Instance.new("TextLabel",Bill)
  820. Hehe.BackgroundTransparency = 1
  821. Hehe.BorderSizePixel = 0
  822. Hehe.Text = ""
  823. Hehe.Font = "Fantasy"
  824. Hehe.TextSize = 40
  825. Hehe.TextStrokeTransparency = 0
  826. Hehe.Size = UDim2.new(1,0,0.5,0)
  827. coroutine.resume(coroutine.create(function()
  828. while Hehe ~= nil do
  829. swait()
  830. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  831. Hehe.Rotation = math.random(-5,5)
  832. Hehe.TextColor3 = Color3.new(17,17,17)
  833. Hehe.TextStrokeColor3 = Color3.new(17,17,17)
  834. end
  835. end))
  836. for i = 1,string.len(text),1 do
  837. swait()
  838. Hehe.Text = string.sub(text,1,i)
  839. end
  840. swait(90)--Re[math.random(1, 93)]
  841. for i = 0, 1, .025 do
  842. swait()
  843. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  844. Hehe.TextStrokeTransparency = i
  845. Hehe.TextTransparency = i
  846. end
  847. Bill:Destroy()
  848. end)
  849. chat()
  850. end
  851.  
  852. function CheckTableForString(Table, String)
  853. for i, v in pairs(Table) do
  854. if string.find(string.lower(String), string.lower(v)) then
  855. return true
  856. end
  857. end
  858. return false
  859. end
  860.  
  861. function CheckIntangible(Hit)
  862. local ProjectileNames = {
  863. "Water",
  864. "Arrow",
  865. "Projectile",
  866. "Effect",
  867. "Rail",
  868. "Lightning",
  869. "Bullet"
  870. }
  871. if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  872. return true
  873. end
  874. return false
  875. end
  876.  
  877. --//=================================\\
  878. --|| WEAPON CREATION
  879. --\\=================================//
  880.  
  881. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  882. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  883. PRT.Color = C3(0,0,0)
  884. for i = 1, 35 do
  885. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Really black", "FaceGradient", VT(1.01,0.5,1.01),false)
  886. FACE.Color = C3(0,0,0)
  887. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  888. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  889. end
  890. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  891. PRT.Color = C3(0,0,0)
  892. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  893. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  894. local EyePiece1 = CreatePart(3, Character, "Neon", 0, 0, "Really black", "EyePiece1", VT(0.6,0.1,1)/2,false)
  895. MakeForm(EyePiece1,"Ball")
  896. CreateWeldOrSnapOrMotor("Weld", EyePiece1, Head, EyePiece1, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  897. local EyePiece2 = CreatePart(3, Character, "Neon", 0, 0, "Industrial white", "EyePiece2", VT(0.1,1,1)/2,false)
  898. MakeForm(EyePiece2,"Ball")
  899. CreateWeldOrSnapOrMotor("Weld", EyePiece2, Head, EyePiece2, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  900.  
  901. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "", "Scarf", VT(1,1,1),false)
  902. PRT.Color = C3(0,0,0)
  903. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  904. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  905. for i = 1, 16 do
  906. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Industrial white", "FaceGradient", VT(1.01,0.65,1.01),false)
  907. FACE.Color = C3(0,0,0)
  908. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  909. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
  910. end
  911.  
  912. function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT)
  913. if FLOOR ~= nil then
  914. coroutine.resume(coroutine.create(function()
  915. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0))
  916. PART.CFrame = CF(POSITION)
  917. for i = 1, 45 do
  918. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  919. RingPiece.Material = FLOOR.Material
  920. RingPiece.Color = FLOOR.Color
  921. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  922. Debris:AddItem(RingPiece, SWAIT)
  923. end
  924. PART:remove()
  925. end))
  926. end
  927. end
  928. function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH)
  929. if FLOOR ~= nil then
  930. for i = 1, AMOUNT do
  931. do
  932. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  933. DEBREE.Material = FLOOR.Material
  934. DEBREE.Color = FLOOR.Color
  935. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  936. DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH))
  937. coroutine.resume(coroutine.create(function()
  938. Swait(15)
  939. DEBREE.Parent = workspace
  940. DEBREE.CanCollide = true
  941. Debris:AddItem(DEBREE, SWAIT)
  942. end))
  943. end
  944. end
  945. end
  946. end
  947.  
  948. local Particle = IT("ParticleEmitter",nil)
  949. Particle.Enabled = false
  950. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  951. Particle.LightEmission = 0.88
  952. Particle.Rate = 250
  953. Particle.ZOffset = 0.2
  954. Particle.Rotation = NumberRange.new(-180, 180)
  955. Particle.RotSpeed = NumberRange.new(-180, 180)
  956. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  957. Particle.Color = ColorSequence.new(C3(255,255,255),C3(255,255,255))
  958.  
  959. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  960. function ParticleEmitter(Table)
  961. local PRTCL = Particle:Clone()
  962. local Speed = Table.Speed or 5
  963. local Drag = Table.Drag or 0
  964. local Size1 = Table.Size1 or 1
  965. local Size2 = Table.Size2 or 5
  966. local Lifetime1 = Table.Lifetime1 or 1
  967. local Lifetime2 = Table.Lifetime2 or 1.5
  968. local Parent = Table.Parent or Torso
  969. local Emit = Table.Emit or 100
  970. local Offset = Table.Offset or 360
  971. local Acel = Table.Acel or VT(0,0,0)
  972. local Enabled = Table.Enabled or false
  973. PRTCL.Parent = Parent
  974. PRTCL.Size = NumberSequence.new(Size1,Size2)
  975. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  976. PRTCL.Speed = NumberRange.new(Speed)
  977. PRTCL.VelocitySpread = Offset
  978. PRTCL.Drag = Drag
  979. PRTCL.Acceleration = Acel
  980. if Enabled == false then
  981. PRTCL:Emit(Emit)
  982. Debris:AddItem(PRTCL,Lifetime2)
  983. else
  984. PRTCL.Enabled = true
  985. end
  986. return PRTCL
  987. end
  988.  
  989. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  990. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  991. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  992. MakeForm(Part,"Wedge")
  993. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  994. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  995. MakeForm(Part,"Wedge")
  996. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  997. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  998. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  999. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1000. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1001. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1002. MakeForm(Part,"Cyl")
  1003. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1004. for i = 1, 8 do
  1005. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1006. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1007. end
  1008. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1009. MakeForm(Part,"Cyl")
  1010. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1011. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1012. MakeForm(Part,"Ball")
  1013. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1014. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1015. MakeForm(Part,"Wedge")
  1016. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1017. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1018. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1019. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1020. MakeForm(Part,"Cyl")
  1021. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1022. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1023. MakeForm(Part,"Cyl")
  1024. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1025. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1026. MakeForm(Part,"Cyl")
  1027. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1028. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1029. MakeForm(Part,"Wedge")
  1030. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1031. local LASTPART = Handle
  1032. for i = 1, 10 do
  1033. if LASTPART == Handle then
  1034. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1035. LASTPART = Part
  1036. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1037. else
  1038. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1039. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1040. LASTPART = Part
  1041. end
  1042. end
  1043.  
  1044. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1045. MakeForm(Barrel,"Cyl")
  1046. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1047. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1048. MakeForm(Part,"Cyl")
  1049. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1050. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1051. MakeForm(Part,"Wedge")
  1052. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1053. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1054. MakeForm(Hole,"Cyl")
  1055. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1056. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1057. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1058. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1059. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1060. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1061. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1062. coroutine.resume(coroutine.create(function()
  1063. while wait() do
  1064. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1065. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1066. end
  1067. end))
  1068.  
  1069. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.4, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1070. --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)})
  1071.  
  1072. for _, c in pairs(Weapon:GetDescendants()) do
  1073. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1074. c.Material = "Glass"
  1075. c.Color = C3(0,0,0)
  1076. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1077. c.Color = C3(1,1,1)
  1078. c.Material = "Neon"
  1079. end
  1080. end
  1081.  
  1082. Weapon.Parent = Character
  1083. for _, c in pairs(Weapon:GetChildren()) do
  1084. if c.ClassName == "Part" then
  1085. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1086. end
  1087. end
  1088.  
  1089. local SKILLTEXTCOLOR = C3(1,1,1)
  1090. local SKILLFONT = "Bodoni"
  1091. local SKILLTEXTSIZE = 5
  1092.  
  1093. Humanoid.Died:connect(function()
  1094. ATTACK = true
  1095. end)
  1096. Humanoid.Died:connect(function()
  1097. Humanoid.Parent = nil
  1098. chatfunc("I don't have any crimes to DIE!")
  1099. ApplyAoE(RootPart, 955, 9999, 9999, 9999, true)
  1100. Humanoid.Name = "DEAD!"
  1101. Humanoid.MaxHealth = 16e+16
  1102. Humanoid.Health = 16e+16
  1103. CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(10,10,10))
  1104. CreateSound("178452217", Effects, 10, 1)
  1105. MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Really black",VT(500,500,500))
  1106. end)
  1107.  
  1108. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1109. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1110. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1111. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  1112. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.20, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1113. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.03, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1114.  
  1115. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "Z - Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
  1116. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "X - Pure Heaven", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
  1117. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "F - Heaven's Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
  1118. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "V - Gates Of Darkness", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
  1119. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "C - ROAR", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
  1120. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "Q - Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6")
  1121.  
  1122. workspace.ChildAdded:connect(function(instance)
  1123. for BANISH = 1, #TOBANISH do
  1124. if TOBANISH[BANISH] ~= nil then
  1125. if instance.Name == TOBANISH[BANISH] then
  1126. coroutine.resume(coroutine.create(function()
  1127. printbye(instance.Name)
  1128. instance:ClearAllChildren()
  1129. Debris:AddItem(instance,0.0005)
  1130. end))
  1131. end
  1132. end
  1133. end
  1134. end)
  1135.  
  1136. --//=================================\\
  1137. --|| DAMAGING
  1138. --\\=================================//
  1139.  
  1140. function Banish(Foe)
  1141. if Foe then
  1142. coroutine.resume(coroutine.create(function()
  1143. --if game.Players:FindFirstChild(Foe.Name) then
  1144. table.insert(TOBANISH,Foe.Name)
  1145. printbye(Foe.Name)
  1146. --end
  1147. Foe.Archivable = true
  1148. local CLONE = Foe:Clone()
  1149. Foe:Destroy()
  1150. CLONE.Parent = Effects
  1151. CLONE:BreakJoints()
  1152. local MATERIALS = {"Glass","Neon"}
  1153. for _, c in pairs(CLONE:GetDescendants()) do
  1154. if c:IsA("BasePart") then
  1155. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1156. CreateSound(340722848, c, 10, 1, false)
  1157. end
  1158. c.Anchored = true
  1159. c.Transparency = c.Transparency + 0.2
  1160. c.Material = MATERIALS[MRANDOM(1,2)]
  1161. c.Color = C3(1 ,1 ,1)
  1162. if c.ClassName == "MeshPart" then
  1163. c.TextureID = ""
  1164. end
  1165. if c:FindFirstChildOfClass("SpecialMesh") then
  1166. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1167. end
  1168. if c:FindFirstChildOfClass("Decal") then
  1169. c:FindFirstChildOfClass("Decal"):remove()
  1170. end
  1171. c.Name = "Banished"
  1172. c.CanCollide = false
  1173. else
  1174. c:remove()
  1175. end
  1176. end
  1177. local A = false
  1178. for i = 1, 35 do
  1179. if A == false then
  1180. A = true
  1181. elseif A == true then
  1182. A = false
  1183. end
  1184. for _, c in pairs(CLONE:GetDescendants()) do
  1185. if c:IsA("BasePart") then
  1186. c.Anchored = true
  1187. c.Material = MATERIALS[MRANDOM(1,2)]
  1188. c.Transparency = c.Transparency + 0.8/35
  1189. if A == false then
  1190. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1191. elseif A == true then
  1192. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1193. end
  1194. end
  1195. end
  1196. Swait()
  1197. end
  1198. CLONE:remove()
  1199. end))
  1200. end
  1201. end
  1202.  
  1203. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1204. local CHILDREN = workspace:GetDescendants()
  1205. for index, CHILD in pairs(CHILDREN) do
  1206. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1207. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1208. if HUM then
  1209. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1210. if TORSO then
  1211. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1212. if ISBANISH == true then
  1213. Banish(CHILD)
  1214. else
  1215. if ISBANISH == "Gravity" then
  1216. HUM.PlatformStand = true
  1217. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1218. local grav = Instance.new("BodyPosition",TORSO)
  1219. grav.D = 15
  1220. grav.P = 20000
  1221. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1222. grav.position = TORSO.Position
  1223. grav.Name = "V3BanishForce"..Player.Name
  1224. else
  1225. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1226. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1227. end
  1228. else
  1229. HUM.PlatformStand = false
  1230. end
  1231. end
  1232. elseif ISBANISH == "Gravity" then
  1233. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1234. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1235. HUM.PlatformStand = false
  1236. end
  1237. end
  1238. end
  1239. end
  1240. end
  1241. end
  1242. end
  1243. function recurse(root,callback,i)
  1244. i= i or 0
  1245. for _,v in pairs(root:GetChildren()) do
  1246. i = i + 1
  1247. callback(i,v)
  1248.  
  1249. if #v:GetChildren() > 0 then
  1250. i = recurse(v,callback,i)
  1251. end
  1252. end
  1253.  
  1254. return i
  1255. end
  1256. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  1257. attachmentName = attachmentName.."RigAttachment"
  1258. local constraint = Instance.new(className.."Constraint")
  1259. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  1260. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  1261. constraint.Name = "RagdollConstraint"..part1.Name
  1262.  
  1263. for _,propertyData in next,properties or {} do
  1264. constraint[propertyData[1]] = propertyData[2]
  1265. end
  1266.  
  1267. constraint.Parent = character
  1268. end
  1269. function getAttachment0(character, attachmentName)
  1270. for _,child in next,character:GetChildren() do
  1271. local attachment = child:FindFirstChild(attachmentName)
  1272. if attachment then
  1273. return attachment
  1274. end
  1275. end
  1276. end
  1277.  
  1278. function ArtificialHitbox(Part)
  1279. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  1280. HITBOX.CanCollide = true
  1281. HITBOX.CFrame = Part.CFrame
  1282. weldBetween(Part,HITBOX)
  1283. end
  1284. function R15Ragdoll(character,KeepArms)
  1285. character:BreakJoints()
  1286. coroutine.resume(coroutine.create(function()
  1287. recurse(character, function(_,v)
  1288. if v:IsA("Attachment") then
  1289. v.Axis = Vector3.new(0, 1, 0)
  1290. v.SecondaryAxis = Vector3.new(0, 0, 1)
  1291. v.Rotation = Vector3.new(0, 0, 0)
  1292. end
  1293. end)
  1294. for _,child in next,character:GetChildren() do
  1295. if child:IsA("Accoutrement") then
  1296. for _,part in next,child:GetChildren() do
  1297. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  1298. local attachment1 = part:FindFirstChildOfClass("Attachment")
  1299. local attachment0 = getAttachment0(character,attachment1.Name)
  1300. if attachment0 and attachment1 then
  1301. local constraint = Instance.new("HingeConstraint")
  1302. constraint.Attachment0 = attachment0
  1303. constraint.Attachment1 = attachment1
  1304. constraint.LimitsEnabled = true
  1305. constraint.UpperAngle = 0
  1306. constraint.LowerAngle = 0
  1307. constraint.Parent = character
  1308. end
  1309. ArtificialHitbox(part)
  1310. elseif part.Name == "HumanoidRootPart" then
  1311. part:remove()
  1312. end
  1313. end
  1314. end
  1315. end
  1316.  
  1317. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  1318. {"LimitsEnabled",true};
  1319. {"UpperAngle",5};
  1320. })
  1321. if character:FindFirstChild("Head") then
  1322. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  1323. {"LimitsEnabled",true};
  1324. {"UpperAngle",15};
  1325. })
  1326. end
  1327.  
  1328. local handProperties = {
  1329. {"LimitsEnabled", true};
  1330. {"UpperAngle",0};
  1331. {"LowerAngle",0};
  1332. }
  1333. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  1334. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  1335.  
  1336. local shinProperties = {
  1337. {"LimitsEnabled", true};
  1338. {"UpperAngle", 0};
  1339. {"LowerAngle", -75};
  1340. }
  1341. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  1342. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  1343.  
  1344. local footProperties = {
  1345. {"LimitsEnabled", true};
  1346. {"UpperAngle", 15};
  1347. {"LowerAngle", -45};
  1348. }
  1349. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  1350. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  1351. if KeepArms == true then
  1352. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  1353. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  1354. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  1355. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  1356. end
  1357. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  1358. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  1359. Debris:AddItem(character,5)
  1360. end))
  1361. end
  1362.  
  1363. function Ragdoll(Character2,CharTorso,KeepArms)
  1364. coroutine.resume(coroutine.create(function()
  1365. Character2:BreakJoints()
  1366. local hum = Character2:findFirstChild("Humanoid")
  1367. hum:remove()
  1368. local function Scan(ch)
  1369. local e
  1370. for e = 1,#ch do
  1371. Scan(ch[e]:GetChildren())
  1372. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1373. ch[e]:remove()
  1374. end
  1375. end
  1376. end
  1377. local NEWHUM = IT("Humanoid")
  1378. NEWHUM.Name = "Corpse"
  1379. NEWHUM.Health = 0
  1380. NEWHUM.MaxHealth = 0
  1381. NEWHUM.PlatformStand = true
  1382. NEWHUM.Parent = Character2
  1383. NEWHUM.DisplayDistanceType = "None"
  1384.  
  1385. local ch = Character2:GetChildren()
  1386. local i
  1387. for i = 1,#ch do
  1388. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1389. ch[i]:remove()
  1390. end
  1391. end
  1392.  
  1393. local Torso2 = Character2.Torso
  1394. local movevector = Vector3.new()
  1395.  
  1396. if Torso2 then
  1397. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1398. local Head = Character2:FindFirstChild("Head")
  1399. if Head then
  1400. local Neck = Instance.new("Weld")
  1401. Neck.Name = "Neck"
  1402. Neck.Part0 = Torso2
  1403. Neck.Part1 = Head
  1404. Neck.C0 = CFrame.new(0, 1.5, 0)
  1405. Neck.C1 = CFrame.new()
  1406. Neck.Parent = Torso2
  1407.  
  1408. end
  1409. local Limb = Character2:FindFirstChild("Right Arm")
  1410. if Limb and KeepArms == true then
  1411.  
  1412. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1413. local Joint = Instance.new("Glue")
  1414. Joint.Name = "RightShoulder"
  1415. Joint.Part0 = Torso2
  1416. Joint.Part1 = Limb
  1417. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1418. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1419. Joint.Parent = Torso2
  1420.  
  1421. local B = Instance.new("Part")
  1422. B.TopSurface = 0
  1423. B.BottomSurface = 0
  1424. B.formFactor = "Symmetric"
  1425. B.Size = Vector3.new(1, 1, 1)
  1426. B.Transparency = 1
  1427. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1428. B.Parent = Character2
  1429. local W = Instance.new("Weld")
  1430. W.Part0 = Limb
  1431. W.Part1 = B
  1432. W.C0 = CFrame.new(0, -0.5, 0)
  1433. W.Parent = Limb
  1434.  
  1435. end
  1436. local Limb = Character2:FindFirstChild("Left Arm")
  1437. if Limb and KeepArms == true then
  1438.  
  1439. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1440. local Joint = Instance.new("Glue")
  1441. Joint.Name = "LeftShoulder"
  1442. Joint.Part0 = Torso2
  1443. Joint.Part1 = Limb
  1444. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1445. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1446. Joint.Parent = Torso2
  1447.  
  1448. local B = Instance.new("Part")
  1449. B.TopSurface = 0
  1450. B.BottomSurface = 0
  1451. B.formFactor = "Symmetric"
  1452. B.Size = Vector3.new(1, 1, 1)
  1453. B.Transparency = 1
  1454. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1455. B.Parent = Character2
  1456. local W = Instance.new("Weld")
  1457. W.Part0 = Limb
  1458. W.Part1 = B
  1459. W.C0 = CFrame.new(0, -0.5, 0)
  1460. W.Parent = Limb
  1461.  
  1462. end
  1463. local Limb = Character2:FindFirstChild("Right Leg")
  1464. if Limb then
  1465.  
  1466. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1467. local Joint = Instance.new("Glue")
  1468. Joint.Name = "RightHip"
  1469. Joint.Part0 = Torso2
  1470. Joint.Part1 = Limb
  1471. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1472. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1473. Joint.Parent = Torso2
  1474.  
  1475. local B = Instance.new("Part")
  1476. B.TopSurface = 0
  1477. B.BottomSurface = 0
  1478. B.formFactor = "Symmetric"
  1479. B.Size = Vector3.new(1, 1, 1)
  1480. B.Transparency = 1
  1481. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1482. B.Parent = Character2
  1483. local W = Instance.new("Weld")
  1484. W.Part0 = Limb
  1485. W.Part1 = B
  1486. W.C0 = CFrame.new(0, -0.5, 0)
  1487. W.Parent = Limb
  1488.  
  1489. end
  1490. local Limb = Character2:FindFirstChild("Left Leg")
  1491. if Limb then
  1492.  
  1493. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1494. local Joint = Instance.new("Glue")
  1495. Joint.Name = "LeftHip"
  1496. Joint.Part0 = Torso2
  1497. Joint.Part1 = Limb
  1498. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1499. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1500. Joint.Parent = Torso2
  1501.  
  1502. local B = Instance.new("Part")
  1503. B.TopSurface = 0
  1504. B.BottomSurface = 0
  1505. B.formFactor = "Symmetric"
  1506. B.Size = Vector3.new(1, 1, 1)
  1507. B.Transparency = 1
  1508. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1509. B.Parent = Character2
  1510. local W = Instance.new("Weld")
  1511. W.Part0 = Limb
  1512. W.Part1 = B
  1513. W.C0 = CFrame.new(0, -0.5, 0)
  1514. W.Parent = Limb
  1515.  
  1516. end
  1517. --[
  1518. local Bar = Instance.new("Part")
  1519. Bar.TopSurface = 0
  1520. Bar.BottomSurface = 0
  1521. Bar.formFactor = "Symmetric"
  1522. Bar.Size = Vector3.new(1, 1, 1)
  1523. Bar.Transparency = 1
  1524. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1525. Bar.Parent = Character2
  1526. local Weld = Instance.new("Weld")
  1527. Weld.Part0 = Torso2
  1528. Weld.Part1 = Bar
  1529. Weld.C0 = CFrame.new(0, 0.5, 0)
  1530. Weld.Parent = Torso2
  1531. --]]
  1532. end
  1533. Character2.Parent = workspace
  1534. Debris:AddItem(Character2,5)
  1535.  
  1536. return Character2,Torso2
  1537. end))
  1538. end
  1539.  
  1540. --//=================================\\
  1541. --|| ATTACK FUNCTIONS AND STUFF
  1542. --\\=================================//
  1543. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1544. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1545. local mesh = IT("SpecialMesh",wave)
  1546. mesh.MeshType = "Sphere"
  1547. mesh.Scale = SIZE
  1548. mesh.Offset = VT(0,0,0)
  1549. wave.CFrame = CFRAME
  1550. coroutine.resume(coroutine.create(function(PART)
  1551. for i = 1, WAIT do
  1552. Swait()
  1553. mesh.Scale = mesh.Scale + GROW
  1554. wave.Transparency = wave.Transparency + (1/WAIT)
  1555. if wave.Transparency > 0.99 then
  1556. wave:remove()
  1557. end
  1558. end
  1559. end))
  1560. end
  1561. function Roar()
  1562. ATTACK = true
  1563. Rooted = true
  1564. local VIOLENCE = 1
  1565. FORCEIDLE = true
  1566. FORCEIDLE = false
  1567. if VIOLENCE <= 10 then
  1568. MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(2,2,2))
  1569. for i=0, 1, 0.1 / Animation_Speed do
  1570. Swait()
  1571. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1572. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1573. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(22)) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1574. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(-22)) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1575. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1576. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1577. end
  1578. local TAUNT = CreateSound(ROAR[MRANDOM(1,#ROAR)], Head, 100, 1, false)
  1579. repeat Swait() until TAUNT.TimeLength > 0
  1580. repeat
  1581. Swait()
  1582. ApplyAoE(Head.Position,15,0,0,200,false)
  1583. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1584. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(150,0,150), Transparency = 1, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  1585. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(350,0,350), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  1586. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
  1587. TAUNT.Parent = Head
  1588. Swait()
  1589. TAUNT.Parent = Head
  1590. local CHILDREN = workspace:GetDescendants()
  1591. for index, CHILD in pairs(CHILDREN) do
  1592. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1593. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1594. if HUM then
  1595. local TORSO = CHILD:FindFirstChild("Head")
  1596. if TORSO then
  1597. if (TORSO.Position - Head.Position).Magnitude <= 999 then
  1598. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1599. TORSO:remove()
  1600. if CHILD:FindFirstChild("Torso") then
  1601. Ragdoll(CHILD,Torso,true)
  1602. elseif CHILD:FindFirstChild("UpperTorso") then
  1603. R15Ragdoll(CHILD,true)
  1604. end
  1605. end
  1606. end
  1607. end
  1608. end
  1609. end
  1610. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, -0.2*SIZE, -0.1*SIZE) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1611. 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)
  1612. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(-35), RAD(0), RAD(42)) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1613. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(-35), RAD(0), RAD(-42)) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1614. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(25), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1615. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(45), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1616. until TAUNT.TimePosition > TAUNT.TimeLength - 2
  1617. end
  1618. MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5))
  1619. ATTACK = false
  1620. Rooted = false
  1621. end
  1622. function Shot()
  1623. ATTACK = true
  1624. Rooted = false
  1625. MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5))
  1626. MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5))
  1627. for i=0, 0.5, 0.22 / Animation_Speed do
  1628. Swait()
  1629. turnto(Mouse.Hit.p)
  1630. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1631. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1632. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1633. 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)
  1634. 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)
  1635. end
  1636. repeat
  1637. for i=0, 0.5, 0.22 / Animation_Speed do
  1638. Swait()
  1639. turnto(Mouse.Hit.p)
  1640. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1641. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1642. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1643. 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)
  1644. 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)
  1645. end
  1646. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1647. SpawnTrail0(Hole.Position,POS)
  1648. if HIT ~= nil then
  1649. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1650. Banish(HIT.Parent)
  1651. end
  1652. end
  1653. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(4,4,4).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1654. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 904440937, SoundPitch = 1, SoundVolume = 10})
  1655. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), 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 = 1, SoundVolume = 8})
  1656. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), 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 = 1, SoundVolume = 8})
  1657. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1658. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(150,0,150), Transparency = 1, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  1659. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(350,0,350), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  1660. for i=0, 0.5, 0.22 / Animation_Speed do
  1661. Swait()
  1662. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1663. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1664. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1665. 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)
  1666. 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)
  1667. end
  1668. MagicSphere(VT(0,0,0),15,Head.CFrame,"Really black",VT(5,5,5))
  1669. until KEYHOLD == false
  1670. ATTACK = false
  1671. Rooted = false
  1672. end
  1673. function CreateDebreeRing2(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1674. if FLOOR ~= nil then
  1675. coroutine.resume(coroutine.create(function()
  1676. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really black", "DebreeCenter", VT(0,0,0))
  1677. PART.CFrame = CF(POSITION)
  1678. for i = 1, 45 do
  1679. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really black", "DebreePart", BLOCKSIZE)
  1680. RingPiece.Material = FLOOR.Material
  1681. RingPiece.Color = FLOOR.Color
  1682. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1683. Debris:AddItem(RingPiece,SWAIT)
  1684. end
  1685. PART:remove()
  1686. end))
  1687. end
  1688. end
  1689.  
  1690. function CreateFlyingDebree2(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1691. if FLOOR ~= nil then
  1692. for i = 1, AMOUNT do
  1693. local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Debree", BLOCKSIZE, false)
  1694. DEBREE.Material = FLOOR.Material
  1695. DEBREE.Color = FLOOR.Color
  1696. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1697. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
  1698. coroutine.resume(coroutine.create(function()
  1699. Swait(15)
  1700. DEBREE.Parent = workspace
  1701. DEBREE.CanCollide = true
  1702. Debris:AddItem(DEBREE,SWAIT)
  1703. end))
  1704. end
  1705. end
  1706. end
  1707. function Pure_Heaven()
  1708. chatfunc("It will be over soon...")
  1709. ATTACK = true
  1710. Rooted = true
  1711. for i = 1, 15 do
  1712. Swait()
  1713. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1714. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed)
  1715. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1716. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1717. end
  1718. for i=0, 0.5, 0.1 / Animation_Speed do
  1719. Swait()
  1720. 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(65 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1721. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-65 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1722. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1723. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1724. end
  1725. coroutine.resume(coroutine.create(function()
  1726. local POS = Mouse.Hit.p
  1727. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  1728. MakeForm(RAY,"Cyl")
  1729. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  1730. MakeForm(SPHERE,"Ball")
  1731. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
  1732. MakeForm(SHIELD,"Ball")
  1733. SHIELD.CFrame = CF(POS)
  1734. RAY.CFrame = CF(POS)
  1735. SPHERE.CFrame = CF(POS)
  1736. CreateSound(440145570, SPHERE, 15, 0.5, false)
  1737. CreateSound(415700134, SPHERE, 15, 0.5, false)
  1738. for i = 1, 200 do
  1739. Swait()
  1740. 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})
  1741. RAY.Size = RAY.Size + VT(0.5,0,0.5)
  1742. SPHERE.Size = SPHERE.Size + VT(1.5,1.5,1.5)
  1743. SHIELD.Size = SPHERE.Size + VT(2.5,2.5,2.5)
  1744. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1745. end
  1746. for i = 1, 45 do
  1747. Swait()
  1748. RAY.Transparency = RAY.Transparency + 1/45
  1749. SPHERE.Transparency = RAY.Transparency
  1750. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1751. end
  1752. RAY:remove()
  1753. SHIELD:remove()
  1754. SPHERE:remove()
  1755. end))
  1756. for i=0, 1, 0.1 / Animation_Speed do
  1757. Swait()
  1758. 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)
  1759. 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)
  1760. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1761. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1762. 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)
  1763. 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)
  1764. end
  1765. ATTACK = false
  1766. Rooted = false
  1767. end
  1768. function printbye(Name)
  1769. local MESSAGES = {"D I E , ","S U F F E R , ",": ), ","S O R R Y, "}
  1770. chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1771. end
  1772. local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  1773. MakeForm(RightHole,"Cyl")
  1774. local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  1775. MakeForm(LeftHole,"Cyl")
  1776. function Gates_Of_Darkness()
  1777. chatfunc("F o r g i v e n . . .")
  1778. CreateSound(0, Torso, 10, 1, false)
  1779. ATTACK = true
  1780. Rooted = true
  1781. for i=0, 0.5, 0.1 / Animation_Speed do
  1782. Swait()
  1783. 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)
  1784. 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)
  1785. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1786. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1787. 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)
  1788. 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)
  1789. end
  1790. local DONE = false
  1791. local GATE = nil
  1792. local GATESPIN = true
  1793. coroutine.resume(coroutine.create(function()
  1794. repeat
  1795. Swait()
  1796. if GATE ~= nil then
  1797. GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0))
  1798. end
  1799. until GATESPIN == false
  1800. end))
  1801. coroutine.resume(coroutine.create(function()
  1802. repeat
  1803. Swait()
  1804. 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)
  1805. 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)
  1806. 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)
  1807. 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)
  1808. 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)
  1809. 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)
  1810. until DONE == true
  1811. Swait(50)
  1812. for i = 1, 35 do
  1813. Swait(4)
  1814. local FIRED = false
  1815. local CHILDREN = workspace:GetDescendants()
  1816. for index, CHILD in pairs(CHILDREN) do
  1817. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1818. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1819. if HUM then
  1820. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1821. if TORSO then
  1822. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1823. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1824. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1825. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1826. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1827. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1828. Banish(CHILD)
  1829. FIRED = true
  1830. break
  1831. end
  1832. end
  1833. end
  1834. end
  1835. end
  1836. if FIRED == false then
  1837. 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)))
  1838. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1839. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1840. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  1841. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1842. if HITBOD ~= nil then
  1843. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1844. Banish(HITBOD.Parent)
  1845. end
  1846. end
  1847. end
  1848. end
  1849. for i = 1, 35 do
  1850. Swait(4)
  1851. local FIRED = false
  1852. local CHILDREN = workspace:GetDescendants()
  1853. for index, CHILD in pairs(CHILDREN) do
  1854. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1855. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1856. if HUM then
  1857. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1858. if TORSO then
  1859. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1860. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1861. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1862. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1863. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1864. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1865. Banish(CHILD)
  1866. FIRED = true
  1867. break
  1868. end
  1869. end
  1870. end
  1871. end
  1872. end
  1873. if FIRED == false then
  1874. 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)))
  1875. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1876. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1877. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  1878. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1879. if HITBOD ~= nil then
  1880. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1881. Banish(HITBOD.Parent)
  1882. end
  1883. end
  1884. end
  1885. end
  1886. for i = 1, 35 do
  1887. Swait(4)
  1888. local FIRED = false
  1889. local CHILDREN = workspace:GetDescendants()
  1890. for index, CHILD in pairs(CHILDREN) do
  1891. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1892. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1893. if HUM then
  1894. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1895. if TORSO then
  1896. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1897. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1898. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1899. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1900. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1901. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1902. Banish(CHILD)
  1903. FIRED = true
  1904. break
  1905. end
  1906. end
  1907. end
  1908. end
  1909. end
  1910. if FIRED == false then
  1911. 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)))
  1912. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1913. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1914. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  1915. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1916. if HITBOD ~= nil then
  1917. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1918. Banish(HITBOD.Parent)
  1919. end
  1920. end
  1921. end
  1922. end
  1923. for i = 1, 35 do
  1924. Swait(4)
  1925. local FIRED = false
  1926. local CHILDREN = workspace:GetDescendants()
  1927. for index, CHILD in pairs(CHILDREN) do
  1928. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1929. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1930. if HUM then
  1931. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1932. if TORSO then
  1933. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1934. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1935. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1936. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1937. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1938. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1939. Banish(CHILD)
  1940. FIRED = true
  1941. break
  1942. end
  1943. end
  1944. end
  1945. end
  1946. end
  1947. if FIRED == false then
  1948. 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)))
  1949. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1950. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1951. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  1952. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1953. if HITBOD ~= nil then
  1954. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1955. Banish(HITBOD.Parent)
  1956. end
  1957. end
  1958. end
  1959. end
  1960. for i = 1, 35 do
  1961. Swait(4)
  1962. local FIRED = false
  1963. local CHILDREN = workspace:GetDescendants()
  1964. for index, CHILD in pairs(CHILDREN) do
  1965. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1966. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1967. if HUM then
  1968. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1969. if TORSO then
  1970. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1971. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1972. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1973. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1974. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1975. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1976. Banish(CHILD)
  1977. FIRED = true
  1978. break
  1979. end
  1980. end
  1981. end
  1982. end
  1983. end
  1984. if FIRED == false then
  1985. 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)))
  1986. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1987. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1988. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  1989. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1990. if HITBOD ~= nil then
  1991. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1992. Banish(HITBOD.Parent)
  1993. end
  1994. end
  1995. end
  1996. end
  1997. for i = 1, 35 do
  1998. Swait(4)
  1999. local FIRED = false
  2000. local CHILDREN = workspace:GetDescendants()
  2001. for index, CHILD in pairs(CHILDREN) do
  2002. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2003. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2004. if HUM then
  2005. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2006. if TORSO then
  2007. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2008. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2009. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2010. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2011. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2012. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2013. Banish(CHILD)
  2014. FIRED = true
  2015. break
  2016. end
  2017. end
  2018. end
  2019. end
  2020. end
  2021. if FIRED == false then
  2022. 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)))
  2023. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2024. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2025. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2026. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2027. if HITBOD ~= nil then
  2028. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2029. Banish(HITBOD.Parent)
  2030. end
  2031. end
  2032. end
  2033. end
  2034. for i = 1, 35 do
  2035. Swait(4)
  2036. local FIRED = false
  2037. local CHILDREN = workspace:GetDescendants()
  2038. for index, CHILD in pairs(CHILDREN) do
  2039. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2040. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2041. if HUM then
  2042. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2043. if TORSO then
  2044. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2045. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2046. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2047. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2048. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2049. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2050. Banish(CHILD)
  2051. FIRED = true
  2052. break
  2053. end
  2054. end
  2055. end
  2056. end
  2057. end
  2058. if FIRED == false then
  2059. 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)))
  2060. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2061. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2062. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2063. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2064. if HITBOD ~= nil then
  2065. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2066. Banish(HITBOD.Parent)
  2067. end
  2068. end
  2069. end
  2070. end
  2071. for i = 1, 35 do
  2072. Swait(4)
  2073. local FIRED = false
  2074. local CHILDREN = workspace:GetDescendants()
  2075. for index, CHILD in pairs(CHILDREN) do
  2076. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2077. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2078. if HUM then
  2079. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2080. if TORSO then
  2081. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2082. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2083. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2084. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2085. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2086. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2087. Banish(CHILD)
  2088. FIRED = true
  2089. break
  2090. end
  2091. end
  2092. end
  2093. end
  2094. end
  2095. if FIRED == false then
  2096. 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)))
  2097. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2098. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2099. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2100. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2101. if HITBOD ~= nil then
  2102. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2103. Banish(HITBOD.Parent)
  2104. end
  2105. end
  2106. end
  2107. end
  2108. for i = 1, 35 do
  2109. Swait(4)
  2110. local FIRED = false
  2111. local CHILDREN = workspace:GetDescendants()
  2112. for index, CHILD in pairs(CHILDREN) do
  2113. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2114. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2115. if HUM then
  2116. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2117. if TORSO then
  2118. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2119. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2120. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2121. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2122. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2123. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2124. Banish(CHILD)
  2125. FIRED = true
  2126. break
  2127. end
  2128. end
  2129. end
  2130. end
  2131. end
  2132. if FIRED == false then
  2133. 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)))
  2134. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2135. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2136. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2137. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2138. if HITBOD ~= nil then
  2139. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2140. Banish(HITBOD.Parent)
  2141. end
  2142. end
  2143. end
  2144. end
  2145. for i = 1, 35 do
  2146. Swait(4)
  2147. local FIRED = false
  2148. local CHILDREN = workspace:GetDescendants()
  2149. for index, CHILD in pairs(CHILDREN) do
  2150. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2151. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2152. if HUM then
  2153. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2154. if TORSO then
  2155. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2156. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2157. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2158. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2159. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2160. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2161. Banish(CHILD)
  2162. FIRED = true
  2163. break
  2164. end
  2165. end
  2166. end
  2167. end
  2168. end
  2169. if FIRED == false then
  2170. 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)))
  2171. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2172. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2173. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2174. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2175. if HITBOD ~= nil then
  2176. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2177. Banish(HITBOD.Parent)
  2178. end
  2179. end
  2180. end
  2181. end
  2182. for i = 1, 35 do
  2183. Swait(4)
  2184. local FIRED = false
  2185. local CHILDREN = workspace:GetDescendants()
  2186. for index, CHILD in pairs(CHILDREN) do
  2187. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2188. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2189. if HUM then
  2190. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2191. if TORSO then
  2192. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2193. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2194. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2195. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2196. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2197. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2198. Banish(CHILD)
  2199. FIRED = true
  2200. break
  2201. end
  2202. end
  2203. end
  2204. end
  2205. end
  2206. if FIRED == false then
  2207. 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)))
  2208. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2209. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2210. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2211. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2212. if HITBOD ~= nil then
  2213. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2214. Banish(HITBOD.Parent)
  2215. end
  2216. end
  2217. end
  2218. end
  2219. for i = 1, 35 do
  2220. Swait(4)
  2221. local FIRED = false
  2222. local CHILDREN = workspace:GetDescendants()
  2223. for index, CHILD in pairs(CHILDREN) do
  2224. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2225. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2226. if HUM then
  2227. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2228. if TORSO then
  2229. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2230. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2231. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2232. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2233. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2234. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2235. Banish(CHILD)
  2236. FIRED = true
  2237. break
  2238. end
  2239. end
  2240. end
  2241. end
  2242. end
  2243. if FIRED == false then
  2244. 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)))
  2245. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2246. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2247. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2248. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2249. if HITBOD ~= nil then
  2250. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2251. Banish(HITBOD.Parent)
  2252. end
  2253. end
  2254. end
  2255. end
  2256. for i = 1, 35 do
  2257. Swait(4)
  2258. local FIRED = false
  2259. local CHILDREN = workspace:GetDescendants()
  2260. for index, CHILD in pairs(CHILDREN) do
  2261. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2262. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2263. if HUM then
  2264. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2265. if TORSO then
  2266. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2267. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2268. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2269. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2270. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2271. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2272. Banish(CHILD)
  2273. FIRED = true
  2274. break
  2275. end
  2276. end
  2277. end
  2278. end
  2279. end
  2280. if FIRED == false then
  2281. 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)))
  2282. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2283. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2284. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2285. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2286. if HITBOD ~= nil then
  2287. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2288. Banish(HITBOD.Parent)
  2289. end
  2290. end
  2291. end
  2292. end
  2293. for i = 1, 35 do
  2294. Swait(4)
  2295. local FIRED = false
  2296. local CHILDREN = workspace:GetDescendants()
  2297. for index, CHILD in pairs(CHILDREN) do
  2298. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2299. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2300. if HUM then
  2301. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2302. if TORSO then
  2303. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2304. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2305. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2306. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2307. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2308. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2309. Banish(CHILD)
  2310. FIRED = true
  2311. break
  2312. end
  2313. end
  2314. end
  2315. end
  2316. end
  2317. if FIRED == false then
  2318. 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)))
  2319. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2320. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2321. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2322. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2323. if HITBOD ~= nil then
  2324. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2325. Banish(HITBOD.Parent)
  2326. end
  2327. end
  2328. end
  2329. end
  2330. for i = 1, 35 do
  2331. Swait(4)
  2332. local FIRED = false
  2333. local CHILDREN = workspace:GetDescendants()
  2334. for index, CHILD in pairs(CHILDREN) do
  2335. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2336. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2337. if HUM then
  2338. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2339. if TORSO then
  2340. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2341. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2342. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2343. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2344. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2345. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2346. Banish(CHILD)
  2347. FIRED = true
  2348. break
  2349. end
  2350. end
  2351. end
  2352. end
  2353. end
  2354. if FIRED == false then
  2355. 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)))
  2356. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2357. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2358. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2359. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2360. if HITBOD ~= nil then
  2361. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2362. Banish(HITBOD.Parent)
  2363. end
  2364. end
  2365. end
  2366. end
  2367. for i = 1, 35 do
  2368. Swait(4)
  2369. local FIRED = false
  2370. local CHILDREN = workspace:GetDescendants()
  2371. for index, CHILD in pairs(CHILDREN) do
  2372. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2373. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2374. if HUM then
  2375. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2376. if TORSO then
  2377. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2378. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2379. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2380. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2381. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2382. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2383. Banish(CHILD)
  2384. FIRED = true
  2385. break
  2386. end
  2387. end
  2388. end
  2389. end
  2390. end
  2391. if FIRED == false then
  2392. 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)))
  2393. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2394. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2395. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2396. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2397. if HITBOD ~= nil then
  2398. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2399. Banish(HITBOD.Parent)
  2400. end
  2401. end
  2402. end
  2403. end
  2404. for i = 1, 35 do
  2405. Swait(4)
  2406. local FIRED = false
  2407. local CHILDREN = workspace:GetDescendants()
  2408. for index, CHILD in pairs(CHILDREN) do
  2409. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2410. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2411. if HUM then
  2412. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2413. if TORSO then
  2414. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2415. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2416. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2417. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2418. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2419. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2420. Banish(CHILD)
  2421. FIRED = true
  2422. break
  2423. end
  2424. end
  2425. end
  2426. end
  2427. end
  2428. if FIRED == false then
  2429. 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)))
  2430. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2431. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2432. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2433. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2434. if HITBOD ~= nil then
  2435. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2436. Banish(HITBOD.Parent)
  2437. end
  2438. end
  2439. end
  2440. end
  2441. for i = 1, 35 do
  2442. Swait(4)
  2443. local FIRED = false
  2444. local CHILDREN = workspace:GetDescendants()
  2445. for index, CHILD in pairs(CHILDREN) do
  2446. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2447. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2448. if HUM then
  2449. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2450. if TORSO then
  2451. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2452. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2453. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2454. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2455. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2456. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2457. Banish(CHILD)
  2458. FIRED = true
  2459. break
  2460. end
  2461. end
  2462. end
  2463. end
  2464. end
  2465. if FIRED == false then
  2466. 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)))
  2467. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2468. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2469. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2470. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2471. if HITBOD ~= nil then
  2472. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2473. Banish(HITBOD.Parent)
  2474. end
  2475. end
  2476. end
  2477. end
  2478. for i = 1, 35 do
  2479. Swait(4)
  2480. local FIRED = false
  2481. local CHILDREN = workspace:GetDescendants()
  2482. for index, CHILD in pairs(CHILDREN) do
  2483. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2484. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2485. if HUM then
  2486. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2487. if TORSO then
  2488. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2489. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2490. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2491. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2492. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2493. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2494. Banish(CHILD)
  2495. FIRED = true
  2496. break
  2497. end
  2498. end
  2499. end
  2500. end
  2501. end
  2502. if FIRED == false then
  2503. 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)))
  2504. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2505. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2506. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2507. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2508. if HITBOD ~= nil then
  2509. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2510. Banish(HITBOD.Parent)
  2511. end
  2512. end
  2513. end
  2514. end
  2515. for i = 1, 35 do
  2516. Swait(4)
  2517. local FIRED = false
  2518. local CHILDREN = workspace:GetDescendants()
  2519. for index, CHILD in pairs(CHILDREN) do
  2520. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2521. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2522. if HUM then
  2523. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2524. if TORSO then
  2525. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2526. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2527. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2528. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2529. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2530. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2531. Banish(CHILD)
  2532. FIRED = true
  2533. break
  2534. end
  2535. end
  2536. end
  2537. end
  2538. end
  2539. if FIRED == false then
  2540. 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)))
  2541. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2542. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2543. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2544. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2545. if HITBOD ~= nil then
  2546. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2547. Banish(HITBOD.Parent)
  2548. end
  2549. end
  2550. end
  2551. end
  2552. for i = 1, 35 do
  2553. Swait(4)
  2554. local FIRED = false
  2555. local CHILDREN = workspace:GetDescendants()
  2556. for index, CHILD in pairs(CHILDREN) do
  2557. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2558. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2559. if HUM then
  2560. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2561. if TORSO then
  2562. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2563. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2564. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2565. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2566. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2567. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2568. Banish(CHILD)
  2569. FIRED = true
  2570. break
  2571. end
  2572. end
  2573. end
  2574. end
  2575. end
  2576. if FIRED == false then
  2577. 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)))
  2578. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2579. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2580. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2581. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2582. if HITBOD ~= nil then
  2583. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2584. Banish(HITBOD.Parent)
  2585. end
  2586. end
  2587. end
  2588. end
  2589. for i = 1, 35 do
  2590. Swait(4)
  2591. local FIRED = false
  2592. local CHILDREN = workspace:GetDescendants()
  2593. for index, CHILD in pairs(CHILDREN) do
  2594. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2595. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2596. if HUM then
  2597. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2598. if TORSO then
  2599. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2600. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2601. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2602. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2603. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2604. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2605. Banish(CHILD)
  2606. FIRED = true
  2607. break
  2608. end
  2609. end
  2610. end
  2611. end
  2612. end
  2613. if FIRED == false then
  2614. 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)))
  2615. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2616. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2617. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2618. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2619. if HITBOD ~= nil then
  2620. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2621. Banish(HITBOD.Parent)
  2622. end
  2623. end
  2624. end
  2625. end
  2626. for i = 1, 35 do
  2627. Swait(4)
  2628. local FIRED = false
  2629. local CHILDREN = workspace:GetDescendants()
  2630. for index, CHILD in pairs(CHILDREN) do
  2631. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2632. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2633. if HUM then
  2634. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2635. if TORSO then
  2636. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2637. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2638. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2639. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2640. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2641. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2642. Banish(CHILD)
  2643. FIRED = true
  2644. break
  2645. end
  2646. end
  2647. end
  2648. end
  2649. end
  2650. if FIRED == false then
  2651. 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)))
  2652. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2653. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2654. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2655. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2656. if HITBOD ~= nil then
  2657. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2658. Banish(HITBOD.Parent)
  2659. end
  2660. end
  2661. end
  2662. end
  2663. for i = 1, 35 do
  2664. Swait(4)
  2665. local FIRED = false
  2666. local CHILDREN = workspace:GetDescendants()
  2667. for index, CHILD in pairs(CHILDREN) do
  2668. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2669. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2670. if HUM then
  2671. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2672. if TORSO then
  2673. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2674. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2675. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2676. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2677. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2678. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2679. Banish(CHILD)
  2680. FIRED = true
  2681. break
  2682. end
  2683. end
  2684. end
  2685. end
  2686. end
  2687. if FIRED == false then
  2688. 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)))
  2689. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  2690. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2691. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  2692. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2693. if HITBOD ~= nil then
  2694. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2695. Banish(HITBOD.Parent)
  2696. end
  2697. end
  2698. end
  2699. end
  2700. for i = 1, 45 do
  2701. Swait()
  2702. GATE.Size = GATE.Size - VT(10,0,10)
  2703. end
  2704. GATESPIN = false
  2705. GATE:remove()
  2706. end))
  2707. Swait(15)
  2708. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2709. GATE = CreatePart(3, Effects, "Neon", 0, 1, "Black", "Gate", VT(0,0,0))
  2710. local DECAL = IT("Decal",GATE)
  2711. DECAL.Texture = "http://www.roblox.com/asset/?id=62270888"
  2712. DECAL.Face = "Top"
  2713. GATE.CFrame = CF(HITPOS)
  2714. CreateSound(0, GATE, 7, 1.3, false)
  2715. for i = 1, 45 do
  2716. Swait()
  2717. GATE.Size = GATE.Size + VT(10,0,10)
  2718. end
  2719. CreateSound(213603013, RightHole, 7, 1, false)
  2720. CreateSound(213603013, LeftHole, 7, 1, false)
  2721. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(8,8,8), 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})
  2722. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(8,8,8), 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})
  2723. ATTACK = false
  2724. Rooted = false
  2725. DONE = true
  2726. end
  2727. function Taunt()
  2728. ATTACK = true
  2729. Rooted = true
  2730. CreateSound("907333406", Head, 10, 0.9)
  2731. sick:Stop()
  2732. Weapon.Parent = nil
  2733. for i = 1, 3 do
  2734. for i = 0, 0.7, 0.14 / Animation_Speed do
  2735. Swait()
  2736. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2737. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  2738. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  2739. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  2740. 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.25 / Animation_Speed)
  2741. 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.25 / Animation_Speed)
  2742. end
  2743. for i = 0, 0.7, 0.14 / Animation_Speed do
  2744. Swait()
  2745. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2746. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  2747. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  2748. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  2749. 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.25 / Animation_Speed)
  2750. 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.25 / Animation_Speed)
  2751. end
  2752. end
  2753. sick:Play()
  2754. Weapon.Parent = Character
  2755. ATTACK = false
  2756. Rooted = false
  2757. end
  2758.  
  2759. --//=================================\\
  2760. --|| ASSIGN THINGS TO KEYS
  2761. --\\=================================//
  2762.  
  2763. function MouseDown(Mouse)
  2764. if ATTACK == false then
  2765. end
  2766. end
  2767.  
  2768. function MouseUp(Mouse)
  2769. HOLD = false
  2770. end
  2771.  
  2772. function KeyDown(Key)
  2773. KEYHOLD = true
  2774. if Key == "z" and ATTACK == false then
  2775. Shot()
  2776. end
  2777.  
  2778. if Key == "f" and ATTACK == false then
  2779. chatfunc("If you decided to be a Good Person then go to Afterlife...")
  2780. TOBANISH = {}
  2781. end
  2782.  
  2783. if Key == "t" and ATTACK == false then
  2784. Taunt()
  2785. end
  2786.  
  2787. if Key == "c" and ATTACK == false then
  2788. Roar()
  2789. end
  2790.  
  2791. if Key == "q" and ATTACK == false then
  2792. for i=0, 0.5, 0.08 / Animation_Speed do
  2793. Swait()
  2794. 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)
  2795. 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)
  2796. end
  2797. MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5))
  2798. local pos = RootPart.Position
  2799. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,5,0),pos)
  2800. end
  2801.  
  2802. if Key == "x" and ATTACK == false then
  2803. Pure_Heaven()
  2804. end
  2805.  
  2806. if Key == "v" and ATTACK == false then
  2807. Gates_Of_Darkness()
  2808. end
  2809. end
  2810.  
  2811. function KeyUp(Key)
  2812. KEYHOLD = false
  2813. end
  2814.  
  2815. Mouse.Button1Down:connect(function(NEWKEY)
  2816. MouseDown(NEWKEY)
  2817. end)
  2818. Mouse.Button1Up:connect(function(NEWKEY)
  2819. MouseUp(NEWKEY)
  2820. end)
  2821. Mouse.KeyDown:connect(function(NEWKEY)
  2822. KeyDown(NEWKEY)
  2823. end)
  2824. Mouse.KeyUp:connect(function(NEWKEY)
  2825. KeyUp(NEWKEY)
  2826. end)
  2827.  
  2828. --//=================================\\
  2829. --\\=================================//
  2830.  
  2831.  
  2832. function unanchor()
  2833. if UNANCHOR == true then
  2834. g = Character:GetChildren()
  2835. for i = 1, #g do
  2836. if g[i].ClassName == "Part" then
  2837. g[i].Anchored = false
  2838. end
  2839. end
  2840. end
  2841. end
  2842.  
  2843.  
  2844. --//=================================\\
  2845. --|| WRAP THE WHOLE SCRIPT UP
  2846. --\\=================================//
  2847.  
  2848. Humanoid.Changed:connect(function(Jump)
  2849. if Jump == "Jump" and (Disable_Jump == true) then
  2850. Humanoid.Jump = false
  2851. end
  2852. end)
  2853.  
  2854. sick.AncestryChanged:Connect(function()
  2855. sick.Parent = Character
  2856. end)
  2857.  
  2858. local FF = IT("ForceField", Character)
  2859. FF.Visible = false
  2860.  
  2861. while true do
  2862. Swait()
  2863. script.Parent = WEAPONGUI
  2864. ANIMATE.Parent = nil
  2865. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2866. v:Stop();
  2867. end
  2868. SINE = SINE + CHANGE
  2869. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2870. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2871. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2872. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2873. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2874. 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)
  2875. 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)
  2876. 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)
  2877. 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)
  2878. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2879. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2880. 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)
  2881. 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)
  2882. 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)
  2883. end
  2884. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2885. ANIM = "Jump"
  2886. if ATTACK == false then
  2887. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2888. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2889. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2890. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2891. 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)
  2892. 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)
  2893. end
  2894. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2895. ANIM = "Fall"
  2896. if ATTACK == false then
  2897. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2898. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2899. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2900. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2901. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2902. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2903. end
  2904. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2905. ANIM = "Idle"
  2906. if ATTACK == false then
  2907. 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)
  2908. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  2909. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2910. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2911. 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)
  2912. 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)
  2913. end
  2914. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2915. ANIM = "Walk"
  2916. if ATTACK == false then
  2917. 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)
  2918. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2919. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2920. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2921. end
  2922. end
  2923. unanchor()
  2924. Humanoid.MaxHealth = 16e+16
  2925. Humanoid.Health = 16e+16
  2926. if Rooted == false then
  2927. Disable_Jump = false
  2928. Humanoid.WalkSpeed = Speed
  2929. elseif Rooted == true then
  2930. Disable_Jump = true
  2931. Humanoid.WalkSpeed = 0
  2932. end
  2933. if Head:FindFirstChild("face") then
  2934. Head.face.Texture = "rbxassetid://0"
  2935. end
  2936. end
  2937.  
  2938. --//=================================\\
  2939. --\\=================================//
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945. --//====================================================\\--
  2946. --|| END OF SCRIPT
  2947. --\\====================================================//----Join my discord server.----------------------------------------------------------------
  2948. --Original by Shackluster.---------------------------------------------------------------
  2949. --Enjoy the edit! :D.--------------------------------------------------------------------
  2950. --Join here: https://discordapp.com/channels/506798328995119114/506798328995119116-------
  2951. -----------------------------------------------------------------------------------------
  2952. ------Update 27/12/2018!-----------------------------------------------------
  2953. -----------------------------------------------------------------------------------------
  2954. -- This script has convert to FE by who i don't know?
  2955.  
  2956. -----------------------------------------------------
  2957. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2958. local Player,game,owner = owner,game
  2959. local RealPlayer = Player
  2960. do
  2961. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  2962. local rp = RealPlayer
  2963. script.Parent = rp.Character
  2964.  
  2965. --RemoteEvent for communicating
  2966. local Event = Instance.new("RemoteEvent")
  2967. Event.Name = "UserInput_Event"
  2968.  
  2969. --Fake event to make stuff like Mouse.KeyDown work
  2970. local function fakeEvent()
  2971. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  2972. t.connect = t.Connect
  2973. return t
  2974. end
  2975.  
  2976. --Creating fake input objects with fake variables
  2977. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  2978. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  2979. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  2980. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  2981. end}
  2982. --Merged 2 functions into one by checking amount of arguments
  2983. CAS.UnbindAction = CAS.BindAction
  2984.  
  2985. --This function will trigger the events that have been :Connect()'ed
  2986. local function te(self,ev,...)
  2987. local t = m[ev]
  2988. if t and t._fakeEvent then
  2989. for _,f in pairs(t.Functions) do
  2990. f(...)
  2991. end
  2992. end
  2993. end
  2994. m.TrigEvent = te
  2995. UIS.TrigEvent = te
  2996.  
  2997. Event.OnServerEvent:Connect(function(plr,io)
  2998. if plr~=rp then return end
  2999. m.Target = io.Target
  3000. m.Hit = io.Hit
  3001. if not io.isMouse then
  3002. local b = io.UserInputState == Enum.UserInputState.Begin
  3003. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  3004. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  3005. end
  3006. for _,t in pairs(CAS.Actions) do
  3007. for _,k in pairs(t.Keys) do
  3008. if k==io.KeyCode then
  3009. t.Function(t.Name,io.UserInputState,io)
  3010. end
  3011. end
  3012. end
  3013. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  3014. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  3015. end
  3016. end)
  3017. Event.Parent = NLS([==[
  3018. local Player = game:GetService("Players").LocalPlayer
  3019. local Event = script:WaitForChild("UserInput_Event")
  3020.  
  3021. local Mouse = Player:GetMouse()
  3022. local UIS = game:GetService("UserInputService")
  3023. local input = function(io,a)
  3024. if a then return end
  3025. --Since InputObject is a client-side instance, we create and pass table instead
  3026. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  3027. end
  3028. UIS.InputBegan:Connect(input)
  3029. UIS.InputEnded:Connect(input)
  3030.  
  3031. local h,t
  3032. --Give the server mouse data 30 times every second, but only if the values changed
  3033. --If player is not moving their mouse, client won't fire events
  3034. while wait(1/30) do
  3035. if h~=Mouse.Hit or t~=Mouse.Target then
  3036. h,t=Mouse.Hit,Mouse.Target
  3037. Event:FireServer({isMouse=true,Target=t,Hit=h})
  3038. end
  3039. end]==],Player.Character)
  3040.  
  3041. ----Sandboxed game object that allows the usage of client-side methods and services
  3042. --Real game object
  3043. local _rg = game
  3044.  
  3045. --Metatable for fake service
  3046. local fsmt = {
  3047. __index = function(self,k)
  3048. local s = rawget(self,"_RealService")
  3049. if s then return s[k] end
  3050. end,
  3051. __newindex = function(self,k,v)
  3052. local s = rawget(self,"_RealService")
  3053. if s then s[k]=v end
  3054. end,
  3055. __call = function(self,...)
  3056. local s = rawget(self,"_RealService")
  3057. if s then return s(...) end
  3058. end
  3059. }
  3060. local function FakeService(t,RealService)
  3061. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  3062. return setmetatable(t,fsmt)
  3063. end
  3064.  
  3065. --Fake game object
  3066. local g = {
  3067. GetService = function(self,s)
  3068. return self[s]
  3069. end,
  3070. Players = FakeService({
  3071. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  3072. },"Players"),
  3073. UserInputService = FakeService(UIS,"UserInputService"),
  3074. ContextActionService = FakeService(CAS,"ContextActionService"),
  3075. }
  3076. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  3077. g.service = g.GetService
  3078.  
  3079. g.RunService = FakeService({
  3080. RenderStepped = _rg:GetService("RunService").Heartbeat,
  3081. BindToRenderStep = function(self,name,_,fun)
  3082.  
  3083. end,
  3084. UnbindFromRenderStep = function(self,name)
  3085. self._btrs[name]:Disconnect()
  3086. end,
  3087. },"RunService")
  3088.  
  3089. setmetatable(g,{
  3090. __index=function(self,s)
  3091. return _rg:GetService(s) or typeof(_rg[s])=="function"
  3092. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  3093. end,
  3094. __newindex = fsmt.__newindex,
  3095. __call = fsmt.__call
  3096. })
  3097. --Changing owner to fake player object to support owner:GetMouse()
  3098. game,owner = g,g.Players.LocalPlayer
  3099. end
  3100.  
  3101. script:ClearAllChildren()
  3102. wait(0.2)
  3103.  
  3104. Player = game:GetService("Players").LocalPlayer
  3105. PlayerGui = Player.PlayerGui
  3106. Cam = workspace.CurrentCamera
  3107. Backpack = Player.Backpack
  3108. Character = Player.Character
  3109. Humanoid = Character.Humanoid
  3110. Mouse = Player:GetMouse()
  3111. RootPart = Character["HumanoidRootPart"]
  3112. Torso = Character["Torso"]
  3113. Head = Character["Head"]
  3114. RightArm = Character["Right Arm"]
  3115. LeftArm = Character["Left Arm"]
  3116. RightLeg = Character["Right Leg"]
  3117. LeftLeg = Character["Left Leg"]
  3118. RootJoint = RootPart["RootJoint"]
  3119. Neck = Torso["Neck"]
  3120. RightShoulder = Torso["Right Shoulder"]
  3121. LeftShoulder = Torso["Left Shoulder"]
  3122. RightHip = Torso["Right Hip"]
  3123. LeftHip = Torso["Left Hip"]
  3124. print('User: '..Player.Name)
  3125. print('Enjoy this Edit ;D')
  3126. local sick = Instance.new("Sound",Character)
  3127. sick.Parent = Character
  3128. sick:resume()
  3129. sick.Volume = 10
  3130. sick.Pitch = 0.75
  3131. sick.Looped = true
  3132. sick.SoundId = "rbxassetid://583415095"
  3133. sick.Name = ""
  3134. -------------Name Tag Stuff.------------------------
  3135. local naeeym = Instance.new("BillboardGui",Character)
  3136. naeeym.Size = UDim2.new(0,100,0,40)
  3137. naeeym.StudsOffset = Vector3.new(0,2,0)
  3138. naeeym.Adornee = Character.Head
  3139. local tecks = Instance.new("TextLabel",naeeym)
  3140. tecks.BackgroundTransparency = 1
  3141. tecks.BorderSizePixel = 0
  3142. tecks.Text = "Silencer"
  3143. tecks.Font = "Fantasy"
  3144. tecks.FontSize = "Size24"
  3145. tecks.TextStrokeTransparency = 0
  3146. tecks.TextStrokeColor3 = Color3.new(1,1,1)
  3147. tecks.TextColor3 = Color3.new(1,1,1)
  3148. tecks.Size = UDim2.new(1,0,0.5,0)
  3149. ----------------------------------------------------
  3150.  
  3151. IT = Instance.new
  3152. CF = CFrame.new
  3153. VT = Vector3.new
  3154. RAD = math.rad
  3155. C3 = Color3.new
  3156. UD2 = UDim2.new
  3157. BRICKC = BrickColor.new
  3158. ANGLES = CFrame.Angles
  3159. EULER = CFrame.fromEulerAnglesXYZ
  3160. COS = math.cos
  3161. ACOS = math.acos
  3162. SIN = math.sin
  3163. ASIN = math.asin
  3164. ABS = math.abs
  3165. MRANDOM = math.random
  3166. FLOOR = math.floor
  3167.  
  3168. local sky = Instance.new('Sky', game:GetService'Lighting')
  3169. sky.SkyboxBk = "rbxassetid://48020371"
  3170. sky.SkyboxDn = "rbxassetid://48020144"
  3171. sky.SkyboxFt = "rbxassetid://48020234"
  3172. sky.SkyboxLf = "rbxassetid://48020211"
  3173. sky.SkyboxRt = "rbxassetid://48020254"
  3174. sky.SkyboxUp = "rbxassetid://48020383"
  3175. sky.StarCount = 3000
  3176. sky.SunAngularSize = 0
  3177. sky.MoonAngularSize = 11
  3178. sky.MoonTextureId = "rbxasset://sky/moon.jpg"
  3179. sky.CelestialBodiesShown = false
  3180.  
  3181. Character["Body Colors"].HeadColor = BrickColor.new("Really black")
  3182.  
  3183. --//=================================\\
  3184. --|| USEFUL VALUES
  3185. --\\=================================//
  3186.  
  3187. Player_Size = 1
  3188. Animation_Speed = 3
  3189. local FORCERESET = false
  3190. local Effects2 = {}
  3191. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  3192. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  3193. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  3194. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  3195. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  3196. local DAMAGEMULTIPLIER = 1
  3197. local SIZE = 1
  3198. local ANIM = "Idle"
  3199. local ATTACK = false
  3200. local EQUIPPED = false
  3201. local HOLD = false
  3202. local COMBO = 1
  3203. local Rooted = false
  3204. local SINE = 0
  3205. local KEYHOLD = false
  3206. local CHANGE = 2 / Animation_Speed
  3207. local WALKINGANIM = false
  3208. local VALUE1 = false
  3209. local VALUE2 = false
  3210. local ROBLOXIDLEANIMATION = IT("Animation")
  3211. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  3212. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  3213. --ROBLOXIDLEANIMATION.Parent = Humanoid
  3214. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  3215. WEAPONGUI.Name = "BanishV3Gui"
  3216. local Weapon = IT("Model")
  3217. Weapon.Name = "Adds"
  3218. local Effects = IT("Folder", Weapon)
  3219. Effects.Name = "Effects"
  3220. local ANIMATOR = Humanoid.Animator
  3221. local ANIMATE = Character:FindFirstChild("Animate")
  3222. local UNANCHOR = true
  3223. local TOBANISH = {}
  3224. local ROAR = {528589078,528589175,528589274,528589382}
  3225. script.Parent = PlayerGui
  3226.  
  3227. --//=================================\\
  3228. --\\=================================//
  3229.  
  3230. local Speed = 18
  3231.  
  3232. --//=================================\\
  3233. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  3234. --\\=================================//
  3235.  
  3236. ArtificialHB = Instance.new("BindableEvent", script)
  3237. ArtificialHB.Name = "ArtificialHB"
  3238.  
  3239. script:WaitForChild("ArtificialHB")
  3240.  
  3241. frame = Frame_Speed
  3242. tf = 0
  3243. allowframeloss = false
  3244. tossremainder = false
  3245. lastframe = tick()
  3246. script.ArtificialHB:Fire()
  3247.  
  3248. game:GetService("RunService").Heartbeat:connect(function(s, p)
  3249. tf = tf + s
  3250. if tf >= frame then
  3251. if allowframeloss then
  3252. script.ArtificialHB:Fire()
  3253. lastframe = tick()
  3254. else
  3255. for i = 1, math.floor(tf / frame) do
  3256. script.ArtificialHB:Fire()
  3257. end
  3258. lastframe = tick()
  3259. end
  3260. if tossremainder then
  3261. tf = 0
  3262. else
  3263. tf = tf - frame * math.floor(tf / frame)
  3264. end
  3265. end
  3266. end)
  3267.  
  3268. --//=================================\\
  3269. --\\=================================//
  3270.  
  3271. --//=================================\\
  3272. --|| SOME FUNCTIONS
  3273. --\\=================================//
  3274.  
  3275. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  3276. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  3277. end
  3278.  
  3279. function PositiveAngle(NUMBER)
  3280. if NUMBER >= 0 then
  3281. NUMBER = 0
  3282. end
  3283. return NUMBER
  3284. end
  3285.  
  3286. function NegativeAngle(NUMBER)
  3287. if NUMBER <= 0 then
  3288. NUMBER = 0
  3289. end
  3290. return NUMBER
  3291. end
  3292.  
  3293. function Swait(NUMBER)
  3294. if NUMBER == 0 or NUMBER == nil then
  3295. ArtificialHB.Event:wait()
  3296. else
  3297. for i = 1, NUMBER do
  3298. ArtificialHB.Event:wait()
  3299. end
  3300. end
  3301. end
  3302.  
  3303. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  3304. local NEWMESH = IT(MESH)
  3305. if MESH == "SpecialMesh" then
  3306. NEWMESH.MeshType = MESHTYPE
  3307. if MESHID ~= "nil" and MESHID ~= "" then
  3308. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  3309. end
  3310. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  3311. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  3312. end
  3313. end
  3314. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  3315. NEWMESH.Scale = SCALE
  3316. NEWMESH.Parent = PARENT
  3317. return NEWMESH
  3318. end
  3319.  
  3320. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  3321. local NEWPART = IT("Part")
  3322. NEWPART.formFactor = FORMFACTOR
  3323. NEWPART.Reflectance = REFLECTANCE
  3324. NEWPART.Transparency = TRANSPARENCY
  3325. NEWPART.CanCollide = false
  3326. NEWPART.Locked = true
  3327. NEWPART.Anchored = true
  3328. if ANCHOR == false then
  3329. NEWPART.Anchored = false
  3330. end
  3331. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  3332. NEWPART.Name = NAME
  3333. NEWPART.Size = SIZE
  3334. NEWPART.Position = Torso.Position
  3335. NEWPART.Material = MATERIAL
  3336. NEWPART:BreakJoints()
  3337. NEWPART.Parent = PARENT
  3338. return NEWPART
  3339. end
  3340.  
  3341. local function weldBetween(a, b)
  3342. local weldd = Instance.new("ManualWeld")
  3343. weldd.Part0 = a
  3344. weldd.Part1 = b
  3345. weldd.C0 = CFrame.new()
  3346. weldd.C1 = b.CFrame:inverse() * a.CFrame
  3347. weldd.Parent = a
  3348. return weldd
  3349. end
  3350.  
  3351.  
  3352. function QuaternionFromCFrame(cf)
  3353. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  3354. local trace = m00 + m11 + m22
  3355. if trace > 0 then
  3356. local s = math.sqrt(1 + trace)
  3357. local recip = 0.5 / s
  3358. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  3359. else
  3360. local i = 0
  3361. if m11 > m00 then
  3362. i = 1
  3363. end
  3364. if m22 > (i == 0 and m00 or m11) then
  3365. i = 2
  3366. end
  3367. if i == 0 then
  3368. local s = math.sqrt(m00 - m11 - m22 + 1)
  3369. local recip = 0.5 / s
  3370. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  3371. elseif i == 1 then
  3372. local s = math.sqrt(m11 - m22 - m00 + 1)
  3373. local recip = 0.5 / s
  3374. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  3375. elseif i == 2 then
  3376. local s = math.sqrt(m22 - m00 - m11 + 1)
  3377. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  3378. end
  3379. end
  3380. end
  3381.  
  3382. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  3383. local xs, ys, zs = x + x, y + y, z + z
  3384. local wx, wy, wz = w * xs, w * ys, w * zs
  3385. local xx = x * xs
  3386. local xy = x * ys
  3387. local xz = x * zs
  3388. local yy = y * ys
  3389. local yz = y * zs
  3390. local zz = z * zs
  3391. 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))
  3392. end
  3393.  
  3394. function QuaternionSlerp(a, b, t)
  3395. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  3396. local startInterp, finishInterp;
  3397. if cosTheta >= 0.0001 then
  3398. if (1 - cosTheta) > 0.0001 then
  3399. local theta = ACOS(cosTheta)
  3400. local invSinTheta = 1 / SIN(theta)
  3401. startInterp = SIN((1 - t) * theta) * invSinTheta
  3402. finishInterp = SIN(t * theta) * invSinTheta
  3403. else
  3404. startInterp = 1 - t
  3405. finishInterp = t
  3406. end
  3407. else
  3408. if (1 + cosTheta) > 0.0001 then
  3409. local theta = ACOS(-cosTheta)
  3410. local invSinTheta = 1 / SIN(theta)
  3411. startInterp = SIN((t - 1) * theta) * invSinTheta
  3412. finishInterp = SIN(t * theta) * invSinTheta
  3413. else
  3414. startInterp = t - 1
  3415. finishInterp = t
  3416. end
  3417. end
  3418. 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
  3419. end
  3420.  
  3421. function Clerp(a, b, t)
  3422. local qa = {QuaternionFromCFrame(a)}
  3423. local qb = {QuaternionFromCFrame(b)}
  3424. local ax, ay, az = a.x, a.y, a.z
  3425. local bx, by, bz = b.x, b.y, b.z
  3426. local _t = 1 - t
  3427. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  3428. end
  3429.  
  3430. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  3431. local frame = IT("Frame")
  3432. frame.BackgroundTransparency = TRANSPARENCY
  3433. frame.BorderSizePixel = BORDERSIZEPIXEL
  3434. frame.Position = POSITION
  3435. frame.Size = SIZE
  3436. frame.BackgroundColor3 = COLOR
  3437. frame.BorderColor3 = BORDERCOLOR
  3438. frame.Name = NAME
  3439. frame.Parent = PARENT
  3440. return frame
  3441. end
  3442.  
  3443. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  3444. local label = IT("TextLabel")
  3445. label.BackgroundTransparency = 1
  3446. label.Size = UD2(1, 0, 1, 0)
  3447. label.Position = UD2(0, 0, 0, 0)
  3448. label.TextColor3 = TEXTCOLOR
  3449. label.TextStrokeTransparency = STROKETRANSPARENCY
  3450. label.TextTransparency = TRANSPARENCY
  3451. label.FontSize = TEXTFONTSIZE
  3452. label.Font = TEXTFONT
  3453. label.BorderSizePixel = BORDERSIZEPIXEL
  3454. label.TextScaled = false
  3455. label.Text = TEXT
  3456. label.Name = NAME
  3457. label.Parent = PARENT
  3458. return label
  3459. end
  3460.  
  3461. function NoOutlines(PART)
  3462. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  3463. end
  3464.  
  3465. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  3466. local NEWWELD = IT(TYPE)
  3467. NEWWELD.Part0 = PART0
  3468. NEWWELD.Part1 = PART1
  3469. NEWWELD.C0 = C0
  3470. NEWWELD.C1 = C1
  3471. NEWWELD.Parent = PARENT
  3472. return NEWWELD
  3473. end
  3474. local S = IT("Sound")
  3475. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  3476. local NEWSOUND = nil
  3477. coroutine.resume(coroutine.create(function()
  3478. NEWSOUND = S:Clone()
  3479. NEWSOUND.Parent = PARENT
  3480. NEWSOUND.Volume = VOLUME
  3481. NEWSOUND.Pitch = PITCH
  3482. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  3483. NEWSOUND:play()
  3484. if DOESLOOP == true then
  3485. NEWSOUND.Looped = true
  3486. else
  3487. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  3488. NEWSOUND:remove()
  3489. end
  3490. end))
  3491. return NEWSOUND
  3492. end
  3493.  
  3494. function CFrameFromTopBack(at, top, back)
  3495. local right = top:Cross(back)
  3496. 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)
  3497. end
  3498.  
  3499. --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})
  3500. function WACKYEFFECT(Table)
  3501. local TYPE = (Table.EffectType or "Sphere")
  3502. local SIZE = (Table.Size or VT(1,1,1))
  3503. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  3504. local TRANSPARENCY = (Table.Transparency or 0)
  3505. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  3506. local CFRAME = (Table.CFrame or Torso.CFrame)
  3507. local MOVEDIRECTION = (Table.MoveToPos or nil)
  3508. local ROTATION1 = (Table.RotationX or 0)
  3509. local ROTATION2 = (Table.RotationY or 0)
  3510. local ROTATION3 = (Table.RotationZ or 0)
  3511. local MATERIAL = (Table.Material or "Neon")
  3512. local COLOR = (Table.Color or C3(1,1,1))
  3513. local TIME = (Table.Time or 45)
  3514. local SOUNDID = (Table.SoundID or nil)
  3515. local SOUNDPITCH = (Table.SoundPitch or nil)
  3516. local SOUNDVOLUME = (Table.SoundVolume or nil)
  3517. coroutine.resume(coroutine.create(function()
  3518. local PLAYSSOUND = false
  3519. local SOUND = nil
  3520. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  3521. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  3522. PLAYSSOUND = true
  3523. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  3524. end
  3525. EFFECT.Color = COLOR
  3526. local MSH = nil
  3527. if TYPE == "Sphere" then
  3528. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  3529. elseif TYPE == "Block" then
  3530. MSH = IT("BlockMesh",EFFECT)
  3531. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  3532. elseif TYPE == "Wave" then
  3533. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  3534. elseif TYPE == "Ring" then
  3535. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  3536. elseif TYPE == "Slash" then
  3537. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  3538. elseif TYPE == "Round Slash" then
  3539. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  3540. elseif TYPE == "Swirl" then
  3541. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  3542. elseif TYPE == "Skull" then
  3543. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  3544. elseif TYPE == "Crystal" then
  3545. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  3546. end
  3547. if MSH ~= nil then
  3548. local MOVESPEED = nil
  3549. if MOVEDIRECTION ~= nil then
  3550. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  3551. end
  3552. local GROWTH = SIZE - ENDSIZE
  3553. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  3554. if TYPE == "Block" then
  3555. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  3556. else
  3557. EFFECT.CFrame = CFRAME
  3558. end
  3559. for LOOP = 1, TIME+1 do
  3560. Swait()
  3561. MSH.Scale = MSH.Scale - GROWTH/TIME
  3562. if TYPE == "Wave" then
  3563. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  3564. end
  3565. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  3566. if TYPE == "Block" then
  3567. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  3568. else
  3569. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  3570. end
  3571. if MOVEDIRECTION ~= nil then
  3572. local ORI = EFFECT.Orientation
  3573. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  3574. EFFECT.Orientation = ORI
  3575. end
  3576. end
  3577. if PLAYSSOUND == false then
  3578. EFFECT:remove()
  3579. else
  3580. SOUND.Stopped:Connect(function()
  3581. EFFECT:remove()
  3582. end)
  3583. end
  3584. else
  3585. if PLAYSSOUND == false then
  3586. EFFECT:remove()
  3587. else
  3588. repeat Swait() until SOUND.Playing == false
  3589. EFFECT:remove()
  3590. end
  3591. end
  3592. end))
  3593. end
  3594.  
  3595. function MakeForm(PART,TYPE)
  3596. if TYPE == "Cyl" then
  3597. local MSH = IT("CylinderMesh",PART)
  3598. elseif TYPE == "Ball" then
  3599. local MSH = IT("SpecialMesh",PART)
  3600. MSH.MeshType = "Sphere"
  3601. elseif TYPE == "Wedge" then
  3602. local MSH = IT("SpecialMesh",PART)
  3603. MSH.MeshType = "Wedge"
  3604. end
  3605. end
  3606.  
  3607. function SpawnTrail(FROM,TO,BIG)
  3608. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0))
  3609. MakeForm(TRAIL,"Cyl")
  3610. local DIST = (FROM - TO).Magnitude
  3611. if BIG == true then
  3612. TRAIL.Size = VT(4.5,DIST,4.5)
  3613. else
  3614. TRAIL.Size = VT(4.5,DIST,4.5)
  3615. end
  3616. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  3617. coroutine.resume(coroutine.create(function()
  3618. for i = 1, 5 do
  3619. Swait()
  3620. TRAIL.Transparency = TRAIL.Transparency + 0.1
  3621. end
  3622. TRAIL:remove()
  3623. end))
  3624. end
  3625.  
  3626. function SpawnTrail0(FROM,TO,BIG)
  3627. local TRAIL0 = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(1,1,1))
  3628. MakeForm(TRAIL0,"Cyl")
  3629. local DIST = (FROM - TO).Magnitude
  3630. if BIG == true then
  3631. TRAIL0.Size = VT(0.75,DIST,0.75)
  3632. else
  3633. TRAIL0.Size = VT(0.65,DIST,0.65)
  3634. end
  3635. TRAIL0.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  3636. coroutine.resume(coroutine.create(function()
  3637. for i = 1, 5 do
  3638. Swait()
  3639. TRAIL0.Transparency = TRAIL0.Transparency + 0.1
  3640. end
  3641. TRAIL0:remove()
  3642. end))
  3643. end
  3644.  
  3645. Debris = game:GetService("Debris")
  3646.  
  3647. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  3648. local DIRECTION = CF(StartPos,EndPos).lookVector
  3649. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  3650. end
  3651.  
  3652. function turnto(position)
  3653. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  3654. end
  3655.  
  3656. function swait(num)
  3657. if num == 0 or num == nil then
  3658. ArtificialHB.Event:wait()
  3659. else
  3660. for i = 0, num do
  3661. ArtificialHB.Event:wait()
  3662. end
  3663. end
  3664. end
  3665.  
  3666. function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  3667. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  3668. local mesh = IT("SpecialMesh",wave)
  3669. mesh.MeshType = "FileMesh"
  3670. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3671. mesh.Scale = SIZE
  3672. mesh.Offset = VT(0,0,0)
  3673. wave.CFrame = CFRAME
  3674. coroutine.resume(coroutine.create(function(PART)
  3675. for i = 1, WAIT do
  3676. Swait()
  3677. mesh.Scale = mesh.Scale + GROW
  3678. if DOESROT == true then
  3679. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  3680. end
  3681. wave.Transparency = wave.Transparency + (0.5/WAIT)
  3682. if wave.Transparency > 0.99 then
  3683. wave:remove()
  3684. end
  3685. end
  3686. end))
  3687. end
  3688.  
  3689. function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW)
  3690. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  3691. local mesh = IT("SpecialMesh",wave)
  3692. mesh.MeshType = "Sphere"
  3693. mesh.Scale = SIZE
  3694. mesh.Offset = VT(0,0,0)
  3695. wave.CFrame = CFRAME
  3696. coroutine.resume(coroutine.create(function(PART)
  3697. for i = 1, WAIT do
  3698. Swait()
  3699. mesh.Scale = mesh.Scale + GROW
  3700. wave.Transparency = wave.Transparency + (1/WAIT)
  3701. if wave.Transparency > 0.99 then
  3702. wave:remove()
  3703. end
  3704. end
  3705. end))
  3706. end
  3707.  
  3708. function chatfunc(text)
  3709. local chat = coroutine.wrap(function()
  3710. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  3711. Character:FindFirstChild("TalkingBillBoard"):destroy()
  3712. end
  3713. local Bill = Instance.new("BillboardGui",Character)
  3714. Bill.Size = UDim2.new(0,100,0,40)
  3715. Bill.StudsOffset = Vector3.new(0,3,0)
  3716. Bill.Adornee = Character.Head
  3717. Bill.Name = "TalkingBillBoard"
  3718. local Hehe = Instance.new("TextLabel",Bill)
  3719. Hehe.BackgroundTransparency = 1
  3720. Hehe.BorderSizePixel = 0
  3721. Hehe.Text = ""
  3722. Hehe.Font = "Fantasy"
  3723. Hehe.TextSize = 40
  3724. Hehe.TextStrokeTransparency = 0
  3725. Hehe.Size = UDim2.new(1,0,0.5,0)
  3726. coroutine.resume(coroutine.create(function()
  3727. while Hehe ~= nil do
  3728. swait()
  3729. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  3730. Hehe.Rotation = math.random(-5,5)
  3731. Hehe.TextColor3 = Color3.new(17,17,17)
  3732. Hehe.TextStrokeColor3 = Color3.new(17,17,17)
  3733. end
  3734. end))
  3735. for i = 1,string.len(text),1 do
  3736. swait()
  3737. Hehe.Text = string.sub(text,1,i)
  3738. end
  3739. swait(90)--Re[math.random(1, 93)]
  3740. for i = 0, 1, .025 do
  3741. swait()
  3742. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  3743. Hehe.TextStrokeTransparency = i
  3744. Hehe.TextTransparency = i
  3745. end
  3746. Bill:Destroy()
  3747. end)
  3748. chat()
  3749. end
  3750.  
  3751. function CheckTableForString(Table, String)
  3752. for i, v in pairs(Table) do
  3753. if string.find(string.lower(String), string.lower(v)) then
  3754. return true
  3755. end
  3756. end
  3757. return false
  3758. end
  3759.  
  3760. function CheckIntangible(Hit)
  3761. local ProjectileNames = {
  3762. "Water",
  3763. "Arrow",
  3764. "Projectile",
  3765. "Effect",
  3766. "Rail",
  3767. "Lightning",
  3768. "Bullet"
  3769. }
  3770. if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  3771. return true
  3772. end
  3773. return false
  3774. end
  3775.  
  3776. --//=================================\\
  3777. --|| WEAPON CREATION
  3778. --\\=================================//
  3779. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  3780. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  3781. PRT.Color = C3(0,0,0)
  3782. for i = 1, 35 do
  3783. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  3784. FACE.Color = C3(0,0,0)
  3785. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  3786. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  3787. end
  3788. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  3789. PRT.Color = C3(0,0,0)
  3790. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  3791. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  3792. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false)
  3793. MakeForm(Eye,"Ball")
  3794. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  3795. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eye", VT(0.6,0.1,1)/2,false)
  3796. MakeForm(Eye,"Ball")
  3797. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  3798. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really white", "Eye", VT(0.1,1,1)/2,false)
  3799. MakeForm(Eye,"Ball")
  3800. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  3801.  
  3802. function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT)
  3803. if FLOOR ~= nil then
  3804. coroutine.resume(coroutine.create(function()
  3805. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0))
  3806. PART.CFrame = CF(POSITION)
  3807. for i = 1, 45 do
  3808. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  3809. RingPiece.Material = FLOOR.Material
  3810. RingPiece.Color = FLOOR.Color
  3811. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  3812. Debris:AddItem(RingPiece, SWAIT)
  3813. end
  3814. PART:remove()
  3815. end))
  3816. end
  3817. end
  3818. function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH)
  3819. if FLOOR ~= nil then
  3820. for i = 1, AMOUNT do
  3821. do
  3822. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  3823. DEBREE.Material = FLOOR.Material
  3824. DEBREE.Color = FLOOR.Color
  3825. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  3826. DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH))
  3827. coroutine.resume(coroutine.create(function()
  3828. Swait(15)
  3829. DEBREE.Parent = workspace
  3830. DEBREE.CanCollide = true
  3831. Debris:AddItem(DEBREE, SWAIT)
  3832. end))
  3833. end
  3834. end
  3835. end
  3836. end
  3837.  
  3838. local Particle = IT("ParticleEmitter",nil)
  3839. Particle.Enabled = false
  3840. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  3841. Particle.LightEmission = 0.88
  3842. Particle.Rate = 250
  3843. Particle.ZOffset = 0.2
  3844. Particle.Rotation = NumberRange.new(-180, 180)
  3845. Particle.RotSpeed = NumberRange.new(-180, 180)
  3846. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  3847. Particle.Color = ColorSequence.new(C3(255,255,255),C3(255,255,255))
  3848.  
  3849. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  3850. function ParticleEmitter(Table)
  3851. local PRTCL = Particle:Clone()
  3852. local Speed = Table.Speed or 5
  3853. local Drag = Table.Drag or 0
  3854. local Size1 = Table.Size1 or 1
  3855. local Size2 = Table.Size2 or 5
  3856. local Lifetime1 = Table.Lifetime1 or 1
  3857. local Lifetime2 = Table.Lifetime2 or 1.5
  3858. local Parent = Table.Parent or Torso
  3859. local Emit = Table.Emit or 100
  3860. local Offset = Table.Offset or 360
  3861. local Acel = Table.Acel or VT(0,0,0)
  3862. local Enabled = Table.Enabled or false
  3863. PRTCL.Parent = Parent
  3864. PRTCL.Size = NumberSequence.new(Size1,Size2)
  3865. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  3866. PRTCL.Speed = NumberRange.new(Speed)
  3867. PRTCL.VelocitySpread = Offset
  3868. PRTCL.Drag = Drag
  3869. PRTCL.Acceleration = Acel
  3870. if Enabled == false then
  3871. PRTCL:Emit(Emit)
  3872. Debris:AddItem(PRTCL,Lifetime2)
  3873. else
  3874. PRTCL.Enabled = true
  3875. end
  3876. return PRTCL
  3877. end
  3878.  
  3879. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  3880. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  3881. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  3882. MakeForm(Part,"Wedge")
  3883. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  3884. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  3885. MakeForm(Part,"Wedge")
  3886. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  3887. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  3888. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  3889. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  3890. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  3891. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  3892. MakeForm(Part,"Cyl")
  3893. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  3894. for i = 1, 8 do
  3895. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  3896. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  3897. end
  3898. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  3899. MakeForm(Part,"Cyl")
  3900. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  3901. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  3902. MakeForm(Part,"Ball")
  3903. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  3904. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  3905. MakeForm(Part,"Wedge")
  3906. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  3907. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  3908. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  3909. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  3910. MakeForm(Part,"Cyl")
  3911. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  3912. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  3913. MakeForm(Part,"Cyl")
  3914. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  3915. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  3916. MakeForm(Part,"Cyl")
  3917. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  3918. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  3919. MakeForm(Part,"Wedge")
  3920. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  3921. local LASTPART = Handle
  3922. for i = 1, 10 do
  3923. if LASTPART == Handle then
  3924. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  3925. LASTPART = Part
  3926. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  3927. else
  3928. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  3929. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  3930. LASTPART = Part
  3931. end
  3932. end
  3933.  
  3934. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  3935. MakeForm(Barrel,"Cyl")
  3936. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  3937. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  3938. MakeForm(Part,"Cyl")
  3939. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  3940. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  3941. MakeForm(Part,"Wedge")
  3942. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  3943. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  3944. MakeForm(Hole,"Cyl")
  3945. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  3946. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  3947. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  3948. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  3949. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  3950. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  3951. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  3952. coroutine.resume(coroutine.create(function()
  3953. while wait() do
  3954. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  3955. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  3956. end
  3957. end))
  3958.  
  3959. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.4, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  3960. --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)})
  3961.  
  3962. for _, c in pairs(Weapon:GetDescendants()) do
  3963. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  3964. c.Material = "Glass"
  3965. c.Color = C3(0,0,0)
  3966. elseif c.ClassName == "Part" and c.Name == "Eye" then
  3967. c.Color = C3(1,1,1)
  3968. c.Material = "Neon"
  3969. end
  3970. end
  3971.  
  3972. Weapon.Parent = Character
  3973. for _, c in pairs(Weapon:GetChildren()) do
  3974. if c.ClassName == "Part" then
  3975. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  3976. end
  3977. end
  3978.  
  3979. local SKILLTEXTCOLOR = C3(1,1,1)
  3980. local SKILLFONT = "Bodoni"
  3981. local SKILLTEXTSIZE = 5
  3982.  
  3983. Humanoid.Died:connect(function()
  3984. ATTACK = true
  3985. end)
  3986. Humanoid.Died:connect(function()
  3987. Humanoid.Parent = nil
  3988. chatfunc("I don't have any crimes to DIE!")
  3989. ApplyAoE(RootPart, 955, 9999, 9999, 9999, true)
  3990. Humanoid.Name = "DEAD!"
  3991. Humanoid.MaxHealth = 16e+16
  3992. Humanoid.Health = 16e+16
  3993. CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(10,10,10))
  3994. CreateSound("178452217", Effects, 10, 1)
  3995. MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Really black",VT(500,500,500))
  3996. end)
  3997.  
  3998. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  3999. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  4000. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  4001. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  4002. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.20, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  4003. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.03, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  4004.  
  4005. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "Z - Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
  4006. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "X - Pure Heaven", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
  4007. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "F - Heaven's Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
  4008. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "V - Gates Of Darkness", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
  4009. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "C - ROAR", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
  4010. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "Q - Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6")
  4011.  
  4012. workspace.ChildAdded:connect(function(instance)
  4013. for BANISH = 1, #TOBANISH do
  4014. if TOBANISH[BANISH] ~= nil then
  4015. if instance.Name == TOBANISH[BANISH] then
  4016. coroutine.resume(coroutine.create(function()
  4017. printbye(instance.Name)
  4018. instance:ClearAllChildren()
  4019. Debris:AddItem(instance,0.0005)
  4020. end))
  4021. end
  4022. end
  4023. end
  4024. end)
  4025.  
  4026. --//=================================\\
  4027. --|| DAMAGING
  4028. --\\=================================//
  4029.  
  4030. function Banish(Foe)
  4031. if Foe then
  4032. coroutine.resume(coroutine.create(function()
  4033. --if game.Players:FindFirstChild(Foe.Name) then
  4034. table.insert(TOBANISH,Foe.Name)
  4035. printbye(Foe.Name)
  4036. --end
  4037. Foe.Archivable = true
  4038. local CLONE = Foe:Clone()
  4039. Foe:Destroy()
  4040. CLONE.Parent = Effects
  4041. CLONE:BreakJoints()
  4042. local MATERIALS = {"Glass","Neon"}
  4043. for _, c in pairs(CLONE:GetDescendants()) do
  4044. if c:IsA("BasePart") then
  4045. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  4046. CreateSound(340722848, c, 10, 1, false)
  4047. end
  4048. c.Anchored = true
  4049. c.Transparency = c.Transparency + 0.2
  4050. c.Material = MATERIALS[MRANDOM(1,2)]
  4051. c.Color = C3(1 ,1 ,1)
  4052. if c.ClassName == "MeshPart" then
  4053. c.TextureID = ""
  4054. end
  4055. if c:FindFirstChildOfClass("SpecialMesh") then
  4056. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  4057. end
  4058. if c:FindFirstChildOfClass("Decal") then
  4059. c:FindFirstChildOfClass("Decal"):remove()
  4060. end
  4061. c.Name = "Banished"
  4062. c.CanCollide = false
  4063. else
  4064. c:remove()
  4065. end
  4066. end
  4067. local A = false
  4068. for i = 1, 35 do
  4069. if A == false then
  4070. A = true
  4071. elseif A == true then
  4072. A = false
  4073. end
  4074. for _, c in pairs(CLONE:GetDescendants()) do
  4075. if c:IsA("BasePart") then
  4076. c.Anchored = true
  4077. c.Material = MATERIALS[MRANDOM(1,2)]
  4078. c.Transparency = c.Transparency + 0.8/35
  4079. if A == false then
  4080. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  4081. elseif A == true then
  4082. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  4083. end
  4084. end
  4085. end
  4086. Swait()
  4087. end
  4088. CLONE:remove()
  4089. end))
  4090. end
  4091. end
  4092.  
  4093. function ApplyAoE(POSITION,RANGE,ISBANISH)
  4094. local CHILDREN = workspace:GetDescendants()
  4095. for index, CHILD in pairs(CHILDREN) do
  4096. if CHILD.ClassName == "Model" and CHILD ~= Character then
  4097. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  4098. if HUM then
  4099. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  4100. if TORSO then
  4101. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  4102. if ISBANISH == true then
  4103. Banish(CHILD)
  4104. else
  4105. if ISBANISH == "Gravity" then
  4106. HUM.PlatformStand = true
  4107. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  4108. local grav = Instance.new("BodyPosition",TORSO)
  4109. grav.D = 15
  4110. grav.P = 20000
  4111. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  4112. grav.position = TORSO.Position
  4113. grav.Name = "V3BanishForce"..Player.Name
  4114. else
  4115. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  4116. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  4117. end
  4118. else
  4119. HUM.PlatformStand = false
  4120. end
  4121. end
  4122. elseif ISBANISH == "Gravity" then
  4123. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  4124. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  4125. HUM.PlatformStand = false
  4126. end
  4127. end
  4128. end
  4129. end
  4130. end
  4131. end
  4132. end
  4133. function recurse(root,callback,i)
  4134. i= i or 0
  4135. for _,v in pairs(root:GetChildren()) do
  4136. i = i + 1
  4137. callback(i,v)
  4138.  
  4139. if #v:GetChildren() > 0 then
  4140. i = recurse(v,callback,i)
  4141. end
  4142. end
  4143.  
  4144. return i
  4145. end
  4146. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  4147. attachmentName = attachmentName.."RigAttachment"
  4148. local constraint = Instance.new(className.."Constraint")
  4149. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  4150. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  4151. constraint.Name = "RagdollConstraint"..part1.Name
  4152.  
  4153. for _,propertyData in next,properties or {} do
  4154. constraint[propertyData[1]] = propertyData[2]
  4155. end
  4156.  
  4157. constraint.Parent = character
  4158. end
  4159. function getAttachment0(character, attachmentName)
  4160. for _,child in next,character:GetChildren() do
  4161. local attachment = child:FindFirstChild(attachmentName)
  4162. if attachment then
  4163. return attachment
  4164. end
  4165. end
  4166. end
  4167.  
  4168. function ArtificialHitbox(Part)
  4169. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  4170. HITBOX.CanCollide = true
  4171. HITBOX.CFrame = Part.CFrame
  4172. weldBetween(Part,HITBOX)
  4173. end
  4174. function R15Ragdoll(character,KeepArms)
  4175. character:BreakJoints()
  4176. coroutine.resume(coroutine.create(function()
  4177. recurse(character, function(_,v)
  4178. if v:IsA("Attachment") then
  4179. v.Axis = Vector3.new(0, 1, 0)
  4180. v.SecondaryAxis = Vector3.new(0, 0, 1)
  4181. v.Rotation = Vector3.new(0, 0, 0)
  4182. end
  4183. end)
  4184. for _,child in next,character:GetChildren() do
  4185. if child:IsA("Accoutrement") then
  4186. for _,part in next,child:GetChildren() do
  4187. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  4188. local attachment1 = part:FindFirstChildOfClass("Attachment")
  4189. local attachment0 = getAttachment0(character,attachment1.Name)
  4190. if attachment0 and attachment1 then
  4191. local constraint = Instance.new("HingeConstraint")
  4192. constraint.Attachment0 = attachment0
  4193. constraint.Attachment1 = attachment1
  4194. constraint.LimitsEnabled = true
  4195. constraint.UpperAngle = 0
  4196. constraint.LowerAngle = 0
  4197. constraint.Parent = character
  4198. end
  4199. ArtificialHitbox(part)
  4200. elseif part.Name == "HumanoidRootPart" then
  4201. part:remove()
  4202. end
  4203. end
  4204. end
  4205. end
  4206.  
  4207. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  4208. {"LimitsEnabled",true};
  4209. {"UpperAngle",5};
  4210. })
  4211. if character:FindFirstChild("Head") then
  4212. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  4213. {"LimitsEnabled",true};
  4214. {"UpperAngle",15};
  4215. })
  4216. end
  4217.  
  4218. local handProperties = {
  4219. {"LimitsEnabled", true};
  4220. {"UpperAngle",0};
  4221. {"LowerAngle",0};
  4222. }
  4223. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  4224. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  4225.  
  4226. local shinProperties = {
  4227. {"LimitsEnabled", true};
  4228. {"UpperAngle", 0};
  4229. {"LowerAngle", -75};
  4230. }
  4231. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  4232. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  4233.  
  4234. local footProperties = {
  4235. {"LimitsEnabled", true};
  4236. {"UpperAngle", 15};
  4237. {"LowerAngle", -45};
  4238. }
  4239. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  4240. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  4241. if KeepArms == true then
  4242. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  4243. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  4244. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  4245. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  4246. end
  4247. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  4248. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  4249. Debris:AddItem(character,5)
  4250. end))
  4251. end
  4252.  
  4253. function Ragdoll(Character2,CharTorso,KeepArms)
  4254. coroutine.resume(coroutine.create(function()
  4255. Character2:BreakJoints()
  4256. local hum = Character2:findFirstChild("Humanoid")
  4257. hum:remove()
  4258. local function Scan(ch)
  4259. local e
  4260. for e = 1,#ch do
  4261. Scan(ch[e]:GetChildren())
  4262. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  4263. ch[e]:remove()
  4264. end
  4265. end
  4266. end
  4267. local NEWHUM = IT("Humanoid")
  4268. NEWHUM.Name = "Corpse"
  4269. NEWHUM.Health = 0
  4270. NEWHUM.MaxHealth = 0
  4271. NEWHUM.PlatformStand = true
  4272. NEWHUM.Parent = Character2
  4273. NEWHUM.DisplayDistanceType = "None"
  4274.  
  4275. local ch = Character2:GetChildren()
  4276. local i
  4277. for i = 1,#ch do
  4278. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  4279. ch[i]:remove()
  4280. end
  4281. end
  4282.  
  4283. local Torso2 = Character2.Torso
  4284. local movevector = Vector3.new()
  4285.  
  4286. if Torso2 then
  4287. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  4288. local Head = Character2:FindFirstChild("Head")
  4289. if Head then
  4290. local Neck = Instance.new("Weld")
  4291. Neck.Name = "Neck"
  4292. Neck.Part0 = Torso2
  4293. Neck.Part1 = Head
  4294. Neck.C0 = CFrame.new(0, 1.5, 0)
  4295. Neck.C1 = CFrame.new()
  4296. Neck.Parent = Torso2
  4297.  
  4298. end
  4299. local Limb = Character2:FindFirstChild("Right Arm")
  4300. if Limb and KeepArms == true then
  4301.  
  4302. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  4303. local Joint = Instance.new("Glue")
  4304. Joint.Name = "RightShoulder"
  4305. Joint.Part0 = Torso2
  4306. Joint.Part1 = Limb
  4307. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4308. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4309. Joint.Parent = Torso2
  4310.  
  4311. local B = Instance.new("Part")
  4312. B.TopSurface = 0
  4313. B.BottomSurface = 0
  4314. B.formFactor = "Symmetric"
  4315. B.Size = Vector3.new(1, 1, 1)
  4316. B.Transparency = 1
  4317. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4318. B.Parent = Character2
  4319. local W = Instance.new("Weld")
  4320. W.Part0 = Limb
  4321. W.Part1 = B
  4322. W.C0 = CFrame.new(0, -0.5, 0)
  4323. W.Parent = Limb
  4324.  
  4325. end
  4326. local Limb = Character2:FindFirstChild("Left Arm")
  4327. if Limb and KeepArms == true then
  4328.  
  4329. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  4330. local Joint = Instance.new("Glue")
  4331. Joint.Name = "LeftShoulder"
  4332. Joint.Part0 = Torso2
  4333. Joint.Part1 = Limb
  4334. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4335. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4336. Joint.Parent = Torso2
  4337.  
  4338. local B = Instance.new("Part")
  4339. B.TopSurface = 0
  4340. B.BottomSurface = 0
  4341. B.formFactor = "Symmetric"
  4342. B.Size = Vector3.new(1, 1, 1)
  4343. B.Transparency = 1
  4344. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4345. B.Parent = Character2
  4346. local W = Instance.new("Weld")
  4347. W.Part0 = Limb
  4348. W.Part1 = B
  4349. W.C0 = CFrame.new(0, -0.5, 0)
  4350. W.Parent = Limb
  4351.  
  4352. end
  4353. local Limb = Character2:FindFirstChild("Right Leg")
  4354. if Limb then
  4355.  
  4356. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  4357. local Joint = Instance.new("Glue")
  4358. Joint.Name = "RightHip"
  4359. Joint.Part0 = Torso2
  4360. Joint.Part1 = Limb
  4361. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4362. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  4363. Joint.Parent = Torso2
  4364.  
  4365. local B = Instance.new("Part")
  4366. B.TopSurface = 0
  4367. B.BottomSurface = 0
  4368. B.formFactor = "Symmetric"
  4369. B.Size = Vector3.new(1, 1, 1)
  4370. B.Transparency = 1
  4371. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4372. B.Parent = Character2
  4373. local W = Instance.new("Weld")
  4374. W.Part0 = Limb
  4375. W.Part1 = B
  4376. W.C0 = CFrame.new(0, -0.5, 0)
  4377. W.Parent = Limb
  4378.  
  4379. end
  4380. local Limb = Character2:FindFirstChild("Left Leg")
  4381. if Limb then
  4382.  
  4383. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  4384. local Joint = Instance.new("Glue")
  4385. Joint.Name = "LeftHip"
  4386. Joint.Part0 = Torso2
  4387. Joint.Part1 = Limb
  4388. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4389. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  4390. Joint.Parent = Torso2
  4391.  
  4392. local B = Instance.new("Part")
  4393. B.TopSurface = 0
  4394. B.BottomSurface = 0
  4395. B.formFactor = "Symmetric"
  4396. B.Size = Vector3.new(1, 1, 1)
  4397. B.Transparency = 1
  4398. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  4399. B.Parent = Character2
  4400. local W = Instance.new("Weld")
  4401. W.Part0 = Limb
  4402. W.Part1 = B
  4403. W.C0 = CFrame.new(0, -0.5, 0)
  4404. W.Parent = Limb
  4405.  
  4406. end
  4407. --[
  4408. local Bar = Instance.new("Part")
  4409. Bar.TopSurface = 0
  4410. Bar.BottomSurface = 0
  4411. Bar.formFactor = "Symmetric"
  4412. Bar.Size = Vector3.new(1, 1, 1)
  4413. Bar.Transparency = 1
  4414. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  4415. Bar.Parent = Character2
  4416. local Weld = Instance.new("Weld")
  4417. Weld.Part0 = Torso2
  4418. Weld.Part1 = Bar
  4419. Weld.C0 = CFrame.new(0, 0.5, 0)
  4420. Weld.Parent = Torso2
  4421. --]]
  4422. end
  4423. Character2.Parent = workspace
  4424. Debris:AddItem(Character2,5)
  4425.  
  4426. return Character2,Torso2
  4427. end))
  4428. end
  4429.  
  4430. --//=================================\\
  4431. --|| ATTACK FUNCTIONS AND STUFF
  4432. --\\=================================//
  4433. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  4434. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  4435. local mesh = IT("SpecialMesh",wave)
  4436. mesh.MeshType = "Sphere"
  4437. mesh.Scale = SIZE
  4438. mesh.Offset = VT(0,0,0)
  4439. wave.CFrame = CFRAME
  4440. coroutine.resume(coroutine.create(function(PART)
  4441. for i = 1, WAIT do
  4442. Swait()
  4443. mesh.Scale = mesh.Scale + GROW
  4444. wave.Transparency = wave.Transparency + (1/WAIT)
  4445. if wave.Transparency > 0.99 then
  4446. wave:remove()
  4447. end
  4448. end
  4449. end))
  4450. end
  4451. function Roar()
  4452. ATTACK = true
  4453. Rooted = true
  4454. local VIOLENCE = 1
  4455. FORCEIDLE = true
  4456. FORCEIDLE = false
  4457. if VIOLENCE <= 10 then
  4458. MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(2,2,2))
  4459. for i=0, 1, 0.1 / Animation_Speed do
  4460. Swait()
  4461. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4462. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4463. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(22)) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  4464. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(-22)) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  4465. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4466. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4467. end
  4468. local TAUNT = CreateSound(ROAR[MRANDOM(1,#ROAR)], Head, 100, 1, false)
  4469. repeat Swait() until TAUNT.TimeLength > 0
  4470. repeat
  4471. Swait()
  4472. ApplyAoE(Head.Position,15,0,0,200,false)
  4473. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  4474. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(150,0,150), Transparency = 1, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  4475. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(350,0,350), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  4476. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
  4477. TAUNT.Parent = Head
  4478. Swait()
  4479. TAUNT.Parent = Head
  4480. local CHILDREN = workspace:GetDescendants()
  4481. for index, CHILD in pairs(CHILDREN) do
  4482. if CHILD.ClassName == "Model" and CHILD ~= Character then
  4483. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  4484. if HUM then
  4485. local TORSO = CHILD:FindFirstChild("Head")
  4486. if TORSO then
  4487. if (TORSO.Position - Head.Position).Magnitude <= 999 then
  4488. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4489. TORSO:remove()
  4490. if CHILD:FindFirstChild("Torso") then
  4491. Ragdoll(CHILD,Torso,true)
  4492. elseif CHILD:FindFirstChild("UpperTorso") then
  4493. R15Ragdoll(CHILD,true)
  4494. end
  4495. end
  4496. end
  4497. end
  4498. end
  4499. end
  4500. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, -0.2*SIZE, -0.1*SIZE) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  4501. 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)
  4502. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(-35), RAD(0), RAD(42)) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4503. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(-35), RAD(0), RAD(-42)) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4504. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(25), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  4505. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(45), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  4506. until TAUNT.TimePosition > TAUNT.TimeLength - 2
  4507. end
  4508. MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5))
  4509. ATTACK = false
  4510. Rooted = false
  4511. end
  4512. function Shot()
  4513. ATTACK = true
  4514. Rooted = false
  4515. MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5))
  4516. MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5))
  4517. for i=0, 0.5, 0.22 / Animation_Speed do
  4518. Swait()
  4519. turnto(Mouse.Hit.p)
  4520. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  4521. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  4522. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  4523. 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)
  4524. 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)
  4525. end
  4526. repeat
  4527. for i=0, 0.5, 0.22 / Animation_Speed do
  4528. Swait()
  4529. turnto(Mouse.Hit.p)
  4530. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  4531. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  4532. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  4533. 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)
  4534. 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)
  4535. end
  4536. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  4537. SpawnTrail0(Hole.Position,POS)
  4538. if HIT ~= nil then
  4539. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  4540. Banish(HIT.Parent)
  4541. end
  4542. end
  4543. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(4,4,4).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4544. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 904440937, SoundPitch = 0.95, SoundVolume = 10})
  4545. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), 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 = 1, SoundVolume = 8})
  4546. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), 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 = 1, SoundVolume = 8})
  4547. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  4548. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(150,0,150), Transparency = 1, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  4549. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(350,0,350), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  4550. for i=0, 0.5, 0.22 / Animation_Speed do
  4551. Swait()
  4552. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  4553. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  4554. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  4555. 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)
  4556. 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)
  4557. end
  4558. MagicSphere(VT(0,0,0),15,Head.CFrame,"Really black",VT(5,5,5))
  4559. until KEYHOLD == false
  4560. ATTACK = false
  4561. Rooted = false
  4562. end
  4563. function CreateDebreeRing2(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  4564. if FLOOR ~= nil then
  4565. coroutine.resume(coroutine.create(function()
  4566. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really black", "DebreeCenter", VT(0,0,0))
  4567. PART.CFrame = CF(POSITION)
  4568. for i = 1, 45 do
  4569. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really black", "DebreePart", BLOCKSIZE)
  4570. RingPiece.Material = FLOOR.Material
  4571. RingPiece.Color = FLOOR.Color
  4572. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  4573. Debris:AddItem(RingPiece,SWAIT)
  4574. end
  4575. PART:remove()
  4576. end))
  4577. end
  4578. end
  4579.  
  4580. function CreateFlyingDebree2(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  4581. if FLOOR ~= nil then
  4582. for i = 1, AMOUNT do
  4583. local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Debree", BLOCKSIZE, false)
  4584. DEBREE.Material = FLOOR.Material
  4585. DEBREE.Color = FLOOR.Color
  4586. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  4587. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
  4588. coroutine.resume(coroutine.create(function()
  4589. Swait(15)
  4590. DEBREE.Parent = workspace
  4591. DEBREE.CanCollide = true
  4592. Debris:AddItem(DEBREE,SWAIT)
  4593. end))
  4594. end
  4595. end
  4596. end
  4597. function Pure_Heaven()
  4598. chatfunc("It will be over soon...")
  4599. ATTACK = true
  4600. Rooted = true
  4601. for i = 1, 15 do
  4602. Swait()
  4603. 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  4604. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed)
  4605. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4606. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4607. end
  4608. for i=0, 0.5, 0.1 / Animation_Speed do
  4609. Swait()
  4610. 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(65 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  4611. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-65 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  4612. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4613. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  4614. end
  4615. coroutine.resume(coroutine.create(function()
  4616. local POS = Mouse.Hit.p
  4617. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  4618. MakeForm(RAY,"Cyl")
  4619. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  4620. MakeForm(SPHERE,"Ball")
  4621. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
  4622. MakeForm(SHIELD,"Ball")
  4623. SHIELD.CFrame = CF(POS)
  4624. RAY.CFrame = CF(POS)
  4625. SPHERE.CFrame = CF(POS)
  4626. CreateSound(440145570, SPHERE, 15, 0.5, false)
  4627. CreateSound(415700134, SPHERE, 15, 0.5, false)
  4628. for i = 1, 200 do
  4629. Swait()
  4630. 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})
  4631. RAY.Size = RAY.Size + VT(0.5,0,0.5)
  4632. SPHERE.Size = SPHERE.Size + VT(1.5,1.5,1.5)
  4633. SHIELD.Size = SPHERE.Size + VT(2.5,2.5,2.5)
  4634. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  4635. end
  4636. for i = 1, 45 do
  4637. Swait()
  4638. RAY.Transparency = RAY.Transparency + 1/45
  4639. SPHERE.Transparency = RAY.Transparency
  4640. SHIELD.Transparency = SPHERE.Transparency + 1/45
  4641. end
  4642. RAY:remove()
  4643. SHIELD:remove()
  4644. SPHERE:remove()
  4645. end))
  4646. for i=0, 1, 0.1 / Animation_Speed do
  4647. Swait()
  4648. 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)
  4649. 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)
  4650. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4651. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4652. 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)
  4653. 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)
  4654. end
  4655. ATTACK = false
  4656. Rooted = false
  4657. end
  4658. function printbye(Name)
  4659. local MESSAGES = {"D I E , ","S U F F E R, ",": ) , ","S O R R Y, "}
  4660. chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  4661. end
  4662. local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  4663. MakeForm(RightHole,"Cyl")
  4664. local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  4665. MakeForm(LeftHole,"Cyl")
  4666. function Gates_Of_Darkness()
  4667. chatfunc("Be Darker...")
  4668. CreateSound(0, Torso, 10, 1, false)
  4669. ATTACK = true
  4670. Rooted = true
  4671. for i=0, 0.5, 0.1 / Animation_Speed do
  4672. Swait()
  4673. 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)
  4674. 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)
  4675. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4676. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4677. 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)
  4678. 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)
  4679. end
  4680. local DONE = false
  4681. local GATE = nil
  4682. local GATESPIN = true
  4683. coroutine.resume(coroutine.create(function()
  4684. repeat
  4685. Swait()
  4686. if GATE ~= nil then
  4687. GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0))
  4688. end
  4689. until GATESPIN == false
  4690. end))
  4691. coroutine.resume(coroutine.create(function()
  4692. repeat
  4693. Swait()
  4694. 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)
  4695. 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)
  4696. 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)
  4697. 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)
  4698. 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)
  4699. 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)
  4700. until DONE == true
  4701. Swait(50)
  4702. for i = 1, 35 do
  4703. Swait(4)
  4704. local FIRED = false
  4705. local CHILDREN = workspace:GetDescendants()
  4706. for index, CHILD in pairs(CHILDREN) do
  4707. if CHILD.ClassName == "Model" and CHILD ~= Character then
  4708. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  4709. if HUM then
  4710. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  4711. if TORSO then
  4712. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  4713. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  4714. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  4715. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4716. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4717. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  4718. Banish(CHILD)
  4719. FIRED = true
  4720. break
  4721. end
  4722. end
  4723. end
  4724. end
  4725. end
  4726. if FIRED == false then
  4727. 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)))
  4728. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4729. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4730. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  4731. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  4732. if HITBOD ~= nil then
  4733. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  4734. Banish(HITBOD.Parent)
  4735. end
  4736. end
  4737. end
  4738. end
  4739. for i = 1, 35 do
  4740. Swait(4)
  4741. local FIRED = false
  4742. local CHILDREN = workspace:GetDescendants()
  4743. for index, CHILD in pairs(CHILDREN) do
  4744. if CHILD.ClassName == "Model" and CHILD ~= Character then
  4745. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  4746. if HUM then
  4747. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  4748. if TORSO then
  4749. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  4750. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  4751. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  4752. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4753. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4754. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  4755. Banish(CHILD)
  4756. FIRED = true
  4757. break
  4758. end
  4759. end
  4760. end
  4761. end
  4762. end
  4763. if FIRED == false then
  4764. 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)))
  4765. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4766. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4767. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  4768. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  4769. if HITBOD ~= nil then
  4770. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  4771. Banish(HITBOD.Parent)
  4772. end
  4773. end
  4774. end
  4775. end
  4776. for i = 1, 35 do
  4777. Swait(4)
  4778. local FIRED = false
  4779. local CHILDREN = workspace:GetDescendants()
  4780. for index, CHILD in pairs(CHILDREN) do
  4781. if CHILD.ClassName == "Model" and CHILD ~= Character then
  4782. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  4783. if HUM then
  4784. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  4785. if TORSO then
  4786. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  4787. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  4788. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  4789. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4790. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4791. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  4792. Banish(CHILD)
  4793. FIRED = true
  4794. break
  4795. end
  4796. end
  4797. end
  4798. end
  4799. end
  4800. if FIRED == false then
  4801. 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)))
  4802. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4803. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4804. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  4805. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  4806. if HITBOD ~= nil then
  4807. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  4808. Banish(HITBOD.Parent)
  4809. end
  4810. end
  4811. end
  4812. end
  4813. for i = 1, 35 do
  4814. Swait(4)
  4815. local FIRED = false
  4816. local CHILDREN = workspace:GetDescendants()
  4817. for index, CHILD in pairs(CHILDREN) do
  4818. if CHILD.ClassName == "Model" and CHILD ~= Character then
  4819. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  4820. if HUM then
  4821. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  4822. if TORSO then
  4823. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  4824. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  4825. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  4826. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4827. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4828. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  4829. Banish(CHILD)
  4830. FIRED = true
  4831. break
  4832. end
  4833. end
  4834. end
  4835. end
  4836. end
  4837. if FIRED == false then
  4838. 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)))
  4839. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4840. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4841. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  4842. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  4843. if HITBOD ~= nil then
  4844. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  4845. Banish(HITBOD.Parent)
  4846. end
  4847. end
  4848. end
  4849. end
  4850. for i = 1, 35 do
  4851. Swait(4)
  4852. local FIRED = false
  4853. local CHILDREN = workspace:GetDescendants()
  4854. for index, CHILD in pairs(CHILDREN) do
  4855. if CHILD.ClassName == "Model" and CHILD ~= Character then
  4856. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  4857. if HUM then
  4858. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  4859. if TORSO then
  4860. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  4861. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  4862. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  4863. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4864. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4865. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  4866. Banish(CHILD)
  4867. FIRED = true
  4868. break
  4869. end
  4870. end
  4871. end
  4872. end
  4873. end
  4874. if FIRED == false then
  4875. 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)))
  4876. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4877. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4878. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  4879. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  4880. if HITBOD ~= nil then
  4881. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  4882. Banish(HITBOD.Parent)
  4883. end
  4884. end
  4885. end
  4886. end
  4887. for i = 1, 35 do
  4888. Swait(4)
  4889. local FIRED = false
  4890. local CHILDREN = workspace:GetDescendants()
  4891. for index, CHILD in pairs(CHILDREN) do
  4892. if CHILD.ClassName == "Model" and CHILD ~= Character then
  4893. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  4894. if HUM then
  4895. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  4896. if TORSO then
  4897. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  4898. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  4899. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  4900. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4901. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4902. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  4903. Banish(CHILD)
  4904. FIRED = true
  4905. break
  4906. end
  4907. end
  4908. end
  4909. end
  4910. end
  4911. if FIRED == false then
  4912. 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)))
  4913. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4914. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4915. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  4916. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  4917. if HITBOD ~= nil then
  4918. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  4919. Banish(HITBOD.Parent)
  4920. end
  4921. end
  4922. end
  4923. end
  4924. for i = 1, 35 do
  4925. Swait(4)
  4926. local FIRED = false
  4927. local CHILDREN = workspace:GetDescendants()
  4928. for index, CHILD in pairs(CHILDREN) do
  4929. if CHILD.ClassName == "Model" and CHILD ~= Character then
  4930. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  4931. if HUM then
  4932. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  4933. if TORSO then
  4934. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  4935. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  4936. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  4937. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4938. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4939. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  4940. Banish(CHILD)
  4941. FIRED = true
  4942. break
  4943. end
  4944. end
  4945. end
  4946. end
  4947. end
  4948. if FIRED == false then
  4949. 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)))
  4950. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4951. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4952. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  4953. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  4954. if HITBOD ~= nil then
  4955. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  4956. Banish(HITBOD.Parent)
  4957. end
  4958. end
  4959. end
  4960. end
  4961. for i = 1, 35 do
  4962. Swait(4)
  4963. local FIRED = false
  4964. local CHILDREN = workspace:GetDescendants()
  4965. for index, CHILD in pairs(CHILDREN) do
  4966. if CHILD.ClassName == "Model" and CHILD ~= Character then
  4967. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  4968. if HUM then
  4969. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  4970. if TORSO then
  4971. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  4972. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  4973. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  4974. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4975. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4976. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  4977. Banish(CHILD)
  4978. FIRED = true
  4979. break
  4980. end
  4981. end
  4982. end
  4983. end
  4984. end
  4985. if FIRED == false then
  4986. 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)))
  4987. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  4988. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  4989. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  4990. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  4991. if HITBOD ~= nil then
  4992. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  4993. Banish(HITBOD.Parent)
  4994. end
  4995. end
  4996. end
  4997. end
  4998. for i = 1, 35 do
  4999. Swait(4)
  5000. local FIRED = false
  5001. local CHILDREN = workspace:GetDescendants()
  5002. for index, CHILD in pairs(CHILDREN) do
  5003. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5004. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5005. if HUM then
  5006. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5007. if TORSO then
  5008. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5009. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5010. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5011. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5012. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5013. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5014. Banish(CHILD)
  5015. FIRED = true
  5016. break
  5017. end
  5018. end
  5019. end
  5020. end
  5021. end
  5022. if FIRED == false then
  5023. 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)))
  5024. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5025. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5026. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5027. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5028. if HITBOD ~= nil then
  5029. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5030. Banish(HITBOD.Parent)
  5031. end
  5032. end
  5033. end
  5034. end
  5035. for i = 1, 35 do
  5036. Swait(4)
  5037. local FIRED = false
  5038. local CHILDREN = workspace:GetDescendants()
  5039. for index, CHILD in pairs(CHILDREN) do
  5040. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5041. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5042. if HUM then
  5043. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5044. if TORSO then
  5045. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5046. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5047. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5048. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5049. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5050. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5051. Banish(CHILD)
  5052. FIRED = true
  5053. break
  5054. end
  5055. end
  5056. end
  5057. end
  5058. end
  5059. if FIRED == false then
  5060. 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)))
  5061. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5062. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5063. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5064. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5065. if HITBOD ~= nil then
  5066. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5067. Banish(HITBOD.Parent)
  5068. end
  5069. end
  5070. end
  5071. end
  5072. for i = 1, 35 do
  5073. Swait(4)
  5074. local FIRED = false
  5075. local CHILDREN = workspace:GetDescendants()
  5076. for index, CHILD in pairs(CHILDREN) do
  5077. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5078. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5079. if HUM then
  5080. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5081. if TORSO then
  5082. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5083. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5084. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5085. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5086. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5087. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5088. Banish(CHILD)
  5089. FIRED = true
  5090. break
  5091. end
  5092. end
  5093. end
  5094. end
  5095. end
  5096. if FIRED == false then
  5097. 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)))
  5098. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5099. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5100. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5101. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5102. if HITBOD ~= nil then
  5103. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5104. Banish(HITBOD.Parent)
  5105. end
  5106. end
  5107. end
  5108. end
  5109. for i = 1, 35 do
  5110. Swait(4)
  5111. local FIRED = false
  5112. local CHILDREN = workspace:GetDescendants()
  5113. for index, CHILD in pairs(CHILDREN) do
  5114. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5115. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5116. if HUM then
  5117. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5118. if TORSO then
  5119. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5120. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5121. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5122. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5123. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5124. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5125. Banish(CHILD)
  5126. FIRED = true
  5127. break
  5128. end
  5129. end
  5130. end
  5131. end
  5132. end
  5133. if FIRED == false then
  5134. 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)))
  5135. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5136. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5137. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5138. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5139. if HITBOD ~= nil then
  5140. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5141. Banish(HITBOD.Parent)
  5142. end
  5143. end
  5144. end
  5145. end
  5146. for i = 1, 35 do
  5147. Swait(4)
  5148. local FIRED = false
  5149. local CHILDREN = workspace:GetDescendants()
  5150. for index, CHILD in pairs(CHILDREN) do
  5151. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5152. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5153. if HUM then
  5154. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5155. if TORSO then
  5156. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5157. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5158. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5159. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5160. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5161. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5162. Banish(CHILD)
  5163. FIRED = true
  5164. break
  5165. end
  5166. end
  5167. end
  5168. end
  5169. end
  5170. if FIRED == false then
  5171. 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)))
  5172. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5173. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5174. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5175. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5176. if HITBOD ~= nil then
  5177. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5178. Banish(HITBOD.Parent)
  5179. end
  5180. end
  5181. end
  5182. end
  5183. for i = 1, 35 do
  5184. Swait(4)
  5185. local FIRED = false
  5186. local CHILDREN = workspace:GetDescendants()
  5187. for index, CHILD in pairs(CHILDREN) do
  5188. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5189. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5190. if HUM then
  5191. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5192. if TORSO then
  5193. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5194. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5195. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5196. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5197. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5198. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5199. Banish(CHILD)
  5200. FIRED = true
  5201. break
  5202. end
  5203. end
  5204. end
  5205. end
  5206. end
  5207. if FIRED == false then
  5208. 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)))
  5209. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5210. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5211. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5212. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5213. if HITBOD ~= nil then
  5214. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5215. Banish(HITBOD.Parent)
  5216. end
  5217. end
  5218. end
  5219. end
  5220. for i = 1, 35 do
  5221. Swait(4)
  5222. local FIRED = false
  5223. local CHILDREN = workspace:GetDescendants()
  5224. for index, CHILD in pairs(CHILDREN) do
  5225. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5226. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5227. if HUM then
  5228. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5229. if TORSO then
  5230. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5231. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5232. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5233. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5234. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5235. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5236. Banish(CHILD)
  5237. FIRED = true
  5238. break
  5239. end
  5240. end
  5241. end
  5242. end
  5243. end
  5244. if FIRED == false then
  5245. 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)))
  5246. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5247. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5248. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5249. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5250. if HITBOD ~= nil then
  5251. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5252. Banish(HITBOD.Parent)
  5253. end
  5254. end
  5255. end
  5256. end
  5257. for i = 1, 35 do
  5258. Swait(4)
  5259. local FIRED = false
  5260. local CHILDREN = workspace:GetDescendants()
  5261. for index, CHILD in pairs(CHILDREN) do
  5262. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5263. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5264. if HUM then
  5265. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5266. if TORSO then
  5267. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5268. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5269. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5270. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5271. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5272. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5273. Banish(CHILD)
  5274. FIRED = true
  5275. break
  5276. end
  5277. end
  5278. end
  5279. end
  5280. end
  5281. if FIRED == false then
  5282. 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)))
  5283. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5284. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5285. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5286. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5287. if HITBOD ~= nil then
  5288. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5289. Banish(HITBOD.Parent)
  5290. end
  5291. end
  5292. end
  5293. end
  5294. for i = 1, 35 do
  5295. Swait(4)
  5296. local FIRED = false
  5297. local CHILDREN = workspace:GetDescendants()
  5298. for index, CHILD in pairs(CHILDREN) do
  5299. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5300. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5301. if HUM then
  5302. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5303. if TORSO then
  5304. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5305. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5306. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5307. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5308. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5309. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5310. Banish(CHILD)
  5311. FIRED = true
  5312. break
  5313. end
  5314. end
  5315. end
  5316. end
  5317. end
  5318. if FIRED == false then
  5319. 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)))
  5320. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5321. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5322. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5323. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5324. if HITBOD ~= nil then
  5325. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5326. Banish(HITBOD.Parent)
  5327. end
  5328. end
  5329. end
  5330. end
  5331. for i = 1, 35 do
  5332. Swait(4)
  5333. local FIRED = false
  5334. local CHILDREN = workspace:GetDescendants()
  5335. for index, CHILD in pairs(CHILDREN) do
  5336. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5337. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5338. if HUM then
  5339. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5340. if TORSO then
  5341. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5342. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5343. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5344. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5345. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5346. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5347. Banish(CHILD)
  5348. FIRED = true
  5349. break
  5350. end
  5351. end
  5352. end
  5353. end
  5354. end
  5355. if FIRED == false then
  5356. 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)))
  5357. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5358. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5359. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5360. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5361. if HITBOD ~= nil then
  5362. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5363. Banish(HITBOD.Parent)
  5364. end
  5365. end
  5366. end
  5367. end
  5368. for i = 1, 35 do
  5369. Swait(4)
  5370. local FIRED = false
  5371. local CHILDREN = workspace:GetDescendants()
  5372. for index, CHILD in pairs(CHILDREN) do
  5373. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5374. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5375. if HUM then
  5376. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5377. if TORSO then
  5378. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5379. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5380. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5381. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5382. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5383. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5384. Banish(CHILD)
  5385. FIRED = true
  5386. break
  5387. end
  5388. end
  5389. end
  5390. end
  5391. end
  5392. if FIRED == false then
  5393. 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)))
  5394. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5395. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5396. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5397. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5398. if HITBOD ~= nil then
  5399. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5400. Banish(HITBOD.Parent)
  5401. end
  5402. end
  5403. end
  5404. end
  5405. for i = 1, 35 do
  5406. Swait(4)
  5407. local FIRED = false
  5408. local CHILDREN = workspace:GetDescendants()
  5409. for index, CHILD in pairs(CHILDREN) do
  5410. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5411. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5412. if HUM then
  5413. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5414. if TORSO then
  5415. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5416. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5417. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5418. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5419. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5420. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5421. Banish(CHILD)
  5422. FIRED = true
  5423. break
  5424. end
  5425. end
  5426. end
  5427. end
  5428. end
  5429. if FIRED == false then
  5430. 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)))
  5431. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5432. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5433. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5434. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5435. if HITBOD ~= nil then
  5436. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5437. Banish(HITBOD.Parent)
  5438. end
  5439. end
  5440. end
  5441. end
  5442. for i = 1, 35 do
  5443. Swait(4)
  5444. local FIRED = false
  5445. local CHILDREN = workspace:GetDescendants()
  5446. for index, CHILD in pairs(CHILDREN) do
  5447. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5448. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5449. if HUM then
  5450. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5451. if TORSO then
  5452. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5453. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5454. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5455. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5456. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5457. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5458. Banish(CHILD)
  5459. FIRED = true
  5460. break
  5461. end
  5462. end
  5463. end
  5464. end
  5465. end
  5466. if FIRED == false then
  5467. 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)))
  5468. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5469. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5470. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5471. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5472. if HITBOD ~= nil then
  5473. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5474. Banish(HITBOD.Parent)
  5475. end
  5476. end
  5477. end
  5478. end
  5479. for i = 1, 35 do
  5480. Swait(4)
  5481. local FIRED = false
  5482. local CHILDREN = workspace:GetDescendants()
  5483. for index, CHILD in pairs(CHILDREN) do
  5484. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5485. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5486. if HUM then
  5487. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5488. if TORSO then
  5489. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5490. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5491. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5492. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5493. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5494. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5495. Banish(CHILD)
  5496. FIRED = true
  5497. break
  5498. end
  5499. end
  5500. end
  5501. end
  5502. end
  5503. if FIRED == false then
  5504. 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)))
  5505. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5506. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5507. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5508. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5509. if HITBOD ~= nil then
  5510. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5511. Banish(HITBOD.Parent)
  5512. end
  5513. end
  5514. end
  5515. end
  5516. for i = 1, 35 do
  5517. Swait(4)
  5518. local FIRED = false
  5519. local CHILDREN = workspace:GetDescendants()
  5520. for index, CHILD in pairs(CHILDREN) do
  5521. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5522. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5523. if HUM then
  5524. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5525. if TORSO then
  5526. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5527. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5528. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5529. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5530. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5531. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5532. Banish(CHILD)
  5533. FIRED = true
  5534. break
  5535. end
  5536. end
  5537. end
  5538. end
  5539. end
  5540. if FIRED == false then
  5541. 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)))
  5542. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5543. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5544. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5545. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5546. if HITBOD ~= nil then
  5547. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5548. Banish(HITBOD.Parent)
  5549. end
  5550. end
  5551. end
  5552. end
  5553. for i = 1, 35 do
  5554. Swait(4)
  5555. local FIRED = false
  5556. local CHILDREN = workspace:GetDescendants()
  5557. for index, CHILD in pairs(CHILDREN) do
  5558. if CHILD.ClassName == "Model" and CHILD ~= Character then
  5559. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  5560. if HUM then
  5561. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  5562. if TORSO then
  5563. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  5564. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5565. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  5566. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5567. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5568. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  5569. Banish(CHILD)
  5570. FIRED = true
  5571. break
  5572. end
  5573. end
  5574. end
  5575. end
  5576. end
  5577. if FIRED == false then
  5578. 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)))
  5579. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  5580. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  5581. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  5582. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  5583. if HITBOD ~= nil then
  5584. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  5585. Banish(HITBOD.Parent)
  5586. end
  5587. end
  5588. end
  5589. end
  5590. for i = 1, 45 do
  5591. Swait()
  5592. GATE.Size = GATE.Size - VT(10,0,10)
  5593. end
  5594. GATESPIN = false
  5595. GATE:remove()
  5596. end))
  5597. Swait(15)
  5598. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  5599. GATE = CreatePart(3, Effects, "Neon", 0, 1, "Black", "Gate", VT(0,0,0))
  5600. local DECAL = IT("Decal",GATE)
  5601. DECAL.Texture = "http://www.roblox.com/asset/?id=62270888"
  5602. DECAL.Face = "Top"
  5603. GATE.CFrame = CF(HITPOS)
  5604. CreateSound(0, GATE, 7, 1.3, false)
  5605. for i = 1, 45 do
  5606. Swait()
  5607. GATE.Size = GATE.Size + VT(10,0,10)
  5608. end
  5609. CreateSound(213603013, RightHole, 7, 1, false)
  5610. CreateSound(213603013, LeftHole, 7, 1, false)
  5611. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(8,8,8), 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})
  5612. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(8,8,8), 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})
  5613. ATTACK = false
  5614. Rooted = false
  5615. DONE = true
  5616. end
  5617. function Taunt()
  5618. ATTACK = true
  5619. Rooted = true
  5620. CreateSound("907333406", Head, 10, 0.9)
  5621. sick:Stop()
  5622. Weapon.Parent = nil
  5623. for i = 1, 3 do
  5624. for i = 0, 0.7, 0.14 / Animation_Speed do
  5625. Swait()
  5626. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  5627. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  5628. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  5629. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  5630. 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.25 / Animation_Speed)
  5631. 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.25 / Animation_Speed)
  5632. end
  5633. for i = 0, 0.7, 0.14 / Animation_Speed do
  5634. Swait()
  5635. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  5636. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  5637. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  5638. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  5639. 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.25 / Animation_Speed)
  5640. 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.25 / Animation_Speed)
  5641. end
  5642. end
  5643. sick:Play()
  5644. Weapon.Parent = Character
  5645. ATTACK = false
  5646. Rooted = false
  5647. end
  5648.  
  5649. --//=================================\\
  5650. --|| ASSIGN THINGS TO KEYS
  5651. --\\=================================//
  5652.  
  5653. function MouseDown(Mouse)
  5654. if ATTACK == false then
  5655. end
  5656. end
  5657.  
  5658. function MouseUp(Mouse)
  5659. HOLD = false
  5660. end
  5661.  
  5662. function KeyDown(Key)
  5663. KEYHOLD = true
  5664. if Key == "z" and ATTACK == false then
  5665. Shot()
  5666. end
  5667.  
  5668. if Key == "f" and ATTACK == false then
  5669. chatfunc("If you decided to be a Good Person then go to Afterlife...")
  5670. TOBANISH = {}
  5671. end
  5672.  
  5673. if Key == "t" and ATTACK == false then
  5674. Taunt()
  5675. end
  5676.  
  5677. if Key == "c" and ATTACK == false then
  5678. Roar()
  5679. end
  5680.  
  5681. if Key == "q" and ATTACK == false then
  5682. for i=0, 0.5, 0.08 / Animation_Speed do
  5683. Swait()
  5684. 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)
  5685. 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)
  5686. end
  5687. MagicSphere(VT(0,0,0),15,Head.CFrame,"Pearl",VT(5,5,5))
  5688. local pos = RootPart.Position
  5689. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,5,0),pos)
  5690. end
  5691.  
  5692. if Key == "x" and ATTACK == false then
  5693. Pure_Heaven()
  5694. end
  5695.  
  5696. if Key == "v" and ATTACK == false then
  5697. Gates_Of_Darkness()
  5698. end
  5699. end
  5700.  
  5701. function KeyUp(Key)
  5702. KEYHOLD = false
  5703. end
  5704.  
  5705. Mouse.Button1Down:connect(function(NEWKEY)
  5706. MouseDown(NEWKEY)
  5707. end)
  5708. Mouse.Button1Up:connect(function(NEWKEY)
  5709. MouseUp(NEWKEY)
  5710. end)
  5711. Mouse.KeyDown:connect(function(NEWKEY)
  5712. KeyDown(NEWKEY)
  5713. end)
  5714. Mouse.KeyUp:connect(function(NEWKEY)
  5715. KeyUp(NEWKEY)
  5716. end)
  5717.  
  5718. --//=================================\\
  5719. --\\=================================//
  5720.  
  5721.  
  5722. function unanchor()
  5723. if UNANCHOR == true then
  5724. g = Character:GetChildren()
  5725. for i = 1, #g do
  5726. if g[i].ClassName == "Part" then
  5727. g[i].Anchored = false
  5728. end
  5729. end
  5730. end
  5731. end
  5732.  
  5733.  
  5734. --//=================================\\
  5735. --|| WRAP THE WHOLE SCRIPT UP
  5736. --\\=================================//
  5737.  
  5738. Humanoid.Changed:connect(function(Jump)
  5739. if Jump == "Jump" and (Disable_Jump == true) then
  5740. Humanoid.Jump = false
  5741. end
  5742. end)
  5743.  
  5744. sick.AncestryChanged:Connect(function()
  5745. sick.Parent = Character
  5746. end)
  5747.  
  5748. local FF = IT("ForceField", Character)
  5749. FF.Visible = false
  5750.  
  5751. while true do
  5752. Swait()
  5753. script.Parent = WEAPONGUI
  5754. ANIMATE.Parent = nil
  5755. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  5756. v:Stop();
  5757. end
  5758. SINE = SINE + CHANGE
  5759. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  5760. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  5761. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  5762. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  5763. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  5764. 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)
  5765. 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)
  5766. 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)
  5767. 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)
  5768. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  5769. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5770. 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)
  5771. 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)
  5772. 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)
  5773. end
  5774. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  5775. ANIM = "Jump"
  5776. if ATTACK == false then
  5777. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5778. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5779. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  5780. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  5781. 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)
  5782. 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)
  5783. end
  5784. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  5785. ANIM = "Fall"
  5786. if ATTACK == false then
  5787. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5788. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5789. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  5790. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  5791. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5792. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5793. end
  5794. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  5795. ANIM = "Idle"
  5796. if ATTACK == false then
  5797. 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)
  5798. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  5799. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  5800. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  5801. 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)
  5802. 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)
  5803. end
  5804. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  5805. ANIM = "Walk"
  5806. if ATTACK == false then
  5807. 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)
  5808. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  5809. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5810. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5811. end
  5812. end
  5813. unanchor()
  5814. Humanoid.MaxHealth = 16e+16
  5815. Humanoid.Health = 16e+16
  5816. if Rooted == false then
  5817. Disable_Jump = false
  5818. Humanoid.WalkSpeed = Speed
  5819. elseif Rooted == true then
  5820. Disable_Jump = true
  5821. Humanoid.WalkSpeed = 0
  5822. end
  5823. if Head:FindFirstChild("face") then
  5824. Head.face.Texture = "rbxassetid://0"
  5825. end
  5826. end
  5827.  
  5828. --//=================================\\
  5829. --\\=================================//
  5830.  
  5831.  
  5832.  
  5833.  
  5834.  
  5835. --//====================================================\\--
  5836. --|| END OF SCRIPT
  5837. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement