Advertisement
Dark_EccentricYT

Untitled

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