Advertisement
Christoffer07700Extr

gunner edit ewasdq

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