Advertisement
DarkScriptZEditors

Dead Gun And Thunder Gun FE

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