Advertisement
GojiGaming1337

Broken

Apr 28th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.95 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. wait(0.2)
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. Mouse = Player:GetMouse()
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27. SIZE = 1
  28.  
  29. IT = Instance.new
  30. CF = CFrame.new
  31. VT = Vector3.new
  32. RAD = math.rad
  33. C3 = Color3.new
  34. UD2 = UDim2.new
  35. BRICKC = BrickColor.new
  36. ANGLES = CFrame.Angles
  37. EULER = CFrame.fromEulerAnglesXYZ
  38. COS = math.cos
  39. ACOS = math.acos
  40. SIN = math.sin
  41. ASIN = math.asin
  42. ABS = math.abs
  43. MRANDOM = math.random
  44. FLOOR = math.floor
  45.  
  46. --//=================================\\
  47. --|| USEFUL VALUES
  48. --\\=================================//
  49.  
  50. Animation_Speed = 3
  51. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  52. local Speed = 10
  53. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  54. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  55. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  56. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  57. local DAMAGEMULTIPLIER = 1
  58. local ANIM = "Idle"
  59. local ATTACK = false
  60. local EQUIPPED = false
  61. local HOLD = false
  62. local COMBO = 1
  63. local Rooted = false
  64. local SINE = 0
  65. local KEYHOLD = false
  66. local CHANGE = 2 / Animation_Speed
  67. local WALKINGANIM = false
  68. local VALUE1 = false
  69. local VALUE2 = false
  70. local ROBLOXIDLEANIMATION = IT("Animation")
  71. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  72. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  73. --ROBLOXIDLEANIMATION.Parent = Humanoid
  74. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  75. WEAPONGUI.Name = "Weapon GUI"
  76. local ANIMATOR = Humanoid.Animator
  77. local ANIMATE = Character.Animate
  78. local UNANCHOR = true
  79. local GHOSTS = {}
  80. ANIMATE:remove()
  81. Character.Archivable = true
  82. script.Parent = WEAPONGUI
  83. local GHOSTBASE = Character:Clone()
  84. GHOSTBASE.Parent = nil
  85. GHOSTBASE.Name = "Ghost"
  86. for _, c in pairs(GHOSTBASE:GetChildren()) do
  87. if c.ClassName == "Part" and c.Transparency < 1 then
  88. c.Color = C3(0,0,0)
  89. if c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
  90. c:remove()
  91. end
  92. end
  93. end
  94. local sick = Instance.new("Sound",Torso)
  95. sick.SoundId = "rbxassetid://303490532"
  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, "Lily White", "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.  
  648. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  649. local Gun = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gun", VT(0, 0, 0),false)
  650. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "468351345", "468351348", VT(0.06,0.06,0.06), VT(0,0, 0))
  651. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.8, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  652.  
  653. local BODY = {}
  654.  
  655. for _, c in pairs(Character:GetDescendants()) do
  656. if c:IsA("BasePart") and c.Name ~= "Handle" then
  657. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  658. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  659. end
  660. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  661. elseif c:IsA("JointInstance") then
  662. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  663. end
  664. end
  665.  
  666. for e = 1, #BODY do
  667. if BODY[e] ~= nil then
  668. local STUFF = BODY[e]
  669. local PART = STUFF[1]
  670. local PARENT = STUFF[2]
  671. local MATERIAL = STUFF[3]
  672. local COLOR = STUFF[4]
  673. local TRANSPARENCY = STUFF[5]
  674. if PART.ClassName == "Part" and PART ~= RootPart then
  675. PART.Material = MATERIAL
  676. PART.Color = COLOR
  677. PART.Transparency = TRANSPARENCY
  678. end
  679. PART.AncestryChanged:Connect(function()
  680. PART.Parent = PARENT
  681. end)
  682. end
  683. end
  684.  
  685. function refit()
  686. Character.Parent = workspace
  687. for e = 1, #BODY do
  688. if BODY[e] ~= nil then
  689. local STUFF = BODY[e]
  690. local PART = STUFF[1]
  691. local PARENT = STUFF[2]
  692. local MATERIAL = STUFF[3]
  693. local COLOR = STUFF[4]
  694. local TRANSPARENCY = STUFF[5]
  695. if PART.ClassName == "Part" and PART ~= RootPart then
  696. PART.Material = MATERIAL
  697. PART.Color = COLOR
  698. PART.Transparency = TRANSPARENCY
  699. end
  700. if PART.Parent ~= PARENT then
  701. Humanoid:remove()
  702. PART.Parent = PARENT
  703. Humanoid = IT("Humanoid",Character)
  704. end
  705. end
  706. end
  707. end
  708.  
  709. local SKILLTEXTCOLOR = C3(0,0,0)
  710. local SKILLFONT = "SciFi"
  711. local SKILLTEXTSIZE = 7
  712.  
  713. Humanoid.Died:connect(function()
  714. refit()
  715. end)
  716.  
  717. function Blink()
  718. coroutine.resume(coroutine.create(function()
  719. if EYE ~= nil then
  720. for i = 1, 5 do
  721. Swait()
  722. EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2,0)
  723. EYE2.Mesh.Scale = EYE.Mesh.Scale
  724. end
  725. for i = 1, 7 do
  726. Swait()
  727. EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2,0)
  728. EYE2.Mesh.Scale = EYE.Mesh.Scale
  729. end
  730. EYE.Mesh.Scale = VT(1,1,1)
  731. EYE2.Mesh.Scale = EYE.Mesh.Scale
  732. end
  733. end))
  734. end
  735.  
  736. 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")
  737. 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")
  738. 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")
  739. 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")
  740.  
  741. local SKILL3TEXT = CreateLabel(SKILL1FRAME, "[Z] Shell", C3(0,0,0), 7, SKILLFONT, 0, 2, 1, "Text 3")
  742. local SKILL4TEXT = CreateLabel(SKILL2FRAME, "[X] Sinful Shell", C3(1,0,0), 8, "Antique", 0, 2, 1, "Text 4")
  743.  
  744. local AMMOIMAGE1 = IT("ImageLabel",AMMO1FRAME)
  745. AMMOIMAGE1.Size = UD2(1,0,1,0)
  746. AMMOIMAGE1.BackgroundTransparency = 1
  747. AMMOIMAGE1.BorderSizePixel = 0
  748. AMMOIMAGE1.Image = "http://www.roblox.com/asset/?id=1493961907"
  749. local AMMOIMAGE2 = IT("ImageLabel",AMMO2FRAME)
  750. AMMOIMAGE2.Size = UD2(1,0,1,0)
  751. AMMOIMAGE2.BackgroundTransparency = 1
  752. AMMOIMAGE2.BorderSizePixel = 0
  753. AMMOIMAGE2.Image = "http://www.roblox.com/asset/?id=1493962162"
  754.  
  755. --//=================================\\
  756. --|| DAMAGE FUNCTIONS
  757. --\\=================================//
  758.  
  759. function StatLabel(CFRAME, TEXT, COLOR)
  760. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  761. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  762. local BODYGYRO = IT("BodyGyro", STATPART)
  763. game:GetService("Debris"):AddItem(STATPART ,5)
  764. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  765. BILLBOARDGUI.Adornee = STATPART
  766. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  767. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  768. BILLBOARDGUI.AlwaysOnTop = false
  769. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  770. TEXTLABEL.BackgroundTransparency = 1
  771. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  772. TEXTLABEL.Text = TEXT
  773. TEXTLABEL.Font = SKILLFONT
  774. TEXTLABEL.FontSize="Size42"
  775. TEXTLABEL.TextColor3 = COLOR
  776. TEXTLABEL.TextStrokeTransparency = 0
  777. TEXTLABEL.TextScaled = true
  778. TEXTLABEL.TextWrapped = true
  779. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  780. for i = 1, 10 do
  781. Swait()
  782. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  783. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10)
  784. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  785. end
  786. THEPART.Parent = nil
  787. end),STATPART, TEXTLABEL)
  788. end
  789.  
  790. --//=================================\\
  791. --|| DAMAGING
  792. --\\=================================//
  793.  
  794. function ApplyDamage(Humanoid,Damage,TorsoPart)
  795. local defence = Instance.new("BoolValue",Humanoid.Parent)
  796. defence.Name = ("HitBy"..Player.Name)
  797. game:GetService("Debris"):AddItem(defence, 0.001)
  798. Damage = Damage * DAMAGEMULTIPLIER
  799. if Humanoid.Health ~= 0 then
  800. local CritChance = MRANDOM(1,100)
  801. if Damage > Humanoid.Health then
  802. Damage = math.ceil(Humanoid.Health)
  803. if Damage == 0 then
  804. Damage = 0.1
  805. end
  806. end
  807. Humanoid.Health = Humanoid.Health - Damage
  808. StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
  809. end
  810. end
  811.  
  812. function Ghostify(POSITION,RANGE)
  813. local CHILDREN = workspace:GetDescendants()
  814. for index, CHILD in pairs(CHILDREN) do
  815. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  816. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  817. if HUM then
  818. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  819. if TORSO then
  820. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  821. local GHOST = GHOSTBASE:Clone()
  822. GHOST.Parent = Effects
  823. GHOST.Torso.CFrame = TORSO.CFrame
  824. table.insert(GHOSTS,GHOST)
  825. CHILD:remove()
  826. end
  827. end
  828. end
  829. end
  830. end
  831. end
  832.  
  833. --//=================================\\
  834. --|| ATTACK FUNCTIONS AND STUFF
  835. --\\=================================//
  836.  
  837. CFuncs = {
  838. ["Part"] = {
  839. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  840. local Part = Create("Part"){
  841. Parent = Parent,
  842. Reflectance = Reflectance,
  843. Transparency = Transparency,
  844. CanCollide = false,
  845. Locked = true,
  846. BrickColor = BrickColor.new(tostring(BColor)),
  847. Name = Name,
  848. Size = Size,
  849. Material = Material,
  850. }
  851. RemoveOutlines(Part)
  852. return Part
  853. end;
  854. };
  855. function hedshoot()
  856. attack = true
  857.  
  858. local GGyro = Instance.new("BodyPosition")
  859. local WhoTfDidYouGrab = nil
  860. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 10)) do
  861. if v:FindFirstChild('Torso') then
  862. Grabbed = true
  863. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=260430060", v.Torso, 1, .8)
  864. WhoTfDidYouGrab = v
  865. end
  866. end
  867. Effects.Wave.Create(BrickColor.new("White"), RootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(90)), .5, .5, .5, 1, .2, 1, 0.07)
  868. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=200632211", RootPart, 1.5, .5)
  869. for i = 0, 1, 0.1 do
  870. swait()
  871. if Grabbed == true then
  872. WhoTfDidYouGrab.Humanoid.PlatformStand = true
  873. GGyro.position = Partss.Position
  874. GGyro.Parent = WhoTfDidYouGrab.Head
  875. WhoTfDidYouGrab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(90),0)
  876. end
  877. PlayAnimationFromTable({
  878. CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  879. CFrame.new(0.0029296279, 1.47845411, -0.120581962, 0.0750327855, 0.428286105, -0.900522709, 0.166523039, 0.885005891, 0.434781253, 0.983178616, -0.18258062, -0.00491504371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  880. CFrame.new(1.96751118, 0.433084905, -0.278422326, 0.305184275, -0.951701581, -0.033564698, 0.012345003, 0.0391969904, -0.999155343, 0.952213347, 0.304512084, 0.0237110667) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  881. CFrame.new(-1.66092706, 0.266950369, 2.51774691e-06, 0.876968205, 0.480548859, -2.5331974e-06, -0.480548888, 0.876968026, -7.03267551e-06, -1.13248825e-06, 7.38352537e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  882. CFrame.new(0.146832585, -1.7542398, 0.105335698, 0.266426086, 0.491796821, -0.828946948, 0.0135936746, 0.8580302, 0.513420045, 0.96375972, -0.148056909, 0.221916124) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  883. CFrame.new(-1.09110987, -1.74702656, 0.342675447, 0.765578806, 0.632523358, 0.117487431, -0.642276406, 0.740949869, 0.196148768, 0.0370163769, -0.225626737, 0.973510265) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  884. }, .3, false)
  885. RootPart.Velocity = RootPart.CFrame.lookVector * 90
  886.  
  887. moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  888. end
  889. if Grabbed == true then
  890. Humanoid.WalkSpeed = 0
  891. for i = 0, 2, 0.1 do
  892. swait()
  893. if Grabbed == true then
  894. WhoTfDidYouGrab.Humanoid.PlatformStand = true
  895. GGyro.position = Partss.Position
  896. GGyro.Parent = WhoTfDidYouGrab.Head
  897. WhoTfDidYouGrab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(90),0)
  898. end
  899. PlayAnimationFromTable({
  900. CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  901. CFrame.new(0.0029296279, 1.47845411, -0.120581962, 0.0750327855, 0.428286105, -0.900522709, 0.166523039, 0.885005891, 0.434781253, 0.983178616, -0.18258062, -0.00491504371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  902. CFrame.new(1.96751118, 0.433084905, -0.278422326, 0.305184275, -0.951701581, -0.033564698, 0.012345003, 0.0391969904, -0.999155343, 0.952213347, 0.304512084, 0.0237110667) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  903. CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  904. CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  905. CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  906. }, .3, false)
  907. moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  908. end
  909.  
  910.  
  911. for i = 0, 2, 0.1 do
  912. swait()
  913. if Grabbed == true then
  914. WhoTfDidYouGrab.Humanoid.PlatformStand = true
  915. GGyro.position = Partss.Position
  916. GGyro.Parent = WhoTfDidYouGrab.Head
  917. WhoTfDidYouGrab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(90),0)
  918. end
  919. PlayAnimationFromTable({
  920. CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  921. CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  922. CFrame.new(1.94523025, 1.02494264, -0.272673488, 0.287940055, -0.795002162, 0.533912063, 0.0434400104, -0.546107173, -0.836588264, 0.956662774, 0.264080375, -0.122711219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  923. CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  924. CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  925. CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  926. }, .1, false)
  927. moter.C0 = clerp(moter.C0, CFrame.new(0.0111939851, -1.63769794, -0.31875661, -0.0172049776, -1.39437616e-05, -0.999852121, 0.999852002, 5.96046448e-06, -0.0172049757, 6.16908073e-06, -1, 1.38394535e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  928. end
  929. Effects.Block.Create(BrickColor.new("New Yeller"), Partss.CFrame, 2, 2, 2, 0.5, 0.5, 0.5, 0.05)
  930. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=136523485", Character, 1, .5)
  931. dmg(WhoTfDidYouGrab)
  932. WhoTfDidYouGrab.Head.Velocity = WhoTfDidYouGrab.Head.CFrame.lookVector * -60
  933.  
  934. for i = 0, 1, 0.1 do
  935. swait()
  936. PlayAnimationFromTable({
  937. CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  938. CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  939. CFrame.new(1.95760894, 1.20200562, -0.275867403, 0.278526366, -0.669772983, 0.688351095, 0.0506580099, -0.705469668, -0.706927419, 0.959091723, 0.23176837, -0.162562534) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  940. CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  941. CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  942. CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  943. }, .3, false)
  944. moter.C0 = clerp(moter.C0, CFrame.new(0.0111932531, -1.63769579, -0.318755656, -0.0172050633, -1.61863863e-05, -0.999852121, 0.999851882, 5.15580177e-06, -0.017205067, 5.453825e-06, -1, 1.60960481e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  945. end
  946. for i = 0, 2.5, 0.1 do
  947. swait()
  948. PlayAnimationFromTable({
  949. CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  950. CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  951. CFrame.new(1.94523025, 1.02494264, -0.272673488, 0.287940055, -0.795002162, 0.533912063, 0.0434400104, -0.546107173, -0.836588264, 0.956662774, 0.264080375, -0.122711219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  952. CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  953. CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  954. CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  955. }, .1, false)
  956. moter.C0 = clerp(moter.C0, CFrame.new(0.0111939851, -1.63769794, -0.31875661, -0.0172049776, -1.39437616e-05, -0.999852121, 0.999852002, 5.96046448e-06, -0.0172049757, 6.16908073e-06, -1, 1.38394535e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  957. end
  958. end
  959. GGyro.Parent = nil
  960. attack = false
  961. Grabbed = false
  962. Humanoid.WalkSpeed = 8
  963. end
  964.  
  965. function Shell()
  966. ATTACK = true
  967. Rooted = false
  968. local GYRO = IT("BodyGyro",RootPart)
  969. GYRO.D = 750
  970. GYRO.P = 20000
  971. GYRO.MaxTorque = VT(0,40000000,0)
  972. for i=0, 1, 0.1 / Animation_Speed do
  973. Swait()
  974. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  975. 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)
  976. 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)
  977. 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)
  978. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  979. 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)
  980. 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)
  981. end
  982. GYRO:remove()
  983. CreateSound(696483710, Gun, 5, 1, false)
  984. local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p)
  985. SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS)
  986. 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})
  987. for i=0, 0.3, 0.1 / Animation_Speed do
  988. Swait()
  989. 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)
  990. 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)
  991. 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)
  992. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  993. 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)
  994. 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)
  995. end
  996. ATTACK = false
  997. Rooted = false
  998. end
  999.  
  1000. function Taunt()
  1001. ATTACK = true
  1002. local LAUGH = nil
  1003. coroutine.resume(coroutine.create(function()
  1004. repeat
  1005. Swait()
  1006. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1007. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1008. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1009. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1010. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1011. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1012. until LAUGH ~= nil
  1013. repeat
  1014. Swait()
  1015. LAUGH.Parent = Head
  1016. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1017. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1018. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1019. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1020. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1021. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1022. until LAUGH.Playing == false
  1023. ATTACK = false
  1024. end))
  1025. wait(0.1)
  1026. sick:Stop()
  1027. LAUGH = CreateSound(184605339, Head, 10, 1, false)
  1028. sick:Resume()
  1029. end
  1030.  
  1031. function SinfulShell()
  1032. ATTACK = true
  1033. Rooted = false
  1034. local GYRO = IT("BodyGyro",RootPart)
  1035. GYRO.D = 750
  1036. GYRO.P = 20000
  1037. GYRO.MaxTorque = VT(0,40000000,0)
  1038. for i=0, 1, 0.1 / Animation_Speed do
  1039. Swait()
  1040. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1041. 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)
  1042. 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)
  1043. 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)
  1044. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1045. 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)
  1046. 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)
  1047. end
  1048. GYRO:remove()
  1049. CreateSound(696483710, Gun, 5, 1, false)
  1050. 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})
  1051. coroutine.resume(coroutine.create(function()
  1052. local Bullet = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Lily White", "Sinful bullet", VT(0,0,0))
  1053. CreateMesh("SpecialMesh", Bullet, "FileMesh", "94295100", "", VT(6, 6, 7), VT(0,0, 0))
  1054. Bullet.CFrame = Gun.CFrame*CF(1.5,0.5,0)
  1055. local AIMPOINT = Mouse.Hit.p
  1056. local STARTPOS = Gun.CFrame*CF(1.5,0.5,0).p
  1057. local VECTOR = CF(STARTPOS,AIMPOINT)
  1058. local IMPACTED = false
  1059. CreateSound(1393698948, Bullet, 10, 1, true)
  1060. for E = 1, 50 do
  1061. if IMPACTED == true then
  1062. break
  1063. end
  1064. local TARGETPOINT = VECTOR*CF(0,0,-E*5)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,1,0).p
  1065. Bullet.CFrame = CF(Bullet.Position,TARGETPOINT)
  1066. for i = 1, 5 do
  1067. Swait()
  1068. 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})
  1069. Bullet.CFrame = Bullet.CFrame*CF(0,0,-1)
  1070. local AIMHIT,AIMPOS,NORMAL = Raycast(Bullet.Position,Bullet.CFrame.lookVector,1.3,Character)
  1071. if AIMHIT ~= nil then
  1072. IMPACTED = true
  1073. break
  1074. end
  1075. end
  1076. end
  1077. 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})
  1078. for i = 1, 7 do
  1079. 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})
  1080. end
  1081. Ghostify(Bullet.Position,10)
  1082. Bullet:remove()
  1083. end))
  1084. for i=0, 0.3, 0.1 / Animation_Speed do
  1085. Swait()
  1086. 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)
  1087. 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)
  1088. 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)
  1089. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1090. 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)
  1091. 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)
  1092. end
  1093. ATTACK = false
  1094. Rooted = false
  1095. end
  1096.  
  1097. --//=================================\\
  1098. --|| ASSIGN THINGS TO KEYS
  1099. --\\=================================//
  1100.  
  1101. function MouseDown(Mouse)
  1102. if ATTACK == false then
  1103. end
  1104. end
  1105.  
  1106. function MouseUp(Mouse)
  1107. HOLD = false
  1108. end
  1109.  
  1110. function KeyDown(Key)
  1111. KEYHOLD = true
  1112. if Key == "z" and ATTACK == false then
  1113. Shell()
  1114. end
  1115.  
  1116. if Key == "r" and ATTACK == false then
  1117. hedshoot()
  1118. end
  1119.  
  1120. if Key == "t" and ATTACK == false then
  1121. Taunt()
  1122. end
  1123.  
  1124. if Key == "x" and ATTACK == false then
  1125. SinfulShell()
  1126. end
  1127. end
  1128.  
  1129. function KeyUp(Key)
  1130. KEYHOLD = false
  1131. end
  1132.  
  1133. Mouse.Button1Down:connect(function(NEWKEY)
  1134. MouseDown(NEWKEY)
  1135. end)
  1136. Mouse.Button1Up:connect(function(NEWKEY)
  1137. MouseUp(NEWKEY)
  1138. end)
  1139. Mouse.KeyDown:connect(function(NEWKEY)
  1140. KeyDown(NEWKEY)
  1141. end)
  1142. Mouse.KeyUp:connect(function(NEWKEY)
  1143. KeyUp(NEWKEY)
  1144. end)
  1145.  
  1146. --//=================================\\
  1147. --\\=================================//
  1148.  
  1149.  
  1150. function unanchor()
  1151. if UNANCHOR == true then
  1152. g = Character:GetChildren()
  1153. for i = 1, #g do
  1154. if g[i].ClassName == "Part" then
  1155. g[i].Anchored = false
  1156. end
  1157. end
  1158. end
  1159. end
  1160.  
  1161.  
  1162. --//=================================\\
  1163. --|| WRAP THE WHOLE SCRIPT UP
  1164. --\\=================================//
  1165.  
  1166. Humanoid.Changed:connect(function(Jump)
  1167. if Jump == "Jump" and (Disable_Jump == true) then
  1168. Humanoid.Jump = false
  1169. end
  1170. end)
  1171.  
  1172. local BLINKLOOP = 0
  1173.  
  1174. while true do
  1175. Swait()
  1176. script.Parent = WEAPONGUI
  1177. ANIMATE.Parent = nil
  1178. Humanoid.Parent = Character
  1179. if Humanoid then
  1180. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1181. IDLEANIMATION:Play()
  1182. end
  1183. SINE = SINE + CHANGE
  1184. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1185. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1186. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1187. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1188. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1189. 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)
  1190. 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)
  1191. 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)
  1192. 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)
  1193. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1194. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1195. 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)
  1196. 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)
  1197. 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)
  1198. end
  1199. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1200. ANIM = "Jump"
  1201. if ATTACK == false then
  1202. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1203. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1204. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1205. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1206. 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)
  1207. 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)
  1208. end
  1209. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1210. ANIM = "Fall"
  1211. if ATTACK == false then
  1212. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1213. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1214. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1215. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1216. 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)
  1217. 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)
  1218. end
  1219. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1220. ANIM = "Idle"
  1221. if ATTACK == false then
  1222. 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)
  1223. 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)
  1224. 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)
  1225. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1226. 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)
  1227. 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)
  1228. end
  1229. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1230. ANIM = "Walk"
  1231. if ATTACK == false then
  1232. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1233. 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)
  1234. 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)
  1235. 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)
  1236. 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)
  1237. 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)
  1238. end
  1239. end
  1240. unanchor()
  1241. Humanoid.MaxHealth = "inf"
  1242. Humanoid.Health = "inf"
  1243. if Rooted == false then
  1244. Disable_Jump = false
  1245. Humanoid.WalkSpeed = Speed
  1246. elseif Rooted == true then
  1247. Disable_Jump = true
  1248. Humanoid.WalkSpeed = 0
  1249. end
  1250. sick.SoundId = "rbxassetid://303490532"
  1251. sick.Looped = true
  1252. sick.Pitch = 0.7
  1253. sick.Volume = 3
  1254. sick.Playing = true
  1255. sick.Parent = Torso
  1256. if Head:FindFirstChild("face") then
  1257. Head.face.Texture = "rbxassetid://0"
  1258. end
  1259. BLINKLOOP = BLINKLOOP + 1
  1260. if BLINKLOOP >=650 then
  1261. BLINKLOOP = 0
  1262. Blink()
  1263. end
  1264. if #GHOSTS>0 then
  1265. for e=1,#GHOSTS do
  1266. if GHOSTS[e]~=nil then
  1267. local Thing=GHOSTS[e]
  1268. if Thing~=nil then
  1269. if Thing:FindFirstChild("Head") then
  1270. if Thing:FindFirstChild("Head"):FindFirstChild("face") then
  1271. Thing:FindFirstChild("Head").face.Texture = "rbxassetid://479674570"
  1272. end
  1273. if Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound") then
  1274. Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound"):remove()
  1275. end
  1276. end
  1277. local TORSO = Thing:FindFirstChild("Torso")
  1278. if TORSO then
  1279. TORSO.Anchored = false
  1280. local ROOT = Thing.HumanoidRootPart
  1281. local RootJoint1 = ROOT:FindFirstChild("RootJoint")
  1282. local Neck1 = TORSO:FindFirstChild("Neck")
  1283. local RightShoulder1 = TORSO:FindFirstChild("Right Shoulder")
  1284. local LeftShoulder1 = TORSO:FindFirstChild("Left Shoulder")
  1285. local RightHip1 = TORSO:FindFirstChild("Right Hip")
  1286. local LeftHip1 = TORSO:FindFirstChild("Left Hip")
  1287. if ROOT and RootJoint1 then
  1288. local VELOCITY = (ROOT.Velocity * VT(1, 0, 1)).magnitude
  1289. if VELOCITY < 1 then
  1290. 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)))
  1291. 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)))
  1292. 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
  1293. 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
  1294. 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))
  1295. 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))
  1296. elseif VELOCITY > 1 then
  1297. 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)))
  1298. 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)))
  1299. 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
  1300. 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
  1301. 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))
  1302. 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))
  1303. end
  1304. end
  1305. local Human = Thing.Humanoid
  1306. if Human then
  1307. Human.HipHeight = 0.3
  1308. for _, c in pairs(Thing:GetChildren()) do
  1309. if c.ClassName == "Part" and c.Transparency < 1 then
  1310. c.Color = C3(0,0,0)
  1311. c.Transparency = 0.65 + 0.15 * COS(SINE / 25)
  1312. elseif c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
  1313. c:remove()
  1314. end
  1315. end
  1316. if Human then
  1317. local IDLEANIMATION = Human:LoadAnimation(ROBLOXIDLEANIMATION)
  1318. IDLEANIMATION:Play()
  1319. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.6,0.1,1)/2,false)
  1320. MakeForm(EYE,"Ball")
  1321. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(15)), CF(0, 0, 0.4))
  1322. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.6,0.1,1)/2,false)
  1323. MakeForm(EYE,"Ball")
  1324. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  1325. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.1,1,1)/2,false)
  1326. MakeForm(EYE,"Ball")
  1327. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1328. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.1,1,1)/2,false)
  1329. MakeForm(EYE,"Ball")
  1330. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1331. end
  1332. local list = game.Workspace:children()
  1333. local torso = nil
  1334. local dist = 50
  1335. local temp = nil
  1336. local human = nil
  1337. local temp2 = nil
  1338. local OwnerInDanger = false
  1339. for x = 1, #list do
  1340. temp2 = list[x]
  1341. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  1342. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1343. human = temp2:findFirstChildOfClass("Humanoid")
  1344. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1345. if (temp.Position - Torso.Position).magnitude < 15 then
  1346. OwnerInDanger = true
  1347. newdist = (temp.Position - TORSO.Position).magnitude
  1348. dist = (Torso.Position - temp.Position).magnitude
  1349. Human:MoveTo(temp.Position)
  1350. torso = temp
  1351. if newdist < 7 then
  1352. torso.CFrame = CF(torso.Position,TORSO.Position)*CF(0,0,5)
  1353. CreateSound(814168787, temp, 1, 2, false)
  1354. ApplyDamage(human,MRANDOM(15,35),temp)
  1355. 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})
  1356. 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})
  1357. end
  1358. end
  1359. end
  1360. end
  1361. end
  1362. if OwnerInDanger == false then
  1363. for x = 1, #list do
  1364. temp2 = list[x]
  1365. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then
  1366. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1367. human = temp2:findFirstChildOfClass("Humanoid")
  1368. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1369. if (temp.Position - Torso.Position).magnitude < dist then
  1370. newdist = (temp.Position - TORSO.Position).magnitude
  1371. Human:MoveTo(temp.Position)
  1372. torso = temp
  1373. if newdist < 15 then
  1374. if MRANDOM(1,35) == 1 then
  1375. CreateSound(438665935, temp, 1, 3, false)
  1376. ApplyDamage(human,MRANDOM(2,20),temp)
  1377. 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})
  1378. end
  1379. end
  1380. end
  1381. end
  1382. end
  1383. end
  1384. end
  1385. if torso == nil then
  1386. Human.WalkSpeed = Speed -0.2
  1387. if (Torso.Position - TORSO.Position).magnitude < 12 and (Torso.Position - TORSO.Position).magnitude >= 11 then
  1388. Human:MoveTo(TORSO.Position)
  1389. elseif (Torso.Position - TORSO.Position).magnitude > 15 then
  1390. Human:MoveTo(Torso.Position)
  1391. elseif (Torso.Position - TORSO.Position).magnitude < 11 then
  1392. Human:MoveTo(CF(Torso.Position,TORSO.Position)*CF(0,0,-5).p)
  1393. end
  1394. else
  1395. if OwnerInDanger == false then
  1396. Human.WalkSpeed = Speed*1.2
  1397. else
  1398. Human.WalkSpeed = Speed*5
  1399. end
  1400. end
  1401. if Human.Health == 0 then
  1402. Thing:remove()
  1403. table.remove(GHOSTS,e)
  1404. else
  1405. Human.Health = Human.Health + 0.5
  1406. end
  1407. else
  1408. Thing:remove()
  1409. table.remove(GHOSTS,e)
  1410. end
  1411. else
  1412. Thing:remove()
  1413. table.remove(GHOSTS,e)
  1414. end
  1415. end
  1416. end
  1417. end
  1418. end
  1419. refit()
  1420. end
  1421.  
  1422. --//=================================\\
  1423. --\\=================================//
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429. --//====================================================\\--
  1430. --|| END OF SCRIPT
  1431. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement