Advertisement
Guest User

Roblox FE Banish Gun

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