Advertisement
Roblox_Raiding

kirb

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