Advertisement
Scripter_Tix

Untitled

Jul 10th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 115.65 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| Templates BY Aom[WCR]
  3. --\\====================================================//--
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147.  
  148. Player = game:GetService("Players").LocalPlayer
  149. PlayerGui = Player.PlayerGui
  150. Cam = workspace.CurrentCamera
  151. Backpack = Player.Backpack
  152. Character = Player.Character
  153. Humanoid = Character.Humanoid
  154. Mouse = Player:GetMouse()
  155. RootPart = Character["HumanoidRootPart"]
  156. Torso = Character["Torso"]
  157. Head = Character["Head"]
  158. RightArm = Character["Right Arm"]
  159. LeftArm = Character["Left Arm"]
  160. RightLeg = Character["Right Leg"]
  161. LeftLeg = Character["Left Leg"]
  162. RootJoint = RootPart["RootJoint"]
  163. Neck = Torso["Neck"]
  164. RightShoulder = Torso["Right Shoulder"]
  165. LeftShoulder = Torso["Left Shoulder"]
  166. RightHip = Torso["Right Hip"]
  167. LeftHip = Torso["Left Hip"]
  168. local sick = Instance.new("Sound",Torso)
  169. sick.SoundId = "rbxassetid://1327798905"
  170. sick.Looped = true
  171. sick.Pitch = 1
  172. sick.Volume = 3
  173. sick.TimePosition = 0
  174. Character.Archivable = true
  175. Humanoid.DisplayDistanceType = "None"
  176.  
  177. local naeeym2 = Instance.new("BillboardGui",Character)
  178. naeeym2.AlwaysOnTop = true
  179. naeeym2.Size = UDim2.new(5,35,2,35)
  180. naeeym2.StudsOffset = Vector3.new(0,3,0)
  181. naeeym2.Adornee = Character.Head
  182. naeeym2.Name = "Name"
  183. local tecks2 = Instance.new("TextLabel",naeeym2)
  184. tecks2.BackgroundTransparency = 1
  185. tecks2.TextScaled = true
  186. tecks2.BorderSizePixel = 0
  187. tecks2.Text = "Im AFK editing"
  188. tecks2.Font = "Code"
  189. tecks2.TextSize = 30
  190. tecks2.TextTransparency = 1
  191. tecks2.TextStrokeTransparency = 1
  192. tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
  193. tecks2.Size = UDim2.new(1,0,0.5,0)
  194. tecks2.Parent = naeeym2
  195.  
  196. IT = Instance.new
  197. CF = CFrame.new
  198. VT = Vector3.new
  199. RAD = math.rad
  200. C3 = Color3.new
  201. UD2 = UDim2.new
  202. BRICKC = BrickColor.new
  203. ANGLES = CFrame.Angles
  204. EULER = CFrame.fromEulerAnglesXYZ
  205. COS = math.cos
  206. ACOS = math.acos
  207. SIN = math.sin
  208. ASIN = math.asin
  209. ABS = math.abs
  210. MRANDOM = math.random
  211. FLOOR = math.floor
  212.  
  213. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  214. local NEWMESH = IT(MESH)
  215. if MESH == "SpecialMesh" then
  216. NEWMESH.MeshType = MESHTYPE
  217. if MESHID ~= "nil" and MESHID ~= "" then
  218. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  219. end
  220. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  221. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  222. end
  223. end
  224. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  225. NEWMESH.Scale = SCALE
  226. NEWMESH.Parent = PARENT
  227. return NEWMESH
  228. end
  229.  
  230. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  231. local NEWPART = IT("Part")
  232. NEWPART.formFactor = FORMFACTOR
  233. NEWPART.Reflectance = REFLECTANCE
  234. NEWPART.Transparency = TRANSPARENCY
  235. NEWPART.CanCollide = false
  236. NEWPART.Locked = true
  237. NEWPART.Anchored = true
  238. if ANCHOR == false then
  239. NEWPART.Anchored = false
  240. end
  241. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  242. NEWPART.Name = NAME
  243. NEWPART.Size = SIZE
  244. NEWPART.Position = Torso.Position
  245. NEWPART.Material = MATERIAL
  246. NEWPART:BreakJoints()
  247. NEWPART.Parent = PARENT
  248. return NEWPART
  249. end
  250.  
  251. --//=================================\\
  252. --|| CUSTOMIZATION
  253. --\\=================================//
  254.  
  255. Player_Size = 1 --Size of the player.
  256. Animation_Speed = 3
  257. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  258.  
  259. local Speed = 16
  260. local Effects2 = {}
  261.  
  262. --//=================================\\
  263. --|| END OF CUSTOMIZATION
  264. --\\=================================//
  265.  
  266. local function weldBetween(a, b)
  267. local weldd = Instance.new("ManualWeld")
  268. weldd.Part0 = a
  269. weldd.Part1 = b
  270. weldd.C0 = CFrame.new()
  271. weldd.C1 = b.CFrame:inverse() * a.CFrame
  272. weldd.Parent = a
  273. return weldd
  274. end
  275.  
  276. --//=================================\\
  277. --|| USEFUL VALUES
  278. --\\=================================//
  279.  
  280.  
  281.  
  282.  
  283. --//=================================\\
  284. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  285. --\\=================================//
  286.  
  287. ArtificialHB = Instance.new("BindableEvent", script)
  288. ArtificialHB.Name = "ArtificialHB"
  289.  
  290. script:WaitForChild("ArtificialHB")
  291.  
  292. frame = Frame_Speed
  293. tf = 0
  294. allowframeloss = false
  295. tossremainder = false
  296. lastframe = tick()
  297. script.ArtificialHB:Fire()
  298.  
  299. game:GetService("RunService").Heartbeat:connect(function(s, p)
  300. tf = tf + s
  301. if tf >= frame then
  302. if allowframeloss then
  303. script.ArtificialHB:Fire()
  304. lastframe = tick()
  305. else
  306. for i = 1, math.floor(tf / frame) do
  307. script.ArtificialHB:Fire()
  308. end
  309. lastframe = tick()
  310. end
  311. if tossremainder then
  312. tf = 0
  313. else
  314. tf = tf - frame * math.floor(tf / frame)
  315. end
  316. end
  317. end)
  318.  
  319. --//=================================\\
  320. --\\=================================//
  321.  
  322.  
  323.  
  324.  
  325.  
  326. --//=================================\\
  327. --|| SOME FUNCTIONS
  328. --\\=================================//
  329.  
  330. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  331. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  332. end
  333.  
  334. function PositiveAngle(NUMBER)
  335. if NUMBER >= 0 then
  336. NUMBER = 0
  337. end
  338. return NUMBER
  339. end
  340.  
  341. function NegativeAngle(NUMBER)
  342. if NUMBER <= 0 then
  343. NUMBER = 0
  344. end
  345. return NUMBER
  346. end
  347.  
  348. function Swait(NUMBER)
  349. if NUMBER == 0 or NUMBER == nil then
  350. ArtificialHB.Event:wait()
  351. else
  352. for i = 1, NUMBER do
  353. ArtificialHB.Event:wait()
  354. end
  355. end
  356. end
  357.  
  358. function QuaternionFromCFrame(cf)
  359. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  360. local trace = m00 + m11 + m22
  361. if trace > 0 then
  362. local s = math.sqrt(1 + trace)
  363. local recip = 0.5 / s
  364. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  365. else
  366. local i = 0
  367. if m11 > m00 then
  368. i = 1
  369. end
  370. if m22 > (i == 0 and m00 or m11) then
  371. i = 2
  372. end
  373. if i == 0 then
  374. local s = math.sqrt(m00 - m11 - m22 + 1)
  375. local recip = 0.5 / s
  376. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  377. elseif i == 1 then
  378. local s = math.sqrt(m11 - m22 - m00 + 1)
  379. local recip = 0.5 / s
  380. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  381. elseif i == 2 then
  382. local s = math.sqrt(m22 - m00 - m11 + 1)
  383. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  384. end
  385. end
  386. end
  387.  
  388. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  389. local xs, ys, zs = x + x, y + y, z + z
  390. local wx, wy, wz = w * xs, w * ys, w * zs
  391. local xx = x * xs
  392. local xy = x * ys
  393. local xz = x * zs
  394. local yy = y * ys
  395. local yz = y * zs
  396. local zz = z * zs
  397. 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))
  398. end
  399.  
  400. function QuaternionSlerp(a, b, t)
  401. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  402. local startInterp, finishInterp;
  403. if cosTheta >= 0.0001 then
  404. if (1 - cosTheta) > 0.0001 then
  405. local theta = ACOS(cosTheta)
  406. local invSinTheta = 1 / SIN(theta)
  407. startInterp = SIN((1 - t) * theta) * invSinTheta
  408. finishInterp = SIN(t * theta) * invSinTheta
  409. else
  410. startInterp = 1 - t
  411. finishInterp = t
  412. end
  413. else
  414. if (1 + cosTheta) > 0.0001 then
  415. local theta = ACOS(-cosTheta)
  416. local invSinTheta = 1 / SIN(theta)
  417. startInterp = SIN((t - 1) * theta) * invSinTheta
  418. finishInterp = SIN(t * theta) * invSinTheta
  419. else
  420. startInterp = t - 1
  421. finishInterp = t
  422. end
  423. end
  424. 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
  425. end
  426.  
  427. function Clerp(a, b, t)
  428. local qa = {QuaternionFromCFrame(a)}
  429. local qb = {QuaternionFromCFrame(b)}
  430. local ax, ay, az = a.x, a.y, a.z
  431. local bx, by, bz = b.x, b.y, b.z
  432. local _t = 1 - t
  433. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  434. end
  435.  
  436. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  437. local frame = IT("Frame")
  438. frame.BackgroundTransparency = TRANSPARENCY
  439. frame.BorderSizePixel = BORDERSIZEPIXEL
  440. frame.Position = POSITION
  441. frame.Size = SIZE
  442. frame.BackgroundColor3 = COLOR
  443. frame.BorderColor3 = BORDERCOLOR
  444. frame.Name = NAME
  445. frame.Parent = PARENT
  446. return frame
  447. end
  448.  
  449. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  450. local label = IT("TextLabel")
  451. label.BackgroundTransparency = 1
  452. label.Size = UD2(1, 0, 1, 0)
  453. label.Position = UD2(0, 0, 0, 0)
  454. label.TextColor3 = TEXTCOLOR
  455. label.TextStrokeTransparency = STROKETRANSPARENCY
  456. label.TextTransparency = TRANSPARENCY
  457. label.FontSize = TEXTFONTSIZE
  458. label.Font = TEXTFONT
  459. label.BorderSizePixel = BORDERSIZEPIXEL
  460. label.TextScaled = false
  461. label.Text = TEXT
  462. label.Name = NAME
  463. label.Parent = PARENT
  464. return label
  465. end
  466.  
  467. function NoOutlines(PART)
  468. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  469. end
  470.  
  471.  
  472. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  473. local NEWWELD = IT(TYPE)
  474. NEWWELD.Part0 = PART0
  475. NEWWELD.Part1 = PART1
  476. NEWWELD.C0 = C0
  477. NEWWELD.C1 = C1
  478. NEWWELD.Parent = PARENT
  479. return NEWWELD
  480. end
  481.  
  482. function CreateSound(ID, PARENT, VOLUME, PITCH)
  483. local NEWSOUND = nil
  484. coroutine.resume(coroutine.create(function()
  485. NEWSOUND = IT("Sound", PARENT)
  486. NEWSOUND.Volume = VOLUME
  487. NEWSOUND.Pitch = PITCH
  488. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  489. Swait()
  490. NEWSOUND:play()
  491. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  492. end))
  493. return NEWSOUND
  494. end
  495.  
  496. function CFrameFromTopBack(at, top, back)
  497. local right = top:Cross(back)
  498. 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)
  499. end
  500.  
  501. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  502. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  503. local mesh = IT("SpecialMesh",wave)
  504. mesh.MeshType = "FileMesh"
  505. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  506. mesh.Scale = SIZE
  507. mesh.Offset = VT(0,0,0)
  508. wave.CFrame = CFRAME
  509. coroutine.resume(coroutine.create(function(PART)
  510. for i = 1, WAIT do
  511. Swait()
  512. mesh.Scale = mesh.Scale + GROW
  513. if DOESROT == true then
  514. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  515. end
  516. wave.Transparency = wave.Transparency + (0.5/WAIT)
  517. if wave.Transparency > 0.99 then
  518. wave:remove()
  519. end
  520. end
  521. end))
  522. end
  523.  
  524. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  525. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  526. local mesh = IT("SpecialMesh",wave)
  527. mesh.MeshType = "Sphere"
  528. mesh.Scale = SIZE
  529. mesh.Offset = VT(0,0,0)
  530. wave.CFrame = CFRAME
  531. coroutine.resume(coroutine.create(function(PART)
  532. for i = 1, WAIT do
  533. Swait()
  534. mesh.Scale = mesh.Scale + GROW
  535. wave.Transparency = wave.Transparency + (1/WAIT)
  536. if wave.Transparency > 0.99 then
  537. wave:remove()
  538. end
  539. end
  540. end))
  541. end
  542.  
  543. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  544. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  545. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  546. wave.CFrame = CFRAME
  547. coroutine.resume(coroutine.create(function(PART)
  548. for i = 1, WAIT do
  549. Swait()
  550. mesh.Scale = mesh.Scale * GROW
  551. wave.Transparency = wave.Transparency + (0.5/WAIT)
  552. if wave.Transparency > 0.99 then
  553. wave:remove()
  554. end
  555. end
  556. end))
  557. end
  558.  
  559. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  560. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  561. local mesh = IT("BlockMesh",wave)
  562. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  563. coroutine.resume(coroutine.create(function(PART)
  564. for i = 1, WAIT do
  565. Swait()
  566. mesh.Scale = mesh.Scale + GROW
  567. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  568. wave.Transparency = wave.Transparency + (1/WAIT)
  569. if wave.Transparency > 0.99 then
  570. wave:remove()
  571. end
  572. end
  573. end))
  574. end
  575.  
  576. function MakeForm(PART,TYPE)
  577. if TYPE == "Cyl" then
  578. local MSH = IT("CylinderMesh",PART)
  579. elseif TYPE == "Ball" then
  580. local MSH = IT("SpecialMesh",PART)
  581. MSH.MeshType = "Sphere"
  582. elseif TYPE == "Wedge" then
  583. local MSH = IT("SpecialMesh",PART)
  584. MSH.MeshType = "Wedge"
  585. end
  586. end
  587.  
  588. function CheckTableForString(Table, String)
  589. for i, v in pairs(Table) do
  590. if string.find(string.lower(String), string.lower(v)) then
  591. return true
  592. end
  593. end
  594. return false
  595. end
  596.  
  597.  
  598.  
  599. Debris = game:GetService("Debris")
  600.  
  601. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  602. local Direction = CFrame.new(StartPos, Vec).lookVector
  603. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  604. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  605. if RayHit and CheckIntangible(RayHit) then
  606. if DelayIfHit then
  607. wait()
  608. end
  609. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  610. end
  611. return RayHit, RayPos, RayNormal
  612. end
  613.  
  614. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  615. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  616. end
  617.  
  618. function turnto(position)
  619. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  620. end
  621.  
  622. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  623. PLAYMAINANIM = false
  624. if WhichPose == "Cast1" then
  625. for i=0, Time, 0.1 / Animation_Speed do
  626. Swait()
  627. if Magic == true then
  628. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  629. end
  630. if Gyro ~= nil and Gyro ~= false then
  631. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  632. end
  633. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  634. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  635. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  636. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  637. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  638. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  639. end
  640. elseif WhichPose == "Cast2" then
  641. for i=0, Time, 0.1 / Animation_Speed do
  642. Swait()
  643. if Magic == true then
  644. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  645. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  646. end
  647. if Gyro ~= nil and Gyro ~= false then
  648. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  649. end
  650. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  651. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  652. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  653. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  654. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  655. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  656. end
  657. elseif WhichPose == "RightArmUp" then
  658. for i=0, Time, 0.1 / Animation_Speed do
  659. Swait()
  660. if Magic == true then
  661. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  662. end
  663. if Gyro ~= nil and Gyro ~= false then
  664. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  665. end
  666. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  667. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  668. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  669. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  670. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  671. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  672. end
  673. elseif WhichPose == "Taunt" then
  674. for i=0, Time, 0.1 / Animation_Speed do
  675. Swait()
  676. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  677. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  678. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  679. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  680. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  681. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  682. end
  683. CreateSound(221057812,Torso,10,1,false)
  684. for i=0, Time*2, 0.1 / Animation_Speed do
  685. Swait()
  686. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  687. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  688. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  689. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  690. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  691. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  692. end
  693. for i=0, Time, 0.1 / Animation_Speed do
  694. Swait()
  695. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  696. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  697. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  698. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  699. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  700. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  701. end
  702. elseif WhichPose == "Prepare key" then
  703. for i=0, Time, 0.1 / Animation_Speed do
  704. Swait()
  705. if Gyro ~= nil and Gyro ~= false then
  706. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  707. end
  708. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  709. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  710. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  711. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  712. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  713. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  714. end
  715. elseif WhichPose == "Turn key" then
  716. for i=0, Time, 0.1 / Animation_Speed do
  717. Swait()
  718. if Gyro ~= nil and Gyro ~= false then
  719. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  720. end
  721. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  722. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  723. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  724. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  725. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  726. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  727. end
  728. end
  729. PLAYMAINANIM = true
  730. end
  731.  
  732. --//=================================\\
  733. --|| SPEECH
  734. --\\=================================//
  735.  
  736. function Chatter(Text,Timer)
  737. local chat = coroutine.wrap(function()
  738. if Character:FindFirstChild("SpeechBoard")~= nil then
  739. Character:FindFirstChild("SpeechBoard"):destroy()
  740. end
  741. local naeeym2 = IT("BillboardGui",Character)
  742. naeeym2.Size = UD2(0,100,0,40)
  743. naeeym2.StudsOffset = Vector3.new(0,2,0)
  744. naeeym2.Adornee = Character.Head
  745. naeeym2.Name = "SpeechBoard"
  746. naeeym2.AlwaysOnTop = true
  747. local tecks2 = IT("TextLabel",naeeym2)
  748. tecks2.BackgroundTransparency = 1
  749. tecks2.BorderSizePixel = 0
  750. tecks2.Text = ""
  751. tecks2.Font = "Legacy"
  752. tecks2.TextSize = 15
  753. tecks2.TextStrokeTransparency = 1
  754. tecks2.TextColor3 = Color3.new(255,0,0)
  755. tecks2.TextStrokeColor3 = Color3.new(255,0,0)
  756. tecks2.Size = UDim2.new(1,0,0.5,0)
  757. for i = 1,string.len(Text),1 do
  758. CreateSound(418252437, Head, 3, MRANDOM(8,12)/15, false)
  759. tecks2.Text = string.sub(Text,1,i)
  760. wait(Timer)
  761. end
  762. wait(1)
  763. naeeym2:Destroy()
  764. end)
  765. chat()
  766. end
  767.  
  768. function chatfunc(text,waitt)
  769. local chat = coroutine.wrap(function()
  770. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  771. Character:FindFirstChild("TalkingBillBoard"):destroy()
  772. end
  773. local naeeym2 = Instance.new("BillboardGui",Character)
  774. naeeym2.Size = UDim2.new(0,100,0,40)
  775. naeeym2.StudsOffset = Vector3.new(0,5,0)
  776. naeeym2.Adornee = Character.Head
  777. naeeym2.Name = "TalkingBillBoard"
  778. naeeym2.AlwaysOnTop = true
  779. local tecks2 = Instance.new("TextLabel",naeeym2)
  780. tecks2.BackgroundTransparency = 1
  781. tecks2.BorderSizePixel = 0
  782. tecks2.Text = ""
  783. tecks2.Font = "SciFi"
  784. tecks2.TextSize = 30
  785. tecks2.TextStrokeTransparency = 1
  786. tecks2.TextColor3 = SKILLTEXTCOLOR
  787. tecks2.TextStrokeColor3 = Color3.new(255/255,0/255,0/255)
  788. tecks2.Size = UDim2.new(1,0,0.5,0)
  789. for i = 1,string.len(text),1 do
  790. tecks2.Text = string.sub(text,1,i)
  791. Swait()
  792. end
  793. wait(waitt)
  794. coroutine.resume(coroutine.create(function()
  795. for i = 1, 10 do
  796. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  797. Swait()
  798. end
  799. naeeym2:Destroy()
  800. end))
  801. end)
  802. chat()
  803. end
  804.  
  805. --// Start Stuff for Banishing \\--
  806.  
  807. local TOBANISH = {}
  808.  
  809. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  810. local DIRECTION = CF(StartPos,EndPos).lookVector
  811. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  812. end
  813.  
  814. function printbye(Name)
  815. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your life is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  816. chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  817. end
  818.  
  819. function Banish(Foe)
  820. if Foe then
  821. coroutine.resume(coroutine.create(function()
  822. --if game.Players:FindFirstChild(Foe.Name) then
  823. table.insert(TOBANISH,Foe.Name)
  824. printbye(Foe.Name)
  825. --end
  826. Foe.Archivable = true
  827. local CLONE = Foe:Clone()
  828. Foe:Destroy()
  829. CLONE.Parent = Effects
  830. CLONE:BreakJoints()
  831. local MATERIALS = {"Glass","Neon"}
  832. for _, c in pairs(CLONE:GetDescendants()) do
  833. if c:IsA("BasePart") then
  834. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  835. CreateSound(340722848, c, 10, 1, false)
  836. end
  837. c.Anchored = true
  838. c.Transparency = c.Transparency + 0.2
  839. c.Material = MATERIALS[MRANDOM(1,2)]
  840. c.Color = C3(0,255,0)
  841. if c.ClassName == "MeshPart" then
  842. c.TextureID = ""
  843. end
  844. if c:FindFirstChildOfClass("SpecialMesh") then
  845. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  846. end
  847. if c:FindFirstChildOfClass("Decal") then
  848. c:FindFirstChildOfClass("Decal"):remove()
  849. end
  850. c.Name = "Banished"
  851. c.CanCollide = false
  852. else
  853. c:remove()
  854. end
  855. end
  856. local A = false
  857. for i = 1, 35 do
  858. if A == false then
  859. A = true
  860. elseif A == true then
  861. A = false
  862. end
  863. for _, c in pairs(CLONE:GetDescendants()) do
  864. if c:IsA("BasePart") then
  865. c.Anchored = true
  866. c.Material = MATERIALS[MRANDOM(1,2)]
  867. c.Transparency = c.Transparency + 0.8/35
  868. if A == false then
  869. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  870. elseif A == true then
  871. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  872. end
  873. end
  874. end
  875. Swait()
  876. end
  877. CLONE:remove()
  878. end))
  879. end
  880. end
  881.  
  882. function BANNEAREST(POS,RANGE)
  883. for i,v in ipairs(workspace:GetChildren()) do
  884. local body = v:GetChildren()
  885. for part = 1, #body do
  886. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  887. if(body[part].Position - POS).Magnitude < RANGE then
  888. if v:FindFirstChildOfClass("Humanoid") then
  889. Banish(v)
  890. if game.Players:FindFirstChild(v.Name) then
  891. local Value = IT("BoolValue",Delete)
  892. Value.Name = v.Name
  893. end
  894. end
  895. end
  896. end
  897. end
  898. end
  899. end
  900.  
  901. workspace.ChildAdded:connect(function(instance)
  902. for BANISH = 1, #TOBANISH do
  903. if TOBANISH[BANISH] ~= nil then
  904. if instance.Name == TOBANISH[BANISH] then
  905. coroutine.resume(coroutine.create(function()
  906. printbye(instance.Name)
  907. instance:ClearAllChildren()
  908. Debris:AddItem(instance,0.0005)
  909. end))
  910. end
  911. end
  912. end
  913. end)
  914.  
  915. function SpawnTrail(FROM,TO,BIG)
  916. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  917. MakeForm(TRAIL,"Cyl")
  918. local DIST = (FROM - TO).Magnitude
  919. if BIG == true then
  920. TRAIL.Size = VT(10,DIST,10)
  921. else
  922. TRAIL.Size = VT(0.25,DIST,0.25)
  923. end
  924. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  925. coroutine.resume(coroutine.create(function()
  926. for i = 1, 5 do
  927. Swait()
  928. TRAIL.Transparency = TRAIL.Transparency + 0.1
  929. end
  930. TRAIL:remove()
  931. end))
  932. end
  933.  
  934. function WACKYEFFECT(Table)
  935. local TYPE = (Table.EffectType or "Sphere")
  936. local SIZE = (Table.Size or VT(1,1,1))
  937. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  938. local TRANSPARENCY = (Table.Transparency or 0)
  939. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  940. local CFRAME = (Table.CFrame or Torso.CFrame)
  941. local MOVEDIRECTION = (Table.MoveToPos or nil)
  942. local ROTATION1 = (Table.RotationX or 0)
  943. local ROTATION2 = (Table.RotationY or 0)
  944. local ROTATION3 = (Table.RotationZ or 0)
  945. local MATERIAL = (Table.Material or "Neon")
  946. local COLOR = (Table.Color or C3(0,255,0))
  947. local TIME = (Table.Time or 45)
  948. local SOUNDID = (Table.SoundID or nil)
  949. local SOUNDPITCH = (Table.SoundPitch or nil)
  950. local SOUNDVOLUME = (Table.SoundVolume or nil)
  951. coroutine.resume(coroutine.create(function()
  952. local PLAYSSOUND = false
  953. local SOUND = nil
  954. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  955. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  956. PLAYSSOUND = true
  957. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  958. end
  959. EFFECT.Color = COLOR
  960. local MSH = nil
  961. if TYPE == "Sphere" then
  962. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  963. elseif TYPE == "Block" then
  964. MSH = IT("BlockMesh",EFFECT)
  965. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  966. elseif TYPE == "Wave" then
  967. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  968. elseif TYPE == "Ring" then
  969. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  970. elseif TYPE == "Slash" then
  971. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  972. elseif TYPE == "Round Slash" then
  973. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  974. elseif TYPE == "Swirl" then
  975. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  976. elseif TYPE == "Skull" then
  977. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  978. elseif TYPE == "Crystal" then
  979. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  980. end
  981. if MSH ~= nil then
  982. local MOVESPEED = nil
  983. if MOVEDIRECTION ~= nil then
  984. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  985. end
  986. local GROWTH = SIZE - ENDSIZE
  987. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  988. if TYPE == "Block" then
  989. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  990. else
  991. EFFECT.CFrame = CFRAME
  992. end
  993. for LOOP = 1, TIME+1 do
  994. Swait()
  995. MSH.Scale = MSH.Scale - GROWTH/TIME
  996. if TYPE == "Wave" then
  997. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  998. end
  999. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1000. if TYPE == "Block" then
  1001. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1002. else
  1003. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1004. end
  1005. if MOVEDIRECTION ~= nil then
  1006. local ORI = EFFECT.Orientation
  1007. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1008. EFFECT.Orientation = ORI
  1009. end
  1010. end
  1011. if PLAYSSOUND == false then
  1012. EFFECT:remove()
  1013. else
  1014. SOUND.Stopped:Connect(function()
  1015. EFFECT:remove()
  1016. end)
  1017. end
  1018. else
  1019. if PLAYSSOUND == false then
  1020. EFFECT:remove()
  1021. else
  1022. repeat Swait() until SOUND.Playing == false
  1023. EFFECT:remove()
  1024. end
  1025. end
  1026. end))
  1027. end
  1028.  
  1029. -- \\ End Stuff for Banishing //--
  1030.  
  1031. --//=================================\\
  1032. --|| WEAPON CREATION
  1033. --\\=================================//
  1034. local Particle = IT("ParticleEmitter",nil)
  1035. Particle.Enabled = false
  1036. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1037. Particle.LightEmission = 0.5
  1038. Particle.Rate = 150
  1039. Particle.ZOffset = 0.2
  1040. Particle.Rotation = NumberRange.new(-180, 180)
  1041. Particle.RotSpeed = NumberRange.new(-180, 180)
  1042. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1043. Particle.Color = ColorSequence.new(C3(255,128,0),C3(0,155,0),C3(255,255,0),C3(0,255,0),C3(0,255,255),C3(0,0,255),C3(191,0,255),C3(255,0,191))
  1044.  
  1045. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1046. function ParticleEmitter(Table)
  1047. local PRTCL = Particle:Clone()
  1048. local Speed = Table.Speed or 5
  1049. local Drag = Table.Drag or 0
  1050. local Size1 = Table.Size1 or 1
  1051. local Size2 = Table.Size2 or 5
  1052. local Lifetime1 = Table.Lifetime1 or 1
  1053. local Lifetime2 = Table.Lifetime2 or 1.5
  1054. local Parent = Table.Parent or Torso
  1055. local Emit = Table.Emit or 100
  1056. local Offset = Table.Offset or 360
  1057. local Acel = Table.Acel or VT(0,0,0)
  1058. local Enabled = Table.Enabled or false
  1059. PRTCL.Parent = Parent
  1060. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1061. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1062. PRTCL.Speed = NumberRange.new(Speed)
  1063. PRTCL.VelocitySpread = Offset
  1064. PRTCL.Drag = Drag
  1065. PRTCL.Acceleration = Acel
  1066. if Enabled == false then
  1067. PRTCL:Emit(Emit)
  1068. Debris:AddItem(PRTCL,Lifetime2)
  1069. else
  1070. PRTCL.Enabled = true
  1071. end
  1072. return PRTCL
  1073. end
  1074.  
  1075. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1076. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1077. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1078. MakeForm(Part,"Wedge")
  1079. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1080. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1081. MakeForm(Part,"Wedge")
  1082. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1083. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1084. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1085. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1086. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1087. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1088. MakeForm(Part,"Cyl")
  1089. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1090. for i = 1, 8 do
  1091. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1092. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1093. end
  1094. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1095. MakeForm(Part,"Cyl")
  1096. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1097. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1098. MakeForm(Part,"Ball")
  1099. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1100. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1101. MakeForm(Part,"Wedge")
  1102. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1103. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1104. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1105. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1106. MakeForm(Part,"Cyl")
  1107. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1108. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1109. MakeForm(Part,"Cyl")
  1110. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1111. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1112. MakeForm(Part,"Cyl")
  1113. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1114. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1115. MakeForm(Part,"Wedge")
  1116. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1117. local LASTPART = Handle
  1118. for i = 1, 10 do
  1119. if LASTPART == Handle then
  1120. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1121. LASTPART = Part
  1122. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1123. else
  1124. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1125. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1126. LASTPART = Part
  1127. end
  1128. end
  1129.  
  1130. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1131. MakeForm(Barrel,"Cyl")
  1132. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1133. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1134. MakeForm(Part,"Cyl")
  1135. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1136. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1137. MakeForm(Part,"Wedge")
  1138. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1139. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1140. MakeForm(Hole,"Cyl")
  1141. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1142. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1143. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1144. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1145. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1146. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1147. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1148. coroutine.resume(coroutine.create(function()
  1149. while wait() do
  1150. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1151. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1152. end
  1153. end))
  1154.  
  1155. --W2--
  1156.  
  1157. local Handle = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1158. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1159. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1160. MakeForm(Part,"Wedge")
  1161. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1162. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1163. MakeForm(Part,"Wedge")
  1164. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1165. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1166. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1167. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1168. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1169. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1170. MakeForm(Part,"Cyl")
  1171. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1172. for i = 1, 8 do
  1173. local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1174. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1175. end
  1176. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1177. MakeForm(Part,"Cyl")
  1178. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1179. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1180. MakeForm(Part,"Ball")
  1181. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1182. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1183. MakeForm(Part,"Wedge")
  1184. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1185. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1186. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1187. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1188. MakeForm(Part,"Cyl")
  1189. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1190. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1191. MakeForm(Part,"Cyl")
  1192. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1193. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1194. MakeForm(Part,"Cyl")
  1195. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1196. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1197. MakeForm(Part,"Wedge")
  1198. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.65, -0.6) * ANGLES(RAD(135), RAD(180), RAD(180)), CF(0, -0.3, 0))
  1199. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1200. MakeForm(Part,"Cyl")
  1201. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1202. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1203. MakeForm(Part,"Wedge")
  1204. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, -0.6) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1205. local LASTPART = Handle
  1206. for i = 1, 10 do
  1207. if LASTPART == Handle then
  1208. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1209. LASTPART = Part
  1210. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1211. else
  1212. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1213. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1214. LASTPART = Part
  1215. end
  1216. end
  1217. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe", VT(0.2,0.5,0.2),false)
  1218. MakeForm(Part,"Wedge")
  1219. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, -0.6) * ANGLES(RAD(-125), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1220. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe2", VT(0.2,0.5,0.2),false)
  1221. MakeForm(Part,"Wedge")
  1222. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.65, -0.6) * ANGLES(RAD(125), RAD(180), RAD(180)), CF(0, -0.3, 0))
  1223. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe3", VT(0.2,0.5,0.2),false)
  1224. MakeForm(Part,"Wedge")
  1225. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, -0.6) * ANGLES(RAD(-145), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1226. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "exe4", VT(0.2,0.5,0.2),false)
  1227. MakeForm(Part,"Wedge")
  1228. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.65, -0.6) * ANGLES(RAD(145), RAD(180), RAD(180)), CF(0, -0.3, 0))
  1229.  
  1230. local Barrel = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,5,0.15),false)
  1231. MakeForm(Barrel,"Cyl")
  1232. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1233. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1234. MakeForm(Part,"Cyl")
  1235. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1236. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1237. MakeForm(Part,"Wedge")
  1238. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 2.4, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1239. local RHole = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1240. MakeForm(RHole,"Cyl")
  1241. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, RHole, CF(0, 2.5, 0), CF(0, 0, 0))
  1242. local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1243. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1244. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1245. local Part = CreatePart(3, Weapon2, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1246. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1247. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1248. coroutine.resume(coroutine.create(function()
  1249. while wait() do
  1250. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1251. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1252. end
  1253. end))
  1254.  
  1255. local BODY = {}
  1256.  
  1257. for _, c in pairs(Character:GetDescendants()) do
  1258. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1259. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1260. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1261. end
  1262. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1263. elseif c:IsA("JointInstance") then
  1264. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1265. end
  1266. end
  1267.  
  1268. for e = 1, #BODY do
  1269. if BODY[e] ~= nil then
  1270. local STUFF = BODY[e]
  1271. local PART = STUFF[1]
  1272. local PARENT = STUFF[2]
  1273. local MATERIAL = STUFF[3]
  1274. local COLOR = STUFF[4]
  1275. local TRANSPARENCY = STUFF[5]
  1276. if PART.ClassName == "Part" and PART ~= RootPart then
  1277. PART.Material = MATERIAL
  1278. PART.Color = COLOR
  1279. PART.Transparency = TRANSPARENCY
  1280. end
  1281. PART.AncestryChanged:Connect(function()
  1282. PART.Parent = PARENT
  1283. end)
  1284. end
  1285. end
  1286.  
  1287. function refit()
  1288. Character.Parent = workspace
  1289. for e = 1, #BODY do
  1290. if BODY[e] ~= nil then
  1291. local STUFF = BODY[e]
  1292. local PART = STUFF[1]
  1293. local PARENT = STUFF[2]
  1294. local MATERIAL = STUFF[3]
  1295. local COLOR = STUFF[4]
  1296. local TRANSPARENCY = STUFF[5]
  1297. if PART.ClassName == "Part" and PART ~= RootPart then
  1298. PART.Material = MATERIAL
  1299. PART.Color = COLOR
  1300. PART.Transparency = TRANSPARENCY
  1301. end
  1302. if PART.Parent ~= PARENT then
  1303. Humanoid:remove()
  1304. PART.Parent = PARENT
  1305. Humanoid = IT("Humanoid",Character)
  1306. end
  1307. end
  1308. end
  1309. end
  1310.  
  1311. for _, c in pairs(Weapon:GetDescendants()) do
  1312. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1313. c.Material = "Glass"
  1314. c.Color = C3(0,0,0)
  1315. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1316. c.Color = C3(0,0,0)
  1317. c.Material = "Neon"
  1318. end
  1319. end
  1320.  
  1321. for _, c in pairs(Weapon2:GetDescendants()) do
  1322. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1323. c.Material = "Glass"
  1324. c.Color = C3(0,0,0)
  1325. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1326. c.Color = C3(1,0,0)
  1327. c.Material = "Neon"
  1328. end
  1329. end
  1330.  
  1331. Weapon.Parent = Character
  1332. Weapon2.Parent = nil
  1333. for _, c in pairs(Weapon:GetChildren()) do
  1334. if c.ClassName == "Part" then
  1335. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1336. end
  1337. end
  1338.  
  1339. local SKILLTEXTCOLOR = C3(0,0,0)
  1340. local SKILLFONT = "Antique"
  1341. local SKILLTEXTSIZE = 7
  1342.  
  1343. Humanoid.Died:connect(function()
  1344. ATTACK = true
  1345. end)
  1346.  
  1347. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1348.  
  1349. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1350.  
  1351. function printbye(Name)
  1352. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  1353. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1354. end
  1355.  
  1356. workspace.ChildAdded:connect(function(instance)
  1357. for BANISH = 1, #TOBANISH do
  1358. if TOBANISH[BANISH] ~= nil then
  1359. if instance.Name == TOBANISH[BANISH] then
  1360. coroutine.resume(coroutine.create(function()
  1361. printbye(instance.Name)
  1362. instance:ClearAllChildren()
  1363. Debris:AddItem(instance,0.0005)
  1364. end))
  1365. end
  1366. end
  1367. end
  1368. end)
  1369. --//=================================\\
  1370. --|| DAMAGING
  1371. --\\=================================//
  1372.  
  1373. function ApplyDamage(Humanoid,Damage,OneShot)
  1374. Damage = Damage * DAMAGEMULTIPLIER
  1375. local DEAD = false
  1376. if Humanoid.Health < 2000 and OneShot == false then
  1377. if Humanoid.Health - Damage > 0 then
  1378. Humanoid.Health = Humanoid.Health - Damage
  1379. else
  1380. Humanoid.Parent:BreakJoints()
  1381. DEAD = true
  1382. end
  1383. else
  1384. DEAD = true
  1385. Humanoid.Parent:BreakJoints()
  1386. end
  1387. if DEAD == true then
  1388. local PARTS = {}
  1389. for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do
  1390. if CHILD:IsA("BasePart") then
  1391. table.insert(PARTS,CHILD)
  1392. end
  1393. end
  1394. coroutine.resume(coroutine.create(function()
  1395. wait(2)
  1396. repeat
  1397. Swait()
  1398. local PIECE = nil
  1399. if MRANDOM(1,5) == 1 then
  1400. for E = 1, #PARTS do
  1401. if MRANDOM(1,5) == 1 then
  1402. PIECE = PARTS[E]
  1403. table.remove(PARTS,E)
  1404. break
  1405. end
  1406. end
  1407. end
  1408. if PIECE ~= nil then
  1409. if PIECE.Name == "Head" then
  1410. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1411. else
  1412. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1413. end
  1414. PIECE:remove()
  1415. end
  1416. until #PARTS == 0
  1417. end))
  1418. end
  1419. end
  1420.  
  1421.  
  1422. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  1423. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1424. defence.Name = ("HitBy"..Player.Name)
  1425. game:GetService("Debris"):AddItem(defence, 0.001)
  1426. Damage = Damage * DAMAGEMULTIPLIER
  1427. if Humanoid.Health ~= 0 then
  1428. local CritChance = MRANDOM(1,100)
  1429. if Damage > Humanoid.Health then
  1430. Damage = math.ceil(Humanoid.Health)
  1431. if Damage == 0 then
  1432. Damage = 0.1
  1433. end
  1434. end
  1435. Humanoid.Health = Humanoid.Health - Damage
  1436. end
  1437. end
  1438.  
  1439. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  1440. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1441. defence.Name = ("HitBy"..Player.Name)
  1442. game:GetService("Debris"):AddItem(defence, 0.001)
  1443. Damage = Damage * DAMAGEMULTIPLIER
  1444. if Humanoid.Health ~= 0 then
  1445. local CritChance = MRANDOM(1,100)
  1446. if Damage > Humanoid.Health then
  1447. Damage = math.ceil(Humanoid.Health)
  1448. if Damage == 0 then
  1449. Damage = 0.1
  1450. end
  1451. end
  1452. Humanoid.Health = Humanoid.Health - Damage
  1453. end
  1454. end
  1455.  
  1456. function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1457. local CHILDREN = workspace:GetDescendants()
  1458. for index, CHILD in pairs(CHILDREN) do
  1459. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1460. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1461. if HUM then
  1462. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1463. if TORSO then
  1464. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1465. if INSTAKILL == true then
  1466. CHILD:BreakJoints()
  1467. else
  1468. local DMG = MRANDOM(MINDMG,MAXDMG)
  1469. ApplyDamage(HUM,DMG,TORSO)
  1470. end
  1471. if FLING > 0 then
  1472. for _, c in pairs(CHILD:GetChildren()) do
  1473. if c:IsA("BasePart") then
  1474. local bv = Instance.new("BodyVelocity")
  1475. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1476. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1477. bv.Parent = c
  1478. Debris:AddItem(bv,0.05)
  1479. end
  1480. end
  1481. end
  1482. end
  1483. end
  1484. end
  1485. end
  1486. end
  1487. end
  1488.  
  1489. function CameraEnshaking(Length, Intensity)
  1490. coroutine.resume(coroutine.create(function()
  1491. local intensity = 1 * Intensity
  1492. local rotM = 0.01 * Intensity
  1493. for i = 0, Length, 0.1 do
  1494. Swait()
  1495. intensity = intensity - 0.05 * Intensity / Length
  1496. rotM = rotM - 5.0E-4 * Intensity / Length
  1497. Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)))
  1498. Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM)
  1499. end
  1500. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1501. end))
  1502. end
  1503.  
  1504. function KillChildren(v)
  1505. v:BreakJoints()
  1506. for _, c in pairs(v:GetChildren()) do
  1507. if c:IsA("BasePart") then
  1508. if c.Transparency < 1 then
  1509. if c:FindFirstChildOfClass("Decal") then
  1510. c:FindFirstChildOfClass("Decal"):remove()
  1511. end
  1512. particles(c)
  1513. c.PE.Enabled = true
  1514. c.Parent = Effects
  1515. c.CanCollide = false
  1516. c.Material = "Neon"
  1517. c.Color = C3(1,0,0)
  1518. c.Transparency = 1
  1519. local grav = Instance.new("BodyPosition",c)
  1520. grav.P = 20000
  1521. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1522. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  1523. grav.Name = "GravityForce"
  1524. coroutine.resume(coroutine.create(function()
  1525. for i = 1, 20 do
  1526. Swait()
  1527. c.Transparency = c.Transparency + 1/20
  1528. end
  1529. c.PE.Enabled = false
  1530. Debris:AddItem(c,2)
  1531. end))
  1532. end
  1533. end
  1534. end
  1535. end
  1536.  
  1537. function ApplyAoE(POSITION,RANGE)
  1538. local CHILDREN = workspace:GetDescendants()
  1539. for index, CHILD in pairs(CHILDREN) do
  1540. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1541. local LISTED = false
  1542. for LIST = 1, #WHITELIST do
  1543. if WHITELIST[LIST] ~= nil then
  1544. if CHILD.Name == WHITELIST[LIST] then
  1545. LISTED = true
  1546. end
  1547. end
  1548. end
  1549. if LISTED == false then
  1550. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1551. if HUM then
  1552. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1553. if TORSO then
  1554. if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
  1555. KillChildren(CHILD)
  1556. end
  1557. end
  1558. end
  1559. end
  1560. end
  1561. end
  1562. end
  1563.  
  1564. function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
  1565. coroutine.resume(coroutine.create(function()
  1566. local METEOR = IT("Model",Effects)
  1567. METEOR.Name = "Meteorite"
  1568. local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  1569. METEOR.PrimaryPart = CENTER
  1570. local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  1571. PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1572. for i = 1, 15 do
  1573. local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE)
  1574. FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1575. end
  1576. if ISDEBREE ~= true then
  1577. METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  1578. else
  1579. METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  1580. end
  1581. local IMPACT = false
  1582. CreateSound(463593339, CENTER, 10, 0.6)
  1583. if SIZE >= 3.5 then
  1584. for i = 1, MRANDOM(3,7) do
  1585. SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
  1586. end
  1587. end
  1588. for i = 1, 200 do
  1589. Swait()
  1590. local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
  1591. if HITFLOOR == nil then
  1592. local ORI = CENTER.Orientation
  1593. METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  1594. else
  1595. if HITFLOOR.Anchored == true then
  1596. CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
  1597. CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
  1598. end
  1599. IMPACT = true
  1600. break
  1601. end
  1602. end
  1603. if IMPACT == true then
  1604. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  1605. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
  1606. WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  1607. ApplyAoE(CENTER.Position,30*SIZE)
  1608. end
  1609. METEOR:remove()
  1610. end))
  1611. end
  1612.  
  1613. function ApplyAoE4(POSITION,RANGE,BRUTAL)
  1614. local CHILDREN = workspace:GetDescendants()
  1615. for index, CHILD in pairs(CHILDREN) do
  1616. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1617. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1618. if HUM then
  1619. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1620. if TORSO then
  1621. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1622. if BRUTAL == true then
  1623. Kill(CHILD)
  1624. else
  1625. CHILD:BreakJoints()
  1626. end
  1627. end
  1628. end
  1629. end
  1630. end
  1631. end
  1632. end
  1633.  
  1634. function Kill(Char)
  1635. local NewCharacter = IT("Model",Effects)
  1636. NewCharacter.Name = "Ow im ded ;-;"
  1637. for _, c in pairs(Char:GetDescendants()) do
  1638. if c:IsA("BasePart") and c.Transparency == 0 then
  1639. c:BreakJoints()
  1640. c.Material = "Glass"
  1641. c.Color = C3(1,0,0)
  1642. c.CanCollide = true
  1643. c.Transparency = 0.3
  1644. if c:FindFirstChildOfClass("SpecialMesh") then
  1645. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1646. end
  1647. if c.Name == "Head" then
  1648. c:ClearAllChildren()
  1649. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1650. end
  1651. if c.ClassName == "MeshPart" then
  1652. c.TextureID = ""
  1653. end
  1654. if c:FindFirstChildOfClass("BodyPosition") then
  1655. c:FindFirstChildOfClass("BodyPosition"):remove()
  1656. end
  1657. if c:FindFirstChildOfClass("ParticleEmitter") then
  1658. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1659. end
  1660. c.Parent = NewCharacter
  1661. c.Name = "DeadPart"
  1662. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1663. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1664. end
  1665. end
  1666. Char:remove()
  1667. Debris:AddItem(NewCharacter,5)
  1668. end
  1669.  
  1670. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1671. local CHILDREN = workspace:GetDescendants()
  1672. for index, CHILD in pairs(CHILDREN) do
  1673. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1674. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1675. if HUM then
  1676. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1677. if TORSO then
  1678. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1679. if BRUTAL == true then
  1680. Kill(CHILD)
  1681. else
  1682. CHILD:BreakJoints()
  1683. end
  1684. end
  1685. end
  1686. end
  1687. end
  1688. end
  1689. end
  1690.  
  1691. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1692. local CHILDREN = workspace:GetDescendants()
  1693. for index, CHILD in pairs(CHILDREN) do
  1694. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1695. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1696. if HUM then
  1697. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1698. if TORSO then
  1699. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1700. if BRUTAL == true then
  1701. Kill(CHILD)
  1702. else
  1703. CHILD:BreakJoints()
  1704. end
  1705. end
  1706. end
  1707. end
  1708. end
  1709. end
  1710. end
  1711.  
  1712. function Banish(Foe)
  1713. if Foe then
  1714. coroutine.resume(coroutine.create(function()
  1715. --if game.Players:FindFirstChild(Foe.Name) then
  1716. table.insert(TOBANISH,Foe.Name)
  1717. printbye(Foe.Name)
  1718. --end
  1719. Foe.Archivable = true
  1720. local CLONE = Foe:Clone()
  1721. Foe:Destroy()
  1722. CLONE.Parent = Effects
  1723. CLONE:BreakJoints()
  1724. local MATERIALS = {"Glass","Neon"}
  1725. for _, c in pairs(CLONE:GetDescendants()) do
  1726. if c:IsA("BasePart") then
  1727. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1728. CreateSound(138271815, c, 10, 1, false)
  1729. end
  1730. c.Anchored = true
  1731. c.Transparency = c.Transparency + 0.2
  1732. c.Material = MATERIALS[MRANDOM(1,2)]
  1733. c.Color = C3(1,0,0)
  1734. if c.ClassName == "MeshPart" then
  1735. c.TextureID = ""
  1736. end
  1737. if c:FindFirstChildOfClass("SpecialMesh") then
  1738. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1739. end
  1740. if c:FindFirstChildOfClass("Decal") then
  1741. c:FindFirstChildOfClass("Decal"):remove()
  1742. end
  1743. c.Name = "Banished"
  1744. c.CanCollide = false
  1745. else
  1746. c:remove()
  1747. end
  1748. end
  1749. local A = false
  1750. for i = 1, 35 do
  1751. if A == false then
  1752. A = true
  1753. elseif A == true then
  1754. A = false
  1755. end
  1756. for _, c in pairs(CLONE:GetDescendants()) do
  1757. if c:IsA("BasePart") then
  1758. c.Anchored = true
  1759. c.Material = MATERIALS[MRANDOM(1,2)]
  1760. c.Transparency = c.Transparency + 0.8/35
  1761. if A == false then
  1762. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1763. elseif A == true then
  1764. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1765. end
  1766. end
  1767. end
  1768. Swait()
  1769. end
  1770. CLONE:remove()
  1771. end))
  1772. end
  1773. end
  1774.  
  1775.  
  1776. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1777. local CHILDREN = workspace:GetDescendants()
  1778. for index, CHILD in pairs(CHILDREN) do
  1779. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1780. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1781. if HUM then
  1782. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1783. if TORSO then
  1784. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1785. if ISBANISH == true then
  1786. Banish(CHILD)
  1787. else
  1788. if ISBANISH == "Gravity" then
  1789. HUM.PlatformStand = true
  1790. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1791. local grav = Instance.new("BodyPosition",TORSO)
  1792. grav.D = 15
  1793. grav.P = 20000
  1794. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1795. grav.position = TORSO.Position
  1796. grav.Name = "V3BanishForce"..Player.Name
  1797. else
  1798. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1799. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1800. end
  1801. else
  1802. HUM.PlatformStand = false
  1803. end
  1804. end
  1805. elseif ISBANISH == "Gravity" then
  1806. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1807. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1808. HUM.PlatformStand = false
  1809. end
  1810. end
  1811. end
  1812. end
  1813. end
  1814. end
  1815. end
  1816.  
  1817. function SpawnSmite(POS)
  1818. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  1819. local EMITPOS = HITPOS
  1820. if HITFLOOR ~= nil then
  1821. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1822. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  1823. EMITPOS = HITPOS
  1824. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1825. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  1826. EMITPOS = HITPOS
  1827. end
  1828. end
  1829. if HITFLOOR ~= nil then
  1830. ApplyAoE(EMITPOS,10)
  1831. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1832. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1833. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1834. for i = 1, 5 do
  1835. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  1836. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1837. end
  1838. end
  1839. end
  1840.  
  1841. --//=================================\\
  1842. --|| TRANSFORMATIONS
  1843. --\\=================================//
  1844.  
  1845. function Switch()
  1846. ATTACK = true
  1847. Rooted = true
  1848. if MODE == "GoodCop" then
  1849. CreateSound("649634100", Head, 10, 0.5)
  1850. for i = 0, 3, 0.1 / Animation_Speed do
  1851. Swait()
  1852. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1853. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1854. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1855. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1856. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1857. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1858. end
  1859. CreateSound("289842971", RightArm, 10, 1)
  1860. for i = 0, 6, 0.1 / Animation_Speed do
  1861. Swait()
  1862. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed)
  1863. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1864. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1865. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1866. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1867. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1868. end
  1869. Weapon.Parent = nil
  1870. Weapon2.Parent = Character
  1871. for i = 0, 1, 0.1 / Animation_Speed do
  1872. Swait()
  1873. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
  1874. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1875. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.25, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1876. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1877. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1878. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1879. end
  1880. for i=0, 0.6, 0.1 / Animation_Speed do
  1881. Swait()
  1882. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
  1883. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  1884. if MRANDOM(1,7) == 1 then
  1885. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1886. end
  1887. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1888. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(95), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1889. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * COS(SINE / 24), -1 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1890. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1891. end
  1892. MODE = "BadCop"
  1893. tecks2.Text = "AFK Gun"
  1894. sick.SoundId = "rbxassetid://1155364899"
  1895. sick.TimePosition = 0
  1896. elseif MODE == "BadCop" then
  1897. CreateSound(147722227, Torso, 4, 1.3, false)
  1898. for i=0, 0.3, 0.1 / Animation_Speed do
  1899. Swait()
  1900. 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)
  1901. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1902. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.4, 0.75, -0.3) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  1903. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1904. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1905. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1906. end
  1907. MODE = "GoodCop"
  1908. Weapon.Parent = Character
  1909. Weapon2.Parent = nil
  1910. tecks2.Text = "Dead Gun"
  1911. sick.SoundId = "rbxassetid://318812395"
  1912. sick.TimePosition = 22
  1913. end
  1914. ATTACK = false
  1915. Rooted = false
  1916. end
  1917. --//=================================\\
  1918. --|| ATTACK FUNCTIONS AND STUFF
  1919. --\\=================================//
  1920.  
  1921. function Intro()
  1922. ATTACK = true
  1923. Rooted = true
  1924. repeat
  1925. Swait()
  1926. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1927. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1928. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed)
  1929. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1930. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed)
  1931. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed)
  1932. until sick.TimePosition > 1
  1933. repeat
  1934. Swait()
  1935. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1936. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1937. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1938. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1939. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1940. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1941. until sick.TimePosition > 1
  1942. repeat
  1943. Swait()
  1944. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1945. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1946. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1947. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1948. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1949. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1950. until sick.TimePosition > 1
  1951. tecks2.TextTransparency = 0
  1952. for i = 1, 100 do
  1953. Swait()
  1954.  
  1955.  
  1956. end
  1957. TRANSFORMED = true
  1958. ATTACK = false
  1959. Rooted = false
  1960. end
  1961.  
  1962. function Shot1()
  1963. ATTACK = true
  1964. Rooted = false
  1965. for i=0, 0.4, 0.05 / Animation_Speed do
  1966. Swait()
  1967. turnto(Mouse.Hit.p)
  1968. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed)
  1969. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1970. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1971. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1972. 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)
  1973. 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)
  1974. end
  1975. repeat
  1976. for i=0, 0.2, 0.05 / Animation_Speed do
  1977. Swait()
  1978. turnto(Mouse.Hit.p)
  1979. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(60)), 0.5 / Animation_Speed)
  1980. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.5 / Animation_Speed)
  1981. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1982. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.6, -0.4) * ANGLES(RAD(170), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1983. 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)
  1984. 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)
  1985. end
  1986. local HIT,POS = CastProperRay(RHole.Position, Mouse.Hit.p, 1000, Character)
  1987. SpawnTrail(RHole.Position,POS)
  1988. if HIT ~= nil then
  1989. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1990. Banish(HIT.Parent)
  1991. end
  1992. end
  1993. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RHole.CFrame, MoveToPos = RHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1994. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 1463566014, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1995. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1996. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1997. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  1998. for i=0, 0.3, 0.05 / Animation_Speed do
  1999. Swait()
  2000. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(60)), 0.5 / Animation_Speed)
  2001. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.25 / Animation_Speed)
  2002. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(60)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2003. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.6, -0.4) * ANGLES(RAD(172), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2004. 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)
  2005. 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)
  2006. end
  2007. until KEYHOLD == false
  2008. ATTACK = false
  2009. Rooted = false
  2010. end
  2011.  
  2012. function Shot2()
  2013. ATTACK = true
  2014. Rooted = false
  2015. for i=0, 0.2, 0.05 / Animation_Speed do
  2016. Swait()
  2017. turnto(Mouse.Hit.p)
  2018. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2019. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2020. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2021. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2022. 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)
  2023. 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)
  2024. end
  2025. repeat
  2026. for i=0, 0.2, 0.05 / Animation_Speed do
  2027. Swait()
  2028. turnto(Mouse.Hit.p)
  2029. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2030. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2031. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2032. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2033. 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)
  2034. 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)
  2035. end
  2036. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  2037. SpawnTrail(Hole.Position,POS)
  2038. if HIT ~= nil then
  2039. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  2040. Kill(HIT.Parent)
  2041. end
  2042. end
  2043. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2044. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2045. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2046. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2047. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  2048. for i=0, 0.2, 0.05 / Animation_Speed do
  2049. Swait()
  2050. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2051. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  2052. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2053. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2054. 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)
  2055. 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)
  2056. end
  2057. until KEYHOLD == false
  2058. ATTACK = false
  2059. Rooted = false
  2060. end
  2061.  
  2062. function ScrewThis()
  2063. ATTACK = true
  2064. Rooted = true
  2065. Weapon.Parent = nil
  2066. sick.Volume = 0
  2067. CreateSound("1238240145", Effects, 10, 0.9)
  2068. CreateSound(363808674, Effects, 10, 1, false)
  2069. for i=0, 0.6, 0.1 / Animation_Speed do
  2070. Swait()
  2071. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2072. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  2073. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2074. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2075. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2076. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2077. end
  2078. CreateSound(363808674, Effects, 10, 1, false)
  2079. for i=0, 0.6, 0.1 / Animation_Speed do
  2080. Swait()
  2081. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2082. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  2083. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2084. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2085. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2086. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2087. end
  2088. CreateSound(363808674, Effects, 10, 1, false)
  2089. for i=0, 0.6, 0.1 / Animation_Speed do
  2090. Swait()
  2091. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2092. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  2093. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2094. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2095. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2096. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2097. end
  2098. CreateSound(363808674, Effects, 10, 1, false)
  2099. for i=0, 0.6, 0.1 / Animation_Speed do
  2100. Swait()
  2101. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2102. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  2103. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2104. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2105. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2106. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2107. end
  2108. CreateSound(363808674, Effects, 10, 1, false)
  2109. for i=0, 0.6, 0.1 / Animation_Speed do
  2110. Swait()
  2111. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2112. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  2113. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2114. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2115. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2116. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2117. end
  2118. CreateSound(363808674, Effects, 10, 1, false)
  2119. for i=0, 0.6, 0.1 / Animation_Speed do
  2120. Swait()
  2121. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2122. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  2123. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2124. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2125. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2126. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2127. end
  2128. Weapon.Parent = Character
  2129. sick.Volume = 2
  2130. ATTACK = false
  2131. Rooted = false
  2132. end
  2133.  
  2134. function Taunt()
  2135. ATTACK = true
  2136. Rooted = true
  2137. local L = CreateSound(2162230624,Head,8,1.1,false)
  2138. L.EmitterSize = 25
  2139. for i = 1, 20 do
  2140. Swait()
  2141. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  2142. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2143. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2144. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2145. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2146. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2147. end
  2148. for i = 1, 40 do
  2149. Swait()
  2150. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2151. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed)
  2152. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2153. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2154. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2155. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2156. end
  2157. for i = 1, 60 do
  2158. Swait()
  2159. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  2160. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2161. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2162. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2163. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2164. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2165. end
  2166. for i = 1, 60 do
  2167. Swait()
  2168. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2169. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed)
  2170. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2171. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2172. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2173. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2174. end
  2175. for i = 1, 90 do
  2176. Swait()
  2177. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  2178. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2179. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2180. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2181. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2182. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2183. end
  2184. for i = 1, 72 do
  2185. Swait()
  2186. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2187. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed)
  2188. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2189. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2190. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2191. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2192. end
  2193. for i = 1, 96 do
  2194. Swait()
  2195. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed)
  2196. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2197. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-110)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2198. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.3, -0.35) * ANGLES(RAD(0), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2199. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2200. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2201. end
  2202. for i = 1, 98 do
  2203. Swait()
  2204. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.17, -0.075 + 0.1 * SIN(i / 3)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  2205. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3), RAD(15 * SIN(i / 1.5)), RAD(0)), 1 / Animation_Speed)
  2206. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(-5), RAD(120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2207. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.6 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(15), RAD(5), RAD(-120)) * ANGLES(RAD(0), RAD(180), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2208. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2209. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(i / 3), 0) * ANGLES(RAD(5), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
  2210. end
  2211. ATTACK = false
  2212. Rooted = false
  2213. end
  2214. --//=================================\\
  2215. --|| ASSIGN THINGS TO KEYS
  2216. --\\=================================//
  2217.  
  2218. function MouseDown(Mouse)
  2219. if ATTACK == false then
  2220.  
  2221. end
  2222. end
  2223.  
  2224. function MouseUp(Mouse)
  2225. HOLD = false
  2226. end
  2227.  
  2228. function KeyDown(Key)
  2229. KEYHOLD = true
  2230. if TRANSFORMED == true and Rooted == false then
  2231. if Key == "f" and ATTACK == false then
  2232. Switch()
  2233. end
  2234.  
  2235.  
  2236. if Key == "z" and ATTACK == false then
  2237. if MODE == "GoodCop" then
  2238. Shot2()
  2239. elseif MODE == "BadCop" then
  2240. Shot1()
  2241. end
  2242. end
  2243.  
  2244. if Key == "t" and ATTACK == false then
  2245. if MODE == "GoodCop" then
  2246. ScrewThis()
  2247. elseif MODE == "BadCop" then
  2248. Taunt()
  2249. end
  2250. end
  2251.  
  2252. end
  2253.  
  2254. if Key == "9" and ATTACK == false then
  2255. CreateSound("135017578", Effects, 5, 1)
  2256. end
  2257. end
  2258.  
  2259. function KeyUp(Key)
  2260. KEYHOLD = false
  2261. end
  2262.  
  2263. Mouse.Button1Down:connect(function(NEWKEY)
  2264. MouseDown(NEWKEY)
  2265. end)
  2266. Mouse.Button1Up:connect(function(NEWKEY)
  2267. MouseUp(NEWKEY)
  2268. end)
  2269. Mouse.KeyDown:connect(function(NEWKEY)
  2270. KeyDown(NEWKEY)
  2271. end)
  2272. Mouse.KeyUp:connect(function(NEWKEY)
  2273. KeyUp(NEWKEY)
  2274. end)
  2275.  
  2276. --//=================================\\
  2277. --\\=================================//
  2278.  
  2279.  
  2280. function unanchor()
  2281. if UNANCHOR == true then
  2282. RootPart.Anchored = false
  2283. end
  2284. for _, c in pairs(Weapon:GetChildren()) do
  2285. if c.ClassName == "Part" then
  2286. c.Anchored = false
  2287. end
  2288. end
  2289. end
  2290.  
  2291.  
  2292. --//=================================\\
  2293. --|| WRAP THE WHOLE SCRIPT UP
  2294. --\\=================================//
  2295.  
  2296. Humanoid.Changed:connect(function(Jump)
  2297. if Jump == "Jump" and (Disable_Jump == true) then
  2298. Humanoid.Jump = false
  2299. end
  2300. end)
  2301.  
  2302. while true do
  2303. Swait()
  2304. script.Parent = WEAPONGUI
  2305. ANIMATE.Parent = nil
  2306. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  2307. v:Stop();
  2308. end
  2309. SINE = SINE + CHANGE
  2310. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2311. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2312. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2313. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2314. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2315. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.05 * COS(SINE / (WALKSPEEDVALUE/2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2316. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2317. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  2318. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  2319. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2320. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2321. 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)
  2322. 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.7 / Animation_Speed)
  2323. 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.7 / Animation_Speed)
  2324. end
  2325. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2326. ANIM = "Jump"
  2327. if ATTACK == false then
  2328. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2329. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2330. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2331. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2332. 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)
  2333. 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)
  2334. end
  2335. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2336. ANIM = "Fall"
  2337. if ATTACK == false then
  2338. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2339. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2340. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2341. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2342. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2343. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2344. end
  2345. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2346. ANIM = "Idle"
  2347. if ATTACK == false then
  2348. if MODE == "GoodCop" then
  2349. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.05 * COS(SINE / 12), 0, 0 + 0.05 * SIN(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2350. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  2351. 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)
  2352. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2353. RightHip.C0 = Clerp(RightHip.C0, CF(1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2354. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 + 0.05 * COS(SINE / 12), -1 - 0.05 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2355. elseif MODE == "BadCop" then
  2356. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1 + 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
  2357. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2358. if MRANDOM(1,7) == 1 then
  2359. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  2360. end
  2361. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2362. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(95), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2363. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * COS(SINE / 24), -1 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2364. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2365. end
  2366. end
  2367. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2368. ANIM = "Walk"
  2369. if ATTACK == false then
  2370. if MODE == "GoodCop" then
  2371. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2372. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.05 * SIN(SINE / (WALKSPEEDVALUE/2)), 0.3) * ANGLES(RAD(-40), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2373. elseif MODE == "BadCop" then
  2374. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2375. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2376. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, -0.15) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2377. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  2378. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2379. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2380. end
  2381. end
  2382. end
  2383. Humanoid.DisplayDistanceType = "None"
  2384. unanchor()
  2385. tecks2.TextColor3 = BrickColor.Random().Color
  2386. tecks2.TextStrokeColor3 = BrickColor.Random().Color
  2387. Humanoid.MaxHealth = "inf"
  2388. Humanoid.Health = "inf"
  2389. if Rooted == false then
  2390. Disable_Jump = false
  2391. Humanoid.WalkSpeed = Speed
  2392. elseif Rooted == true then
  2393. Disable_Jump = true
  2394. Humanoid.WalkSpeed = 0
  2395. end
  2396. Humanoid.PlatformStand = false
  2397. if INTRO == false and INSTANT == false then
  2398. INTRO = true
  2399. coroutine.resume(coroutine.create(function()
  2400. sick:Play()
  2401. Intro()
  2402. end))
  2403. end
  2404. if INSTANT == true then
  2405. if TRANSFORMED == false then
  2406. sick.TimePosition = 60
  2407. sick:Play()
  2408. end
  2409. TRANSFORMED = true
  2410. end
  2411. script.Parent = PlayerGui
  2412. Character.Parent = workspace
  2413. Humanoid.Parent = Character
  2414. end
  2415. --//=================================\\
  2416. --\\=================================//
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422. --//====================================================\\--
  2423. --|| END OF SCRIPT
  2424. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement