Advertisement
Guest User

kirb

a guest
May 26th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.13 KB | None | 0 0
  1. wait(0.2)
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local mouse = p:GetMouse()
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local hum = char.Humanoid
  12. local cam = game.Workspace.CurrentCamera
  13. local root = char.HumanoidRootPart
  14. local rj = root.RootJoint
  15. local deb = false
  16. local shot = 0
  17. local imdead = 0
  18. local stanceToggle = "Idle1"
  19. local l = game:GetService("Lighting")
  20. local rs = game:GetService("RunService").RenderStepped
  21. local hb = game:GetService("RunService").Heartbeat
  22. local Stepped = game:GetService("RunService").Stepped
  23. local weld = Instance.new("Weld",torso)
  24. weld.Part0 = torso
  25. local nom = Instance.new("Sound",torso)
  26. nom.SoundId = "rbxassetid://261732529"
  27. nom.Volume = 1000
  28. local spit = Instance.new("Sound",torso)
  29. spit.SoundId = "rbxassetid://1505749678"
  30. spit.Volume = 1000
  31. local gethit = Instance.new("Sound",torso)
  32. gethit.SoundId = "rbxassetid://1016613877"
  33. gethit.Volume = 1000
  34. local hi = Instance.new("Sound",torso)
  35. hi.SoundId = "rbxassetid://599688682"
  36. hi.Volume = 1000
  37. local flying = true
  38. local deb = true
  39. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  40. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  41. local maxspeed = 50
  42. local speed = 0
  43.  
  44. hum.WalkSpeed = 100
  45. hum.MaxHealth = 5e600
  46. hum.Health = 5e600
  47. field = Instance.new("ForceField",char)
  48. field.Visible = false
  49.  
  50. local duck = Instance.new("Part",torso)
  51. duck.Anchored = true
  52. duck.CanCollide = false
  53. duck.Size = Vector3.new(3,2,6)
  54. duck.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  55. weld.Part1 = duck
  56. weld.C1 = CFrame.new(0,0.1,0) * CFrame.Angles(0,math.rad(180),0)
  57. duck.Anchored = false
  58. local Duckymesh = Instance.new("SpecialMesh",duck)
  59. Duckymesh.MeshType = Enum.MeshType.FileMesh
  60. Duckymesh.Scale = Vector3.new(0.03,0.03,0.03)
  61. Duckymesh.MeshId = "rbxassetid://430307590"
  62. Duckymesh.TextureId = "rbxassetid://430307591"
  63.  
  64. for i,v in pairs(char:GetChildren()) do
  65. if v:IsA("Part") then
  66. v.Transparency = 1;
  67. elseif v:IsA("Hat") then
  68. v:Destroy()
  69. elseif v:IsA("Model") then
  70. v:Destroy()
  71. elseif v:IsA("Hair") then
  72. v:Destroy()
  73. elseif v:IsA("Accessory") then
  74. v:Destroy()
  75. end
  76. end
  77. char.Head.face.Texture = "rbxassetid://0"
  78.  
  79. CV="White"
  80.  
  81. p = game.Players.LocalPlayer
  82. char = p.Character
  83. local txt = Instance.new("BillboardGui", char)
  84. txt.Adornee = char .Head
  85. txt.Name = "_status"
  86. txt.Size = UDim2.new(2, 0, 1.2, 0)
  87. txt.StudsOffset = Vector3.new(-9, 8, 0)
  88. local text = Instance.new("TextLabel", txt)
  89. text.Size = UDim2.new(10, 0, 7, 0)
  90. text.FontSize = "Size24"
  91. text.TextScaled = true
  92. text.TextTransparency = 0
  93. text.BackgroundTransparency = 1
  94. text.TextTransparency = 0
  95. text.TextStrokeTransparency = 1
  96. text.Font = "Arcade"
  97. text.TextStrokeColor3 = Color3.fromRGB(255,0,0)
  98.  
  99. v=Instance.new("Part")
  100. v.Name = "ColorBrick"
  101. v.Parent=p.Character
  102. v.FormFactor="Symmetric"
  103. v.Anchored=true
  104. v.CanCollide=false
  105. v.BottomSurface="Smooth"
  106. v.TopSurface="Smooth"
  107. v.Size=Vector3.new(10,5,3)
  108. v.Transparency=1
  109. v.CFrame=char.Torso.CFrame
  110. v.BrickColor=BrickColor.new(CV)
  111. v.Transparency=1
  112. text.TextColor3 = Color3.fromRGB(255,192,203)
  113. v.Shape="Block"
  114. text.Text = "Kirby"
  115.  
  116. --//====================================================\\--
  117. --|| CREATED BY SHACKLUSTER
  118. --\\====================================================//--
  119.  
  120. Player = game:GetService("Players").LocalPlayer
  121. PlayerGui = Player.PlayerGui
  122. Cam = workspace.CurrentCamera
  123. Backpack = Player.Backpack
  124. Character = Player.Character
  125. Humanoid = Character.Humanoid
  126. Mouse = Player:GetMouse()
  127. RootPart = Character["HumanoidRootPart"]
  128. Torso = Character["Torso"]
  129. Head = Character["Head"]
  130. RightArm = Character["Right Arm"]
  131. LeftArm = Character["Left Arm"]
  132. RightLeg = Character["Right Leg"]
  133. LeftLeg = Character["Left Leg"]
  134. RootJoint = RootPart["RootJoint"]
  135. Neck = Torso["Neck"]
  136. RightShoulder = Torso["Right Shoulder"]
  137. LeftShoulder = Torso["Left Shoulder"]
  138. RightHip = Torso["Right Hip"]
  139. LeftHip = Torso["Left Hip"]
  140. local sick = Instance.new("Sound",Torso)
  141. sick.SoundId = "rbxassetid://291753081"
  142. sick.Looped = true
  143. sick.Volume = 1000
  144. local succing = {}
  145.  
  146. IT = Instance.new
  147. CF = CFrame.new
  148. VT = Vector3.new
  149. RAD = math.rad
  150. C3 = Color3.new
  151. UD2 = UDim2.new
  152. BRICKC = BrickColor.new
  153. ANGLES = CFrame.Angles
  154. EULER = CFrame.fromEulerAnglesXYZ
  155. COS = math.cos
  156. ACOS = math.acos
  157. SIN = math.sin
  158. ASIN = math.asin
  159. ABS = math.abs
  160. MRANDOM = math.random
  161. FLOOR = math.floor
  162.  
  163. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  164. local NEWMESH = IT(MESH)
  165. if MESH == "SpecialMesh" then
  166. NEWMESH.MeshType = MESHTYPE
  167. if MESHID ~= "nil" and MESHID ~= "" then
  168. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  169. end
  170. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  171. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  172. end
  173. end
  174. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  175. NEWMESH.Scale = SCALE
  176. NEWMESH.Parent = PARENT
  177. return NEWMESH
  178. end
  179.  
  180. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  181. local NEWPART = IT("Part")
  182. NEWPART.formFactor = FORMFACTOR
  183. NEWPART.Reflectance = REFLECTANCE
  184. NEWPART.Transparency = TRANSPARENCY
  185. NEWPART.CanCollide = false
  186. NEWPART.Locked = true
  187. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  188. NEWPART.Name = NAME
  189. NEWPART.Size = SIZE
  190. NEWPART.Position = Torso.Position
  191. NEWPART.Material = MATERIAL
  192. NEWPART:BreakJoints()
  193. NEWPART.Parent = PARENT
  194. return NEWPART
  195. end
  196.  
  197.  
  198. --//=================================\\
  199. --|| CUSTOMIZATION
  200. --\\=================================//
  201.  
  202. Class_Name = "Lord Tut tut"
  203. Weapon_Name = "Add-ons"
  204.  
  205. Custom_Colors = {
  206. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  207. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  208.  
  209. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  210. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  211. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  212. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  213. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  214.  
  215. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  216. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  217. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  218. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  219. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  220. }
  221.  
  222.  
  223. Player_Size = 1 --Size of the player.
  224. Animation_Speed = 3
  225. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  226.  
  227. local Speed = 16
  228. local Effects2 = {}
  229.  
  230. --//=================================\\
  231. --|| END OF CUSTOMIZATION
  232. --\\=================================//
  233.  
  234. local function weldBetween(a, b)
  235. local weldd = Instance.new("ManualWeld")
  236. weldd.Part0 = a
  237. weldd.Part1 = b
  238. weldd.C0 = CFrame.new()
  239. weldd.C1 = b.CFrame:inverse() * a.CFrame
  240. weldd.Parent = a
  241. return weldd
  242. end
  243.  
  244. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  245. local acs = Instance.new("Part")
  246. acs.CanCollide = false
  247. acs.Anchored = false
  248. acs.Size = Vector3.new(0,0,0)
  249. acs.CFrame = attachmentpart.CFrame
  250. acs.Parent = Character
  251. acs.BrickColor = color
  252. local meshs = Instance.new("SpecialMesh")
  253. meshs.MeshId = mesh
  254. meshs.TextureId = texture
  255. meshs.Parent = acs
  256. meshs.Scale = scale
  257. meshs.Offset = offset
  258. weldBetween(attachmentpart,acs)
  259. end
  260.  
  261. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  262. if TYPE == "Gem" then
  263. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  264. acs.Anchored = false
  265. acs.CanCollide = false
  266. acs.CFrame = PART.CFrame
  267. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  268. weldBetween(PART,acs)
  269. elseif TYPE == "Skull" then
  270. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  271. acs.Anchored = false
  272. acs.CanCollide = false
  273. acs.CFrame = PART.CFrame
  274. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  275. weldBetween(PART,acs)
  276. elseif TYPE == "Eye" then
  277. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  278. acs.Anchored = false
  279. acs.CanCollide = false
  280. acs.CFrame = PART.CFrame
  281. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  282. weldBetween(PART,acs)
  283. end
  284. end
  285.  
  286. --//=================================\\
  287. --|| USEFUL VALUES
  288. --\\=================================//
  289.  
  290. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  291. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  292. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  293. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  294. local CO1 = 0
  295. local CO2 = 0
  296. local CO3 = 0
  297. local CO4 = 0
  298. local CHANGEDEFENSE = 0
  299. local CHANGEDAMAGE = 0
  300. local CHANGEMOVEMENT = 0
  301. local ANIM = "Idle"
  302. local ATTACK = false
  303. local EQUIPPED = false
  304. local HOLD = false
  305. local COMBO = 1
  306. local LASTPOINT = nil
  307. local BLCF = nil
  308. local SCFR = nil
  309. local STAGGERHITANIM = false
  310. local STAGGERANIM = false
  311. local STUNANIM = false
  312. local CRITCHANCENUMBER = 0
  313. local IDLENUMBER = 0
  314. local DONUMBER = 0
  315. local HANDIDLE = false
  316. local SINE = 0
  317. local CHANGE = 2 / Animation_Speed
  318. local WALKINGANIM = false
  319. local WALK = 0
  320. local DISABLEJUMPING = false
  321. local HASBEENBLOCKED = false
  322. local STUNDELAYNUMBER = 0
  323. local MANADELAYNUMBER = 0
  324. local SECONDARYMANADELAYNUMBER = 0
  325. local ROBLOXIDLEANIMATION = IT("Animation")
  326. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  327. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  328. --ROBLOXIDLEANIMATION.Parent = Humanoid
  329. local WEAPONGUI = IT("ScreenGui", nil)
  330. WEAPONGUI.Name = "Weapon GUI"
  331. local WEAPONTOOL = IT("HopperBin", nil)
  332. WEAPONTOOL.Name = Weapon_Name
  333. local Weapon = IT("Model")
  334. Weapon.Name = Weapon_Name
  335. local Effects = IT("Folder", Weapon)
  336. Effects.Name = "Effects"
  337. local ANIMATOR = Humanoid.Animator
  338. local ANIMATE = Character.Animate
  339. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  340. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  341. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  342. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  343. local UNANCHOR = true
  344. local MAGICPARTICLE = "655109389"
  345.  
  346. --//=================================\\
  347. --\\=================================//
  348.  
  349.  
  350. --//=================================\\
  351. --|| DEBUFFS / BUFFS
  352. --\\=================================//
  353.  
  354. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  355. DEFENSECHANGE1.Name = "ChangeDefense"
  356. DEFENSECHANGE1.Value = 0
  357.  
  358. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  359. MOVEMENTCHANGE1.Name = "ChangeMovement"
  360. MOVEMENTCHANGE1.Value = 0
  361.  
  362. --//=================================\\
  363. --\\=================================//
  364.  
  365.  
  366.  
  367.  
  368.  
  369. --//=================================\\
  370. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  371. --\\=================================//
  372.  
  373. ArtificialHB = Instance.new("BindableEvent", script)
  374. ArtificialHB.Name = "ArtificialHB"
  375.  
  376. script:WaitForChild("ArtificialHB")
  377.  
  378. frame = Frame_Speed
  379. tf = 0
  380. allowframeloss = false
  381. tossremainder = false
  382. lastframe = tick()
  383. script.ArtificialHB:Fire()
  384.  
  385. game:GetService("RunService").Heartbeat:connect(function(s, p)
  386. tf = tf + s
  387. if tf >= frame then
  388. if allowframeloss then
  389. script.ArtificialHB:Fire()
  390. lastframe = tick()
  391. else
  392. for i = 1, math.floor(tf / frame) do
  393. script.ArtificialHB:Fire()
  394. end
  395. lastframe = tick()
  396. end
  397. if tossremainder then
  398. tf = 0
  399. else
  400. tf = tf - frame * math.floor(tf / frame)
  401. end
  402. end
  403. end)
  404.  
  405. --//=================================\\
  406. --\\=================================//
  407.  
  408.  
  409.  
  410.  
  411.  
  412. --//=================================\\
  413. --|| SOME FUNCTIONS
  414. --\\=================================//
  415.  
  416. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  417. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  418. end
  419.  
  420. function PositiveAngle(NUMBER)
  421. if NUMBER >= 0 then
  422. NUMBER = 0
  423. end
  424. return NUMBER
  425. end
  426.  
  427. function NegativeAngle(NUMBER)
  428. if NUMBER <= 0 then
  429. NUMBER = 0
  430. end
  431. return NUMBER
  432. end
  433.  
  434. function Swait(NUMBER)
  435. if NUMBER == 0 or NUMBER == nil then
  436. ArtificialHB.Event:wait()
  437. else
  438. for i = 1, NUMBER do
  439. ArtificialHB.Event:wait()
  440. end
  441. end
  442. end
  443.  
  444. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  445. local label = IT("TextLabel")
  446. label.BackgroundTransparency = 1
  447. label.Size = UD2(1, 0, 1, 0)
  448. label.Position = UD2(0, 0, 0, 0)
  449. label.TextColor3 = C3(255, 255, 255)
  450. label.TextStrokeTransparency = STROKETRANSPARENCY
  451. label.TextTransparency = TRANSPARENCY
  452. label.FontSize = TEXTFONTSIZE
  453. label.Font = TEXTFONT
  454. label.BorderSizePixel = BORDERSIZEPIXEL
  455. label.TextScaled = true
  456. label.Text = TEXT
  457. label.Name = NAME
  458. label.Parent = PARENT
  459. return label
  460. end
  461.  
  462. function NoOutlines(PART)
  463. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  464. end
  465.  
  466.  
  467. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  468. local NEWWELD = IT(TYPE)
  469. NEWWELD.Part0 = PART0
  470. NEWWELD.Part1 = PART1
  471. NEWWELD.C0 = C0
  472. NEWWELD.C1 = C1
  473. NEWWELD.Parent = PARENT
  474. return NEWWELD
  475. end
  476.  
  477. function CreateSound(ID, PARENT, VOLUME, PITCH)
  478. local NEWSOUND = nil
  479. coroutine.resume(coroutine.create(function()
  480. NEWSOUND = IT("Sound", PARENT)
  481. NEWSOUND.Volume = VOLUME
  482. NEWSOUND.Pitch = PITCH
  483. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  484. Swait()
  485. NEWSOUND:play()
  486. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  487. end))
  488. return NEWSOUND
  489. end
  490.  
  491. --//=================================\\
  492. --\\=================================//
  493.  
  494.  
  495. --//=================================\\
  496. --|| WEAPON CREATION
  497. --\\=================================//
  498.  
  499. if Player_Size ~= 1 then
  500. for _, v in pairs (Weapon:GetChildren()) do
  501. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  502. local p1 = v.Part1
  503. v.Part1 = nil
  504. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  505. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  506. v.Part1 = p1
  507. elseif v.ClassName == "Part" then
  508. for _, b in pairs (v:GetChildren()) do
  509. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  510. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  511. end
  512. end
  513. end
  514. end
  515. end
  516.  
  517. for _, c in pairs(Weapon:GetChildren()) do
  518. if c.ClassName == "Part" then
  519. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  520. end
  521. end
  522.  
  523. Weapon.Parent = Character
  524.  
  525. Humanoid.Died:connect(function()
  526. ATTACK = true
  527. end)
  528.  
  529. print(Class_Name.." loaded.")
  530.  
  531. --//=================================\\
  532. --\\=================================//
  533.  
  534.  
  535. local backpack = IT("Part",Weapon)
  536. backpack.Size = VT(0.15,0.15,0.15)
  537. local mesh = IT("SpecialMesh",backpack)
  538. mesh.MeshId = "rbxassetid://0"
  539. mesh.TextureId = "http://www.roblox.com/asset/?id=0"
  540. backpack.CFrame = Torso.CFrame * CF(0,0.2,1)
  541. backpack.BrickColor = BRICKC("Black")
  542. weldBetween(Torso,backpack)
  543.  
  544. local hose = IT("Part",Weapon)
  545. hose.Size = VT(0.15,0.15,0.15)
  546. local mesh = IT("SpecialMesh",hose)
  547. mesh.MeshId = "http://www.roblox.com/asset/?id=0"
  548. mesh.TextureId = "http://www.roblox.com/asset/?id=0"
  549. mesh.Scale = VT(2,2,2)
  550. mesh.Offset = VT(0, -0.4, -0.7)
  551. hose.CFrame = Torso.CFrame * CF(1.5,0.5,0.2) * ANGLES(RAD(90),RAD(35),RAD(180))
  552. hose.BrickColor = BRICKC("Black")
  553. weldBetween(Torso,hose)
  554.  
  555. local succ = IT("Part",Weapon)
  556. succ.Size = VT(2,2,2)
  557. succ.CanCollide = false
  558. succ.CFrame = Torso.CFrame * CF(0,-1,-2) * ANGLES(RAD(90),RAD(0),RAD(180))
  559. succ.Transparency = 1
  560. succ.BrickColor = BRICKC("Gold")
  561. weldBetween(Torso,succ)
  562.  
  563. for _, c in pairs(Weapon:GetChildren()) do
  564. if c.ClassName == "Part" then
  565. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  566. end
  567. end
  568.  
  569. local EyeSizes={
  570. NumberSequenceKeypoint.new(0,0.5,0),
  571. NumberSequenceKeypoint.new(1,0.2,0)
  572. }
  573. local EyeTrans={
  574. NumberSequenceKeypoint.new(0,0,0),
  575. NumberSequenceKeypoint.new(1,1,0)
  576. }
  577. local PE=Instance.new("ParticleEmitter")
  578. PE.LightEmission=0.3
  579. PE.Size=NumberSequence.new(EyeSizes)
  580. PE.Transparency=NumberSequence.new(EyeTrans)
  581. PE.Rotation=NumberRange.new(0,360)
  582. PE.LockedToPart = false
  583. PE.Speed = NumberRange.new(0,0,0)
  584. PE.ZOffset = 0.3
  585. PE.Rate = 999
  586. PE.VelocitySpread = 25
  587. PE.Name = "Particles"
  588.  
  589. function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
  590. local particle = nil
  591. coroutine.resume(coroutine.create(function(PART)
  592. particle = PE:Clone()
  593. Swait()
  594. particle.Rate = 999
  595. particle.Parent = art
  596. particle.Acceleration = accel
  597. if type == "Fire" then
  598. local EyeSizes={
  599. NumberSequenceKeypoint.new(0,size,size/2),
  600. NumberSequenceKeypoint.new(1,size/4,size/8)
  601. }
  602. particle.Size = NumberSequence.new(EyeSizes)
  603. elseif type == "Smoke" then
  604. local EyeSizes={
  605. NumberSequenceKeypoint.new(0,size/5,0),
  606. NumberSequenceKeypoint.new(1,size*2,0.5)
  607. }
  608. particle.Size = NumberSequence.new(EyeSizes)
  609. elseif type == "Solid" then
  610. local EyeSizes={
  611. NumberSequenceKeypoint.new(0,size,0),
  612. NumberSequenceKeypoint.new(1,size,0)
  613. }
  614. particle.Size = NumberSequence.new(EyeSizes)
  615. end
  616. particle.Lifetime=NumberRange.new(lifetime)
  617. particle.Drag = drag
  618. if locked == true then
  619. particle.LockedToPart = true
  620. end
  621. particle.Speed = NumberRange.new(speed*0.8,speed)
  622. particle.Texture = "http://www.roblox.com/asset/?id=1179557490"
  623. particle.Enabled = isenabledbydefault
  624. particle.Color = ColorSequence.new(Color3.fromRGB(255, 215, 0))
  625. end))
  626. return particle
  627. end
  628.  
  629. local poop = CreateParticles(succ,VT(0,0,0),5,2,"Smoke",false,false,5,35)
  630. local poop2 = CreateParticles(succ,VT(0,0,0),5,1,"Smoke",false,false,2,15)
  631. --//=================================\\
  632. --|| DAMAGING
  633. --\\=================================//
  634.  
  635. function succnearest(position,range)
  636. for i,v in ipairs(workspace:GetChildren()) do
  637. local body = v:GetChildren()
  638. for part = 1, #body do
  639. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  640. if(body[part].Position - position).Magnitude < range then
  641. local bv = Instance.new("BodyVelocity")
  642. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  643. bv.velocity = CF(body[part].Position,succ.Position).lookVector*80
  644. bv.Parent = body[part]
  645. bv.Name = "SUCC"
  646. game:GetService("Debris"):AddItem(bv, 0.1)
  647. end
  648. end
  649. end
  650. if v.ClassName == "Part" then
  651. if v.Anchored == false and (v.Position - position).Magnitude < range then
  652. local bv = Instance.new("BodyVelocity")
  653. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  654. bv.velocity = CF(v.Position,succ.Position).lookVector*80
  655. bv.Parent = v
  656. bv.Name = "SUCC"
  657. game:GetService("Debris"):AddItem(bv, 0.1)
  658. end
  659. end
  660. end
  661. end
  662.  
  663. function cover(position,range)
  664. for i,v in ipairs(workspace:GetChildren()) do
  665. local body = v:GetChildren()
  666. for part = 1, #body do
  667. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  668. if(body[part].Position - position).Magnitude < range then
  669. CreateParticles(body[part],VT(0,-2,0),5,1,"Smoke",true,false,0.3,0)
  670. if v:FindFirstChild("Humanoid") then
  671. v.Humanoid.PlatformStand = true
  672. end
  673. end
  674. end
  675. end
  676. if v.ClassName == "Part" then
  677. if v.Anchored == false and (v.Position - position).Magnitude < range then
  678. CreateParticles(v,VT(0,-2,0),5,1,"Smoke",true,false,0.3,0)
  679. end
  680. end
  681. end
  682. end
  683.  
  684. function shield()
  685. coroutine.resume(coroutine.create(function()
  686. local woa = IT("Part",Effects)
  687. woa.Size = VT(2.63, 2.69, 0.56)
  688. local mesh = IT("SpecialMesh",woa)
  689. mesh.MeshType = "FileMesh"
  690. mesh.MeshId = "rbxassetid://470689293"
  691. mesh.TextureId = "rbxassetid://26884682"
  692. mesh.Scale = VT(0.006, 0.006, 0.004)
  693. woa.CFrame = RootPart.CFrame * CF(0,0,-5)
  694. local woosh = woa.Touched:Connect(function(hit)
  695. if hit.Parent.ClassName == "Model" then
  696. hit.Parent:BreakJoints()
  697. gethit:Play()
  698. elseif hit.ClassName == "Part" and hit.Anchored == false then
  699. hit:remove()
  700. end
  701. end)
  702. local paw = woa.Touched:Connect(function(hit)
  703. if hit.Parent.ClassName == "Model" then
  704. woa:remove()
  705. hit.Parent:BreakJoints()
  706. gethit:Play()
  707. end
  708. end)
  709. woosh:disconnect()
  710. woa.Anchored = false
  711. local bv = Instance.new("BodyVelocity")
  712. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  713. bv.velocity = RootPart.CFrame.lookVector*150
  714. bv.Parent = woa
  715. bv.Name = "DASH"
  716. end))
  717. end
  718.  
  719. function cough()
  720. spit:Play()
  721. shield()
  722. end
  723.  
  724. --//=================================\\
  725. --|| ATTACK FUNCTIONS AND STUFF
  726. --\\=================================//
  727.  
  728. function CheckTableForString(Table, String)
  729. for i, v in pairs(Table) do
  730. if string.find(string.lower(String), string.lower(v)) then
  731. return true
  732. end
  733. end
  734. return false
  735. end
  736.  
  737. function CheckIntangible(Hit)
  738. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  739. if Hit and Hit.Parent then
  740. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  741. return true
  742. end
  743. end
  744. return false
  745. end
  746.  
  747. Debris = game:GetService("Debris")
  748.  
  749. function CastRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  750. local Direction = CFrame.new(StartPos, Vec).lookVector
  751. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  752. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  753. if RayHit and CheckIntangible(RayHit) then
  754. if DelayIfHit then
  755. wait()
  756. end
  757. RayHit, RayPos, RayNormal = CastRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  758. end
  759. return RayHit, RayPos, RayNormal
  760. end
  761.  
  762. function turnto(pos,part)
  763. part.CFrame = CF(part.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
  764. end
  765.  
  766. function vacuum()
  767. sick:Play()
  768. local nado = IT("Part")
  769. local mesh = IT("SpecialMesh",nado)
  770. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  771. nado.Transparency = 0.5
  772. nado.CanCollide = false
  773. nado.Anchored = true
  774. local loop = 0
  775. succing = {}
  776. local harm = succ.Touched:Connect(function(hit)
  777. if hit.Anchored == false then
  778. hit:remove()
  779. nom:Play()
  780. end
  781. end)
  782. repeat
  783. Swait()
  784. loop = loop + 75
  785. nado.Parent = Effects
  786. local RayHit,RayPos = CastRay(succ.Position, Mouse.Hit.p, 1000, Character, false)
  787. local distance = (succ.Position - RayPos).magnitude
  788. mesh.Scale = VT(distance/12,distance/3.2,distance/12)
  789. nado.CFrame = CFrame.new(succ.Position, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(-90),RAD(loop),RAD(0))
  790. turnto(Mouse.Hit.p,RootPart)
  791. succnearest(RayPos,distance/2.5)
  792. if RayHit ~= nil then
  793. if RayHit.Anchored == false then
  794. local bv = Instance.new("BodyVelocity")
  795. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  796. bv.velocity = CF(RayHit.Position,succ.Position).lookVector*80
  797. bv.Parent = RayHit
  798. bv.Name = "SUCC"
  799. game:GetService("Debris"):AddItem(bv, 0.1)
  800. end
  801. end
  802. local TotalSuccs = math.ceil(distance / 65)
  803. local Direction = CFrame.new(RayPos, succ.Position).lookVector
  804. for i = 1, TotalSuccs do
  805. local NewPos = (RayPos + (Direction * (distance * (i / TotalSuccs))))
  806. succnearest(NewPos,distance/(i*2.5))
  807. end
  808. until HOLD == false
  809. if #succing>0 then
  810. for e=1,#succing do
  811. if succing[e]~=nil then
  812. local Thing=succing[e]
  813. Thing:remove()
  814. table.remove(succing,e)
  815. end
  816. end
  817. end
  818. succing = {}
  819. harm:disconnect()
  820. nado:remove()
  821. sick:Stop()
  822. end
  823.  
  824. --//=================================\\
  825. --|| ASSIGN THINGS TO KEYS
  826. --\\=================================//
  827.  
  828. Humanoid.Changed:connect(function(Jump)
  829. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  830. Humanoid.Jump = false
  831. end
  832. end)
  833.  
  834. function MouseDown(Mouse)
  835. HOLD = true
  836. vacuum()
  837. end
  838.  
  839. function MouseUp(Mouse)
  840. HOLD = false
  841. end
  842.  
  843. function KeyDown(Key)
  844. if Key == "e" and ATTACK == false then
  845. if imdead == 0 then
  846. cough()
  847. end
  848. end
  849. if Key == "f" then
  850. if imdead == 0 then
  851. hi:Play()
  852. end
  853. end
  854. if Key == "r" then
  855. if imdead == 0 then
  856. Fly()
  857. end
  858. end
  859. end
  860.  
  861. function Fly()
  862. local bg = Instance.new("BodyGyro", torso)
  863. bg.P = 9e4
  864. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  865. bg.cframe = torso.CFrame
  866. local bv = Instance.new("BodyVelocity", torso)
  867. bv.velocity = Vector3.new(0,0.1,0)
  868. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  869. repeat wait()
  870. p.Character.Humanoid.PlatformStand = true
  871. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  872. speed = speed+.5+(speed/maxspeed)
  873. if speed > maxspeed then
  874. speed = maxspeed
  875. end
  876. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  877. speed = speed-1
  878. if speed < 0 then
  879. speed = 0
  880. end
  881. end
  882. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  883. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  884. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  885. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  886. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  887. else
  888. bv.velocity = Vector3.new(0,0.1,0)
  889. end
  890. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  891. until not flying
  892. ctrl = {f = 0, b = 0, l = 0, r = 0}
  893. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  894. speed = 0
  895. bg:Destroy()
  896. bv:Destroy()
  897. p.Character.Humanoid.PlatformStand = false
  898. end
  899. mouse.KeyDown:connect(function(key)
  900. if key:lower() == "r" then
  901. if flying then flying = false
  902. else
  903. flying = true
  904. Fly()
  905. end
  906. elseif key:lower() == "w" then
  907. ctrl.f = 3
  908. elseif key:lower() == "s" then
  909. ctrl.b = -3
  910. elseif key:lower() == "a" then
  911. ctrl.l = -3
  912. elseif key:lower() == "d" then
  913. ctrl.r = 3
  914. end
  915. end)
  916. mouse.KeyUp:connect(function(key)
  917. if key:lower() == "w" then
  918. ctrl.f = 0
  919. elseif key:lower() == "s" then
  920. ctrl.b = 0
  921. elseif key:lower() == "a" then
  922. ctrl.l = 0
  923. elseif key:lower() == "d" then
  924. ctrl.r = 0
  925. end
  926. end)
  927.  
  928. function KeyUp(Key)
  929. end
  930.  
  931. Mouse.Button1Down:connect(function(NEWKEY)
  932. MouseDown(NEWKEY)
  933. end)
  934. Mouse.Button1Up:connect(function(NEWKEY)
  935. MouseUp(NEWKEY)
  936. end)
  937. Mouse.KeyDown:connect(function(NEWKEY)
  938. KeyDown(NEWKEY)
  939. end)
  940. Mouse.KeyUp:connect(function(NEWKEY)
  941. KeyUp(NEWKEY)
  942. end)
  943.  
  944. --//=================================\\
  945. --\\=================================//
  946.  
  947.  
  948. function unanchor()
  949. if UNANCHOR == true then
  950. g = Character:GetChildren()
  951. for i = 1, #g do
  952. if g[i].ClassName == "Part" then
  953. g[i].Anchored = false
  954. end
  955. end
  956. end
  957. end
  958.  
  959.  
  960. --//=================================\\
  961. --|| WRAP THE WHOLE SCRIPT UP
  962. --\\=================================//
  963. local Music = Instance.new("Sound")
  964.  
  965. Music.Name = "Sound"
  966. Music.SoundId = "http://roblox.com/asset/?id=235817096"
  967. Music.Volume = 10
  968. Music.Looped = true
  969. Music.Parent = Torso
  970. Music:play()
  971.  
  972. char.Humanoid.Died:connect(function()
  973. imdead = 1
  974. Music.SoundId = "http://roblox.com/asset/?id=715082158"
  975. Music.Volume = 10
  976. Music.Looped = false
  977. Music:play()
  978. hi:Stop()
  979. end)
  980.  
  981. Humanoid.Changed:connect(function(Jump)
  982. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  983. Humanoid.Jump = false
  984. end
  985. end)
  986.  
  987. while true do
  988. Swait()
  989. if #Effects2>0 then
  990. for e=1,#Effects2 do
  991. if Effects2[e]~=nil then
  992. local Thing=Effects2[e]
  993. if Thing~=nil then
  994. local Part=Thing[1]
  995. local Mode=Thing[2]
  996. local Delay=Thing[3]
  997. local IncX=Thing[4]
  998. local IncY=Thing[5]
  999. local IncZ=Thing[6]
  1000. local Part2=Thing[8]
  1001. if Thing[1].Transparency<=1 then
  1002. if Thing[2]=="Block1" then
  1003. Thing[1].CFrame=Thing[1].CFrame
  1004. Mesh=Thing[1].Mesh
  1005. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1006. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1007. elseif Thing[2]=="Cylinder" then
  1008. Mesh=Thing[1].Mesh
  1009. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1010. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1011. elseif Thing[2]=="Blood" then
  1012. Mesh=Thing[7]
  1013. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1014. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1015. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1016. elseif Thing[2]=="Elec" then
  1017. Mesh=Thing[1].Mesh
  1018. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1019. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1020. elseif Thing[2]=="Disappear" then
  1021. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1022. end
  1023. else
  1024. Part.Parent=nil
  1025. table.remove(Effects2,e)
  1026. end
  1027. end
  1028. end
  1029. end
  1030. end
  1031. unanchor()
  1032. if Rooted == false then
  1033. Disable_Jump = false
  1034. Humanoid.WalkSpeed = Speed
  1035. elseif Rooted == true then
  1036. Disable_Jump = true
  1037. Humanoid.WalkSpeed = 0
  1038. end
  1039. if sick == nil then
  1040. sick = Instance.new("Sound",Torso)
  1041. sick.SoundId = "rbxassetid://319444224"
  1042. sick.Looped = true
  1043. sick.Pitch = 1
  1044. sick.Volume = 1
  1045. end
  1046. if #succing>0 then
  1047. for e=1,#succing do
  1048. if succing[e]~=nil then
  1049. local Thing=succing[e]
  1050. Thing.velocity = CF(Thing.Parent.Position,succ.Position).lookVector*80
  1051. if HOLD == false then
  1052. Thing.velocity = CF(Thing.Parent.Position,succ.Position).lookVector*0
  1053. Thing:remove()
  1054. table.remove(succing,e)
  1055. end
  1056. end
  1057. end
  1058. end
  1059. end
  1060.  
  1061. --//=================================\\
  1062. --\\=================================//
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068. --//====================================================\\--
  1069. --|| END OF SCRIPT
  1070. --\\====================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement