Advertisement
yabagaba

Untitled

Jun 22nd, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.86 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. wait(0.2)
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. Mouse = Player:GetMouse()
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27. SIZE = 1
  28.  
  29. IT = Instance.new
  30. CF = CFrame.new
  31. VT = Vector3.new
  32. RAD = math.rad
  33. C3 = Color3.new
  34. UD2 = UDim2.new
  35. BRICKC = BrickColor.new
  36. ANGLES = CFrame.Angles
  37. EULER = CFrame.fromEulerAnglesXYZ
  38. COS = math.cos
  39. ACOS = math.acos
  40. SIN = math.sin
  41. ASIN = math.asin
  42. ABS = math.abs
  43. MRANDOM = math.random
  44. FLOOR = math.floor
  45.  
  46. --//=================================\\
  47. --|| USEFUL VALUES
  48. --\\=================================//
  49.  
  50. Animation_Speed = 3
  51. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  52. local Speed = 10
  53. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  54. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  55. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  56. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  57. local DAMAGEMULTIPLIER = 1
  58. local ANIM = "Idle"
  59. local ATTACK = false
  60. local EQUIPPED = false
  61. local HOLD = false
  62. local COMBO = 1
  63. local Rooted = false
  64. local SINE = 0
  65. local KEYHOLD = false
  66. local CHANGE = 2 / Animation_Speed
  67. local WALKINGANIM = false
  68. local VALUE1 = false
  69. local VALUE2 = false
  70. local ROBLOXIDLEANIMATION = IT("Animation")
  71. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  72. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  73. --ROBLOXIDLEANIMATION.Parent = Humanoid
  74. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  75. WEAPONGUI.Name = "Weapon GUI"
  76. local ANIMATOR = Humanoid.Animator
  77. local ANIMATE = Character.Animate
  78. local UNANCHOR = true
  79. local GHOSTS = {}
  80. ANIMATE:remove()
  81. Character.Archivable = true
  82. script.Parent = WEAPONGUI
  83. local GHOSTBASE = Character:Clone()
  84. GHOSTBASE.Parent = nil
  85. GHOSTBASE.Name = "Ghost"
  86. for _, c in pairs(GHOSTBASE:GetChildren()) do
  87. if c.ClassName == "Part" and c.Transparency < 1 then
  88. c.Color = C3(0,0,0)
  89. if c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
  90. c:remove()
  91. end
  92. end
  93. end
  94. local sick = Instance.new("Sound",Torso)
  95. sick.SoundId = "rbxassetid://1472374501"
  96. sick.Looped = true
  97. sick.Pitch = 0.7
  98. sick.Volume = 3
  99. sick:Play()
  100. local Effects = IT("Folder", Character)
  101. Effects.Name = "Effects"
  102. Character.Archivable = false
  103.  
  104. --//=================================\\
  105. --\\=================================//
  106.  
  107.  
  108. --//=================================\\
  109. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  110. --\\=================================//
  111.  
  112. ArtificialHB = Instance.new("BindableEvent", script)
  113. ArtificialHB.Name = "ArtificialHB"
  114.  
  115. script:WaitForChild("ArtificialHB")
  116.  
  117. frame = Frame_Speed
  118. tf = 0
  119. allowframeloss = false
  120. tossremainder = false
  121. lastframe = tick()
  122. script.ArtificialHB:Fire()
  123.  
  124. game:GetService("RunService").Heartbeat:connect(function(s, p)
  125. tf = tf + s
  126. if tf >= frame then
  127. if allowframeloss then
  128. script.ArtificialHB:Fire()
  129. lastframe = tick()
  130. else
  131. for i = 1, math.floor(tf / frame) do
  132. script.ArtificialHB:Fire()
  133. end
  134. lastframe = tick()
  135. end
  136. if tossremainder then
  137. tf = 0
  138. else
  139. tf = tf - frame * math.floor(tf / frame)
  140. end
  141. end
  142. end)
  143.  
  144. --//=================================\\
  145. --\\=================================//
  146.  
  147. --//=================================\\
  148. --|| SOME FUNCTIONS
  149. --\\=================================//
  150.  
  151. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  152. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  153. end
  154.  
  155. function PositiveAngle(NUMBER)
  156. if NUMBER >= 0 then
  157. NUMBER = 0
  158. end
  159. return NUMBER
  160. end
  161.  
  162. function NegativeAngle(NUMBER)
  163. if NUMBER <= 0 then
  164. NUMBER = 0
  165. end
  166. return NUMBER
  167. end
  168.  
  169. function Swait(NUMBER)
  170. if NUMBER == 0 or NUMBER == nil then
  171. ArtificialHB.Event:wait()
  172. else
  173. for i = 1, NUMBER do
  174. ArtificialHB.Event:wait()
  175. end
  176. end
  177. end
  178.  
  179. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  180. local NEWMESH = IT(MESH)
  181. if MESH == "SpecialMesh" then
  182. NEWMESH.MeshType = MESHTYPE
  183. if MESHID ~= "nil" and MESHID ~= "" then
  184. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  185. end
  186. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  187. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  188. end
  189. end
  190. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  191. NEWMESH.Scale = SCALE
  192. NEWMESH.Parent = PARENT
  193. return NEWMESH
  194. end
  195.  
  196. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  197. local NEWPART = IT("Part")
  198. NEWPART.formFactor = FORMFACTOR
  199. NEWPART.Reflectance = REFLECTANCE
  200. NEWPART.Transparency = TRANSPARENCY
  201. NEWPART.CanCollide = false
  202. NEWPART.Locked = true
  203. NEWPART.Anchored = true
  204. if ANCHOR == false then
  205. NEWPART.Anchored = false
  206. end
  207. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  208. NEWPART.Name = NAME
  209. NEWPART.Size = SIZE
  210. NEWPART.Position = Torso.Position
  211. NEWPART.Material = MATERIAL
  212. NEWPART:BreakJoints()
  213. NEWPART.Parent = PARENT
  214. return NEWPART
  215. end
  216.  
  217. local function weldBetween(a, b)
  218. local weldd = Instance.new("ManualWeld")
  219. weldd.Part0 = a
  220. weldd.Part1 = b
  221. weldd.C0 = CFrame.new()
  222. weldd.C1 = b.CFrame:inverse() * a.CFrame
  223. weldd.Parent = a
  224. return weldd
  225. end
  226.  
  227.  
  228. function QuaternionFromCFrame(cf)
  229. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  230. local trace = m00 + m11 + m22
  231. if trace > 0 then
  232. local s = math.sqrt(1 + trace)
  233. local recip = 0.5 / s
  234. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  235. else
  236. local i = 0
  237. if m11 > m00 then
  238. i = 1
  239. end
  240. if m22 > (i == 0 and m00 or m11) then
  241. i = 2
  242. end
  243. if i == 0 then
  244. local s = math.sqrt(m00 - m11 - m22 + 1)
  245. local recip = 0.5 / s
  246. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  247. elseif i == 1 then
  248. local s = math.sqrt(m11 - m22 - m00 + 1)
  249. local recip = 0.5 / s
  250. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  251. elseif i == 2 then
  252. local s = math.sqrt(m22 - m00 - m11 + 1)
  253. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  254. end
  255. end
  256. end
  257.  
  258. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  259. local xs, ys, zs = x + x, y + y, z + z
  260. local wx, wy, wz = w * xs, w * ys, w * zs
  261. local xx = x * xs
  262. local xy = x * ys
  263. local xz = x * zs
  264. local yy = y * ys
  265. local yz = y * zs
  266. local zz = z * zs
  267. 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))
  268. end
  269.  
  270. function QuaternionSlerp(a, b, t)
  271. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  272. local startInterp, finishInterp;
  273. if cosTheta >= 0.0001 then
  274. if (1 - cosTheta) > 0.0001 then
  275. local theta = ACOS(cosTheta)
  276. local invSinTheta = 1 / SIN(theta)
  277. startInterp = SIN((1 - t) * theta) * invSinTheta
  278. finishInterp = SIN(t * theta) * invSinTheta
  279. else
  280. startInterp = 1 - t
  281. finishInterp = t
  282. end
  283. else
  284. if (1 + cosTheta) > 0.0001 then
  285. local theta = ACOS(-cosTheta)
  286. local invSinTheta = 1 / SIN(theta)
  287. startInterp = SIN((t - 1) * theta) * invSinTheta
  288. finishInterp = SIN(t * theta) * invSinTheta
  289. else
  290. startInterp = t - 1
  291. finishInterp = t
  292. end
  293. end
  294. 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
  295. end
  296.  
  297. function Clerp(a, b, t)
  298. local qa = {QuaternionFromCFrame(a)}
  299. local qb = {QuaternionFromCFrame(b)}
  300. local ax, ay, az = a.x, a.y, a.z
  301. local bx, by, bz = b.x, b.y, b.z
  302. local _t = 1 - t
  303. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  304. end
  305.  
  306. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  307. local frame = IT("Frame")
  308. frame.BackgroundTransparency = TRANSPARENCY
  309. frame.BorderSizePixel = BORDERSIZEPIXEL
  310. frame.Position = POSITION
  311. frame.Size = SIZE
  312. frame.BackgroundColor3 = COLOR
  313. frame.BorderColor3 = BORDERCOLOR
  314. frame.Name = NAME
  315. frame.Parent = PARENT
  316. return frame
  317. end
  318.  
  319. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  320. local label = IT("TextLabel")
  321. label.BackgroundTransparency = 1
  322. label.Size = UD2(1, 0, 1, 0)
  323. label.Position = UD2(0, 0, 0, 0)
  324. label.TextColor3 = TEXTCOLOR
  325. label.TextStrokeTransparency = STROKETRANSPARENCY
  326. label.TextTransparency = TRANSPARENCY
  327. label.FontSize = TEXTFONTSIZE
  328. label.Font = TEXTFONT
  329. label.BorderSizePixel = BORDERSIZEPIXEL
  330. label.TextScaled = false
  331. label.Text = TEXT
  332. label.Name = NAME
  333. label.Parent = PARENT
  334. return label
  335. end
  336.  
  337. function NoOutlines(PART)
  338. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  339. end
  340.  
  341. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  342. local NEWWELD = IT(TYPE)
  343. NEWWELD.Part0 = PART0
  344. NEWWELD.Part1 = PART1
  345. NEWWELD.C0 = C0
  346. NEWWELD.C1 = C1
  347. NEWWELD.Parent = PARENT
  348. return NEWWELD
  349. end
  350.  
  351. local S = IT("Sound")
  352. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  353. local NEWSOUND = nil
  354. coroutine.resume(coroutine.create(function()
  355. NEWSOUND = S:Clone()
  356. NEWSOUND.Parent = PARENT
  357. NEWSOUND.Volume = VOLUME
  358. NEWSOUND.Pitch = PITCH
  359. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  360. NEWSOUND:play()
  361. if DOESLOOP == true then
  362. NEWSOUND.Looped = true
  363. else
  364. repeat wait(1) until NEWSOUND.Playing == false
  365. NEWSOUND:remove()
  366. end
  367. end))
  368. return NEWSOUND
  369. end
  370.  
  371. function CFrameFromTopBack(at, top, back)
  372. local right = top:Cross(back)
  373. 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)
  374. end
  375.  
  376. --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})
  377. function WACKYEFFECT(Table)
  378. local TYPE = (Table.EffectType or "Sphere")
  379. local SIZE = (Table.Size or VT(1,1,1))
  380. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  381. local TRANSPARENCY = (Table.Transparency or 0)
  382. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  383. local CFRAME = (Table.CFrame or Torso.CFrame)
  384. local MOVEDIRECTION = (Table.MoveToPos or nil)
  385. local ROTATION1 = (Table.RotationX or 0)
  386. local ROTATION2 = (Table.RotationY or 0)
  387. local ROTATION3 = (Table.RotationZ or 0)
  388. local MATERIAL = (Table.Material or "Neon")
  389. local COLOR = (Table.Color or C3(1,1,1))
  390. local TIME = (Table.Time or 45)
  391. local SOUNDID = (Table.SoundID or nil)
  392. local SOUNDPITCH = (Table.SoundPitch or nil)
  393. local SOUNDVOLUME = (Table.SoundVolume or nil)
  394. coroutine.resume(coroutine.create(function()
  395. local PLAYSSOUND = false
  396. local SOUND = nil
  397. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  398. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  399. PLAYSSOUND = true
  400. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  401. end
  402. EFFECT.Color = COLOR
  403. local MSH = nil
  404. if TYPE == "Sphere" then
  405. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  406. elseif TYPE == "Block" then
  407. MSH = IT("BlockMesh",EFFECT)
  408. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  409. elseif TYPE == "Wave" then
  410. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  411. elseif TYPE == "Ring" then
  412. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  413. elseif TYPE == "Slash" then
  414. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  415. elseif TYPE == "Round Slash" then
  416. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  417. elseif TYPE == "Swirl" then
  418. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  419. elseif TYPE == "Skull" then
  420. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  421. elseif TYPE == "Crystal" then
  422. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  423. end
  424. if MSH ~= nil then
  425. local MOVESPEED = nil
  426. if MOVEDIRECTION ~= nil then
  427. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  428. end
  429. local GROWTH = SIZE - ENDSIZE
  430. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  431. if TYPE == "Block" then
  432. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  433. else
  434. EFFECT.CFrame = CFRAME
  435. end
  436. for LOOP = 1, TIME+1 do
  437. Swait()
  438. MSH.Scale = MSH.Scale - GROWTH/TIME
  439. if TYPE == "Wave" then
  440. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  441. end
  442. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  443. if TYPE == "Block" then
  444. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  445. else
  446. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  447. end
  448. if MOVEDIRECTION ~= nil then
  449. local ORI = EFFECT.Orientation
  450. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  451. EFFECT.Orientation = ORI
  452. end
  453. end
  454. if PLAYSSOUND == false then
  455. EFFECT:remove()
  456. else
  457. SOUND.Stopped:Connect(function()
  458. EFFECT:remove()
  459. end)
  460. end
  461. else
  462. if PLAYSSOUND == false then
  463. EFFECT:remove()
  464. else
  465. repeat Swait() until SOUND.Playing == false
  466. EFFECT:remove()
  467. end
  468. end
  469. end))
  470. end
  471.  
  472. function MakeForm(PART,TYPE)
  473. if TYPE == "Cyl" then
  474. local MSH = IT("CylinderMesh",PART)
  475. elseif TYPE == "Ball" then
  476. local MSH = IT("SpecialMesh",PART)
  477. MSH.MeshType = "Sphere"
  478. elseif TYPE == "Wedge" then
  479. local MSH = IT("SpecialMesh",PART)
  480. MSH.MeshType = "Wedge"
  481. end
  482. end
  483.  
  484. Debris = game:GetService("Debris")
  485.  
  486. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  487. local DIRECTION = CF(StartPos,EndPos).lookVector
  488. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  489. end
  490.  
  491. function turnto(position)
  492. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  493. end
  494.  
  495. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  496. if FLOOR ~= nil then
  497. coroutine.resume(coroutine.create(function()
  498. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  499. PART.CFrame = CF(POSITION)
  500. for i = 1, 45 do
  501. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  502. RingPiece.Material = FLOOR.Material
  503. RingPiece.Color = FLOOR.Color
  504. 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)))
  505. Debris:AddItem(RingPiece,SWAIT)
  506. end
  507. PART:remove()
  508. end))
  509. end
  510. end
  511.  
  512. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH,DOES360)
  513. if FLOOR ~= nil then
  514. for i = 1, AMOUNT do
  515. local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Peal", "Debree", BLOCKSIZE, false)
  516. DEBREE.Material = FLOOR.Material
  517. DEBREE.Color = FLOOR.Color
  518. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  519. if DOES360 == true then
  520. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  521. else
  522. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
  523. end
  524. coroutine.resume(coroutine.create(function()
  525. Swait(15)
  526. DEBREE.Parent = workspace
  527. DEBREE.CanCollide = true
  528. Debris:AddItem(DEBREE,SWAIT)
  529. end))
  530. end
  531. end
  532. end
  533.  
  534. function SpawnTrail(FROM,TO)
  535. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Pearl", "Arrow", VT(0,0,0))
  536. MakeForm(TRAIL,"Cyl")
  537. local DIST = (FROM - TO).Magnitude
  538. TRAIL.Size = VT(0.1,DIST,0.1)
  539. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  540. coroutine.resume(coroutine.create(function()
  541. for i = 1, 5 do
  542. Swait()
  543. TRAIL.Transparency = TRAIL.Transparency + 0.1
  544. end
  545. TRAIL:remove()
  546. end))
  547. end
  548.  
  549. local Decal = IT("Decal")
  550. function SpawnBulletHole(POSITION)
  551. local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Bullet hole", VT(0.2,0,0.2))
  552. local decal = Decal:Clone()
  553. decal.Parent = O1
  554. decal.Face = "Top"
  555. decal.Texture = "http://www.roblox.com/asset/?id=130624105"
  556. local decal2 = Decal:Clone()
  557. decal2.Parent = O1
  558. decal2.Face = "Bottom"
  559. decal2.Texture = "http://www.roblox.com/asset/?id=130624105"
  560. O1.CFrame = POSITION*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))
  561. Debris:AddItem(O1,5)
  562. end
  563.  
  564. local asd = Instance.new("ParticleEmitter")
  565. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  566. asd.LightEmission = .1
  567. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  568. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 2)})
  569. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  570. asd.Transparency = bbb
  571. asd.Size = aaa
  572. asd.ZOffset = .9
  573. asd.Acceleration = Vector3.new(0, -15, 0)
  574. asd.LockedToPart = false
  575. asd.EmissionDirection = "Back"
  576. asd.Lifetime = NumberRange.new(1, 2)
  577. asd.Rotation = NumberRange.new(-100, 100)
  578. asd.RotSpeed = NumberRange.new(-100, 100)
  579. asd.Speed = NumberRange.new(10)
  580. asd.Enabled = false
  581. asd.VelocitySpread = 999
  582.  
  583. function getbloody(victim,amount)
  584. local PART = IT("Part",Effects)
  585. PART.Transparency = 1
  586. PART.Size = victim.Size
  587. PART.Anchored = true
  588. PART.CanCollide = false
  589. PART.CFrame = CF(victim.Position)
  590. local HITPLAYERSOUNDS = {"356551938","264486467"}
  591. Debris:AddItem(PART,5)
  592. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  593. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  594. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  595. local prtcl = asd:Clone()
  596. prtcl.Parent = PART
  597. prtcl:Emit(amount*10)
  598. end
  599.  
  600. function BulletDetection(FROM,TO)
  601. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  602. coroutine.resume(coroutine.create(function()
  603. if AIMHIT ~= nil then
  604. if AIMHIT.Parent ~= Character then
  605. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  606. if AIMHIT.Name ~= "Head" and AIMHIT.Parent.ClassName ~= "Accessory" then
  607. ApplyDamage(AIMHIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(15,25),AIMHIT)
  608. elseif AIMHIT.Name == "Head" or AIMHIT.Parent.ClassName == "Accessory" then
  609. if AIMHIT.Parent.ClassName == "Accessory" then
  610. if AIMHIT:FindFirstChild("HatAttachment") or AIMHIT:FindFirstChild("FaceFrontAttachment") or AIMHIT:FindFirstChild("HairAttachment") then
  611. AIMHIT.Parent.Parent:BreakJoints()
  612. if AIMHIT.Parent.Parent:FindFirstChild("Head") then
  613. getbloody(AIMHIT.Parent.Parent.Head,15)
  614. AIMHIT.Parent.Parent.Head:remove()
  615. StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(1,0,0))
  616. end
  617. else
  618. ApplyDamage(AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(25,65),AIMHIT)
  619. end
  620. elseif AIMHIT.Name == "Head" then
  621. getbloody(AIMHIT,15)
  622. AIMHIT.Parent:BreakJoints()
  623. AIMHIT:remove()
  624. StatLabel(AIMHIT.CFrame * CF(0, 0 + (AIMHIT.Size.z - 1), 0), "Headshot!", C3(1,0,0))
  625. end
  626. end
  627. else
  628. CreateFlyingDebree(AIMHIT,CF(AIMPOS),7,VT(0.1,0.1,0.1),5,35,true)
  629. SpawnBulletHole(CF(AIMPOS,AIMPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0)))
  630. end
  631. end
  632. end
  633. end))
  634. return AIMHIT,AIMPOS,NORMAL
  635. end
  636.  
  637. --//=================================\\
  638. --|| WEAPON CREATION
  639. --\\=================================//
  640.  
  641. for i = 1, 35 do
  642. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  643. FACE.Color = C3(0,0,0)
  644. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  645. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  646. end
  647. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  648. MakeForm(EYE,"Ball")
  649. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  650. local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  651. MakeForm(EYE2,"Ball")
  652. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  653. local Gun = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0),false)
  654. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "468351345", "468351348", VT(0.06,0.06,0.06), VT(0,0, 0))
  655. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.8, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  656.  
  657. local BODY = {}
  658.  
  659. for _, c in pairs(Character:GetDescendants()) do
  660. if c:IsA("BasePart") and c.Name ~= "Handle" then
  661. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  662. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  663. end
  664. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  665. elseif c:IsA("JointInstance") then
  666. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  667. end
  668. end
  669.  
  670. for e = 1, #BODY do
  671. if BODY[e] ~= nil then
  672. local STUFF = BODY[e]
  673. local PART = STUFF[1]
  674. local PARENT = STUFF[2]
  675. local MATERIAL = STUFF[3]
  676. local COLOR = STUFF[4]
  677. local TRANSPARENCY = STUFF[5]
  678. if PART.ClassName == "Part" and PART ~= RootPart then
  679. PART.Material = MATERIAL
  680. PART.Color = COLOR
  681. PART.Transparency = TRANSPARENCY
  682. end
  683. PART.AncestryChanged:Connect(function()
  684. PART.Parent = PARENT
  685. end)
  686. end
  687. end
  688.  
  689. function refit()
  690. Character.Parent = workspace
  691. for e = 1, #BODY do
  692. if BODY[e] ~= nil then
  693. local STUFF = BODY[e]
  694. local PART = STUFF[1]
  695. local PARENT = STUFF[2]
  696. local MATERIAL = STUFF[3]
  697. local COLOR = STUFF[4]
  698. local TRANSPARENCY = STUFF[5]
  699. if PART.ClassName == "Part" and PART ~= RootPart then
  700. PART.Material = MATERIAL
  701. PART.Color = COLOR
  702. PART.Transparency = TRANSPARENCY
  703. end
  704. if PART.Parent ~= PARENT then
  705. Humanoid:remove()
  706. PART.Parent = PARENT
  707. Humanoid = IT("Humanoid",Character)
  708. end
  709. end
  710. end
  711. end
  712.  
  713. local SKILLTEXTCOLOR = C3(0,0,0)
  714. local SKILLFONT = "SciFi"
  715. local SKILLTEXTSIZE = 7
  716.  
  717. Humanoid.Died:connect(function()
  718. refit()
  719. end)
  720.  
  721. function Blink()
  722. coroutine.resume(coroutine.create(function()
  723. if EYE ~= nil then
  724. for i = 1, 5 do
  725. Swait()
  726. EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2,0)
  727. EYE2.Mesh.Scale = EYE.Mesh.Scale
  728. end
  729. for i = 1, 7 do
  730. Swait()
  731. EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2,0)
  732. EYE2.Mesh.Scale = EYE.Mesh.Scale
  733. end
  734. EYE.Mesh.Scale = VT(1,1,1)
  735. EYE2.Mesh.Scale = EYE.Mesh.Scale
  736. end
  737. end))
  738. end
  739.  
  740. 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")
  741. 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")
  742. 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")
  743. 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")
  744.  
  745. local SKILL3TEXT = CreateLabel(SKILL1FRAME, "[Z] Shell", C3(0,0,0), 7, SKILLFONT, 0, 2, 1, "Text 3")
  746. local SKILL4TEXT = CreateLabel(SKILL2FRAME, "[X] Sinful Shell", C3(1,0,0), 8, "Antique", 0, 2, 1, "Text 4")
  747.  
  748. local AMMOIMAGE1 = IT("ImageLabel",AMMO1FRAME)
  749. AMMOIMAGE1.Size = UD2(1,0,1,0)
  750. AMMOIMAGE1.BackgroundTransparency = 1
  751. AMMOIMAGE1.BorderSizePixel = 0
  752. AMMOIMAGE1.Image = "http://www.roblox.com/asset/?id=1493961907"
  753. local AMMOIMAGE2 = IT("ImageLabel",AMMO2FRAME)
  754. AMMOIMAGE2.Size = UD2(1,0,1,0)
  755. AMMOIMAGE2.BackgroundTransparency = 1
  756. AMMOIMAGE2.BorderSizePixel = 0
  757. AMMOIMAGE2.Image = "http://www.roblox.com/asset/?id=1493962162"
  758.  
  759. --//=================================\\
  760. --|| DAMAGE FUNCTIONS
  761. --\\=================================//
  762.  
  763. function StatLabel(CFRAME, TEXT, COLOR)
  764. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  765. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  766. local BODYGYRO = IT("BodyGyro", STATPART)
  767. game:GetService("Debris"):AddItem(STATPART ,5)
  768. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  769. BILLBOARDGUI.Adornee = STATPART
  770. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  771. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  772. BILLBOARDGUI.AlwaysOnTop = false
  773. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  774. TEXTLABEL.BackgroundTransparency = 1
  775. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  776. TEXTLABEL.Text = TEXT
  777. TEXTLABEL.Font = SKILLFONT
  778. TEXTLABEL.FontSize="Size42"
  779. TEXTLABEL.TextColor3 = COLOR
  780. TEXTLABEL.TextStrokeTransparency = 0
  781. TEXTLABEL.TextScaled = true
  782. TEXTLABEL.TextWrapped = true
  783. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  784. for i = 1, 10 do
  785. Swait()
  786. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  787. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10)
  788. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  789. end
  790. THEPART.Parent = nil
  791. end),STATPART, TEXTLABEL)
  792. end
  793.  
  794. --//=================================\\
  795. --|| DAMAGING
  796. --\\=================================//
  797.  
  798. function ApplyDamage(Humanoid,Damage,TorsoPart)
  799. local defence = Instance.new("BoolValue",Humanoid.Parent)
  800. defence.Name = ("HitBy"..Player.Name)
  801. game:GetService("Debris"):AddItem(defence, 0.001)
  802. Damage = Damage * DAMAGEMULTIPLIER
  803. if Humanoid.Health ~= 0 then
  804. local CritChance = MRANDOM(1,100)
  805. if Damage > Humanoid.Health then
  806. Damage = math.ceil(Humanoid.Health)
  807. if Damage == 0 then
  808. Damage = 0.1
  809. end
  810. end
  811. Humanoid.Health = Humanoid.Health - Damage
  812. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  813. end
  814. end
  815.  
  816. function Ghostify(POSITION,RANGE)
  817. local CHILDREN = workspace:GetDescendants()
  818. for index, CHILD in pairs(CHILDREN) do
  819. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  820. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  821. if HUM then
  822. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  823. if TORSO then
  824. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  825. local GHOST = GHOSTBASE:Clone()
  826. GHOST.Parent = Effects
  827. GHOST.Torso.CFrame = TORSO.CFrame
  828. table.insert(GHOSTS,GHOST)
  829. CHILD:remove()
  830. end
  831. end
  832. end
  833. end
  834. end
  835. end
  836.  
  837. --//=================================\\
  838. --|| ATTACK FUNCTIONS AND STUFF
  839. --\\=================================//
  840.  
  841. function Shell()
  842. ATTACK = true
  843. Rooted = false
  844. local GYRO = IT("BodyGyro",RootPart)
  845. GYRO.D = 750
  846. GYRO.P = 20000
  847. GYRO.MaxTorque = VT(0,40000000,0)
  848. for i=0, 1, 0.1 / Animation_Speed do
  849. Swait()
  850. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  851. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  852. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(15), RAD(-35)), 0.75 / Animation_Speed)
  853. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(115), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  854. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  855. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  856. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.3 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed)
  857. end
  858. GYRO:remove()
  859. CreateSound(696483710, Gun, 5, 1, false)
  860. local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  861. SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  862. 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})
  863. for i=0, 0.3, 0.1 / Animation_Speed do
  864. Swait()
  865. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  866. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(15), RAD(-35)), 0.75 / Animation_Speed)
  867. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0.3) * ANGLES(RAD(110), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  868. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  869. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  870. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.3 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed)
  871. end
  872. ATTACK = false
  873. Rooted = false
  874. end
  875.  
  876. function Taunt()
  877. ATTACK = true
  878. local LAUGH = nil
  879. coroutine.resume(coroutine.create(function()
  880. repeat
  881. Swait()
  882. 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)
  883. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  884. 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)
  885. 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)
  886. 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)
  887. 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)
  888. until LAUGH ~= nil
  889. repeat
  890. Swait()
  891. LAUGH.Parent = Head
  892. 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)
  893. 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)
  894. 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)
  895. 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)
  896. 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)
  897. 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)
  898. until LAUGH.Playing == false
  899. ATTACK = false
  900. end))
  901. wait(0.1)
  902. sick:Stop()
  903. LAUGH = CreateSound(525166232, Head, 10, 1, false)
  904. sick:Resume()
  905. end
  906.  
  907. function SinfulShell()
  908. ATTACK = true
  909. Rooted = false
  910. local GYRO = IT("BodyGyro",RootPart)
  911. GYRO.D = 750
  912. GYRO.P = 20000
  913. GYRO.MaxTorque = VT(0,40000000,0)
  914. for i=0, 1, 0.1 / Animation_Speed do
  915. Swait()
  916. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  917. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  918. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(15), RAD(-35)), 0.75 / Animation_Speed)
  919. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(115), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  920. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  921. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  922. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.3 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed)
  923. end
  924. GYRO:remove()
  925. CreateSound(696483710, Gun, 5, 1, false)
  926. 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})
  927. coroutine.resume(coroutine.create(function()
  928. local Bullet = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really red", "Sinful bullet", VT(0,0,0))
  929. CreateMesh("SpecialMesh", Bullet, "FileMesh", "94295100", "", VT(6, 6, 7), VT(0,0, 0))
  930. Bullet.CFrame = Gun.CFrame*CF(1.5,0.5,0)
  931. local AIMPOINT = Mouse.Hit.p
  932. local STARTPOS = Gun.CFrame*CF(1.5,0.5,0).p
  933. local VECTOR = CF(STARTPOS,AIMPOINT)
  934. local IMPACTED = false
  935. CreateSound(1393698948, Bullet, 10, 1, true)
  936. for E = 1, 50 do
  937. if IMPACTED == true then
  938. break
  939. end
  940. local TARGETPOINT = VECTOR*CF(0,0,-E*5)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,1,0).p
  941. Bullet.CFrame = CF(Bullet.Position,TARGETPOINT)
  942. for i = 1, 5 do
  943. Swait()
  944. 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})
  945. Bullet.CFrame = Bullet.CFrame*CF(0,0,-1)
  946. local AIMHIT,AIMPOS,NORMAL = Raycast(Bullet.Position,Bullet.CFrame.lookVector,1.3,Character)
  947. if AIMHIT ~= nil then
  948. IMPACTED = true
  949. break
  950. end
  951. end
  952. end
  953. 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})
  954. for i = 1, 7 do
  955. 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})
  956. end
  957. Ghostify(Bullet.Position,10)
  958. Bullet:remove()
  959. end))
  960. for i=0, 0.3, 0.1 / Animation_Speed do
  961. Swait()
  962. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  963. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(15), RAD(-35)), 0.75 / Animation_Speed)
  964. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0.3) * ANGLES(RAD(110), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  965. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  966. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  967. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.3 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed)
  968. end
  969. ATTACK = false
  970. Rooted = false
  971. end
  972.  
  973. --//=================================\\
  974. --|| ASSIGN THINGS TO KEYS
  975. --\\=================================//
  976.  
  977. function MouseDown(Mouse)
  978. if ATTACK == false then
  979. end
  980. end
  981.  
  982. function MouseUp(Mouse)
  983. HOLD = false
  984. end
  985.  
  986. function KeyDown(Key)
  987. KEYHOLD = true
  988. if Key == "z" and ATTACK == false then
  989. Shell()
  990. end
  991.  
  992. if Key == "t" and ATTACK == false then
  993. Taunt()
  994. end
  995.  
  996. if Key == "x" and ATTACK == false then
  997. SinfulShell()
  998. end
  999. end
  1000.  
  1001. function KeyUp(Key)
  1002. KEYHOLD = false
  1003. end
  1004.  
  1005. Mouse.Button1Down:connect(function(NEWKEY)
  1006. MouseDown(NEWKEY)
  1007. end)
  1008. Mouse.Button1Up:connect(function(NEWKEY)
  1009. MouseUp(NEWKEY)
  1010. end)
  1011. Mouse.KeyDown:connect(function(NEWKEY)
  1012. KeyDown(NEWKEY)
  1013. end)
  1014. Mouse.KeyUp:connect(function(NEWKEY)
  1015. KeyUp(NEWKEY)
  1016. end)
  1017.  
  1018. --//=================================\\
  1019. --\\=================================//
  1020.  
  1021.  
  1022. function unanchor()
  1023. if UNANCHOR == true then
  1024. g = Character:GetChildren()
  1025. for i = 1, #g do
  1026. if g[i].ClassName == "Part" then
  1027. g[i].Anchored = false
  1028. end
  1029. end
  1030. end
  1031. end
  1032.  
  1033.  
  1034. --//=================================\\
  1035. --|| WRAP THE WHOLE SCRIPT UP
  1036. --\\=================================//
  1037.  
  1038. Humanoid.Changed:connect(function(Jump)
  1039. if Jump == "Jump" and (Disable_Jump == true) then
  1040. Humanoid.Jump = false
  1041. end
  1042. end)
  1043.  
  1044. local BLINKLOOP = 0
  1045.  
  1046. while true do
  1047. Swait()
  1048. ANIMATE.Parent = nil
  1049. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1050. IDLEANIMATION:Play()
  1051. SINE = SINE + CHANGE
  1052. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1053. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1054. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1055. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1056. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1057. if ATTACK == false then
  1058. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1059. HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1060. end
  1061. if ANIM == "Walk" and TORSOVELOCITY > 1 and ATTACK == false then
  1062. 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)
  1063. 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)
  1064. 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)
  1065. 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)
  1066. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or (ATTACK == true) then
  1067. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1068. 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)
  1069. 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)
  1070. 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)
  1071. end
  1072. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1073. ANIM = "Jump"
  1074. if ATTACK == false then
  1075. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1076. 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)
  1077. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1078. 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)
  1079. 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)
  1080. end
  1081. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1082. ANIM = "Fall"
  1083. if ATTACK == false then
  1084. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1085. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1086. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1087. 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)
  1088. 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)
  1089. end
  1090. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1091. ANIM = "Idle"
  1092. if ATTACK == false then
  1093. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1094. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1095. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1096. 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)), 0.15 / Animation_Speed)
  1097. 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.15 / Animation_Speed)
  1098. end
  1099. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1100. ANIM = "Walk"
  1101. WALK = WALK + 1 / Animation_Speed
  1102. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1103. WALK = 0
  1104. if WALKINGANIM == true then
  1105. WALKINGANIM = false
  1106. elseif WALKINGANIM == false then
  1107. WALKINGANIM = true
  1108. end
  1109. end
  1110. --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)
  1111. --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)
  1112. if ATTACK == false then
  1113. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1114. 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)
  1115. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1116. 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)
  1117. 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)
  1118. end
  1119. end
  1120. unanchor()
  1121. Humanoid.MaxHealth = "inf"
  1122. Humanoid.Health = "inf"
  1123. if Rooted == false then
  1124. Disable_Jump = false
  1125. Humanoid.WalkSpeed = Speed
  1126. elseif Rooted == true then
  1127. Disable_Jump = true
  1128. Humanoid.WalkSpeed = 0
  1129. end
  1130. sick.SoundId = "rbxassetid://1472374501"
  1131. sick.Looped = true
  1132. sick.Pitch = 0.7
  1133. sick.Volume = 3
  1134. sick.Playing = true
  1135. sick.Parent = Torso
  1136. if Head:FindFirstChild("face") then
  1137. Head.face.Texture = "rbxassetid://403870689"
  1138. end
  1139. BLINKLOOP = BLINKLOOP + 1
  1140. if BLINKLOOP >=650 then
  1141. BLINKLOOP = 0
  1142. Blink()
  1143. end
  1144. if #GHOSTS>0 then
  1145. for e=1,#GHOSTS do
  1146. if GHOSTS[e]~=nil then
  1147. local Thing=GHOSTS[e]
  1148. if Thing~=nil then
  1149. if Thing:FindFirstChild("Head") then
  1150. if Thing:FindFirstChild("Head"):FindFirstChild("face") then
  1151. Thing:FindFirstChild("Head").face.Texture = "rbxassetid://479674570"
  1152. end
  1153. if Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound") then
  1154. Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound"):remove()
  1155. end
  1156. end
  1157. local TORSO = Thing:FindFirstChild("Torso")
  1158. if TORSO then
  1159. TORSO.Anchored = false
  1160. local ROOT = Thing.HumanoidRootPart
  1161. local RootJoint1 = ROOT:FindFirstChild("RootJoint")
  1162. local Neck1 = TORSO:FindFirstChild("Neck")
  1163. local RightShoulder1 = TORSO:FindFirstChild("Right Shoulder")
  1164. local LeftShoulder1 = TORSO:FindFirstChild("Left Shoulder")
  1165. local RightHip1 = TORSO:FindFirstChild("Right Hip")
  1166. local LeftHip1 = TORSO:FindFirstChild("Left Hip")
  1167. if ROOT and RootJoint1 then
  1168. local VELOCITY = (ROOT.Velocity * VT(1, 0, 1)).magnitude
  1169. if VELOCITY < 1 then
  1170. 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)))
  1171. 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)))
  1172. 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
  1173. 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
  1174. 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))
  1175. 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))
  1176. elseif VELOCITY > 1 then
  1177. 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)))
  1178. 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)))
  1179. 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
  1180. 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
  1181. 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))
  1182. 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))
  1183. end
  1184. end
  1185. local Human = Thing.Humanoid
  1186. if Human then
  1187. Human.HipHeight = 0.3
  1188. for _, c in pairs(Thing:GetChildren()) do
  1189. if c.ClassName == "Part" and c.Transparency < 1 then
  1190. c.Color = C3(0,0,0)
  1191. c.Transparency = 0.65 + 0.15 * COS(SINE / 25)
  1192. elseif c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
  1193. c:remove()
  1194. end
  1195. end
  1196. if Human then
  1197. local IDLEANIMATION = Human:LoadAnimation(ROBLOXIDLEANIMATION)
  1198. IDLEANIMATION:Play()
  1199. end
  1200. local list = game.Workspace:children()
  1201. local torso = nil
  1202. local dist = 50
  1203. local temp = nil
  1204. local human = nil
  1205. local temp2 = nil
  1206. local OwnerInDanger = false
  1207. for x = 1, #list do
  1208. temp2 = list[x]
  1209. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  1210. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1211. human = temp2:findFirstChildOfClass("Humanoid")
  1212. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1213. if (temp.Position - Torso.Position).magnitude < 15 then
  1214. OwnerInDanger = true
  1215. newdist = (temp.Position - TORSO.Position).magnitude
  1216. dist = (Torso.Position - temp.Position).magnitude
  1217. Human:MoveTo(temp.Position)
  1218. torso = temp
  1219. if newdist < 7 then
  1220. torso.CFrame = CF(torso.Position,TORSO.Position)*CF(0,0,5)
  1221. CreateSound(814168787, temp, 1, 2, false)
  1222. ApplyDamage(human,MRANDOM(15,35),temp)
  1223. 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})
  1224. 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})
  1225. end
  1226. end
  1227. end
  1228. end
  1229. end
  1230. if OwnerInDanger == false then
  1231. for x = 1, #list do
  1232. temp2 = list[x]
  1233. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  1234. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1235. human = temp2:findFirstChildOfClass("Humanoid")
  1236. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1237. if (temp.Position - Torso.Position).magnitude < dist then
  1238. newdist = (temp.Position - TORSO.Position).magnitude
  1239. Human:MoveTo(temp.Position)
  1240. torso = temp
  1241. if newdist < 15 then
  1242. if MRANDOM(1,35) == 1 then
  1243. CreateSound(438665935, temp, 1, 3, false)
  1244. ApplyDamage(human,MRANDOM(2,20),temp)
  1245. 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})
  1246. end
  1247. end
  1248. end
  1249. end
  1250. end
  1251. end
  1252. end
  1253. if torso == nil then
  1254. Human.WalkSpeed = Speed -0.2
  1255. if (Torso.Position - TORSO.Position).magnitude < 12 and (Torso.Position - TORSO.Position).magnitude >= 11 then
  1256. Human:MoveTo(TORSO.Position)
  1257. elseif (Torso.Position - TORSO.Position).magnitude > 15 then
  1258. Human:MoveTo(Torso.Position)
  1259. elseif (Torso.Position - TORSO.Position).magnitude < 11 then
  1260. Human:MoveTo(CF(Torso.Position,TORSO.Position)*CF(0,0,-5).p)
  1261. end
  1262. else
  1263. if OwnerInDanger == false then
  1264. Human.WalkSpeed = Speed*1.2
  1265. else
  1266. Human.WalkSpeed = Speed*5
  1267. end
  1268. end
  1269. if Human.Health == 0 then
  1270. Thing:remove()
  1271. table.remove(GHOSTS,e)
  1272. else
  1273. Human.Health = Human.Health + 0.5
  1274. end
  1275. else
  1276. Thing:remove()
  1277. table.remove(GHOSTS,e)
  1278. end
  1279. else
  1280. Thing:remove()
  1281. table.remove(GHOSTS,e)
  1282. end
  1283. end
  1284. end
  1285. end
  1286. end
  1287. refit()
  1288. end
  1289.  
  1290. --//=================================\\
  1291. --\\=================================//
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297. --//====================================================\\--
  1298. --|| END OF SCRIPT
  1299. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement