Advertisement
13242

Untitled

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