Advertisement
Guest User

Untitled

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