Advertisement
helloperson

Untitled

Jan 26th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.59 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. LocalScript1 = Instance.new("LocalScript")
  21. Folder2 = Instance.new("Folder")
  22. Folder3 = Instance.new("Folder")
  23. Animation4 = Instance.new("Animation")
  24. Animation5 = Instance.new("Animation")
  25. Animation6 = Instance.new("Animation")
  26. Folder7 = Instance.new("Folder")
  27. Animation8 = Instance.new("Animation")
  28. Animation9 = Instance.new("Animation")
  29. Animation10 = Instance.new("Animation")
  30. Script11 = Instance.new("Script")
  31. Script12 = Instance.new("Script")
  32. ParticleEmitter13 = Instance.new("ParticleEmitter")
  33. Script14 = Instance.new("Script")
  34. ParticleEmitter15 = Instance.new("ParticleEmitter")
  35. Configuration16 = Instance.new("Configuration")
  36. BoolValue17 = Instance.new("BoolValue")
  37. Part18 = Instance.new("Part")
  38. SpecialMesh19 = Instance.new("SpecialMesh")
  39. Sparkles20 = Instance.new("Sparkles")
  40. PointLight21 = Instance.new("PointLight")
  41. Trail22 = Instance.new("Trail")
  42. Sound23 = Instance.new("Sound")
  43. Sound24 = Instance.new("Sound")
  44. Sound25 = Instance.new("Sound")
  45. Sound26 = Instance.new("Sound")
  46. LocalScript27 = Instance.new("LocalScript")
  47. RemoteFunction28 = Instance.new("RemoteFunction")
  48. CFrameValue29 = Instance.new("CFrameValue")
  49. Keyframe30 = Instance.new("Keyframe")
  50. Pose31 = Instance.new("Pose")
  51. Pose32 = Instance.new("Pose")
  52. Pose33 = Instance.new("Pose")
  53. Pose34 = Instance.new("Pose")
  54. Pose35 = Instance.new("Pose")
  55. Pose36 = Instance.new("Pose")
  56. Pose37 = Instance.new("Pose")
  57. Pose38 = Instance.new("Pose")
  58. Pose39 = Instance.new("Pose")
  59. Pose40 = Instance.new("Pose")
  60. Pose41 = Instance.new("Pose")
  61. Pose42 = Instance.new("Pose")
  62. Pose43 = Instance.new("Pose")
  63. Pose44 = Instance.new("Pose")
  64. Pose45 = Instance.new("Pose")
  65. Pose46 = Instance.new("Pose")
  66. Pose47 = Instance.new("Pose")
  67. Pose48 = Instance.new("Pose")
  68. Pose49 = Instance.new("Pose")
  69. Pose50 = Instance.new("Pose")
  70. Pose51 = Instance.new("Pose")
  71. Pose52 = Instance.new("Pose")
  72. Pose53 = Instance.new("Pose")
  73. Pose54 = Instance.new("Pose")
  74. Pose55 = Instance.new("Pose")
  75. Pose56 = Instance.new("Pose")
  76. Camera57 = Instance.new("Camera")
  77. Tool0.Name = "CrimsonPeriastron"
  78. Tool0.Parent = Model2
  79. Tool0.TextureId = "rbxassetid://99065961"
  80. Tool0.Grip = CFrame.new(0, 0, -2, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  81. Tool0.GripForward = Vector3.new(-1, -0, -0)
  82. Tool0.GripPos = Vector3.new(0, 0, -2)
  83. Tool0.GripRight = Vector3.new(0, 1, 0)
  84. Tool0.GripUp = Vector3.new(0, 0, 1)
  85. Tool0.ToolTip = "Crimson Catastrophe!"
  86. LocalScript1.Name = "Client"
  87. LocalScript1.Parent = Tool0
  88. table.insert(cors,sandbox(LocalScript1,function()
  89. local Tool = script.Parent
  90.  
  91. local Remote = Tool:WaitForChild("Remote",10)
  92.  
  93. local MouseInput = Tool:WaitForChild("MouseInput")
  94.  
  95. local Services = {
  96. Players = (game:FindService("Players") or game:GetService("Players")),
  97. TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
  98. RunService = (game:FindService("RunService") or game:GetService("RunService")),
  99. Input = (game:FindService("ContextActionService") or game:GetService("ContextActionService"))
  100. }
  101.  
  102. local Player,Character,Humanoid
  103.  
  104.  
  105. function PeriPrimary(actionName, inputState, inputObj)
  106. if inputState == Enum.UserInputState.Begin then
  107. Remote:FireServer(Enum.KeyCode.E)
  108. end
  109. end
  110.  
  111. function PeriSecondary(actionName, inputState, inputObj)
  112. if inputState == Enum.UserInputState.Begin then
  113. Remote:FireServer(Enum.KeyCode.Q)
  114. end
  115. end
  116.  
  117.  
  118. function Equipped()
  119. Player = Services.Players.LocalPlayer
  120. Character = Player.Character
  121. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  122. if not Humanoid or not Humanoid.Parent or Humanoid.Health <= 0 then return end
  123.  
  124. --Services.Input:BindAction("PeriPrimary",PeriPrimary,true,Enum.KeyCode.E,Enum.KeyCode.ButtonR1)
  125. Services.Input:BindAction("PeriSecondary",PeriSecondary,true,Enum.KeyCode.Q,Enum.KeyCode.ButtonY)
  126. --Services.Input:SetTitle("PeriPrimary","Sword Stance/Counter")
  127. Services.Input:SetTitle("PeriSecondary","Crimson Pillars")
  128. --Services.Input:SetPosition("PeriPrimary",UDim2.new(.5,0,-.5,0))
  129. Services.Input:SetPosition("PeriSecondary",UDim2.new(.5,0,0,0))
  130. end
  131.  
  132. function Unequipped()
  133. --Services.Input:UnbindAction("PeriPrimary")
  134. Services.Input:UnbindAction("PeriSecondary")
  135. end
  136.  
  137. Tool.Equipped:Connect(Equipped)
  138. Tool.Unequipped:Connect(Unequipped)
  139.  
  140.  
  141. function MouseInput.OnClientInvoke()
  142. return game.Players.LocalPlayer:GetMouse().Hit.p
  143. end
  144. end))
  145. Folder2.Name = "Animations"
  146. Folder2.Parent = Tool0
  147. Folder3.Name = "R6"
  148. Folder3.Parent = Folder2
  149. Animation4.Name = "RightSlash"
  150. Animation4.Parent = Folder3
  151. Animation4.AnimationId = "http://www.roblox.com/Asset?ID=54611484"
  152. Animation5.Name = "Slash"
  153. Animation5.Parent = Folder3
  154. Animation5.AnimationId = "http://www.roblox.com/Asset?ID=54432537"
  155. Animation6.Name = "SlashAnim"
  156. Animation6.Parent = Folder3
  157. Animation6.AnimationId = "http://www.roblox.com/Asset?ID=63718551"
  158. Folder7.Name = "R15"
  159. Folder7.Parent = Folder2
  160. Animation8.Name = "RightSlash"
  161. Animation8.Parent = Folder7
  162. Animation8.AnimationId = "rbxassetid://2410679501"
  163. Animation9.Name = "Slash"
  164. Animation9.Parent = Folder7
  165. Animation9.AnimationId = "rbxassetid://2441858691"
  166. Animation10.Name = "SlashAnim"
  167. Animation10.Parent = Folder7
  168. Animation10.AnimationId = "rbxassetid://2443689022"
  169. Script11.Name = "Server"
  170. Script11.Parent = Tool0
  171. table.insert(cors,sandbox(Script11,function()
  172. --Rescripted by TakeoHonorable
  173. --Revamped Periastrons: The Periastron of Crimson Catastrophe
  174.  
  175. function Create(ty)
  176. return function(data)
  177. local obj = Instance.new(ty)
  178. for k, v in pairs(data) do
  179. if type(k) == 'number' then
  180. v.Parent = obj
  181. else
  182. obj[k] = v
  183. end
  184. end
  185. return obj
  186. end
  187. end
  188.  
  189. local Seed = Random.new(tick())
  190.  
  191. local Tool = script.Parent
  192. Tool.Enabled = true
  193.  
  194. local Handle = Tool:WaitForChild("Handle",10)
  195.  
  196. local PointLight = Handle:WaitForChild("PointLight",10)
  197.  
  198. local Sparkles = Handle:FindFirstChildOfClass("Sparkles")
  199.  
  200. local Animations = Tool:WaitForChild("Animations",10)
  201.  
  202. local Deletables = {} --Send all deletables here
  203.  
  204. local Sounds = {
  205. LungeSound = Handle:WaitForChild("LungeSound",10),
  206. SlashSound = Handle:WaitForChild("SlashSound",10),
  207. Laser = Handle:WaitForChild("Laser",10),
  208. Charge = Handle:WaitForChild("Charge",10),
  209. }
  210.  
  211. local AttackAnims
  212.  
  213. local Services = {
  214. Players = (game:FindService("Players") or game:GetService("Players")),
  215. TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
  216. RunService = (game:FindService("RunService") or game:GetService("RunService")),
  217. Debris = (game:FindService("Debris") or game:GetService("Debris"))
  218. }
  219.  
  220. local Components = {
  221. PeriSparkle = Handle:WaitForChild("Sparkles",10),
  222. PeriTrail = Handle:WaitForChild("Trail",10),
  223. MouseInput = Tool:WaitForChild("MouseInput",10)
  224. }
  225. Components.PeriSparkle.Enabled = true
  226. Components.PeriTrail.Enabled = false
  227. PointLight.Enabled = true
  228.  
  229. local Player,Character,Humanoid,Root,Torso
  230.  
  231. local Properties = {
  232. BaseDamage = 27,
  233. PillarCount = 5,
  234. PillarRadius = 10,
  235. PillarHeight = 200,
  236. SpecialCooldown = 12
  237. }
  238.  
  239. local Remote = (Tool:FindFirstChild("Remote") or Instance.new("RemoteEvent"));Remote.Name = "Remote";Remote.Parent = Tool
  240.  
  241. local RedPillar = Create("Part"){
  242. Shape = Enum.PartType.Cylinder,
  243. Material = Enum.Material.Neon,
  244. BrickColor = BrickColor.new("Crimson"),
  245. Size = Vector3.new(Properties.PillarHeight,Properties.PillarRadius,Properties.PillarRadius),
  246. CanCollide = false,
  247. Anchored = true,
  248. Transparency = 0.3,
  249. Locked = true,
  250. TopSurface = Enum.SurfaceType.Smooth,
  251. BottomSurface = Enum.SurfaceType.Smooth
  252. }
  253.  
  254. local Surfaces = {"Front","Back","Left","Right","Top","Bottom"}
  255.  
  256. local PillarLighting = Create("SurfaceLight"){
  257. Color = Color3.fromRGB(151, 0, 0),
  258. Angle = 180,
  259. Enabled = true,
  260. Range = 10,
  261. Shadows = true
  262. }
  263.  
  264. for _,surfaces in pairs(Surfaces) do
  265. local Lighting = PillarLighting:Clone()
  266. Lighting.Face = Enum.NormalId[surfaces]
  267. Lighting.Parent = RedPillar
  268. end
  269.  
  270. local Grips = {
  271. Normal = Tool:WaitForChild("NormalGrip").Value,
  272. --BackR6 = Tool:WaitForChild("BackGrip").Value,
  273. --BackR15 = Tool:WaitForChild("BackGrip").Value+Vector3.new(-.7,0,-.7)
  274. }
  275. Tool.Grip = Grips.Normal
  276.  
  277. function RayCast(Pos, Dir, Max, IgnoreList)
  278. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir.unit * (Max or 999.999)), IgnoreList)
  279. end
  280.  
  281. function IsInTable(Table,Value)
  282. for _,v in pairs(Table) do
  283. if v == Value then
  284. return true
  285. end
  286. end
  287. return false
  288. end
  289.  
  290. function IsTeamMate(Player1, Player2)
  291. return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
  292. end
  293.  
  294. function TagHumanoid(humanoid, player)
  295. local Creator_Tag = Instance.new("ObjectValue")
  296. Creator_Tag.Name = "creator"
  297. Creator_Tag.Value = player
  298. Services.Debris:AddItem(Creator_Tag, 2)
  299. Creator_Tag.Parent = humanoid
  300. end
  301.  
  302. function UntagHumanoid(humanoid)
  303. for i, v in pairs(humanoid:GetChildren()) do
  304. if v:IsA("ObjectValue") and v.Name == "creator" then
  305. v:Destroy()
  306. end
  307. end
  308. end
  309.  
  310. local function GetNearestTorso(MarkedPosition,TorsoPopulationTable)
  311. local ClosestDistance = math.huge
  312. local ClosestTorso
  313. for i=1,#TorsoPopulationTable do
  314. local distance = (TorsoPopulationTable[i].CFrame.p-MarkedPosition).magnitude
  315. if TorsoPopulationTable[i] and distance < ClosestDistance then
  316. ClosestDistance = distance
  317. ClosestTorso = TorsoPopulationTable[i]
  318. end
  319. end
  320. --warn("The Closest Person is: "..ClosestTorso.Parent.Name)
  321. return ClosestTorso
  322. end
  323.  
  324. local CurrentTime,LastTime = tick(),tick()
  325. function Activated()
  326. if not Tool.Enabled then return end
  327. Tool.Enabled = false
  328. CurrentTime = tick()
  329. if (CurrentTime-LastTime) <= 0.2 then
  330. --print("Lunge")
  331. Sounds.LungeSound:Play()
  332. Components.PeriTrail.Enabled = true
  333. local MousePosition = Components.MouseInput:InvokeClient(Player)
  334. local Direction = CFrame.new(Root.Position, Vector3.new(MousePosition.X, Root.Position.Y, MousePosition.Z))
  335. local BodyVelocity = Instance.new("BodyVelocity")
  336. BodyVelocity.MaxForce = Vector3.new(math.huge, 0, math.huge)
  337. BodyVelocity.Velocity = Direction.lookVector * 100
  338. Services.Debris:AddItem(BodyVelocity, 0.5)
  339. BodyVelocity.Parent = Root
  340. delay(.5,function()
  341. Components.PeriTrail.Enabled = false
  342. end)
  343. Root.CFrame = CFrame.new(Root.CFrame.p,Root.CFrame.p+Direction.lookVector)
  344. wait(1.5)
  345. else
  346. local SwingAnims = {AttackAnims.Slash,AttackAnims.SlashAnim,AttackAnims.RightSlash}
  347. local AttackAnim = SwingAnims[Seed:NextInteger(1,#SwingAnims)]
  348. spawn(function()
  349. if AttackAnim ~= AttackAnims.SlashAnim then
  350. Sounds.SlashSound:Play()
  351. else
  352. Sounds.SlashSound:Play()
  353. wait(.5)
  354. Sounds.SlashSound:Play()
  355. end
  356. end)
  357.  
  358. AttackAnim:Play()
  359. --wait(.4)
  360. end
  361. LastTime = CurrentTime
  362. Tool.Enabled = true
  363. end
  364.  
  365. local Touch
  366. function Equipped(Mouse)
  367. Character = Tool.Parent
  368. Root = Character:FindFirstChild("HumanoidRootPart")
  369. Player = Services.Players:GetPlayerFromCharacter(Character)
  370. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  371. AttackAnims = {
  372. Slash = Animations:WaitForChild(Humanoid.RigType.Name,10):WaitForChild("Slash",10),
  373. RightSlash = Animations:WaitForChild(Humanoid.RigType.Name,10):WaitForChild("RightSlash",10),
  374. SlashAnim = Animations:WaitForChild(Humanoid.RigType.Name,10):WaitForChild("SlashAnim",10),
  375. }
  376. for i,v in pairs(AttackAnims) do
  377. AttackAnims[i] = Humanoid:LoadAnimation(v)
  378. end
  379. Touch = Handle.Touched:Connect(function(hit)
  380. Damage(hit,Properties.BaseDamage,false)
  381. end)
  382. end
  383.  
  384.  
  385. function Unequipped()
  386. if Touch then Touch:Disconnect();Touch = nil end
  387. for i,v in pairs(AttackAnims) do
  388. v:Stop()
  389. end
  390. end
  391.  
  392.  
  393.  
  394. local HitHumanoids = {}
  395. function Damage(hit,TotalDamage,PillarsUsing)
  396. if not hit or not hit.Parent then return end
  397. local Hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  398. local ForceField = hit.Parent:FindFirstChildOfClass("ForceField")
  399. if not Hum or Hum.Health <=0 or Hum == Humanoid or ForceField then return end
  400.  
  401. if IsTeamMate(Player,Services.Players:GetPlayerFromCharacter(Hum.Parent)) then return end
  402.  
  403. if IsInTable(HitHumanoids,Hum) then return end
  404.  
  405. spawn(function()
  406. UntagHumanoid(Hum)
  407. TagHumanoid(Hum,Player)
  408. HitHumanoids[#HitHumanoids+1]=Hum
  409. Hum:TakeDamage(TotalDamage)
  410. --wait(.5)
  411. for i,v in pairs(HitHumanoids) do
  412. if v == Hum then
  413. HitHumanoids[i] = nil
  414. end
  415. end
  416. end)
  417. if PillarsUsing then
  418. if not hit.Anchored and string.find(string.lower(hit.Name),"torso") or string.find(string.lower(hit.Name),"head") or (Hum.Health-TotalDamage)<=0 then
  419. --print("ThanosEffect")
  420. spawn(function()
  421. if not Hum or not Hum.Parent or Hum.Parent:FindFirstChild("Vaporize") then return end
  422. local VaporizeScript = script:WaitForChild("Vaporize",10):Clone()
  423. VaporizeScript.Parent = Hum.Parent
  424. VaporizeScript.Disabled = false
  425. end)
  426. end
  427. end
  428. end
  429.  
  430. Tool.Activated:Connect(Activated)
  431. Tool.Equipped:Connect(Equipped)
  432. Tool.Unequipped:Connect(Unequipped)
  433.  
  434.  
  435. function SummonPillars()
  436. if not Humanoid or Humanoid.Health <= 0 or not Root or not Tool.Enabled or not Components.PeriSparkle.Enabled then return end
  437. Components.PeriSparkle.Enabled = false
  438. spawn(function()
  439. local PillarPlates = {}
  440. local Pillars = {}
  441. local PillarModelCenter = Create("Part"){
  442. CFrame = CFrame.new(Root.CFrame.p-Vector3.new(0,3,0)),
  443. Anchored = true,
  444. CanCollide = false,
  445. Transparency = 1,
  446. Size = Vector3.new(1,1,1)*0,
  447. TopSurface = Enum.SurfaceType.Smooth,
  448. BottomSurface = Enum.SurfaceType.Smooth,
  449. Locked = true
  450. }
  451.  
  452. local PillarsModel = Create("Model"){
  453. PrimaryPart = PillarModelCenter,
  454. Name = Character.Name.."'s Pillar Scatter"
  455. }
  456.  
  457.  
  458.  
  459. PillarModelCenter.Parent = PillarsModel
  460. PillarsModel.Parent = workspace
  461. delay(20,function()
  462. PillarsModel:Destroy()
  463. end)
  464. Services.Debris:AddItem(PillarsModel,20)
  465. local SpawnPos = PillarModelCenter.CFrame.p
  466. for i=1,Properties.PillarCount,1 do -- Create the Pillar plates
  467. local PillarClone = RedPillar:Clone()
  468. table.insert(PillarPlates,PillarClone)
  469. PillarClone.Size = Vector3.new(1,Properties.PillarRadius*1.2,Properties.PillarRadius*1.2)
  470. PillarClone.CFrame = (CFrame.new(SpawnPos) * CFrame.Angles(0,i*math.rad(360/Properties.PillarCount),math.rad(90))) * CFrame.new(0,12,0)
  471. PillarClone.Transparency = 1
  472. PillarClone.Parent = PillarsModel
  473. end
  474. spawn(function()
  475. local ChargeSound = Sounds.Charge:Clone()
  476. ChargeSound.Parent = PillarModelCenter
  477. ChargeSound:Play();ChargeSound.Ended:Wait()
  478. --print("Pillars of Doom!")
  479. for i, plate in pairs(PillarPlates) do
  480. local Pillar = plate:Clone()
  481.  
  482. table.insert(Pillars,Pillar)
  483. Pillar.Size = Vector3.new(1,Properties.PillarRadius,Properties.PillarRadius)
  484. Pillar.CFrame = plate.CFrame
  485.  
  486. local Force = Create("BodyVelocity"){
  487. --Force = Vector3.new(0,Pillar:GetMass()*workspace.Gravity,0),
  488. MaxForce = Vector3.new(1,1,1)*math.huge,
  489. Parent = Pillar
  490. }
  491. Pillar.Parent = PillarsModel
  492. --table.remove(PillarPlates,i)
  493. plate:Destroy()
  494. local LaserSound = Sounds.Laser:Clone()
  495. LaserSound.Parent = Pillar
  496. LaserSound:Play()
  497. end
  498.  
  499. for i=0,200,200/30 do
  500. for _,pillars in pairs(Pillars) do
  501. --pillars:Resize(Enum.NormalId.Right,200/60)
  502. pillars.Size = Vector3.new(i,Properties.PillarRadius,Properties.PillarRadius)
  503. pillars.CFrame = CFrame.new(pillars.CFrame.p.x,SpawnPos.y+(pillars.Size.x/3),pillars.CFrame.p.z) * (pillars.CFrame-pillars.CFrame.p)
  504. end
  505. Services.RunService.Heartbeat:Wait()
  506. end
  507. for _,pillars in pairs(Pillars) do
  508. pillars.Anchored = false
  509. pillars:SetNetworkOwner(nil)
  510. --pillars:FindFirstChildOfClass("BodyForce").Force = Vector3.new(0,pillars:GetMass()*workspace.Gravity,0)
  511. if pillars:FindFirstChildOfClass("BodyVelocity") then
  512. pillars:FindFirstChildOfClass("BodyVelocity").Velocity = (Vector3.new(pillars.CFrame.p.x,PillarModelCenter.CFrame.p.y,pillars.CFrame.p.z)-PillarModelCenter.CFrame.p).unit*100
  513. end
  514.  
  515. --pillars.Velocity = (Vector3.new(pillars.CFrame.p.x,PillarModelCenter.CFrame.p.y,pillars.CFrame.p.z)-PillarModelCenter.CFrame.p).unit*30
  516. pillars.Touched:Connect(function(hit)
  517. if hit and hit.Parent and hit:IsA("BasePart") and not hit.Anchored and not hit:FindFirstAncestorWhichIsA("Accessory") and not hit:FindFirstAncestorWhichIsA("Tool") and not hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= PillarsModel and not hit:FindFirstChild("VaporizePart") then
  518. if (pillars.Size.X*pillars.Size.Y*pillars.Size.Z) > (hit.Size.X*hit.Size.Y*hit.Size.Z) then
  519. local VaporizePart = script:WaitForChild("VaporizePart"):Clone()
  520. VaporizePart.Parent = hit
  521. VaporizePart.Disabled = false
  522. end
  523. end
  524. Damage(hit,70,true)
  525.  
  526. end)
  527. end
  528. spawn(function()
  529. wait(6)
  530. for i=.3,1,.05 do
  531. for _,plates in pairs(Pillars) do
  532. plates.Transparency = i
  533. end
  534. Services.RunService.Heartbeat:Wait()
  535. end
  536. PillarsModel:Destroy()
  537. end)
  538. while PillarsModel and PillarsModel.Parent and PillarsModel.PrimaryPart do
  539. PillarsModel:SetPrimaryPartCFrame(PillarsModel.PrimaryPart.CFrame*CFrame.Angles(0,math.rad(5),0))
  540. Services.RunService.Heartbeat:Wait()
  541. end
  542. wait(Properties.SpecialCooldown)
  543. Components.PeriSparkle.Enabled = true
  544. end)
  545.  
  546.  
  547. for i=1,0.3,-.05 do
  548. for _,plates in pairs(PillarPlates) do
  549. plates.Transparency = i
  550. end
  551. Services.RunService.Heartbeat:Wait()
  552. end
  553.  
  554.  
  555.  
  556. end)
  557.  
  558.  
  559. end
  560.  
  561.  
  562. Remote.OnServerEvent:Connect(function(Client,Key)
  563. if not Player or not Client or Client ~= Player or not Key then return end
  564. if Key == Enum.KeyCode.Q then
  565. SummonPillars()
  566. end
  567. end)
  568. end))
  569. Script12.Name = "Vaporize"
  570. Script12.Parent = Script11
  571. table.insert(cors,sandbox(Script12,function()
  572. local Character = script.Parent
  573.  
  574. local Services = {
  575. Players = (game:FindService("Players") or game:GetService("Players")),
  576. TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
  577. RunService = (game:FindService("RunService") or game:GetService("RunService")),
  578. Debris = (game:FindService("Debris") or game:GetService("Debris"))
  579. }
  580.  
  581. local DisintegrateParticle = script:WaitForChild("Disintegreate",10)
  582.  
  583. for _,parts in pairs(Character:GetChildren()) do
  584. if parts:IsA("BasePart") and parts.Transparency < 1 then
  585. parts.Anchored = true
  586. local ParticleClone = DisintegrateParticle:Clone()
  587. ParticleClone.Parent = parts
  588. ParticleClone.Color = ColorSequence.new(parts.Color)
  589. ParticleClone.Enabled = true
  590. Services.Debris:AddItem(parts,5)
  591. spawn(function()
  592. for i=0,1,.01 do
  593. if parts then
  594. parts.Transparency = i
  595. ParticleClone.Transparency = NumberSequence.new(i,1)
  596. end
  597. Services.RunService.Heartbeat:Wait()
  598. end
  599. if parts then parts:Destroy() end
  600. end)
  601. end
  602. end
  603. end))
  604. Script12.Disabled = true
  605. ParticleEmitter13.Name = "Disintegreate"
  606. ParticleEmitter13.Parent = Script12
  607. ParticleEmitter13.Speed = NumberRange.new(5, 30)
  608. ParticleEmitter13.Rotation = NumberRange.new(-180, 180)
  609. ParticleEmitter13.Enabled = false
  610. ParticleEmitter13.LightInfluence = 1
  611. ParticleEmitter13.Texture = "rbxassetid://304846479"
  612. ParticleEmitter13.Transparency = NumberSequence.new(0,1)
  613. ParticleEmitter13.Size = NumberSequence.new(0.1875,0)
  614. ParticleEmitter13.Lifetime = NumberRange.new(1, 2)
  615. ParticleEmitter13.Rate = 100
  616. ParticleEmitter13.RotSpeed = NumberRange.new(-300, 300)
  617. ParticleEmitter13.SpreadAngle = Vector2.new(-180, 180)
  618. ParticleEmitter13.VelocitySpread = -180
  619. Script14.Name = "VaporizePart"
  620. Script14.Parent = Script11
  621. table.insert(cors,sandbox(Script14,function()
  622. local Object = script.Parent
  623.  
  624. local Services = {
  625. Players = (game:FindService("Players") or game:GetService("Players")),
  626. TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
  627. RunService = (game:FindService("RunService") or game:GetService("RunService")),
  628. Debris = (game:FindService("Debris") or game:GetService("Debris"))
  629. }
  630.  
  631. local DisintegrateParticle = script:WaitForChild("Disintegreate",10)
  632.  
  633. Object.Anchored = true
  634. spawn(function()
  635. DisintegrateParticle.Parent = Object
  636. DisintegrateParticle.Color = ColorSequence.new(Object.Color)
  637. DisintegrateParticle.Enabled = true
  638. for i=0,1,.01 do
  639. Object.Transparency = i
  640. DisintegrateParticle.Transparency = NumberSequence.new(i,1)
  641. Services.RunService.Heartbeat:Wait()
  642. end
  643. Object:Destroy()
  644. end)
  645.  
  646.  
  647. end))
  648. Script14.Disabled = true
  649. ParticleEmitter15.Name = "Disintegreate"
  650. ParticleEmitter15.Parent = Script14
  651. ParticleEmitter15.Speed = NumberRange.new(5, 30)
  652. ParticleEmitter15.Rotation = NumberRange.new(-180, 180)
  653. ParticleEmitter15.Enabled = false
  654. ParticleEmitter15.LightInfluence = 1
  655. ParticleEmitter15.Texture = "rbxassetid://304846479"
  656. ParticleEmitter15.Transparency = NumberSequence.new(0,1)
  657. ParticleEmitter15.Size = NumberSequence.new(0.1875,0)
  658. ParticleEmitter15.Lifetime = NumberRange.new(1, 2)
  659. ParticleEmitter15.Rate = 100
  660. ParticleEmitter15.RotSpeed = NumberRange.new(-300, 300)
  661. ParticleEmitter15.SpreadAngle = Vector2.new(-180, 180)
  662. ParticleEmitter15.VelocitySpread = -180
  663. Configuration16.Name = "Variables"
  664. Configuration16.Parent = Tool0
  665. BoolValue17.Name = "ToolAnim"
  666. BoolValue17.Parent = Configuration16
  667. BoolValue17.Value = true
  668. Part18.Name = "Handle"
  669. Part18.Parent = Tool0
  670. Part18.CFrame = CFrame.new(-3.84008789, 2.67000103, 11.5099983, 0.711314917, 0, 0.702873468, -0.702873468, -4.37113883e-08, 0.711314917, 3.07235766e-08, -1, -3.10925614e-08)
  671. Part18.Orientation = Vector3.new(-45.3400002, 90, -90)
  672. Part18.Position = Vector3.new(-3.84008789, 2.67000103, 11.5099983)
  673. Part18.Rotation = Vector3.new(-90, 44.6599998, 0)
  674. Part18.Color = Color3.new(0.388235, 0.372549, 0.384314)
  675. Part18.Size = Vector3.new(1, 0.600000024, 5.19999886)
  676. Part18.BottomSurface = Enum.SurfaceType.Smooth
  677. Part18.BrickColor = BrickColor.new("Dark stone grey")
  678. Part18.Locked = true
  679. Part18.Reflectance = 0.40000000596046
  680. Part18.TopSurface = Enum.SurfaceType.Smooth
  681. Part18.brickColor = BrickColor.new("Dark stone grey")
  682. Part18.FormFactor = Enum.FormFactor.Custom
  683. Part18.formFactor = Enum.FormFactor.Custom
  684. SpecialMesh19.Parent = Part18
  685. SpecialMesh19.MeshId = "http://www.roblox.com/asset/?id=80557857"
  686. SpecialMesh19.TextureId = "rbxassetid://99058823"
  687. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  688. Sparkles20.Parent = Part18
  689. Sparkles20.Color = Color3.new(1.18056, 0, 0)
  690. Sparkles20.SparkleColor = Color3.new(0.666667, 0, 0)
  691. PointLight21.Parent = Part18
  692. PointLight21.Color = Color3.new(0.666667, 0, 0)
  693. PointLight21.Range = 10
  694. PointLight21.Brightness = 10
  695. Trail22.Parent = Part18
  696. Trail22.Attachment0 = nil
  697. Trail22.Attachment1 = nil
  698. Trail22.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.666667, 0, 0))
  699. Trail22.LightEmission = 1
  700. Trail22.Transparency = NumberSequence.new(1,0.5,1)
  701. Trail22.MinLength = 0
  702. Trail22.Lifetime = 1
  703. Sound23.Name = "SlashSound"
  704. Sound23.Parent = Part18
  705. Sound23.SoundId = "rbxassetid://12222216"
  706. Sound23.Volume = 0.60000002384186
  707. Sound24.Name = "LungeSound"
  708. Sound24.Parent = Part18
  709. Sound24.SoundId = "rbxassetid://701269479"
  710. Sound24.Volume = 1
  711. Sound25.Name = "Laser"
  712. Sound25.Parent = Part18
  713. Sound25.Looped = true
  714. Sound25.EmitterSize = 20
  715. Sound25.MinDistance = 20
  716. Sound25.SoundId = "rbxassetid://1447681819"
  717. Sound25.Volume = 0.30000001192093
  718. Sound26.Name = "Charge"
  719. Sound26.Parent = Part18
  720. Sound26.SoundId = "rbxassetid://1930016365"
  721. Sound26.Volume = 1
  722. LocalScript27.Name = "MouseIcon"
  723. LocalScript27.Parent = Tool0
  724. table.insert(cors,sandbox(LocalScript27,function()
  725. --Rescripted by Luckymaxer
  726.  
  727. Mouse_Icon = "rbxasset://textures/GunCursor.png"
  728. Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
  729.  
  730. Tool = script.Parent
  731.  
  732. Mouse = nil
  733.  
  734. function UpdateIcon()
  735. if Mouse then
  736. Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
  737. end
  738. end
  739.  
  740. function OnEquipped(ToolMouse)
  741. Mouse = ToolMouse
  742. UpdateIcon()
  743. end
  744.  
  745. function OnChanged(Property)
  746. if Property == "Enabled" then
  747. UpdateIcon()
  748. end
  749. end
  750.  
  751. Tool.Equipped:Connect(OnEquipped)
  752. Tool.Changed:Connect(OnChanged)
  753.  
  754. end))
  755. RemoteFunction28.Name = "MouseInput"
  756. RemoteFunction28.Parent = Tool0
  757. CFrameValue29.Name = "NormalGrip"
  758. CFrameValue29.Parent = Tool0
  759. CFrameValue29.Value = CFrame.new(0, 0, -2, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  760. Keyframe30.Name = "ThumbnailPose"
  761. Keyframe30.Parent = Tool0
  762. Pose31.Name = "LowerTorso"
  763. Pose31.Parent = Keyframe30
  764. Pose31.Weight = 0
  765. Pose32.Name = "LeftUpperLeg"
  766. Pose32.Parent = Pose31
  767. Pose32.CFrame = CFrame.new(7.4505806e-09, 0, 0, 0.96126163, 0, 0.275637507, 0.137818798, 0.866025329, -0.480630994, -0.238709062, 0.500000179, 0.832476914)
  768. Pose33.Name = "RightUpperLeg"
  769. Pose33.Parent = Pose31
  770. Pose33.CFrame = CFrame.new(0, 0, 0, 0.95105654, 0, 0.309017003, 0.256186724, 0.559192955, -0.788461626, -0.172800124, 0.829037607, 0.531824112)
  771. Pose34.Name = "UpperTorso"
  772. Pose34.Parent = Pose31
  773. Pose34.CFrame = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692616, -0.342020124, 0, 0.342020124, 0.939692616)
  774. Pose35.Name = "RightLowerArm"
  775. Pose35.Parent = Keyframe30
  776. Pose35.Weight = 0
  777. Pose36.Name = "RightHand"
  778. Pose36.Parent = Pose35
  779. Pose36.CFrame = CFrame.new(0, 7.4505806e-09, -1.49011612e-08, 1, 0, 0, 0, 0.7313537, 0.681998372, 0, -0.681998372, 0.7313537)
  780. Pose37.Name = "LeftUpperArm"
  781. Pose37.Parent = Keyframe30
  782. Pose37.Weight = 0
  783. Pose38.Name = "LeftLowerArm"
  784. Pose38.Parent = Pose37
  785. Pose38.CFrame = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.766044438, -0.642787576, 0, 0.642787576, 0.766044438)
  786. Pose39.Name = "UpperTorso"
  787. Pose39.Parent = Keyframe30
  788. Pose39.Weight = 0
  789. Pose40.Name = "RightUpperArm"
  790. Pose40.Parent = Pose39
  791. Pose40.CFrame = CFrame.new(-2.98023224e-08, 0, 1.49011612e-08, 0.0871557668, -0.986499727, -0.138643473, 0.996194661, 0.0863075703, 0.0121297315, 0, -0.139173031, 0.990267992)
  792. Pose41.Name = "LeftUpperArm"
  793. Pose41.Parent = Pose39
  794. Pose41.CFrame = CFrame.new(8.94069672e-08, 4.703179e-08, 0, 0.615661502, 0.764603436, 0.190637052, -0.788010716, 0.597373724, 0.148942024, 0, -0.241921932, 0.970295787)
  795. Pose42.Name = "Head"
  796. Pose42.Parent = Pose39
  797. Pose42.CFrame = CFrame.new(0, 0, 0, 0.848048091, 0, 0.529919267, 0, 1, 0, -0.529919267, 0, 0.848048091)
  798. Pose43.Name = "RightLowerLeg"
  799. Pose43.Parent = Keyframe30
  800. Pose43.Weight = 0
  801. Pose44.Name = "RightFoot"
  802. Pose44.Parent = Pose43
  803. Pose44.CFrame = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.906307697, 0.422618449, 0, -0.422618449, 0.906307697)
  804. Pose45.Name = "LeftLowerLeg"
  805. Pose45.Parent = Keyframe30
  806. Pose45.Weight = 0
  807. Pose46.Name = "LeftFoot"
  808. Pose46.Parent = Pose45
  809. Pose47.Name = "HumanoidRootPart"
  810. Pose47.Parent = Keyframe30
  811. Pose47.Weight = 0
  812. Pose48.Name = "LowerTorso"
  813. Pose48.Parent = Pose47
  814. Pose48.CFrame = CFrame.new(2.83122063e-07, 1.70000005, 8.94069672e-08, 0.819151998, 0, -0.57357651, 0.538985491, 0.342020124, 0.769751072, 0.196174681, -0.939692616, 0.280166447)
  815. Pose49.Name = "RightUpperArm"
  816. Pose49.Parent = Keyframe30
  817. Pose49.Weight = 0
  818. Pose50.Name = "RightLowerArm"
  819. Pose50.Parent = Pose49
  820. Pose50.CFrame = CFrame.new(0, 1.49011612e-08, 0, 1, 0, 0, 0, 0.0174522251, -0.99984777, 0, 0.99984777, 0.0174522251)
  821. Pose51.Name = "LeftLowerArm"
  822. Pose51.Parent = Keyframe30
  823. Pose51.Weight = 0
  824. Pose52.Name = "LeftHand"
  825. Pose52.Parent = Pose51
  826. Pose53.Name = "LeftUpperLeg"
  827. Pose53.Parent = Keyframe30
  828. Pose53.Weight = 0
  829. Pose54.Name = "LeftLowerLeg"
  830. Pose54.Parent = Pose53
  831. Pose54.CFrame = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.681998372, 0.7313537, 0, -0.7313537, 0.681998372)
  832. Pose55.Name = "RightUpperLeg"
  833. Pose55.Parent = Keyframe30
  834. Pose55.Weight = 0
  835. Pose56.Name = "RightLowerLeg"
  836. Pose56.Parent = Pose55
  837. Pose56.CFrame = CFrame.new(0, -2.98023224e-08, 0, 1, 0, 0, 0, 0.798635364, 0.601815224, 0, -0.601815224, 0.798635364)
  838. Camera57.Name = "ThumbnailCamera"
  839. Camera57.Parent = Tool0
  840. Camera57.CFrame = CFrame.new(-3.56322265, 2.81899595, 14.8406715, 0.996588051, -0.0037382429, 0.082452409, -0, 0.998973846, 0.0452916585, -0.0825371146, -0.045137126, 0.995565295)
  841. Camera57.CoordinateFrame = CFrame.new(-3.56322265, 2.81899595, 14.8406715, 0.996588051, -0.0037382429, 0.082452409, -0, 0.998973846, 0.0452916585, -0.0825371146, -0.045137126, 0.995565295)
  842. Camera57.Focus = CFrame.new(-3.72812748, 2.72841263, 12.8495407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  843. Camera57.focus = CFrame.new(-3.72812748, 2.72841263, 12.8495407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  844. for i,v in pairs(mas:GetChildren()) do
  845. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  846. pcall(function() v:MakeJoints() end)
  847. end
  848. mas:Destroy()
  849. for i,v in pairs(cors) do
  850. spawn(function()
  851. pcall(v)
  852. end)
  853. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement