Advertisement
Christoffer07700Extr

jk4

May 24th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.02 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. wait(0.2)
  146.  
  147.  
  148.  
  149. Player = game:GetService("Players").LocalPlayer
  150. PlayerGui = Player.PlayerGui
  151. Cam = workspace.CurrentCamera
  152. Backpack = Player.Backpack
  153. Character = Player.Character
  154. Humanoid = Character.Humanoid
  155. Mouse = Player:GetMouse()
  156. RootPart = Character["HumanoidRootPart"]
  157. Torso = Character["Torso"]
  158. Head = Character["Head"]
  159. RightArm = Character["Right Arm"]
  160. LeftArm = Character["Left Arm"]
  161. RightLeg = Character["Right Leg"]
  162. LeftLeg = Character["Left Leg"]
  163. RootJoint = RootPart["RootJoint"]
  164. Neck = Torso["Neck"]
  165. RightShoulder = Torso["Right Shoulder"]
  166. LeftShoulder = Torso["Left Shoulder"]
  167. RightHip = Torso["Right Hip"]
  168. LeftHip = Torso["Left Hip"]
  169. local sick = Instance.new("Sound",Torso)
  170. sick.SoundId = "rbxassetid://1755770760"
  171. sick.Looped = true
  172. sick.Pitch = 1
  173. sick.Volume = 2
  174. sick:Play()
  175.  
  176. IT = Instance.new
  177. CF = CFrame.new
  178. VT = Vector3.new
  179. RAD = math.rad
  180. C3 = Color3.new
  181. UD2 = UDim2.new
  182. BRICKC = BrickColor.new
  183. ANGLES = CFrame.Angles
  184. EULER = CFrame.fromEulerAnglesXYZ
  185. COS = math.cos
  186. ACOS = math.acos
  187. SIN = math.sin
  188. ASIN = math.asin
  189. ABS = math.abs
  190. MRANDOM = math.random
  191. FLOOR = math.floor
  192.  
  193. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  194. local NEWMESH = IT(MESH)
  195. if MESH == "SpecialMesh" then
  196. NEWMESH.MeshType = MESHTYPE
  197. if MESHID ~= "nil" and MESHID ~= "" then
  198. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  199. end
  200. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  201. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  202. end
  203. end
  204. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  205. NEWMESH.Scale = SCALE
  206. NEWMESH.Parent = PARENT
  207. return NEWMESH
  208. end
  209.  
  210. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  211. local NEWPART = IT("Part")
  212. NEWPART.formFactor = FORMFACTOR
  213. NEWPART.Reflectance = REFLECTANCE
  214. NEWPART.Transparency = TRANSPARENCY
  215. NEWPART.CanCollide = false
  216. NEWPART.Locked = true
  217. NEWPART.Anchored = true
  218. if ANCHOR == false then
  219. NEWPART.Anchored = false
  220. end
  221. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  222. NEWPART.Name = NAME
  223. NEWPART.Size = SIZE
  224. NEWPART.Position = Torso.Position
  225. NEWPART.Material = MATERIAL
  226. NEWPART:BreakJoints()
  227. NEWPART.Parent = PARENT
  228. return NEWPART
  229. end
  230.  
  231. --//=================================\\
  232. --|| CUSTOMIZATION
  233. --\\=================================//
  234.  
  235. Player_Size = 1 --Size of the player.
  236. Animation_Speed = 3
  237. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  238.  
  239. local Speed = 16
  240. local Effects2 = {}
  241.  
  242. --//=================================\\
  243. --|| END OF CUSTOMIZATION
  244. --\\=================================//
  245.  
  246. local function weldBetween(a, b)
  247. local weldd = Instance.new("ManualWeld")
  248. weldd.Part0 = a
  249. weldd.Part1 = b
  250. weldd.C0 = CFrame.new()
  251. weldd.C1 = b.CFrame:inverse() * a.CFrame
  252. weldd.Parent = a
  253. return weldd
  254. end
  255.  
  256. --//=================================\\
  257. --|| USEFUL VALUES
  258. --\\=================================//
  259.  
  260. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  261. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  262. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  263. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  264. local CHANGEDEFENSE = 0
  265. local CHANGEDAMAGE = 0
  266. local CHANGEMOVEMENT = 0
  267. local ANIM = "Idle"
  268. local ATTACK = false
  269. local EQUIPPED = false
  270. local HOLD = false
  271. local COMBO = 1
  272. local Rooted = false
  273. local Horn1 = IT("Folder", Character)
  274. Horn1.Name = "Horn1"
  275. local SINE = 0
  276. local KEYHOLD = false
  277. local CHANGE = 2 / Animation_Speed
  278. local WALKINGANIM = false
  279. local MODE = "Cop"
  280. local WALK = 0
  281. local VALUE1 = false
  282. local VALUE2 = false
  283. local ROBLOXIDLEANIMATION = IT("Animation")
  284. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  285. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  286. --ROBLOXIDLEANIMATION.Parent = Humanoid
  287. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  288. WEAPONGUI.Name = "Weapon GUI"
  289. local Effects = IT("Folder", Character)
  290. Effects.Name = "Effects"
  291. local Weapon = IT("Model")
  292. Weapon.Name = "Adds"
  293. local Effects = IT("Folder", Weapon)
  294. Effects.Name = "Effects"
  295. local ANIMATOR = Humanoid.Animator
  296. local ANIMATE = Character.Animate
  297. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  298. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  299. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  300. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  301. local UNANCHOR = true
  302.  
  303. local SKILLTEXTCOLOR = C3(0,0,0)
  304.  
  305. local naeeym2 = Instance.new("BillboardGui",Character)
  306. naeeym2.AlwaysOnTop = true
  307. naeeym2.Size = UDim2.new(5,35,2,35)
  308. naeeym2.StudsOffset = Vector3.new(0,2,0)
  309. naeeym2.Adornee = Character.Head
  310. naeeym2.Name = "Name"
  311. naeeym2.PlayerToHideFrom = Player
  312. local tecks2 = Instance.new("TextLabel",naeeym2)
  313. tecks2.BackgroundTransparency = 1
  314. tecks2.TextScaled = true
  315. tecks2.BorderSizePixel = 0
  316. tecks2.Text = Player.Name..", The Ultimate Edgelord"
  317. tecks2.Font = "Antique"
  318. tecks2.TextSize = 30
  319. tecks2.TextStrokeTransparency = 0
  320. tecks2.TextColor3 = Color3.new(0,0,0)
  321. tecks2.TextStrokeColor3 = Color3.new(0.2,0.2,0.2)
  322. tecks2.Size = UDim2.new(1,0,0.5,0)
  323. tecks2.Parent = naeeym2
  324.  
  325. --//=================================\\
  326. --\\=================================//
  327.  
  328.  
  329. --//=================================\\
  330. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  331. --\\=================================//
  332.  
  333. ArtificialHB = Instance.new("BindableEvent", script)
  334. ArtificialHB.Name = "ArtificialHB"
  335.  
  336. script:WaitForChild("ArtificialHB")
  337.  
  338. frame = Frame_Speed
  339. tf = 0
  340. allowframeloss = false
  341. tossremainder = false
  342. lastframe = tick()
  343. script.ArtificialHB:Fire()
  344.  
  345. game:GetService("RunService").Heartbeat:connect(function(s, p)
  346. tf = tf + s
  347. if tf >= frame then
  348. if allowframeloss then
  349. script.ArtificialHB:Fire()
  350. lastframe = tick()
  351. else
  352. for i = 1, math.floor(tf / frame) do
  353. script.ArtificialHB:Fire()
  354. end
  355. lastframe = tick()
  356. end
  357. if tossremainder then
  358. tf = 0
  359. else
  360. tf = tf - frame * math.floor(tf / frame)
  361. end
  362. end
  363. end)
  364.  
  365. --//=================================\\
  366. --\\=================================//
  367.  
  368.  
  369.  
  370.  
  371.  
  372. --//=================================\\
  373. --|| SOME FUNCTIONS
  374. --\\=================================//
  375.  
  376. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  377. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  378. end
  379.  
  380. function PositiveAngle(NUMBER)
  381. if NUMBER >= 0 then
  382. NUMBER = 0
  383. end
  384. return NUMBER
  385. end
  386.  
  387. function NegativeAngle(NUMBER)
  388. if NUMBER <= 0 then
  389. NUMBER = 0
  390. end
  391. return NUMBER
  392. end
  393.  
  394. function Swait(NUMBER)
  395. if NUMBER == 0 or NUMBER == nil then
  396. ArtificialHB.Event:wait()
  397. else
  398. for i = 1, NUMBER do
  399. ArtificialHB.Event:wait()
  400. end
  401. end
  402. end
  403.  
  404. function QuaternionFromCFrame(cf)
  405. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  406. local trace = m00 + m11 + m22
  407. if trace > 0 then
  408. local s = math.sqrt(1 + trace)
  409. local recip = 0.5 / s
  410. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  411. else
  412. local i = 0
  413. if m11 > m00 then
  414. i = 1
  415. end
  416. if m22 > (i == 0 and m00 or m11) then
  417. i = 2
  418. end
  419. if i == 0 then
  420. local s = math.sqrt(m00 - m11 - m22 + 1)
  421. local recip = 0.5 / s
  422. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  423. elseif i == 1 then
  424. local s = math.sqrt(m11 - m22 - m00 + 1)
  425. local recip = 0.5 / s
  426. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  427. elseif i == 2 then
  428. local s = math.sqrt(m22 - m00 - m11 + 1)
  429. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  430. end
  431. end
  432. end
  433.  
  434. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  435. local xs, ys, zs = x + x, y + y, z + z
  436. local wx, wy, wz = w * xs, w * ys, w * zs
  437. local xx = x * xs
  438. local xy = x * ys
  439. local xz = x * zs
  440. local yy = y * ys
  441. local yz = y * zs
  442. local zz = z * zs
  443. 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))
  444. end
  445.  
  446. function QuaternionSlerp(a, b, t)
  447. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  448. local startInterp, finishInterp;
  449. if cosTheta >= 0.0001 then
  450. if (1 - cosTheta) > 0.0001 then
  451. local theta = ACOS(cosTheta)
  452. local invSinTheta = 1 / SIN(theta)
  453. startInterp = SIN((1 - t) * theta) * invSinTheta
  454. finishInterp = SIN(t * theta) * invSinTheta
  455. else
  456. startInterp = 1 - t
  457. finishInterp = t
  458. end
  459. else
  460. if (1 + cosTheta) > 0.0001 then
  461. local theta = ACOS(-cosTheta)
  462. local invSinTheta = 1 / SIN(theta)
  463. startInterp = SIN((t - 1) * theta) * invSinTheta
  464. finishInterp = SIN(t * theta) * invSinTheta
  465. else
  466. startInterp = t - 1
  467. finishInterp = t
  468. end
  469. end
  470. 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
  471. end
  472.  
  473. function Clerp(a, b, t)
  474. local qa = {QuaternionFromCFrame(a)}
  475. local qb = {QuaternionFromCFrame(b)}
  476. local ax, ay, az = a.x, a.y, a.z
  477. local bx, by, bz = b.x, b.y, b.z
  478. local _t = 1 - t
  479. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  480. end
  481.  
  482. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  483. local frame = IT("Frame")
  484. frame.BackgroundTransparency = TRANSPARENCY
  485. frame.BorderSizePixel = BORDERSIZEPIXEL
  486. frame.Position = POSITION
  487. frame.Size = SIZE
  488. frame.BackgroundColor3 = COLOR
  489. frame.BorderColor3 = BORDERCOLOR
  490. frame.Name = NAME
  491. frame.Parent = PARENT
  492. return frame
  493. end
  494.  
  495. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  496. local label = IT("TextLabel")
  497. label.BackgroundTransparency = 1
  498. label.Size = UD2(1, 0, 1, 0)
  499. label.Position = UD2(0, 0, 0, 0)
  500. label.TextColor3 = TEXTCOLOR
  501. label.TextStrokeTransparency = STROKETRANSPARENCY
  502. label.TextTransparency = TRANSPARENCY
  503. label.FontSize = TEXTFONTSIZE
  504. label.Font = TEXTFONT
  505. label.BorderSizePixel = BORDERSIZEPIXEL
  506. label.TextScaled = false
  507. label.Text = TEXT
  508. label.Name = NAME
  509. label.Parent = PARENT
  510. return label
  511. end
  512.  
  513. function NoOutlines(PART)
  514. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  515. end
  516.  
  517.  
  518. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  519. local NEWWELD = IT(TYPE)
  520. NEWWELD.Part0 = PART0
  521. NEWWELD.Part1 = PART1
  522. NEWWELD.C0 = C0
  523. NEWWELD.C1 = C1
  524. NEWWELD.Parent = PARENT
  525. return NEWWELD
  526. end
  527.  
  528. local S = IT("Sound")
  529.  
  530. function CreateSound(ID, PARENT, VOLUME, PITCH)
  531. local NEWSOUND = nil
  532. coroutine.resume(coroutine.create(function()
  533. NEWSOUND = S:Clone()
  534. NEWSOUND.Parent = PARENT
  535. NEWSOUND.Volume = VOLUME
  536. NEWSOUND.Pitch = PITCH
  537. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  538. Swait()
  539. NEWSOUND:play()
  540. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  541. end))
  542. return NEWSOUND
  543. end
  544.  
  545. function CFrameFromTopBack(at, top, back)
  546. local right = top:Cross(back)
  547. 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)
  548. end
  549.  
  550. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  551. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  552. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  553. wave.CFrame = CFRAME
  554. coroutine.resume(coroutine.create(function(PART)
  555. for i = 1, WAIT do
  556. Swait()
  557. mesh.Scale = mesh.Scale + GROW
  558. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  559. if DOESROT == true then
  560. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  561. end
  562. wave.Transparency = wave.Transparency + (0.5/WAIT)
  563. if wave.Transparency > 0.99 then
  564. wave:remove()
  565. end
  566. end
  567. end))
  568. end
  569.  
  570. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  571. function WACKYEFFECT(Table)
  572. local TYPE = (Table.EffectType or "Sphere")
  573. local SIZE = (Table.Size or VT(1,1,1))
  574. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  575. local TRANSPARENCY = (Table.Transparency or 0)
  576. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  577. local CFRAME = (Table.CFrame or Torso.CFrame)
  578. local MOVEDIRECTION = (Table.MoveToPos or nil)
  579. local ROTATION1 = (Table.RotationX or 0)
  580. local ROTATION2 = (Table.RotationY or 0)
  581. local ROTATION3 = (Table.RotationZ or 0)
  582. local MATERIAL = (Table.Material or "Neon")
  583. local COLOR = (Table.Color or C3(1,1,1))
  584. local TIME = (Table.Time or 45)
  585. local SOUNDID = (Table.SoundID or nil)
  586. local SOUNDPITCH = (Table.SoundPitch or nil)
  587. local SOUNDVOLUME = (Table.SoundVolume or nil)
  588. coroutine.resume(coroutine.create(function()
  589. local PLAYSSOUND = false
  590. local SOUND = nil
  591. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true)
  592. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  593. PLAYSSOUND = true
  594. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  595. end
  596. EFFECT.Color = COLOR
  597. local MSH = nil
  598. if TYPE == "Sphere" then
  599. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  600. elseif TYPE == "Block" then
  601. MSH = IT("BlockMesh",EFFECT)
  602. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  603. elseif TYPE == "Wave" then
  604. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  605. elseif TYPE == "Ring" then
  606. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  607. elseif TYPE == "Slash" then
  608. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  609. elseif TYPE == "Round Slash" then
  610. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  611. elseif TYPE == "Swirl" then
  612. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  613. elseif TYPE == "Skull" then
  614. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  615. elseif TYPE == "Crystal" then
  616. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  617. end
  618. if MSH ~= nil then
  619. local MOVESPEED = nil
  620. if MOVEDIRECTION ~= nil then
  621. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  622. end
  623. local GROWTH = SIZE - ENDSIZE
  624. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  625. if TYPE == "Block" then
  626. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  627. else
  628. EFFECT.CFrame = CFRAME
  629. end
  630. for LOOP = 1, TIME+1 do
  631. Swait()
  632. MSH.Scale = MSH.Scale - GROWTH/TIME
  633. if TYPE == "Wave" then
  634. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  635. end
  636. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  637. if TYPE == "Block" then
  638. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  639. else
  640. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  641. end
  642. if MOVEDIRECTION ~= nil then
  643. local ORI = EFFECT.Orientation
  644. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  645. EFFECT.Orientation = ORI
  646. end
  647. end
  648. if PLAYSSOUND == false then
  649. EFFECT:remove()
  650. else
  651. SOUND.Stopped:Connect(function()
  652. EFFECT:remove()
  653. end)
  654. end
  655. else
  656. if PLAYSSOUND == false then
  657. EFFECT:remove()
  658. else
  659. repeat Swait() until SOUND.Playing == false
  660. EFFECT:remove()
  661. end
  662. end
  663. end))
  664. end
  665.  
  666. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  667. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  668. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
  669. wave.CFrame = CFRAME
  670. coroutine.resume(coroutine.create(function(PART)
  671. for i = 1, WAIT do
  672. Swait()
  673. mesh.Scale = mesh.Scale + GROW
  674. if DOESROT == true then
  675. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  676. end
  677. wave.Transparency = wave.Transparency + (0.5/WAIT)
  678. if wave.Transparency > 0.99 then
  679. wave:remove()
  680. end
  681. end
  682. end))
  683. end
  684.  
  685. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  686. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  687. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  688. wave.CFrame = CFRAME
  689. coroutine.resume(coroutine.create(function(PART)
  690. for i = 1, WAIT do
  691. Swait()
  692. mesh.Scale = mesh.Scale + GROW
  693. wave.Transparency = wave.Transparency + (1/WAIT)
  694. if wave.Transparency > 0.99 then
  695. wave:remove()
  696. end
  697. end
  698. end))
  699. end
  700.  
  701. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  702. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  703. local mesh = nil
  704. if KIND == "Base" then
  705. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  706. elseif KIND == "Thin" then
  707. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  708. elseif KIND == "Round" then
  709. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  710. end
  711. wave.CFrame = CFRAME
  712. coroutine.resume(coroutine.create(function(PART)
  713. for i = 1, WAIT do
  714. Swait()
  715. mesh.Scale = mesh.Scale + GROW/10
  716. wave.Transparency = wave.Transparency + (0.5/WAIT)
  717. if wave.Transparency > 0.99 then
  718. wave:remove()
  719. end
  720. end
  721. end))
  722. end
  723.  
  724. function MakeForm(PART,TYPE)
  725. if TYPE == "Cyl" then
  726. local MSH = IT("CylinderMesh",PART)
  727. elseif TYPE == "Ball" then
  728. local MSH = IT("SpecialMesh",PART)
  729. MSH.MeshType = "Sphere"
  730. elseif TYPE == "Wedge" then
  731. local MSH = IT("SpecialMesh",PART)
  732. MSH.MeshType = "Wedge"
  733. end
  734. end
  735.  
  736. function SpawnKnife(SIZE,ISGRABBED,LIMB,ROT,ROT2,DOESDODAMAGE,DAMAGE)
  737. SIZE = SIZE / 2
  738. local WELD = nil
  739. local KNIFEMODEL = IT("Model",Effects)
  740. KNIFEMODEL.Name = "Knife"
  741. local HandlePart = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Handle", VT(0.2,1.5,0.2)*SIZE,false)
  742. MakeForm(HandlePart,"Cyl")
  743. if ISGRABBED == true then
  744. WELD = CreateWeldOrSnapOrMotor("Weld", HandlePart, LIMB, HandlePart, CF(0, -1, 0) * ANGLES(RAD(ROT), RAD(ROT2), RAD(0)), CF(0, 0, 0))
  745. end
  746. local BladePart = CreatePart(3, KNIFEMODEL, "Neon", 0,1, "Really red", "BladeHolder", VT(0.2,2.8+(3.25/1.5),0.2)*SIZE,false)
  747. BladePart.CFrame = HandlePart.CFrame*CF(0,-2.8*SIZE,-0.05*SIZE)
  748. weldBetween(HandlePart,BladePart)
  749. local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,2.8,1)*SIZE,false)
  750. MakeForm(Part,"Wedge")
  751. Part.CFrame = BladePart.CFrame*CF(0,-1.475*SIZE,0.45*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0))
  752. weldBetween(BladePart,Part)
  753. local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,3.25/1.5,0.5)*SIZE,false)
  754. MakeForm(Part,"Wedge")
  755. Part.CFrame = BladePart.CFrame*CF(0,1*SIZE,1.2*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0))
  756. weldBetween(BladePart,Part)
  757. local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,3.25/1.5,1)*SIZE,false)
  758. Part.CFrame = BladePart.CFrame*CF(0,1*SIZE,0.45*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0))
  759. weldBetween(BladePart,Part)
  760. local A = IT("Attachment",BladePart)
  761. A.Position = VT(0,BladePart.Size.Y/2,0)
  762. local B = IT("Attachment",BladePart)
  763. B.Position = VT(0,-BladePart.Size.Y/2,0)
  764. local Trail = IT("Trail",BladePart)
  765. Trail.Attachment0 = A
  766. Trail.Attachment1 = B
  767. Trail.Lifetime = 0.2
  768. Trail.Color = ColorSequence.new(BRICKC"Really red".Color)
  769. Trail.Transparency = NumberSequence.new(0, 1)
  770. for _, c in pairs(KNIFEMODEL:GetChildren()) do
  771. if c.ClassName == "Part" then
  772. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  773. end
  774. end
  775. if DOESDODAMAGE == true then
  776. local HIT = false
  777. BladePart.CanCollide = true
  778. local TOUCHED = BladePart.Touched:Connect(function(hit)
  779. if HIT == false then
  780. if hit ~= nil then
  781. if hit.Parent ~= nil then
  782. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
  783. HIT = true
  784. ApplyDamage(hit.Parent:FindFirstChildOfClass("Humanoid"),DAMAGE,2,2)
  785. wait(0.1)
  786. HIT = false
  787. end
  788. end
  789. end
  790. end
  791. end)
  792. end
  793. return KNIFEMODEL,WELD,BladePart
  794. end
  795.  
  796. function PuddleOfBlood(Position,MaxDrop,Model,MaxSize)
  797. local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model)
  798. if HITFLOOR ~= nil then
  799. if HITFLOOR.Parent ~= Effects and HITFLOOR.Parent ~= Character then
  800. if HITFLOOR.Name == "BloodPuddle" then
  801. local DIST = (Position - HITFLOOR.Position).Magnitude
  802. if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then
  803. HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1)
  804. end
  805. else
  806. if HITFLOOR.Anchored == true then
  807. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2))
  808. BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))
  809. MakeForm(BLOOD,"Cyl")
  810. coroutine.resume(coroutine.create(function()
  811. Swait(75)
  812. while true do
  813. Swait()
  814. BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02)
  815. if BLOOD.Size.Z < 0.051 then
  816. BLOOD:remove()
  817. break
  818. end
  819. end
  820. end))
  821. end
  822. end
  823. end
  824. end
  825. end
  826.  
  827. function MakeForm(PART,TYPE)
  828. if TYPE == "Cyl" then
  829. local MSH = IT("CylinderMesh",PART)
  830. elseif TYPE == "Ball" then
  831. local MSH = IT("SpecialMesh",PART)
  832. MSH.MeshType = "Sphere"
  833. elseif TYPE == "Wedge" then
  834. local MSH = IT("SpecialMesh",PART)
  835. MSH.MeshType = "Wedge"
  836. end
  837. end
  838.  
  839. function SpawnTrail(FROM,TO,BIG)
  840. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
  841. MakeForm(TRAIL,"Cyl")
  842. local DIST = (FROM - TO).Magnitude
  843. if BIG == true then
  844. TRAIL.Size = VT(0.5,DIST,0.5)
  845. else
  846. TRAIL.Size = VT(0.25,DIST,0.25)
  847. end
  848. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  849. coroutine.resume(coroutine.create(function()
  850. for i = 1, 5 do
  851. Swait()
  852. TRAIL.Transparency = TRAIL.Transparency + 0.1
  853. end
  854. TRAIL:remove()
  855. end))
  856. end
  857.  
  858. function SpawnTrail2(FROM,TO,BIG)
  859. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
  860. MakeForm(TRAIL,"Cyl")
  861. local DIST = (FROM - TO).Magnitude
  862. if BIG == true then
  863. TRAIL.Size = VT(0.8,DIST,0.8)
  864. else
  865. TRAIL.Size = VT(0.27,DIST,0.27)
  866. end
  867. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  868. coroutine.resume(coroutine.create(function()
  869. for i = 1, 5 do
  870. Swait()
  871. TRAIL.Transparency = TRAIL.Transparency + 0.1
  872. end
  873. TRAIL:remove()
  874. end))
  875. end
  876.  
  877. Debris = game:GetService("Debris")
  878.  
  879. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  880. local DIRECTION = CF(StartPos,EndPos).lookVector
  881. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  882. end
  883.  
  884. function turnto(position)
  885. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  886. end
  887.  
  888. function SprayBlood(POSITION,DIRECTION,BloodSize,DoesTable,Table)
  889. local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false)
  890. BLOOD.CFrame = CF(POSITION)
  891. MakeForm(BLOOD,"Ball")
  892. local bv = Instance.new("BodyVelocity",BLOOD)
  893. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  894. bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3),MRANDOM(-3,3)/30,MRANDOM(-3,3))).lookVector*65
  895. bv.Name = "MOVE"
  896. Debris:AddItem(bv,0.05)
  897. coroutine.resume(coroutine.create(function()
  898. local HASTOUCHEDGROUND = false
  899. local HIT = BLOOD.Touched:Connect(function(hit)
  900. if hit.Anchored == true then
  901. HASTOUCHEDGROUND = true
  902. if DoesTable == true then
  903. AddChildrenToTable(BLOOD.Position,workspace,15,Table)
  904. end
  905. PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize)
  906. end
  907. end)
  908. for i = 1, 75 do
  909. Swait()
  910. if i > 5 then
  911. BLOOD.CanCollide = true
  912. end
  913. if HASTOUCHEDGROUND == true then
  914. break
  915. end
  916. end
  917. BLOOD:remove()
  918. end))
  919. end
  920.  
  921. function CheckTableForString(Table, String)
  922. for i, v in pairs(Table) do
  923. if string.find(string.lower(String), string.lower(v)) then
  924. return true
  925. end
  926. end
  927. return false
  928. end
  929.  
  930. function CheckIntangible(Hit)
  931. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  932. if Hit and Hit.Parent then
  933. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  934. return true
  935. end
  936. end
  937. return false
  938. end
  939.  
  940. Debris = game:GetService("Debris")
  941.  
  942. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  943. local Direction = CFrame.new(StartPos, Vec).lookVector
  944. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  945. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  946. if RayHit and CheckIntangible(RayHit) then
  947. if DelayIfHit then
  948. wait()
  949. end
  950. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  951. end
  952. return RayHit, RayPos, RayNormal
  953. end
  954.  
  955. function turnto(position)
  956. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  957. end
  958.  
  959. --//=================================\\
  960. --|| WEAPON CREATION
  961. --\\=================================//
  962.  
  963. armor = Instance.new("Part")
  964. armormesh = Instance.new("SpecialMesh")
  965. armor.Anchored = false
  966. armor.CanCollide = false
  967. armor.Size = Vector3.new(1.4, 0.7, 1.3)
  968. armor.BrickColor = BrickColor.new("Black")
  969. armor.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  970. armor.Material = Enum.Material.SmoothPlastic
  971. armor.Color = Color3.new(0.105882, 0.164706, 0.207843)
  972. armor.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  973. armor.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  974. armor.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  975. armor.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  976. armor.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  977. armor.Parent = Character
  978. armor.CFrame = CFrame.new(-87.19, 0.42, -26.37) * CFrame.Angles(0, 0, 0)
  979. armormesh.MeshId = "rbxassetid://840131767"
  980. armormesh.MeshType = Enum.MeshType.FileMesh
  981. armormesh.Parent = armor
  982. local wlf4 = Instance.new("Weld",armor)
  983. wlf4.Part0 = armor
  984. wlf4.Part1 = Torso
  985. wlf4.C0 = wlf4.C0 * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
  986. wlf4.C1 = CFrame.new(0,0,0)
  987.  
  988. for _, c in pairs(Weapon:GetChildren()) do
  989. if c.Name == "Left Arm" or c.Name == "LeftLowerArm" then
  990. LEFTCUFF = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false)
  991. LEFTCUFF.CFrame = c.CFrame
  992. weldBetween(c,LEFTCUFF)
  993. end
  994. end
  995. for _, c in pairs(Weapon:GetChildren()) do
  996. if c.Name == "Right Arm" or c.Name == "RightLowerArm" then
  997. RIGHTCUFF = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false)
  998. RIGHTCUFF.CFrame = c.CFrame
  999. weldBetween(c,RIGHTCUFF)
  1000. end
  1001. end
  1002. if RIGHTCUFF and LEFTCUFF then
  1003. local A = IT("Attachment",RIGHTCUFF)
  1004. local B = IT("Attachment",LEFTCUFF)
  1005. ChainLink = IT("Beam",Weapon)
  1006. ChainLink.Texture = "rbxassetid://73042633"
  1007. ChainLink.Color = ColorSequence.new(C3(0.8,0.8,0.8))
  1008. ChainLink.TextureSpeed = 0
  1009. ChainLink.Width0 = 1
  1010. ChainLink.Width1 = 1
  1011. ChainLink.Segments = 25
  1012. ChainLink.TextureLength = 3
  1013. ChainLink.Attachment0 = B
  1014. ChainLink.Attachment1 = A
  1015. ChainLink.FaceCamera = true
  1016. ChainLink.Transparency = NumberSequence.new(0)
  1017. end
  1018.  
  1019. local GUN = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun", VT(1, 0.8, 3),false)
  1020. CreateMesh("SpecialMesh", GUN, "FileMesh", "94219391", "94219470", VT(0.7, 0.7, 0.8), VT(0,0,0))
  1021. local GUNWELD = CreateWeldOrSnapOrMotor("Weld", GUN, Torso, GUN, CF(-0.0,0.5,0.9) * ANGLES(RAD(90), RAD(110), RAD(167)), CF(0, 0, 0))
  1022.  
  1023. local GUN2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun2", VT(1, 0.8, 3),false)
  1024. CreateMesh("SpecialMesh", GUN2, "FileMesh", "623102664", "623102879", VT(0.01, 0.01, 0.01), VT(0,0,0))
  1025. local GUN2WELD = CreateWeldOrSnapOrMotor("Weld", GUN2, Torso, GUN2, CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  1026.  
  1027. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  1028. PRT.Color = C3(0,0,0)
  1029. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  1030. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  1031. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  1032. PRT.Color = C3(0,0,0)
  1033. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.05) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  1034. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  1035.  
  1036. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.1,0.25,0.2),false)
  1037. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.15,0.25,-0.53) * ANGLES(RAD(0), RAD(0), RAD(-80)), CF(0, 0, 0))
  1038. MakeForm(EYE,"Ball")
  1039. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.1,0.25,0.2),false)
  1040. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(-0.15,0.25,-0.53) * ANGLES(RAD(0), RAD(0), RAD(80)), CF(0, 0, 0))
  1041. MakeForm(EYE,"Ball")
  1042.  
  1043. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really white", "Eye", VT(0.1,0.1,0.1),false)
  1044. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.15,0.19,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1045. MakeForm(EYE,"Ball")
  1046. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really white", "Eye", VT(0.1,0.1,0.1),false)
  1047. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(-0.15,0.19,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1048. MakeForm(EYE,"Ball")
  1049.  
  1050. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.005,0.005,0.005),false)
  1051. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.15,0.20,-0.62) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1052. MakeForm(EYE,"Ball")
  1053. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.005,0.005,0.005),false)
  1054. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(-0.15,0.20,-0.62) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1055. MakeForm(EYE,"Ball")
  1056.  
  1057. local LASTPART = Head
  1058. for i = 1, 15 do
  1059. local MATH = (1-(i/16))
  1060. if LASTPART == Head then
  1061. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  1062. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(0.45, 0.5, -0.15) * ANGLES(RAD(-35), RAD(5), RAD(-25)), CF(0, 0, 0))
  1063. LASTPART = Horn
  1064. Horn.Color = C3((i/15),0,0)
  1065. local MSH = IT("BlockMesh",Horn)
  1066. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  1067. else
  1068. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  1069. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(0, Horn.Size.Y/2.1, 0) * ANGLES(RAD(25), RAD(5), RAD(0)), CF(0, -Horn.Size.Y/2.2, 0))
  1070. LASTPART = Horn
  1071. Horn.Color = C3((i/15),0,0)
  1072. local MSH = IT("BlockMesh",Horn)
  1073. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  1074. end
  1075. end
  1076. local LASTPART = Head
  1077. for i = 1, 15 do
  1078. local MATH = (1-(i/16))
  1079. if LASTPART == Head then
  1080. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  1081. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(-0.45, 0.5, -0.15) * ANGLES(RAD(-35), RAD(-5), RAD(25)), CF(0, 0, 0))
  1082. LASTPART = Horn
  1083. Horn.Color = C3((i/15),0,0)
  1084. local MSH = IT("BlockMesh",Horn)
  1085. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  1086. else
  1087. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  1088. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(0, Horn.Size.Y/2.1, 0) * ANGLES(RAD(25), RAD(-5), RAD(0)), CF(0, -Horn.Size.Y/2.2, 0))
  1089. LASTPART = Horn
  1090. Horn.Color = C3((i/15),0,0)
  1091. local MSH = IT("BlockMesh",Horn)
  1092. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  1093. end
  1094. end
  1095.  
  1096. local LASTPART = Head
  1097. for i = 1, 15 do
  1098. local MATH = (1-(i/16))
  1099. if LASTPART == Head then
  1100. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  1101. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(-0.45, 0.5, -0.15) * ANGLES(RAD(-35), RAD(-5), RAD(25)), CF(0, 0, 0))
  1102. LASTPART = Horn
  1103. Horn.Color = C3((i/15),0,0)
  1104. local MSH = IT("BlockMesh",Horn)
  1105. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  1106. else
  1107. local Horn = CreatePart(3, Horn1, "Granite", 0, 0, "Dirt brown", "Horn", VT(1,0.25,1),false)
  1108. CreateWeldOrSnapOrMotor("Weld", Horn1, LASTPART, Horn, CF(0, Horn.Size.Y/2.1, 0) * ANGLES(RAD(25), RAD(-5), RAD(0)), CF(0, -Horn.Size.Y/2.2, 0))
  1109. LASTPART = Horn
  1110. Horn.Color = C3((i/15),0,0)
  1111. local MSH = IT("BlockMesh",Horn)
  1112. MSH.Scale = VT(0.16*MATH,1,0.16*MATH)
  1113. end
  1114. end
  1115.  
  1116. for i = 1, 10 do
  1117. local FACE = CreatePart(3, Head, "Fabric", 0, 0+(i-1)/10.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  1118. FACE.Color = C3(0,0,0)
  1119. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1120. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.28-(i-1)/30,0), CF(0, 0, 0))
  1121. end
  1122.  
  1123. for _, c in pairs(Weapon:GetChildren()) do
  1124. if c.ClassName == "Part" then
  1125. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1126. end
  1127. end
  1128.  
  1129. Weapon.Parent = Character
  1130.  
  1131. Humanoid.Died:connect(function()
  1132. ATTACK = true
  1133. end)
  1134.  
  1135.  
  1136. --//=================================\\
  1137. --|| DAMAGE FUNCTIONS
  1138. --\\=================================//
  1139.  
  1140. function StatLabel(CFRAME, TEXT, COLOR)
  1141. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1142. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1143. local BODYGYRO = IT("BodyGyro", STATPART)
  1144. game:GetService("Debris"):AddItem(STATPART ,5)
  1145. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1146. BILLBOARDGUI.Adornee = STATPART
  1147. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1148. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1149. BILLBOARDGUI.AlwaysOnTop = false
  1150. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1151. TEXTLABEL.BackgroundTransparency = 1
  1152. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1153. TEXTLABEL.Text = TEXT
  1154. TEXTLABEL.Font = "Fantasy"
  1155. TEXTLABEL.FontSize="Size42"
  1156. TEXTLABEL.TextColor3 = COLOR
  1157. TEXTLABEL.TextStrokeTransparency = 0
  1158. TEXTLABEL.TextScaled = true
  1159. TEXTLABEL.TextWrapped = true
  1160. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1161. for i = 1, 50 do
  1162. Swait()
  1163. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1164. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1165. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1166. end
  1167. THEPART.Parent = nil
  1168. end),STATPART, TEXTLABEL)
  1169. end
  1170.  
  1171. function Switch()
  1172. ATTACK = true
  1173. Rooted = true
  1174. if MODE == "Cop" then
  1175. for i=0, 0.3, 0.1 / Animation_Speed do
  1176. Swait()
  1177. 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)
  1178. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1179. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1180. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1181. 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)
  1182. 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)
  1183. end
  1184. for i=0, 1, 0.1 / Animation_Speed do
  1185. Swait()
  1186. 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)
  1187. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1188. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1189. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1190. 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)
  1191. 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)
  1192. end
  1193. CreateSound(363808674, Torso, 6, 1, false)
  1194. for i=0, 0.6, 0.1 / Animation_Speed do
  1195. Swait()
  1196. 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)
  1197. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
  1198. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1199. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1200. 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)
  1201. 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)
  1202. end
  1203. CreateSound(363808674, Torso, 6, 1, false)
  1204. for i=0, 0.6, 0.1 / Animation_Speed do
  1205. Swait()
  1206. 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)
  1207. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  1208. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1209. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1210. 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)
  1211. 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)
  1212. end
  1213. GUN2WELD.Part0 = LeftArm
  1214. GUN2WELD.C0 = CF(0,-1.5,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
  1215. GUNWELD.Part0 = RightArm
  1216. GUNWELD.C0 = CF(-0.2,-1.8,0.1) * ANGLES(RAD(90), RAD(174), RAD(179))
  1217. MODE = "Cops"
  1218. elseif MODE == "Cops" then
  1219. CreateSound(147722227, Torso, 4, 1.3, false)
  1220. for i=0, 0.3, 0.1 / Animation_Speed do
  1221. Swait()
  1222. 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)
  1223. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
  1224. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1225. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1226. 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)
  1227. 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)
  1228. end
  1229. GUN2WELD.Part0 = Torso
  1230. GUN2WELD.C0 = CF(-1.1,-1.1,0) * ANGLES(RAD(0), RAD(90), RAD(-90))
  1231. GUNWELD.Part0 = Torso
  1232. GUNWELD.C0 = CF(-0.0,0.5,0.9) * ANGLES(RAD(90), RAD(110), RAD(167))
  1233. MODE = "Cop"
  1234. end
  1235. ATTACK = false
  1236. Rooted = false
  1237. end
  1238.  
  1239. --//=================================\\
  1240. --|| DAMAGING
  1241. --\\=================================//
  1242.  
  1243. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  1244. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1245. defence.Name = ("HitBy"..Player.Name)
  1246. game:GetService("Debris"):AddItem(defence, 0.001)
  1247. if Humanoid.Health ~= 0 then
  1248. local CritChance = MRANDOM(1,100)
  1249. if CritChance < CritRate + 1 then
  1250. Damage = Damage*CritMultiplier
  1251. end
  1252. if Damage > Humanoid.Health then
  1253. Damage = math.ceil(Humanoid.Health)
  1254. if Damage == 0 then
  1255. Damage = 0.1
  1256. end
  1257. end
  1258. Humanoid.Health = Humanoid.Health - Damage
  1259. if Humanoid.Parent:FindFirstChild("Head") then
  1260. CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1)
  1261. if CritChance < CritRate + 1 then
  1262. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  1263. else
  1264. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, SKILLTEXTCOLOR)
  1265. end
  1266. end
  1267. end
  1268. end
  1269.  
  1270. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  1271. local dmg = math.random(min,max)
  1272. for i,v in ipairs(workspace:GetChildren()) do
  1273. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  1274. local body = v:GetChildren()
  1275. for part = 1, #body do
  1276. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1277. if(body[part].Position - position).Magnitude < radius then
  1278. if v.ClassName == "Model" then
  1279. if v:FindFirstChildOfClass("Humanoid") then
  1280. if CanBeDodgedByJumping == true then
  1281. if body[part].Position.Y < position.Y+5 then
  1282. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1283. end
  1284. else
  1285. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  1286. end
  1287. local bv = Instance.new("BodyVelocity")
  1288. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1289. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  1290. bv.Parent = body[part]
  1291. Debris:AddItem(bv,0.2)
  1292. end
  1293. end
  1294. end
  1295. end
  1296. end
  1297. end
  1298. if v:FindFirstChild("HitBy"..Player.Name) then
  1299. v:FindFirstChild("HitBy"..Player.Name):remove()
  1300. end
  1301. end
  1302. end
  1303.  
  1304. function killnearest(position,range,maxstrength,direction)
  1305. for i,v in ipairs(workspace:GetChildren()) do
  1306. local body = v:GetChildren()
  1307. for part = 1, #body do
  1308. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1309. if(body[part].Position - position).Magnitude < range then
  1310. if v.ClassName == "Model" then
  1311. --v:BreakJoints()
  1312. end
  1313. local POS = position
  1314. coroutine.resume(coroutine.create(function()
  1315. body[part].Anchored = true
  1316. body[part].Parent = Effects
  1317. body[part].CanCollide = true
  1318. local SIZE = body[part].Size
  1319. body[part].Material = "Neon"
  1320. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  1321. for i = 1, 75 do
  1322. Swait()
  1323. body[part].Color = C3(0,0,0)
  1324. body[part].Size = VT(1,1,1)
  1325. end
  1326. coroutine.resume(coroutine.create(function()
  1327. while true do
  1328. Swait()
  1329. body[part].Color = C3(0,0,0)
  1330. body[part].Size = VT(1,1,1)
  1331. end
  1332. end))
  1333. body[part].Anchored = false
  1334. body[part].Velocity = direction.lookVector*maxstrength
  1335. end))
  1336. end
  1337. end
  1338. end
  1339. if v.ClassName == "Part" then
  1340. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1341. local POS = position
  1342. coroutine.resume(coroutine.create(function()
  1343. v.Anchored = true
  1344. v.Parent = Effects
  1345. local SIZE = v.Size
  1346. v.Material = "Neon"
  1347. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1348. for i = 1, 75 do
  1349. Swait()
  1350. v.Color = C3(0,0,0)
  1351. v.Size = VT(1,1,1)
  1352. end
  1353. coroutine.resume(coroutine.create(function()
  1354. while true do
  1355. Swait()
  1356. v.Color = C3(0,0,0)
  1357. v.Size = VT(1,1,1)
  1358. end
  1359. end))
  1360. v.Anchored = false
  1361. v.Velocity = direction.lookVector*maxstrength
  1362. end))
  1363. end
  1364. end
  1365. end
  1366. end
  1367.  
  1368. function ApplyAoE4(POSITION,RANGE,BRUTAL)
  1369. local CHILDREN = workspace:GetDescendants()
  1370. for index, CHILD in pairs(CHILDREN) do
  1371. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1372. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1373. if HUM then
  1374. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1375. if TORSO then
  1376. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1377. if BRUTAL == true then
  1378. Kill(CHILD)
  1379. else
  1380. CHILD:BreakJoints()
  1381. end
  1382. end
  1383. end
  1384. end
  1385. end
  1386. end
  1387. end
  1388.  
  1389. function Kill(Char)
  1390. local NewCharacter = IT("Model",Effects)
  1391. NewCharacter.Name = "Ow im ded ;-;"
  1392. for _, c in pairs(Char:GetDescendants()) do
  1393. if c:IsA("BasePart") and c.Transparency == 0 then
  1394. c:BreakJoints()
  1395. c.Material = "Glass"
  1396. c.Color = C3(1,0,0)
  1397. c.CanCollide = true
  1398. c.Transparency = 0.3
  1399. if c:FindFirstChildOfClass("SpecialMesh") then
  1400. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1401. end
  1402. if c.Name == "Head" then
  1403. c:ClearAllChildren()
  1404. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1405. end
  1406. if c.ClassName == "MeshPart" then
  1407. c.TextureID = ""
  1408. end
  1409. if c:FindFirstChildOfClass("BodyPosition") then
  1410. c:FindFirstChildOfClass("BodyPosition"):remove()
  1411. end
  1412. if c:FindFirstChildOfClass("ParticleEmitter") then
  1413. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1414. end
  1415. c.Parent = NewCharacter
  1416. c.Name = "DeadPart"
  1417. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1418. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1419. end
  1420. end
  1421. Char:remove()
  1422. Debris:AddItem(NewCharacter,5)
  1423. end
  1424.  
  1425. --//=================================\\
  1426. --|| ATTACK FUNCTIONS AND STUFF
  1427. --\\=================================//
  1428.  
  1429. function Bullet2()
  1430. ATTACK = true
  1431. Rooted = false
  1432. for i=0, 0.9, 0.07 / Animation_Speed do
  1433. Swait()
  1434. turnto(Mouse.Hit.p)
  1435. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1436. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15 - 22 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
  1437. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1438. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1439. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1440. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1441. end
  1442. repeat
  1443. for i=0, 0.1, 0.07 / Animation_Speed do
  1444. Swait()
  1445. turnto(Mouse.Hit.p)
  1446. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
  1447. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15 - 22 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
  1448. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83 - 22 * SIN(SINE / 0.5)), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1449. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83 - 22 * SIN(SINE / 0.5)), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1450. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1451. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1452. end
  1453. local HIT,POS = CastProperRay(GUN.Position, Mouse.Hit.p, 1000, Character)
  1454. SpawnTrail(GUN.Position,POS)
  1455. if HIT ~= nil then
  1456. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1457. Kill(HIT.Parent)
  1458. end
  1459. end
  1460. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = GUN.CFrame, MoveToPos = GUN.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1461. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = GUN.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 131073013, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0.5})
  1462. 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,GUN.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1463. 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,GUN.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1464. for i=0, 0.2, 0.07 / Animation_Speed do
  1465. Swait()
  1466. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0 - 22 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
  1467. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
  1468. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1469. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1470. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1471. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1472. end
  1473. local HIT,POS = CastProperRay(GUN.Position, Mouse.Hit.p, 1000, Character)
  1474. SpawnTrail2(GUN.Position,POS)
  1475. SpawnTrail(GUN2.Position,POS)
  1476. if HIT ~= nil then
  1477. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1478. Kill(HIT.Parent)
  1479. end
  1480. end
  1481. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = GUN2.CFrame, MoveToPos = GUN2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1482. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = GUN2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0.5})
  1483. 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,GUN2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1484. 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,GUN2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1485. until KEYHOLD == false
  1486. ATTACK = false
  1487. Rooted = false
  1488. end
  1489.  
  1490. function Nope()
  1491. ATTACK = true
  1492. Rooted = false
  1493. CreateSound(130932305, Torso, 6, 1, false)
  1494. for i=0, 0.6, 0.1 / Animation_Speed do
  1495. Swait()
  1496. 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)
  1497. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1498. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1499. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(-55), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1500. 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)
  1501. 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)
  1502. end
  1503. for i=0, 0.6, 0.1 / Animation_Speed do
  1504. Swait()
  1505. 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)
  1506. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1507. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1508. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(55), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1509. 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)
  1510. 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)
  1511. end
  1512. ATTACK = false
  1513. Rooted = false
  1514. end
  1515.  
  1516.  
  1517. --//=================================\\
  1518. --|| ASSIGN THINGS TO KEYS
  1519. --\\=================================//
  1520.  
  1521. function MouseDown(Mouse)
  1522. if ATTACK == false then
  1523. end
  1524. end
  1525.  
  1526. function MouseUp(Mouse)
  1527. HOLD = false
  1528. end
  1529.  
  1530. function KeyDown(Key)
  1531. KEYHOLD = true
  1532. if Key == "z" and ATTACK == false then
  1533. if MODE == "Cop" then
  1534. Nope()
  1535. elseif MODE == "Cops" then
  1536. Bullet2()
  1537. end
  1538. end
  1539.  
  1540. if Key == "b" and ATTACK == false then
  1541. end
  1542.  
  1543. if Key == "c" and ATTACK == false then
  1544. end
  1545.  
  1546. if Key == "t" and ATTACK == false then
  1547. end
  1548.  
  1549. if Key == "x" and ATTACK == false then
  1550. Switch()
  1551. end
  1552. end
  1553.  
  1554. function KeyUp(Key)
  1555. KEYHOLD = false
  1556. end
  1557.  
  1558. Mouse.Button1Down:connect(function(NEWKEY)
  1559. MouseDown(NEWKEY)
  1560. end)
  1561. Mouse.Button1Up:connect(function(NEWKEY)
  1562. MouseUp(NEWKEY)
  1563. end)
  1564. Mouse.KeyDown:connect(function(NEWKEY)
  1565. KeyDown(NEWKEY)
  1566. end)
  1567. Mouse.KeyUp:connect(function(NEWKEY)
  1568. KeyUp(NEWKEY)
  1569. end)
  1570.  
  1571. --//=================================\\
  1572. --\\=================================//
  1573.  
  1574.  
  1575. function unanchor()
  1576. if UNANCHOR == true then
  1577. g = Character:GetChildren()
  1578. for i = 1, #g do
  1579. if g[i].ClassName == "Part" then
  1580. g[i].Anchored = false
  1581. end
  1582. end
  1583. end
  1584. end
  1585.  
  1586.  
  1587. --//=================================\\
  1588. --|| WRAP THE WHOLE SCRIPT UP
  1589. --\\=================================//
  1590.  
  1591. Humanoid.Changed:connect(function(Jump)
  1592. if Jump == "Jump" and (Disable_Jump == true) then
  1593. Humanoid.Jump = false
  1594. end
  1595. end)
  1596.  
  1597. while true do
  1598. Swait()
  1599. ANIMATE.Parent = nil
  1600. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1601. IDLEANIMATION:Play()
  1602. SINE = SINE + CHANGE
  1603. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1604. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1605. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1606. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1607. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1608. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1609. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1610. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1611. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1612. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1613. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1614. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1615. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1616. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1617. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1618. end
  1619. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1620. ANIM = "Jump"
  1621. if ATTACK == false then
  1622. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1623. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1624. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1625. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1626. 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)
  1627. 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)
  1628. end
  1629. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1630. ANIM = "Fall"
  1631. if ATTACK == false then
  1632. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1633. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1634. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1635. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1636. 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)
  1637. 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)
  1638. end
  1639. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1640. ANIM = "Idle"
  1641. if ATTACK == false then
  1642. if MODE == "Cop" then
  1643. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1)
  1644. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1645. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.05 * COS(SINE / 7) + 0.05 * SIN(SINE / 7), 0, 0 + 0.05 * COS(SINE / 7)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed)
  1646. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-3.5 * COS(SINE / 24)), RAD(0), RAD(12)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 24) + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1647. RightHip.C0 = Clerp(RightHip.C0, CF(1 - 0.05 * COS(SINE / 7) + 0.05 * SIN(SINE / 7), -1 - 0.05 * COS(SINE / 7), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed)
  1648. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 - 0.05 * COS(SINE / 7) + 0.05 * SIN(SINE / 7), -1 - 0.05 * COS(SINE / 7), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed)
  1649. elseif MODE == "Cops" then
  1650. 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)
  1651. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  1652. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1653. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1654. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1655. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1656. end
  1657. end
  1658. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1659. ANIM = "Walk"
  1660. WALK = WALK + 1 / Animation_Speed
  1661. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1662. WALK = 0
  1663. if WALKINGANIM == true then
  1664. WALKINGANIM = false
  1665. elseif WALKINGANIM == false then
  1666. WALKINGANIM = true
  1667. end
  1668. end
  1669. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1670. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1671. if ATTACK == false then
  1672. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1673. 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)
  1674. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(42), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1675. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(42), RAD(0), RAD(0))* LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1676. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1677. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1678. end
  1679. end
  1680. if Character:FindFirstChildOfClass("Accessory") then
  1681. Character:FindFirstChildOfClass("Accessory"):remove()
  1682. elseif Character:FindFirstChildOfClass("Hat") then
  1683. Character:FindFirstChildOfClass("Hat"):remove()
  1684. end
  1685. unanchor()
  1686. Humanoid.MaxHealth = "inf"
  1687. Humanoid.Health = "inf"
  1688. if Rooted == false then
  1689. Disable_Jump = false
  1690. Humanoid.WalkSpeed = Speed
  1691. elseif Rooted == true then
  1692. Disable_Jump = true
  1693. Humanoid.WalkSpeed = 0
  1694. end
  1695. sick.Parent = Torso
  1696. local MATHS = {"0","1"}
  1697. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1698. Humanoid.PlatformStand = false
  1699. end
  1700.  
  1701. --//=================================\\
  1702. --\\=================================//
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708. --//====================================================\\--
  1709. --|| END OF SCRIPT
  1710. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement