Advertisement
Cute_Sylveon

Untitled

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