Advertisement
EmeraldIT

Untitled

Aug 6th, 2019
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.32 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. --<||Common values||>--------
  85.  
  86. plr = Player
  87. char = plr.Character
  88. torso = char.HumanoidRootPart
  89. debri = game.Debris
  90.  
  91. --<||Mode values||>-----------
  92.  
  93. M_Planet = false
  94. M_Star = false
  95. M_StarMode = false
  96. M_Nebula = false
  97. M_NebulaMode = false
  98. M_Comet = false
  99. M_Cosmic = false
  100. M_CosmicMode = false
  101. M_Void = false
  102. M_VoidMode = false
  103. M_Supernova = false
  104. M_SupernovaMode = false
  105. M_Pulsar = false
  106. M_PulsarMode = false
  107.  
  108. ArmorIsActive = false
  109.  
  110. --<||Index now, use later------
  111. c = char['Left Arm']
  112. A1 = Instance.new("Attachment",c)
  113. A1.Position = Vector3.new(0, 1.5, 0)
  114. local A2 = Instance.new("Attachment",c)
  115. A2.Position = Vector3.new(0, -1.5, 0)
  116. local Trail = Instance.new("Trail",c)
  117. Trail.LightEmission = -0.5
  118. Trail.FaceCamera = true
  119. Trail.Texture = "rbxassetid://945758042"
  120. Trail.Attachment0 = A1
  121. Trail.Attachment1 = A2
  122. Trail.Lifetime = 1.5
  123. Trail.Enabled = false
  124. Trail.MinLength = 0
  125. Trail.Transparency = NumberSequence.new(0, 0)
  126. Trail.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  127.  
  128.  
  129. c = char['Right Arm']
  130. A1 = Instance.new("Attachment",c)
  131. A1.Position = Vector3.new(0, 1.5, 0)
  132. local A2 = Instance.new("Attachment",c)
  133. A2.Position = Vector3.new(0, -1.5, 0)
  134. local Trail2 = Instance.new("Trail",c)
  135. Trail2.LightEmission = -0.5
  136. Trail2.FaceCamera = true
  137. Trail2.Texture = "rbxassetid://945758042"
  138. Trail2.Attachment0 = A1
  139. Trail2.Attachment1 = A2
  140. Trail2.Enabled = false
  141. Trail2.Lifetime = 1.5
  142. Trail2.MinLength = 0
  143. Trail2.Transparency = NumberSequence.new(0, 0)
  144. Trail2.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  145.  
  146. Part = Instance.new('Part', char)
  147. Part.Size = Vector3.new(0.1,0.1,0.1)
  148. Part.CanCollide = false
  149. Part.Transparency = 1
  150.  
  151. weld = Instance.new("Weld")
  152. weld.Parent = Part
  153. weld.Part0 = torso
  154. weld.Name = "WeldToEmitter"
  155. weld.Part1 = Part
  156. weld.C1 = CFrame.new(0.01, 0.01, 0.01)
  157.  
  158. local Pta = Instance.new('ParticleEmitter', Part)
  159. Pta.Rate = 0
  160. Pta.Drag = 5
  161. Pta.EmissionDirection = 'Front'
  162. Pta.SpreadAngle = Vector2.new(0, 360)
  163. Pta.Color = ColorSequence.new(BrickColor.new('Royal purple').Color)
  164. Pta.LightEmission = 1
  165. Pta.Speed = NumberRange.new(100)
  166. Pta.Lifetime = NumberRange.new(1)
  167. Pta.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0), NumberSequenceKeypoint.new(0.7,0,0), NumberSequenceKeypoint.new(1,1,0)})
  168. Pta.RotSpeed = NumberRange.new(1,10)
  169. Pta.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0), NumberSequenceKeypoint.new(0.7,5,0), NumberSequenceKeypoint.new(1,5,0)})
  170.  
  171. --<||Functions||>-------------
  172.  
  173. --trail(PAtrri1, 1, color2, 0.1, -0.1)
  174. function trail(forr, lifetime, color, attachmentpos, attachmentpos2)
  175. A1 = Instance.new("Attachment",forr)
  176. A1.Position = Vector3.new(0, attachmentpos, 0)
  177. local A2 = Instance.new("Attachment",forr)
  178. A2.Position = Vector3.new(0, attachmentpos2, 0)
  179. local Trail = Instance.new("Trail",forr)
  180. Trail.LightEmission = 1
  181. Trail.FaceCamera = true
  182. Trail.Texture = "rbxassetid://945758042"
  183. Trail.Attachment0 = A1
  184. Trail.Attachment1 = A2
  185. Trail.Lifetime = lifetime
  186. Trail.MinLength = 0
  187. Trail.Transparency = NumberSequence.new(0, 0)
  188. Trail.Color = ColorSequence.new(BrickColor.new(color).Color)
  189. end
  190.  
  191.  
  192.  
  193. --planet(target.CFrame, Vector3.new(10,10,10), 'Royal purple', 'Dark green', 5)
  194. function planet(position, size, color1, color2, lifetime)
  195. P = Instance.new('Part', char)
  196. P.Material = "Glass"
  197. P.Size = Vector3.new(0.05,0.05,0.05)
  198. P.BrickColor = BrickColor.new(color1)
  199. P.Anchored = true
  200. P.CanCollide = false
  201. P.CFrame = position
  202. Mesh = Instance.new('SpecialMesh', P)
  203. Mesh.MeshType = 'Sphere'
  204. Mesh.Scale = Vector3.new(1,1,1)
  205. PG = P:Clone()
  206. PG.Size = P.Size + Vector3.new(0.1,0.1,0.1)
  207. PG.Material = 'ForceField'
  208. PG.BrickColor = BrickColor.new(color2)
  209. PG.Parent = P
  210. Mesh = Instance.new('SpecialMesh', PG)
  211. Mesh.MeshType = 'Sphere'
  212. Mesh.TextureId = 'rbxassetid://1095709'
  213. colll = BrickColor.new(color2).Color
  214. Mesh.VertexColor = Vector3.new(colll.r,colll.g,colll.b)
  215. Mesh.Scale = Vector3.new(1,1,1)
  216. weld = Instance.new("Weld")
  217. weld.Parent = P
  218. weld.Part0 = P
  219. weld.Name = "WeldToGlowingPart"
  220. weld.Part1 = PG
  221. weld.C1 = CFrame.new(0.01, 0.01, 0.01)
  222. trail(PG, 1, color2, 0.1, -0.1)
  223. for i = 1,20 do
  224. P.Size:Lerp(size, i/20)
  225. PG.Size:Lerp(size, i/20)
  226. wait()
  227. end
  228. debri:AddItem(P, lifetime)
  229. PAtrri1 = Instance.new('Part', P)
  230. PAtrri1.Anchored = false
  231. PAtrri1.Transparency = 1
  232. PAtrri1.CanCollide = false
  233. PAtrri1.Size = Vector3.new(.1,0.1,0.1)
  234. weld = Instance.new("Weld")
  235. weld.Parent = PAtrri1
  236. weld.Part0 = P
  237. weld.Name = "WeldToGlowingPart"
  238. weld.Part1 = PAtrri1
  239. weld.C1 = CFrame.new(0, -4, 0)
  240. trail(PAtrri1, 1, color2, 0.1, -0.1)
  241. PAtrri2 = Instance.new('Part', P)
  242. PAtrri2.Anchored = false
  243. PAtrri2.Transparency = 1
  244. PAtrri2.CanCollide = false
  245. PAtrri2.Size = Vector3.new(.1,.1,.1)
  246. weld = Instance.new("Weld")
  247. weld.Parent = PAtrri2
  248. weld.Part0 = P
  249. weld.Name = "WeldToGlowingPart"
  250. weld.Part1 = PAtrri2
  251. weld.C1 = CFrame.new(0, 4, 0)
  252. trail(PAtrri2, 1, color2, 0.1, -0.1)
  253. PAtrri3 = Instance.new('Part', P)
  254. PAtrri3.Anchored = false
  255. PAtrri3.CanCollide = false
  256. PAtrri3.Size = Vector3.new(.1,.1,.1)
  257. PAtrri3.Transparency = 1
  258. weld = Instance.new("Weld")
  259. weld.Parent = PAtrri3
  260. weld.Part0 = P
  261. weld.Name = "WeldToGlowingPart"
  262. weld.Part1 = PAtrri3
  263. weld.C1 = CFrame.new(-4, 0, 0)
  264. trail(PAtrri3, 1, color2, 0.1, -0.1)
  265. PAtrri4 = Instance.new('Part', PAtrri4)
  266. PAtrri4.Anchored = false
  267. PAtrri4.Transparency = 1
  268. PAtrri4.CanCollide = false
  269. PAtrri4.Size = Vector3.new(.1,.1,.1)
  270. weld = Instance.new("Weld")
  271. weld.Parent = PAtrri4
  272. weld.Part0 = P
  273. weld.Name = "WeldToGlowingPart"
  274. weld.Part1 = PAtrri4
  275. weld.C1 = CFrame.new(4, 0, 0)
  276. trail(PAtrri4, 1, color2, 0.1, -0.1)
  277. spawn(function()
  278. random = math.random(1,3)
  279. if random == 1 then
  280. spawn(function()
  281. repeat P.CFrame = P.CFrame*CFrame.fromEulerAnglesXYZ(0,0,0.1)
  282. wait() until P == nil
  283. end)
  284. elseif random == 2 then
  285. spawn(function()
  286. repeat P.CFrame = P.CFrame*CFrame.fromEulerAnglesXYZ(0,0.1,0)
  287. wait() until P == nil
  288. end)
  289. elseif random == 3 then
  290. spawn(function()
  291. repeat P.CFrame = P.CFrame*CFrame.fromEulerAnglesXYZ(0.1,0,0)
  292. wait() until P == nil
  293. end)
  294. end
  295. end)
  296. wait((lifetime - 2))
  297. for i = 1,20 do
  298. P.Size = P.Size:Lerp(Vector3.new(.05,.05,.05), i/20)
  299. PG.Size = PG.Size:Lerp(Vector3.new(.05,.05,.05), i/20)
  300. wait(0.1)
  301. end
  302. end
  303.  
  304.  
  305.  
  306. --blackhole(target.CFrame, Vector3.new(10,10,10), 'Really red', 5, true)
  307. function blackhole(position, size, color2, lifetime, succ)
  308. P = Instance.new('Part', char)
  309. P.Material = "Neon"
  310. P.Size = Vector3.new(0.05,0.05,0.05)
  311. P.BrickColor = BrickColor.Black()
  312. P.Anchored = true
  313. P.CanCollide = false
  314. P.CFrame = position
  315. P2 = Instance.new('Part', char)
  316. P2.Material = 'ForceField'
  317. P2.BrickColor = BrickColor.new(color2)
  318. P2.Size = Vector3.new(0.1,0.1,0.1)
  319. P2.Anchored = true
  320. P2.CanCollide = false
  321. P2.CFrame = position
  322. Mesh = Instance.new('SpecialMesh', P)
  323. Mesh.MeshType = 'Sphere'
  324. Mesh.Scale = Vector3.new(1,1,1)
  325. Mesh = Instance.new('SpecialMesh', P2)
  326. Mesh.MeshType = 'Sphere'
  327. Mesh.Scale = Vector3.new(1,1,1)
  328. --[[weld = Instance.new("Weld")
  329. weld.Parent = P
  330. weld.Part0 = P
  331. weld.Name = "WeldToGlowingPart"
  332. weld.Part1 = P2
  333. weld.C1 = CFrame.new(0.01, 0.01, 0.01)]]
  334. for i = 1,20 do
  335. P.Size = P.Size + Vector3.new(size.X / 20, size.Y / 20, size.Z / 20)
  336. P2.Size = P2.Size + Vector3.new(size.X / 20, size.Y / 20, size.Z / 20)
  337. wait()
  338. end
  339. debri:AddItem(P, lifetime)
  340. debri:AddItem(P2, lifetime)
  341. spawn(function()
  342. repeat
  343. if succ == true then
  344. c = game.Players:GetChildren()
  345. for i = 1, #c do
  346. if c[i].Name ~= Player.Name then
  347. if c[i]:DistanceFromCharacter(P.Position) <= 15 + size.X then
  348. c[i].Character:BreakJoints()
  349. c2 = c[i].Character:GetChildren()
  350. for i2 =1, #c2 do
  351. if c2[i2]:IsA("BasePart") then
  352. b = Instance.new("BodyPosition") b.Parent = c2[i2] b.maxForce = Vector3.new(6000000,60000000,60000000)
  353. b.Position = P.Position
  354. end
  355. end
  356. end
  357. end
  358. end
  359. end
  360. wait()
  361. until P == nil
  362. end)
  363. wait((lifetime - 2))
  364. for i = 1,10 do
  365. P.Size = P.Size - Vector3.new(size.X / 10, size.Y / 10, size.Z / 10)
  366. P2.Size = P2.Size - Vector3.new(size.X / 10, size.Y / 10, size.Z / 10)
  367. wait(0.1)
  368. end
  369. end
  370.  
  371. function voidedmode()
  372. ArmorIsActive = true
  373. M_VoidMode = true
  374. pcall(function()
  375. char['Left Arm'].BrickColor = BrickColor.Black()
  376. clone = Instance.new('Part', char)
  377. clone.Size = char['Left Arm'].Size
  378. clone.CanCollide = false
  379. clone.Material = 'ForceField'
  380. clone.BrickColor = BrickColor.new('Royal purple')
  381. weld = Instance.new("Weld")
  382. weld.Parent = clone
  383. weld.Part0 = char['Left Arm']
  384. weld.Name = "WeldToGlowingPart"
  385. weld.Part1 = clone
  386. weld.C1 = CFrame.new(0.01, 0.01, 0.01)
  387. char['Right Arm'].BrickColor = BrickColor.Black()
  388. clone = Instance.new('Part', char)
  389. clone.Size = char['Right Arm'].Size
  390. clone.Material = 'ForceField'
  391. clone.CanCollide = false
  392. clone.BrickColor = BrickColor.new('Royal purple')
  393. weld = Instance.new("Weld")
  394. weld.Parent = clone
  395. weld.Part0 = char['Right Arm']
  396. weld.Name = "WeldToGlowingPart"
  397. weld.Part1 = clone
  398. weld.C1 = CFrame.new(0.01, 0.01, 0.01)
  399. end)
  400. pcall(function()
  401. char['LeftUpperArm'].BrickColor = BrickColor.Black()
  402. clone = Instance.new('Part', char)
  403. clone.Size = char.LeftUpperArm.Size
  404. clone.CanCollide = false
  405. clone.Material = 'ForceField'
  406. clone.BrickColor = BrickColor.new('Royal purple')
  407. weld = Instance.new("Weld")
  408. weld.Parent = clone
  409. weld.Part0 = char.LeftUpperArm
  410. weld.Name = "WeldToGlowingPart"
  411. weld.Part1 = clone
  412. weld.C1 = CFrame.new(0.01, 0.01, 0.01)
  413. char['RightUpperArm'].BrickColor = BrickColor.Black()
  414. clone = Instance.new('Part', char)
  415. clone.CanCollide = false
  416. clone.Size = char.RightUpperArm.Size
  417. clone.Material = 'ForceField'
  418. clone.BrickColor = BrickColor.new('Royal purple')
  419. weld = Instance.new("Weld")
  420. weld.Parent = clone
  421. weld.Part0 = char.RightUpperArm
  422. weld.Name = "WeldToGlowingPart"
  423. weld.Part1 = clone
  424. weld.C1 = CFrame.new(0.01, 0.01, 0.01)
  425. char['LeftLowerArm'].BrickColor = BrickColor.Black()
  426. clone = Instance.new('Part', char)
  427. clone.Size = char.LeftLowerArm.Size
  428. clone.CanCollide = false
  429. clone.Material = 'ForceField'
  430. clone.BrickColor = BrickColor.new('Royal purple')
  431. weld = Instance.new("Weld")
  432. weld.Parent = clone
  433. weld.Part0 = char.LeftLowerArm
  434. weld.Name = "WeldToGlowingPart"
  435. weld.Part1 = clone
  436. weld.C1 = CFrame.new(0.01, 0.01, 0.01)
  437. char['RightLowerArm'].BrickColor = BrickColor.Black()
  438. clone = Instance.new('Part', char)
  439. clone.Size = char.RightLowerArm.Size
  440. clone.Material = 'ForceField'
  441. clone.CanCollide = false
  442. clone.BrickColor = BrickColor.new('Royal purple')
  443. weld = Instance.new("Weld")
  444. weld.Parent = clone
  445. weld.Part0 = char.RightLowerArm
  446. weld.Name = "WeldToGlowingPart"
  447. weld.Part1 = clone
  448. weld.C1 = CFrame.new(0.01, 0.01, 0.01)
  449. end)
  450.  
  451. for i = 1,200 do
  452. spawn(function()
  453. Pta:Emit(150)
  454. char.Humanoid.Health = char.Humanoid.Health + 5
  455. end)
  456. wait(0.7)
  457. end
  458.  
  459. ArmorIsActive = false
  460. M_VoidMode = false
  461.  
  462. pcall(function()
  463. char['Left Arm'].BrickColor = BrickColor.new('CGA brown')
  464. char.Part:Remove()
  465. char['Right Arm'].BrickColor = BrickColor.new('CGA brown')
  466. char.Part:Remove()
  467. end)
  468. pcall(function()
  469. char['LeftUpperArm'].BrickColor = BrickColor.new('CGA brown')
  470. char.Part:Remove()
  471. char['RightUpperArm'].BrickColor = BrickColor.new('CGA brown')
  472. char.Part:Remove()
  473. char['LeftLowerArm'].BrickColor = BrickColor.new('CGA brown')
  474. char.Part:Remove()
  475. char['RightLowerArm'].BrickColor = BrickColor.new('CGA brown')
  476. char.Part:Remove()
  477. end)
  478. end
  479.  
  480. function voided(col, time)
  481.  
  482. Part = Instance.new('Part', char)
  483. Part.Size = Vector3.new(0.1,0.1,0.1)
  484. Part.CanCollide = false
  485. Part.Transparency = 1
  486.  
  487. weld = Instance.new("Weld")
  488. weld.Parent = Part
  489. weld.Part0 = torso
  490. weld.Name = "WeldToEmitter"
  491. weld.Part1 = Part
  492. weld.C1 = CFrame.new(0.01, 0.01, 0.01)
  493.  
  494. local Pt = Instance.new('ParticleEmitter', Part)
  495. Pt.Rate = 0
  496. Pt.ZOffset = 10
  497. Pt.Drag = 0
  498. Pt.Color = ColorSequence.new(BrickColor.new(col).Color)
  499. Pt.LightEmission = 0
  500. Pt.Speed = NumberRange.new(0)
  501. Pt.Lifetime = NumberRange.new(1)
  502. Pt.Texture = "http://www.roblox.com/asset/?id=43997508"
  503. Pt.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0), NumberSequenceKeypoint.new(0.7,0,0), NumberSequenceKeypoint.new(1,1,0)})
  504. Pt.RotSpeed = NumberRange.new(75)
  505. Pt.Rotation = NumberRange.new(0,360)
  506. Pt.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0), NumberSequenceKeypoint.new(1,5,0)})
  507.  
  508. local Pt2 = Instance.new('ParticleEmitter', Part)
  509. Pt2.Rate = 0
  510. Pt2.ZOffset = 9
  511. Pt2.Drag = 0
  512. Pt2.Color = ColorSequence.new(BrickColor.new(col).Color)
  513. Pt2.LightEmission = 0.9
  514. Pt2.Speed = NumberRange.new(0)
  515. Pt2.Lifetime = NumberRange.new(1)
  516. Pt2.Texture = "http://www.roblox.com/asset/?id=43997508"
  517. Pt2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0), NumberSequenceKeypoint.new(0.7,0,0), NumberSequenceKeypoint.new(1,1,0)})
  518. Pt2.RotSpeed = NumberRange.new(75)
  519. Pt2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,9,0), NumberSequenceKeypoint.new(1,9,0)})
  520. Pt2.Rotation = NumberRange.new(0,360)
  521.  
  522. local Pt3 = Instance.new('ParticleEmitter', Part)
  523. Pt3.Rate = 0
  524. Pt3.Drag = 10
  525. Pt3.EmissionDirection = 'Front'
  526. Pt3.SpreadAngle = Vector2.new(0, 360)
  527. Pt3.Color = ColorSequence.new(BrickColor.new(col).Color)
  528. Pt3.LightEmission = 1
  529. Pt3.Speed = NumberRange.new(100)
  530. Pt3.Lifetime = NumberRange.new(1)
  531. Pt3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0), NumberSequenceKeypoint.new(0.7,0,0), NumberSequenceKeypoint.new(1,1,0)})
  532. Pt3.RotSpeed = NumberRange.new(1,10)
  533. Pt3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0), NumberSequenceKeypoint.new(0.7,5,0), NumberSequenceKeypoint.new(1,5,0)})
  534.  
  535. Invisible = true
  536.  
  537. c2 = char:GetDescendants()
  538. for i2 =1, #c2 do
  539. if c2[i2]:IsA("BasePart") or c2[i2]:IsA("Part") then
  540. c2[i2].Transparency = 1
  541. end
  542. end
  543.  
  544. Pt:Emit(150)
  545. Pt2:Emit(150)
  546. Pt3:Emit(150)
  547.  
  548. char.Humanoid.WalkSpeed = 200
  549. char.Humanoid.JumpPower = 150
  550.  
  551. wait(time)
  552.  
  553. char.Humanoid.WalkSpeed = 16
  554. char.Humanoid.JumpPower = 50
  555.  
  556. Invisible = false
  557.  
  558. c2 = char:GetDescendants()
  559. for i2 =1, #c2 do
  560. if c2[i2]:IsA("BasePart") or c2[i2]:IsA("Part") then
  561. c2[i2].Transparency = 0
  562. if c2[i2].Name == 'HumanoidRootPart' then
  563. c2[i2].Transparency = 1
  564. end
  565. end
  566. end
  567.  
  568. Pt:Emit(150)
  569. Pt2:Emit(150)
  570. Pt3:Emit(150)
  571. debri:AddItem(Part, 2)
  572. end
  573.  
  574. Player.Chatted:Connect(function(chat)
  575. if chat == 'void armor!' and M_Void == true then
  576. voidedmode()
  577. elseif chat == 'void vector!' and M_Void == true then
  578. if M_VoidMode == true then
  579. voided('Royal purple', 20)
  580. elseif M_VoidMode == false then
  581. voided('Royal purple', 10)
  582. end
  583. elseif chat == 'void mode!' then
  584. M_Void = true
  585. end
  586. end)
  587.  
  588. while true do
  589. if ArmorIsActive == true and Invisible == false then
  590. Trail.Enabled = true
  591. Trail2.Enabled = true
  592. elseif ArmorIsActive == true and Invisible == true then
  593. Trail.Enabled = false
  594. Trail2.Enabled = false
  595. elseif ArmorIsActive == false and Invisible == true then
  596. Trail.Enabled = false
  597. Trail2.Enabled = false
  598. elseif ArmorIsActive == false and Invisible == false then
  599. Trail.Enabled = false
  600. Trail2.Enabled = false
  601. end
  602. if M_VoidMode == true then
  603. c = game.Players:GetChildren()
  604. for i = 1, #c do
  605. if c[i].Name ~= Player.Name then
  606. if c[i]:DistanceFromCharacter(Part.Position) <= 30 then
  607. c[i].Character:BreakJoints()
  608. c2 = c[i].Character:GetChildren()
  609. for i2 =1, #c2 do
  610. if c2[i2]:IsA("BasePart") then
  611. c2[i2].CanCollide = false
  612. trail(c2[i2], 1, 'Royal purple', 1, -1)
  613. b = Instance.new("BodyPosition") b.Parent = c2[i2] b.maxForce = Vector3.new(6000000,60000000,60000000)
  614. b.Position = Part.Position
  615. end
  616. end
  617. end
  618. end
  619. end
  620. end
  621. wait(1)
  622. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement