Advertisement
13242

Untitled

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