Advertisement
valentino2016

Shotgun Slay Fe

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