duplicat

Shotgun?

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