Advertisement
refrop

luigi (beta)

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