Advertisement
SniperZazzy

Untitled

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