Advertisement
Hugo1234cool

Untitled

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