Advertisement
ticktockclock

SUCC

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