Advertisement
Christoffer07700Extr

no

May 20th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.13 KB | None | 0 0
  1. .
  2. --//====================================================\\--
  3. --|| CREATED BY SHACKLUSTER
  4. --\\====================================================//--
  5.  
  6. wait(0.2)
  7.  
  8. Player = game:GetService("Players").LocalPlayer
  9. PlayerGui = Player.PlayerGui
  10. Cam = workspace.CurrentCamera
  11. Backpack = Player.Backpack
  12. Character = Player.Character
  13. Humanoid = Character.Humanoid
  14. Mouse = Player:GetMouse()
  15. RootPart = Character["HumanoidRootPart"]
  16. Torso = Character["Torso"]
  17. Head = Character["Head"]
  18. RightArm = Character["Right Arm"]
  19. LeftArm = Character["Left Arm"]
  20. RightLeg = Character["Right Leg"]
  21. LeftLeg = Character["Left Leg"]
  22. RootJoint = RootPart["RootJoint"]
  23. Neck = Torso["Neck"]
  24. RightShoulder = Torso["Right Shoulder"]
  25. LeftShoulder = Torso["Left Shoulder"]
  26. RightHip = Torso["Right Hip"]
  27. LeftHip = Torso["Left Hip"]
  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, "[Q] Shell", C3(0,0,0), 7, SKILLFONT, 0, 2, 1, "Text 3")
  746. local SKILL4TEXT = CreateLabel(SKILL2FRAME, "[E] 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) * ANGLES(RAD(0), RAD(180), RAD(90)), 0.5 / Animation_Speed)
  852. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  853. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  854. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  855. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.5 / Animation_Speed)
  856. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  857. end
  858.  
  859. end
  860. GYRO:remove()
  861. CreateSound(696483710, Gun, 5, 1, false)
  862. local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  863. SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  864. 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})
  865. for i=0, 0.3, 0.1 / Animation_Speed do
  866. Swait()
  867. 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)
  868. 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)
  869. 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)
  870. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  871. 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)
  872. 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)
  873. end
  874. ATTACK = false
  875. Rooted = false
  876. end
  877.  
  878. function SinfulShell()
  879. ATTACK = true
  880. Rooted = false
  881. local GYRO = IT("BodyGyro",RootPart)
  882. GYRO.D = 750
  883. GYRO.P = 20000
  884. GYRO.MaxTorque = VT(0,40000000,0)
  885. for i=0, 1, 0.1 / Animation_Speed do
  886. Swait()
  887. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  888. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(180), RAD(90)), 0.5 / Animation_Speed)
  889. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  890. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  891. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  892. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.5 / Animation_Speed)
  893. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  894.  
  895. end
  896. end
  897. GYRO:remove()
  898. CreateSound(696483710, Gun, 5, 1, false)
  899. 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})
  900. coroutine.resume(coroutine.create(function()
  901. local Bullet = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really red", "Sinful bullet", VT(0,0,0))
  902. CreateMesh("SpecialMesh", Bullet, "FileMesh", "94295100", "", VT(6, 6, 7), VT(0,0, 0))
  903. Bullet.CFrame = Gun.CFrame*CF(1.5,0.5,0)
  904. local AIMPOINT = Mouse.Hit.p
  905. local STARTPOS = Gun.CFrame*CF(1.5,0.5,0).p
  906. local VECTOR = CF(STARTPOS,AIMPOINT)
  907. local IMPACTED = false
  908. CreateSound(1393698948, Bullet, 10, 1, true)
  909. for E = 1, 50 do
  910. if IMPACTED == true then
  911. break
  912. end
  913. local TARGETPOINT = VECTOR*CF(0,0,-E*5)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,1,0).p
  914. Bullet.CFrame = CF(Bullet.Position,TARGETPOINT)
  915. for i = 1, 5 do
  916. Swait()
  917. 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})
  918. Bullet.CFrame = Bullet.CFrame*CF(0,0,-1)
  919. local AIMHIT,AIMPOS,NORMAL = Raycast(Bullet.Position,Bullet.CFrame.lookVector,1.3,Character)
  920. if AIMHIT ~= nil then
  921. IMPACTED = true
  922. break
  923. end
  924. end
  925. end
  926. 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})
  927. for i = 1, 7 do
  928. 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})
  929. end
  930. Ghostify(Bullet.Position,10)
  931. Bullet:remove()
  932. end))
  933. for i=0, 0.3, 0.1 / Animation_Speed do
  934. Swait()
  935. 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)
  936. 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)
  937. 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)
  938. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  939. 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)
  940. 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)
  941. end
  942. ATTACK = false
  943. Rooted = false
  944. end
  945.  
  946. --//=================================\\
  947. --|| ASSIGN THINGS TO KEYS
  948. --\\=================================//
  949.  
  950. function MouseDown(Mouse)
  951. if ATTACK == false then
  952. end
  953. end
  954.  
  955. function MouseUp(Mouse)
  956. HOLD = false
  957. end
  958.  
  959. function KeyDown(Key)
  960. KEYHOLD = true
  961. if Key == "q" and ATTACK == false then
  962. Shell()
  963. end
  964.  
  965. if Key == "e" and ATTACK == false then
  966. SinfulShell()
  967. end
  968. end
  969.  
  970. function KeyUp(Key)
  971. KEYHOLD = false
  972. end
  973.  
  974. Mouse.Button1Down:connect(function(NEWKEY)
  975. MouseDown(NEWKEY)
  976. end)
  977. Mouse.Button1Up:connect(function(NEWKEY)
  978. MouseUp(NEWKEY)
  979. end)
  980. Mouse.KeyDown:connect(function(NEWKEY)
  981. KeyDown(NEWKEY)
  982. end)
  983. Mouse.KeyUp:connect(function(NEWKEY)
  984. KeyUp(NEWKEY)
  985. end)
  986.  
  987. --//=================================\\
  988. --\\=================================//
  989.  
  990.  
  991. function unanchor()
  992. if UNANCHOR == true then
  993. g = Character:GetChildren()
  994. for i = 1, #g do
  995. if g[i].ClassName == "Part" then
  996. g[i].Anchored = false
  997. end
  998. end
  999. end
  1000. end
  1001.  
  1002.  
  1003. --//=================================\\
  1004. --|| WRAP THE WHOLE SCRIPT UP
  1005. --\\=================================//
  1006.  
  1007. Humanoid.Changed:connect(function(Jump)
  1008. if Jump == "Jump" and (Disable_Jump == true) then
  1009. Humanoid.Jump = false
  1010. end
  1011. end)
  1012.  
  1013. local BLINKLOOP = 0
  1014.  
  1015. while true do
  1016. Swait()
  1017. script.Parent = WEAPONGUI
  1018. ANIMATE.Parent = nil
  1019. Humanoid.Parent = Character
  1020. if Humanoid then
  1021. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1022. IDLEANIMATION:Play()
  1023. end
  1024. SINE = SINE + CHANGE
  1025. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1026. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1027. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1028. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1029. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1030. 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)
  1031. 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)
  1032. 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)
  1033. 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)
  1034. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1035. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1036. 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)
  1037. 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)
  1038. 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)
  1039. end
  1040. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1041. if ATTACK == false then
  1042. ANIM = "Jump"
  1043. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1044. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1045. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1046. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1047. 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)
  1048. 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)
  1049. end
  1050. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1051. ANIM = "Fall"
  1052. if ATTACK == false then
  1053. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(-824399 * COS(SINE / WALKSPEEDVALUE))), 0.2 / Animation_Speed)
  1054. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(0)), 0.2 / Animation_Speed)
  1055. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(-824399 * COS(SINE / WALKSPEEDVALUE)))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1056. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(-824399 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1057. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(-824399 * COS(SINE / WALKSPEEDVALUE))), 0.2 / Animation_Speed)
  1058. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(-824399 * COS(SINE / WALKSPEEDVALUE)), RAD(10)), 0.2 / Animation_Speed)
  1059. end
  1060. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1061. ANIM = "Idle"
  1062. if ATTACK == false then
  1063. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1064. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  1065. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(-891231239 * COS(SINE / WALKSPEEDVALUE)), RAD(-89123129 * COS(SINE / WALKSPEEDVALUE)), RAD(-891232139 * COS(SINE / WALKSPEEDVALUE)))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1066. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-891232139 * COS(SINE / WALKSPEEDVALUE)), RAD(-891231239 * COS(SINE / WALKSPEEDVALUE)), RAD(-81232199 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1067. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-89123129 * COS(SINE / WALKSPEEDVALUE)), RAD(-891239 * COS(SINE / WALKSPEEDVALUE))) * ANGLES(RAD(-13221899 * COS(SINE / WALKSPEEDVALUE)), RAD(-89132319 * COS(SINE / WALKSPEEDVALUE)), RAD(-8912329 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  1068. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-89123129 * COS(SINE / WALKSPEEDVALUE)), RAD(-8312399 * COS(SINE / WALKSPEEDVALUE))) * ANGLES(RAD(-891239 * COS(SINE / WALKSPEEDVALUE)), RAD(-891239 * COS(SINE / WALKSPEEDVALUE)), RAD(-812399 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  1069. end
  1070. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1071. ANIM = "Walk"
  1072. if ATTACK == false then
  1073. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  1074. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 999 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed)
  1075. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE)))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1076. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1077. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-1 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE))), 2 / Animation_Speed)
  1078. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-1000 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE)), RAD(-899 * COS(SINE / WALKSPEEDVALUE))), 2 / Animation_Speed)
  1079. end
  1080. end
  1081. unanchor()
  1082. Humanoid.MaxHealth = "inf"
  1083. Humanoid.Health = "inf"
  1084. if Rooted == false then
  1085. Disable_Jump = false
  1086. Humanoid.WalkSpeed = Speed
  1087. elseif Rooted == true then
  1088. Disable_Jump = true
  1089. Humanoid.WalkSpeed = 0
  1090. end
  1091. sick.SoundId = "rbxassetid://1472374501"
  1092. sick.Looped = true
  1093. sick.Pitch = 0.7
  1094. sick.Volume = 3
  1095. sick.Playing = true
  1096. sick.Parent = Torso
  1097. if Head:FindFirstChild("face") then
  1098. Head.face.Texture = "rbxassetid://403870689"
  1099. end
  1100. BLINKLOOP = BLINKLOOP + 1
  1101. if BLINKLOOP >=650 then
  1102. BLINKLOOP = 0
  1103. Blink()
  1104. end
  1105. if #GHOSTS>0 then
  1106. for e=1,#GHOSTS do
  1107. if GHOSTS[e]~=nil then
  1108. local Thing=GHOSTS[e]
  1109. if Thing~=nil then
  1110. if Thing:FindFirstChild("Head") then
  1111. if Thing:FindFirstChild("Head"):FindFirstChild("face") then
  1112. Thing:FindFirstChild("Head").face.Texture = "rbxassetid://479674570"
  1113. end
  1114. if Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound") then
  1115. Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound"):remove()
  1116. end
  1117. end
  1118. local TORSO = Thing:FindFirstChild("Torso")
  1119. if TORSO then
  1120. TORSO.Anchored = false
  1121. local ROOT = Thing.HumanoidRootPart
  1122. local RootJoint1 = ROOT:FindFirstChild("RootJoint")
  1123. local Neck1 = TORSO:FindFirstChild("Neck")
  1124. local RightShoulder1 = TORSO:FindFirstChild("Right Shoulder")
  1125. local LeftShoulder1 = TORSO:FindFirstChild("Left Shoulder")
  1126. local RightHip1 = TORSO:FindFirstChild("Right Hip")
  1127. local LeftHip1 = TORSO:FindFirstChild("Left Hip")
  1128. if ROOT and RootJoint1 then
  1129. local VELOCITY = (ROOT.Velocity * VT(1, 0, 1)).magnitude
  1130. if VELOCITY < 1 then
  1131. 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)))
  1132. 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)))
  1133. 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
  1134. 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
  1135. 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))
  1136. 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))
  1137. elseif VELOCITY > 1 then
  1138. 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)))
  1139. 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)))
  1140. 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
  1141. 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
  1142. 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))
  1143. 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))
  1144. end
  1145. end
  1146. local Human = Thing.Humanoid
  1147. if Human then
  1148. Human.HipHeight = 0.3
  1149. for _, c in pairs(Thing:GetChildren()) do
  1150. if c.ClassName == "Part" and c.Transparency < 1 then
  1151. c.Color = C3(0,0,0)
  1152. c.Transparency = 0.65 + 0.15 * COS(SINE / 25)
  1153. elseif c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
  1154. c:remove()
  1155. end
  1156. end
  1157. if Human then
  1158. local IDLEANIMATION = Human:LoadAnimation(ROBLOXIDLEANIMATION)
  1159. IDLEANIMATION:Play()
  1160. end
  1161. local list = game.Workspace:children()
  1162. local torso = nil
  1163. local dist = 50
  1164. local temp = nil
  1165. local human = nil
  1166. local temp2 = nil
  1167. local OwnerInDanger = false
  1168. for x = 1, #list do
  1169. temp2 = list[x]
  1170. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  1171. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1172. human = temp2:findFirstChildOfClass("Humanoid")
  1173. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1174. if (temp.Position - Torso.Position).magnitude < 15 then
  1175. OwnerInDanger = true
  1176. newdist = (temp.Position - TORSO.Position).magnitude
  1177. dist = (Torso.Position - temp.Position).magnitude
  1178. Human:MoveTo(temp.Position)
  1179. torso = temp
  1180. if newdist < 7 then
  1181. torso.CFrame = CF(torso.Position,TORSO.Position)*CF(0,0,5)
  1182. CreateSound(814168787, temp, 1, 2, false)
  1183. ApplyDamage(human,MRANDOM(15,35),temp)
  1184. 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})
  1185. 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})
  1186. end
  1187. end
  1188. end
  1189. end
  1190. end
  1191. if OwnerInDanger == false then
  1192. for x = 1, #list do
  1193. temp2 = list[x]
  1194. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  1195. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1196. human = temp2:findFirstChildOfClass("Humanoid")
  1197. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1198. if (temp.Position - Torso.Position).magnitude < dist then
  1199. newdist = (temp.Position - TORSO.Position).magnitude
  1200. Human:MoveTo(temp.Position)
  1201. torso = temp
  1202. if newdist < 15 then
  1203. if MRANDOM(1,35) == 1 then
  1204. CreateSound(438665935, temp, 1, 3, false)
  1205. ApplyDamage(human,MRANDOM(2,20),temp)
  1206. 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})
  1207. end
  1208. end
  1209. end
  1210. end
  1211. end
  1212. end
  1213. end
  1214. if torso == nil then
  1215. Human.WalkSpeed = Speed -0.2
  1216. if (Torso.Position - TORSO.Position).magnitude < 12 and (Torso.Position - TORSO.Position).magnitude >= 11 then
  1217. Human:MoveTo(TORSO.Position)
  1218. elseif (Torso.Position - TORSO.Position).magnitude > 15 then
  1219. Human:MoveTo(Torso.Position)
  1220. elseif (Torso.Position - TORSO.Position).magnitude < 11 then
  1221. Human:MoveTo(CF(Torso.Position,TORSO.Position)*CF(0,0,-5).p)
  1222. end
  1223. else
  1224. if OwnerInDanger == false then
  1225. Human.WalkSpeed = Speed*1.2
  1226. else
  1227. Human.WalkSpeed = Speed*5
  1228. end
  1229. end
  1230. if Human.Health == 0 then
  1231. Thing:remove()
  1232. table.remove(GHOSTS,e)
  1233. else
  1234. Human.Health = Human.Health + 0.5
  1235. end
  1236. else
  1237. Thing:remove()
  1238. table.remove(GHOSTS,e)
  1239. end
  1240. else
  1241. Thing:remove()
  1242. table.remove(GHOSTS,e)
  1243. end
  1244. end
  1245. end
  1246. end
  1247. end
  1248. refit()
  1249. end
  1250.  
  1251. --//=================================\\
  1252. --\\=================================//
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258. --//====================================================\\--
  1259. --|| END OF SCRIPT
  1260. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement