Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- LocalScript1 = Instance.new("LocalScript")
- Folder2 = Instance.new("Folder")
- Folder3 = Instance.new("Folder")
- Animation4 = Instance.new("Animation")
- Animation5 = Instance.new("Animation")
- Animation6 = Instance.new("Animation")
- Folder7 = Instance.new("Folder")
- Animation8 = Instance.new("Animation")
- Animation9 = Instance.new("Animation")
- Animation10 = Instance.new("Animation")
- Script11 = Instance.new("Script")
- Script12 = Instance.new("Script")
- ParticleEmitter13 = Instance.new("ParticleEmitter")
- Script14 = Instance.new("Script")
- ParticleEmitter15 = Instance.new("ParticleEmitter")
- Configuration16 = Instance.new("Configuration")
- BoolValue17 = Instance.new("BoolValue")
- Part18 = Instance.new("Part")
- SpecialMesh19 = Instance.new("SpecialMesh")
- Sparkles20 = Instance.new("Sparkles")
- PointLight21 = Instance.new("PointLight")
- Trail22 = Instance.new("Trail")
- Sound23 = Instance.new("Sound")
- Sound24 = Instance.new("Sound")
- Sound25 = Instance.new("Sound")
- Sound26 = Instance.new("Sound")
- LocalScript27 = Instance.new("LocalScript")
- RemoteFunction28 = Instance.new("RemoteFunction")
- CFrameValue29 = Instance.new("CFrameValue")
- Keyframe30 = Instance.new("Keyframe")
- Pose31 = Instance.new("Pose")
- Pose32 = Instance.new("Pose")
- Pose33 = Instance.new("Pose")
- Pose34 = Instance.new("Pose")
- Pose35 = Instance.new("Pose")
- Pose36 = Instance.new("Pose")
- Pose37 = Instance.new("Pose")
- Pose38 = Instance.new("Pose")
- Pose39 = Instance.new("Pose")
- Pose40 = Instance.new("Pose")
- Pose41 = Instance.new("Pose")
- Pose42 = Instance.new("Pose")
- Pose43 = Instance.new("Pose")
- Pose44 = Instance.new("Pose")
- Pose45 = Instance.new("Pose")
- Pose46 = Instance.new("Pose")
- Pose47 = Instance.new("Pose")
- Pose48 = Instance.new("Pose")
- Pose49 = Instance.new("Pose")
- Pose50 = Instance.new("Pose")
- Pose51 = Instance.new("Pose")
- Pose52 = Instance.new("Pose")
- Pose53 = Instance.new("Pose")
- Pose54 = Instance.new("Pose")
- Pose55 = Instance.new("Pose")
- Pose56 = Instance.new("Pose")
- Camera57 = Instance.new("Camera")
- Tool0.Name = "CrimsonPeriastron"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxassetid://99065961"
- Tool0.Grip = CFrame.new(0, 0, -2, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Tool0.GripForward = Vector3.new(-1, -0, -0)
- Tool0.GripPos = Vector3.new(0, 0, -2)
- Tool0.GripRight = Vector3.new(0, 1, 0)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- Tool0.ToolTip = "Crimson Catastrophe!"
- LocalScript1.Name = "Client"
- LocalScript1.Parent = Tool0
- table.insert(cors,sandbox(LocalScript1,function()
- local Tool = script.Parent
- local Remote = Tool:WaitForChild("Remote",10)
- local MouseInput = Tool:WaitForChild("MouseInput")
- local Services = {
- Players = (game:FindService("Players") or game:GetService("Players")),
- TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
- RunService = (game:FindService("RunService") or game:GetService("RunService")),
- Input = (game:FindService("ContextActionService") or game:GetService("ContextActionService"))
- }
- local Player,Character,Humanoid
- function PeriPrimary(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Remote:FireServer(Enum.KeyCode.E)
- end
- end
- function PeriSecondary(actionName, inputState, inputObj)
- if inputState == Enum.UserInputState.Begin then
- Remote:FireServer(Enum.KeyCode.Q)
- end
- end
- function Equipped()
- Player = Services.Players.LocalPlayer
- Character = Player.Character
- Humanoid = Character:FindFirstChildOfClass("Humanoid")
- if not Humanoid or not Humanoid.Parent or Humanoid.Health <= 0 then return end
- --Services.Input:BindAction("PeriPrimary",PeriPrimary,true,Enum.KeyCode.E,Enum.KeyCode.ButtonR1)
- Services.Input:BindAction("PeriSecondary",PeriSecondary,true,Enum.KeyCode.Q,Enum.KeyCode.ButtonY)
- --Services.Input:SetTitle("PeriPrimary","Sword Stance/Counter")
- Services.Input:SetTitle("PeriSecondary","Crimson Pillars")
- --Services.Input:SetPosition("PeriPrimary",UDim2.new(.5,0,-.5,0))
- Services.Input:SetPosition("PeriSecondary",UDim2.new(.5,0,0,0))
- end
- function Unequipped()
- --Services.Input:UnbindAction("PeriPrimary")
- Services.Input:UnbindAction("PeriSecondary")
- end
- Tool.Equipped:Connect(Equipped)
- Tool.Unequipped:Connect(Unequipped)
- function MouseInput.OnClientInvoke()
- return game.Players.LocalPlayer:GetMouse().Hit.p
- end
- end))
- Folder2.Name = "Animations"
- Folder2.Parent = Tool0
- Folder3.Name = "R6"
- Folder3.Parent = Folder2
- Animation4.Name = "RightSlash"
- Animation4.Parent = Folder3
- Animation4.AnimationId = "http://www.roblox.com/Asset?ID=54611484"
- Animation5.Name = "Slash"
- Animation5.Parent = Folder3
- Animation5.AnimationId = "http://www.roblox.com/Asset?ID=54432537"
- Animation6.Name = "SlashAnim"
- Animation6.Parent = Folder3
- Animation6.AnimationId = "http://www.roblox.com/Asset?ID=63718551"
- Folder7.Name = "R15"
- Folder7.Parent = Folder2
- Animation8.Name = "RightSlash"
- Animation8.Parent = Folder7
- Animation8.AnimationId = "rbxassetid://2410679501"
- Animation9.Name = "Slash"
- Animation9.Parent = Folder7
- Animation9.AnimationId = "rbxassetid://2441858691"
- Animation10.Name = "SlashAnim"
- Animation10.Parent = Folder7
- Animation10.AnimationId = "rbxassetid://2443689022"
- Script11.Name = "Server"
- Script11.Parent = Tool0
- table.insert(cors,sandbox(Script11,function()
- --Rescripted by TakeoHonorable
- --Revamped Periastrons: The Periastron of Crimson Catastrophe
- function Create(ty)
- return function(data)
- local obj = Instance.new(ty)
- for k, v in pairs(data) do
- if type(k) == 'number' then
- v.Parent = obj
- else
- obj[k] = v
- end
- end
- return obj
- end
- end
- local Seed = Random.new(tick())
- local Tool = script.Parent
- Tool.Enabled = true
- local Handle = Tool:WaitForChild("Handle",10)
- local PointLight = Handle:WaitForChild("PointLight",10)
- local Sparkles = Handle:FindFirstChildOfClass("Sparkles")
- local Animations = Tool:WaitForChild("Animations",10)
- local Deletables = {} --Send all deletables here
- local Sounds = {
- LungeSound = Handle:WaitForChild("LungeSound",10),
- SlashSound = Handle:WaitForChild("SlashSound",10),
- Laser = Handle:WaitForChild("Laser",10),
- Charge = Handle:WaitForChild("Charge",10),
- }
- local AttackAnims
- local Services = {
- Players = (game:FindService("Players") or game:GetService("Players")),
- TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
- RunService = (game:FindService("RunService") or game:GetService("RunService")),
- Debris = (game:FindService("Debris") or game:GetService("Debris"))
- }
- local Components = {
- PeriSparkle = Handle:WaitForChild("Sparkles",10),
- PeriTrail = Handle:WaitForChild("Trail",10),
- MouseInput = Tool:WaitForChild("MouseInput",10)
- }
- Components.PeriSparkle.Enabled = true
- Components.PeriTrail.Enabled = false
- PointLight.Enabled = true
- local Player,Character,Humanoid,Root,Torso
- local Properties = {
- BaseDamage = 27,
- PillarCount = 5,
- PillarRadius = 10,
- PillarHeight = 200,
- SpecialCooldown = 12
- }
- local Remote = (Tool:FindFirstChild("Remote") or Instance.new("RemoteEvent"));Remote.Name = "Remote";Remote.Parent = Tool
- local RedPillar = Create("Part"){
- Shape = Enum.PartType.Cylinder,
- Material = Enum.Material.Neon,
- BrickColor = BrickColor.new("Crimson"),
- Size = Vector3.new(Properties.PillarHeight,Properties.PillarRadius,Properties.PillarRadius),
- CanCollide = false,
- Anchored = true,
- Transparency = 0.3,
- Locked = true,
- TopSurface = Enum.SurfaceType.Smooth,
- BottomSurface = Enum.SurfaceType.Smooth
- }
- local Surfaces = {"Front","Back","Left","Right","Top","Bottom"}
- local PillarLighting = Create("SurfaceLight"){
- Color = Color3.fromRGB(151, 0, 0),
- Angle = 180,
- Enabled = true,
- Range = 10,
- Shadows = true
- }
- for _,surfaces in pairs(Surfaces) do
- local Lighting = PillarLighting:Clone()
- Lighting.Face = Enum.NormalId[surfaces]
- Lighting.Parent = RedPillar
- end
- local Grips = {
- Normal = Tool:WaitForChild("NormalGrip").Value,
- --BackR6 = Tool:WaitForChild("BackGrip").Value,
- --BackR15 = Tool:WaitForChild("BackGrip").Value+Vector3.new(-.7,0,-.7)
- }
- Tool.Grip = Grips.Normal
- function RayCast(Pos, Dir, Max, IgnoreList)
- return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir.unit * (Max or 999.999)), IgnoreList)
- end
- function IsInTable(Table,Value)
- for _,v in pairs(Table) do
- if v == Value then
- return true
- end
- end
- return false
- end
- function IsTeamMate(Player1, Player2)
- return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
- end
- function TagHumanoid(humanoid, player)
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Services.Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- local function GetNearestTorso(MarkedPosition,TorsoPopulationTable)
- local ClosestDistance = math.huge
- local ClosestTorso
- for i=1,#TorsoPopulationTable do
- local distance = (TorsoPopulationTable[i].CFrame.p-MarkedPosition).magnitude
- if TorsoPopulationTable[i] and distance < ClosestDistance then
- ClosestDistance = distance
- ClosestTorso = TorsoPopulationTable[i]
- end
- end
- --warn("The Closest Person is: "..ClosestTorso.Parent.Name)
- return ClosestTorso
- end
- local CurrentTime,LastTime = tick(),tick()
- function Activated()
- if not Tool.Enabled then return end
- Tool.Enabled = false
- CurrentTime = tick()
- if (CurrentTime-LastTime) <= 0.2 then
- --print("Lunge")
- Sounds.LungeSound:Play()
- Components.PeriTrail.Enabled = true
- local MousePosition = Components.MouseInput:InvokeClient(Player)
- local Direction = CFrame.new(Root.Position, Vector3.new(MousePosition.X, Root.Position.Y, MousePosition.Z))
- local BodyVelocity = Instance.new("BodyVelocity")
- BodyVelocity.MaxForce = Vector3.new(math.huge, 0, math.huge)
- BodyVelocity.Velocity = Direction.lookVector * 100
- Services.Debris:AddItem(BodyVelocity, 0.5)
- BodyVelocity.Parent = Root
- delay(.5,function()
- Components.PeriTrail.Enabled = false
- end)
- Root.CFrame = CFrame.new(Root.CFrame.p,Root.CFrame.p+Direction.lookVector)
- wait(1.5)
- else
- local SwingAnims = {AttackAnims.Slash,AttackAnims.SlashAnim,AttackAnims.RightSlash}
- local AttackAnim = SwingAnims[Seed:NextInteger(1,#SwingAnims)]
- spawn(function()
- if AttackAnim ~= AttackAnims.SlashAnim then
- Sounds.SlashSound:Play()
- else
- Sounds.SlashSound:Play()
- wait(.5)
- Sounds.SlashSound:Play()
- end
- end)
- AttackAnim:Play()
- --wait(.4)
- end
- LastTime = CurrentTime
- Tool.Enabled = true
- end
- local Touch
- function Equipped(Mouse)
- Character = Tool.Parent
- Root = Character:FindFirstChild("HumanoidRootPart")
- Player = Services.Players:GetPlayerFromCharacter(Character)
- Humanoid = Character:FindFirstChildOfClass("Humanoid")
- AttackAnims = {
- Slash = Animations:WaitForChild(Humanoid.RigType.Name,10):WaitForChild("Slash",10),
- RightSlash = Animations:WaitForChild(Humanoid.RigType.Name,10):WaitForChild("RightSlash",10),
- SlashAnim = Animations:WaitForChild(Humanoid.RigType.Name,10):WaitForChild("SlashAnim",10),
- }
- for i,v in pairs(AttackAnims) do
- AttackAnims[i] = Humanoid:LoadAnimation(v)
- end
- Touch = Handle.Touched:Connect(function(hit)
- Damage(hit,Properties.BaseDamage,false)
- end)
- end
- function Unequipped()
- if Touch then Touch:Disconnect();Touch = nil end
- for i,v in pairs(AttackAnims) do
- v:Stop()
- end
- end
- local HitHumanoids = {}
- function Damage(hit,TotalDamage,PillarsUsing)
- if not hit or not hit.Parent then return end
- local Hum = hit.Parent:FindFirstChildOfClass("Humanoid")
- local ForceField = hit.Parent:FindFirstChildOfClass("ForceField")
- if not Hum or Hum.Health <=0 or Hum == Humanoid or ForceField then return end
- if IsTeamMate(Player,Services.Players:GetPlayerFromCharacter(Hum.Parent)) then return end
- if IsInTable(HitHumanoids,Hum) then return end
- spawn(function()
- UntagHumanoid(Hum)
- TagHumanoid(Hum,Player)
- HitHumanoids[#HitHumanoids+1]=Hum
- Hum:TakeDamage(TotalDamage)
- --wait(.5)
- for i,v in pairs(HitHumanoids) do
- if v == Hum then
- HitHumanoids[i] = nil
- end
- end
- end)
- if PillarsUsing then
- 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
- --print("ThanosEffect")
- spawn(function()
- if not Hum or not Hum.Parent or Hum.Parent:FindFirstChild("Vaporize") then return end
- local VaporizeScript = script:WaitForChild("Vaporize",10):Clone()
- VaporizeScript.Parent = Hum.Parent
- VaporizeScript.Disabled = false
- end)
- end
- end
- end
- Tool.Activated:Connect(Activated)
- Tool.Equipped:Connect(Equipped)
- Tool.Unequipped:Connect(Unequipped)
- function SummonPillars()
- if not Humanoid or Humanoid.Health <= 0 or not Root or not Tool.Enabled or not Components.PeriSparkle.Enabled then return end
- Components.PeriSparkle.Enabled = false
- spawn(function()
- local PillarPlates = {}
- local Pillars = {}
- local PillarModelCenter = Create("Part"){
- CFrame = CFrame.new(Root.CFrame.p-Vector3.new(0,3,0)),
- Anchored = true,
- CanCollide = false,
- Transparency = 1,
- Size = Vector3.new(1,1,1)*0,
- TopSurface = Enum.SurfaceType.Smooth,
- BottomSurface = Enum.SurfaceType.Smooth,
- Locked = true
- }
- local PillarsModel = Create("Model"){
- PrimaryPart = PillarModelCenter,
- Name = Character.Name.."'s Pillar Scatter"
- }
- PillarModelCenter.Parent = PillarsModel
- PillarsModel.Parent = workspace
- delay(20,function()
- PillarsModel:Destroy()
- end)
- Services.Debris:AddItem(PillarsModel,20)
- local SpawnPos = PillarModelCenter.CFrame.p
- for i=1,Properties.PillarCount,1 do -- Create the Pillar plates
- local PillarClone = RedPillar:Clone()
- table.insert(PillarPlates,PillarClone)
- PillarClone.Size = Vector3.new(1,Properties.PillarRadius*1.2,Properties.PillarRadius*1.2)
- PillarClone.CFrame = (CFrame.new(SpawnPos) * CFrame.Angles(0,i*math.rad(360/Properties.PillarCount),math.rad(90))) * CFrame.new(0,12,0)
- PillarClone.Transparency = 1
- PillarClone.Parent = PillarsModel
- end
- spawn(function()
- local ChargeSound = Sounds.Charge:Clone()
- ChargeSound.Parent = PillarModelCenter
- ChargeSound:Play();ChargeSound.Ended:Wait()
- --print("Pillars of Doom!")
- for i, plate in pairs(PillarPlates) do
- local Pillar = plate:Clone()
- table.insert(Pillars,Pillar)
- Pillar.Size = Vector3.new(1,Properties.PillarRadius,Properties.PillarRadius)
- Pillar.CFrame = plate.CFrame
- local Force = Create("BodyVelocity"){
- --Force = Vector3.new(0,Pillar:GetMass()*workspace.Gravity,0),
- MaxForce = Vector3.new(1,1,1)*math.huge,
- Parent = Pillar
- }
- Pillar.Parent = PillarsModel
- --table.remove(PillarPlates,i)
- plate:Destroy()
- local LaserSound = Sounds.Laser:Clone()
- LaserSound.Parent = Pillar
- LaserSound:Play()
- end
- for i=0,200,200/30 do
- for _,pillars in pairs(Pillars) do
- --pillars:Resize(Enum.NormalId.Right,200/60)
- pillars.Size = Vector3.new(i,Properties.PillarRadius,Properties.PillarRadius)
- pillars.CFrame = CFrame.new(pillars.CFrame.p.x,SpawnPos.y+(pillars.Size.x/3),pillars.CFrame.p.z) * (pillars.CFrame-pillars.CFrame.p)
- end
- Services.RunService.Heartbeat:Wait()
- end
- for _,pillars in pairs(Pillars) do
- pillars.Anchored = false
- pillars:SetNetworkOwner(nil)
- --pillars:FindFirstChildOfClass("BodyForce").Force = Vector3.new(0,pillars:GetMass()*workspace.Gravity,0)
- if pillars:FindFirstChildOfClass("BodyVelocity") then
- pillars:FindFirstChildOfClass("BodyVelocity").Velocity = (Vector3.new(pillars.CFrame.p.x,PillarModelCenter.CFrame.p.y,pillars.CFrame.p.z)-PillarModelCenter.CFrame.p).unit*100
- end
- --pillars.Velocity = (Vector3.new(pillars.CFrame.p.x,PillarModelCenter.CFrame.p.y,pillars.CFrame.p.z)-PillarModelCenter.CFrame.p).unit*30
- pillars.Touched:Connect(function(hit)
- 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
- if (pillars.Size.X*pillars.Size.Y*pillars.Size.Z) > (hit.Size.X*hit.Size.Y*hit.Size.Z) then
- local VaporizePart = script:WaitForChild("VaporizePart"):Clone()
- VaporizePart.Parent = hit
- VaporizePart.Disabled = false
- end
- end
- Damage(hit,70,true)
- end)
- end
- spawn(function()
- wait(6)
- for i=.3,1,.05 do
- for _,plates in pairs(Pillars) do
- plates.Transparency = i
- end
- Services.RunService.Heartbeat:Wait()
- end
- PillarsModel:Destroy()
- end)
- while PillarsModel and PillarsModel.Parent and PillarsModel.PrimaryPart do
- PillarsModel:SetPrimaryPartCFrame(PillarsModel.PrimaryPart.CFrame*CFrame.Angles(0,math.rad(5),0))
- Services.RunService.Heartbeat:Wait()
- end
- wait(Properties.SpecialCooldown)
- Components.PeriSparkle.Enabled = true
- end)
- for i=1,0.3,-.05 do
- for _,plates in pairs(PillarPlates) do
- plates.Transparency = i
- end
- Services.RunService.Heartbeat:Wait()
- end
- end)
- end
- Remote.OnServerEvent:Connect(function(Client,Key)
- if not Player or not Client or Client ~= Player or not Key then return end
- if Key == Enum.KeyCode.Q then
- SummonPillars()
- end
- end)
- end))
- Script12.Name = "Vaporize"
- Script12.Parent = Script11
- table.insert(cors,sandbox(Script12,function()
- local Character = script.Parent
- local Services = {
- Players = (game:FindService("Players") or game:GetService("Players")),
- TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
- RunService = (game:FindService("RunService") or game:GetService("RunService")),
- Debris = (game:FindService("Debris") or game:GetService("Debris"))
- }
- local DisintegrateParticle = script:WaitForChild("Disintegreate",10)
- for _,parts in pairs(Character:GetChildren()) do
- if parts:IsA("BasePart") and parts.Transparency < 1 then
- parts.Anchored = true
- local ParticleClone = DisintegrateParticle:Clone()
- ParticleClone.Parent = parts
- ParticleClone.Color = ColorSequence.new(parts.Color)
- ParticleClone.Enabled = true
- Services.Debris:AddItem(parts,5)
- spawn(function()
- for i=0,1,.01 do
- if parts then
- parts.Transparency = i
- ParticleClone.Transparency = NumberSequence.new(i,1)
- end
- Services.RunService.Heartbeat:Wait()
- end
- if parts then parts:Destroy() end
- end)
- end
- end
- end))
- Script12.Disabled = true
- ParticleEmitter13.Name = "Disintegreate"
- ParticleEmitter13.Parent = Script12
- ParticleEmitter13.Speed = NumberRange.new(5, 30)
- ParticleEmitter13.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter13.Enabled = false
- ParticleEmitter13.LightInfluence = 1
- ParticleEmitter13.Texture = "rbxassetid://304846479"
- ParticleEmitter13.Transparency = NumberSequence.new(0,1)
- ParticleEmitter13.Size = NumberSequence.new(0.1875,0)
- ParticleEmitter13.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter13.Rate = 100
- ParticleEmitter13.RotSpeed = NumberRange.new(-300, 300)
- ParticleEmitter13.SpreadAngle = Vector2.new(-180, 180)
- ParticleEmitter13.VelocitySpread = -180
- Script14.Name = "VaporizePart"
- Script14.Parent = Script11
- table.insert(cors,sandbox(Script14,function()
- local Object = script.Parent
- local Services = {
- Players = (game:FindService("Players") or game:GetService("Players")),
- TweenService = (game:FindService("TweenService") or game:GetService("TweenService")),
- RunService = (game:FindService("RunService") or game:GetService("RunService")),
- Debris = (game:FindService("Debris") or game:GetService("Debris"))
- }
- local DisintegrateParticle = script:WaitForChild("Disintegreate",10)
- Object.Anchored = true
- spawn(function()
- DisintegrateParticle.Parent = Object
- DisintegrateParticle.Color = ColorSequence.new(Object.Color)
- DisintegrateParticle.Enabled = true
- for i=0,1,.01 do
- Object.Transparency = i
- DisintegrateParticle.Transparency = NumberSequence.new(i,1)
- Services.RunService.Heartbeat:Wait()
- end
- Object:Destroy()
- end)
- end))
- Script14.Disabled = true
- ParticleEmitter15.Name = "Disintegreate"
- ParticleEmitter15.Parent = Script14
- ParticleEmitter15.Speed = NumberRange.new(5, 30)
- ParticleEmitter15.Rotation = NumberRange.new(-180, 180)
- ParticleEmitter15.Enabled = false
- ParticleEmitter15.LightInfluence = 1
- ParticleEmitter15.Texture = "rbxassetid://304846479"
- ParticleEmitter15.Transparency = NumberSequence.new(0,1)
- ParticleEmitter15.Size = NumberSequence.new(0.1875,0)
- ParticleEmitter15.Lifetime = NumberRange.new(1, 2)
- ParticleEmitter15.Rate = 100
- ParticleEmitter15.RotSpeed = NumberRange.new(-300, 300)
- ParticleEmitter15.SpreadAngle = Vector2.new(-180, 180)
- ParticleEmitter15.VelocitySpread = -180
- Configuration16.Name = "Variables"
- Configuration16.Parent = Tool0
- BoolValue17.Name = "ToolAnim"
- BoolValue17.Parent = Configuration16
- BoolValue17.Value = true
- Part18.Name = "Handle"
- Part18.Parent = Tool0
- 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)
- Part18.Orientation = Vector3.new(-45.3400002, 90, -90)
- Part18.Position = Vector3.new(-3.84008789, 2.67000103, 11.5099983)
- Part18.Rotation = Vector3.new(-90, 44.6599998, 0)
- Part18.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part18.Size = Vector3.new(1, 0.600000024, 5.19999886)
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.BrickColor = BrickColor.new("Dark stone grey")
- Part18.Locked = true
- Part18.Reflectance = 0.40000000596046
- Part18.TopSurface = Enum.SurfaceType.Smooth
- Part18.brickColor = BrickColor.new("Dark stone grey")
- Part18.FormFactor = Enum.FormFactor.Custom
- Part18.formFactor = Enum.FormFactor.Custom
- SpecialMesh19.Parent = Part18
- SpecialMesh19.MeshId = "http://www.roblox.com/asset/?id=80557857"
- SpecialMesh19.TextureId = "rbxassetid://99058823"
- SpecialMesh19.MeshType = Enum.MeshType.FileMesh
- Sparkles20.Parent = Part18
- Sparkles20.Color = Color3.new(1.18056, 0, 0)
- Sparkles20.SparkleColor = Color3.new(0.666667, 0, 0)
- PointLight21.Parent = Part18
- PointLight21.Color = Color3.new(0.666667, 0, 0)
- PointLight21.Range = 10
- PointLight21.Brightness = 10
- Trail22.Parent = Part18
- Trail22.Attachment0 = nil
- Trail22.Attachment1 = nil
- Trail22.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.666667, 0, 0))
- Trail22.LightEmission = 1
- Trail22.Transparency = NumberSequence.new(1,0.5,1)
- Trail22.MinLength = 0
- Trail22.Lifetime = 1
- Sound23.Name = "SlashSound"
- Sound23.Parent = Part18
- Sound23.SoundId = "rbxassetid://12222216"
- Sound23.Volume = 0.60000002384186
- Sound24.Name = "LungeSound"
- Sound24.Parent = Part18
- Sound24.SoundId = "rbxassetid://701269479"
- Sound24.Volume = 1
- Sound25.Name = "Laser"
- Sound25.Parent = Part18
- Sound25.Looped = true
- Sound25.EmitterSize = 20
- Sound25.MinDistance = 20
- Sound25.SoundId = "rbxassetid://1447681819"
- Sound25.Volume = 0.30000001192093
- Sound26.Name = "Charge"
- Sound26.Parent = Part18
- Sound26.SoundId = "rbxassetid://1930016365"
- Sound26.Volume = 1
- LocalScript27.Name = "MouseIcon"
- LocalScript27.Parent = Tool0
- table.insert(cors,sandbox(LocalScript27,function()
- --Rescripted by Luckymaxer
- Mouse_Icon = "rbxasset://textures/GunCursor.png"
- Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
- Tool = script.Parent
- Mouse = nil
- function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
- end
- end
- function OnEquipped(ToolMouse)
- Mouse = ToolMouse
- UpdateIcon()
- end
- function OnChanged(Property)
- if Property == "Enabled" then
- UpdateIcon()
- end
- end
- Tool.Equipped:Connect(OnEquipped)
- Tool.Changed:Connect(OnChanged)
- end))
- RemoteFunction28.Name = "MouseInput"
- RemoteFunction28.Parent = Tool0
- CFrameValue29.Name = "NormalGrip"
- CFrameValue29.Parent = Tool0
- CFrameValue29.Value = CFrame.new(0, 0, -2, 0, 0, 1, 1, 0, 0, 0, 1, 0)
- Keyframe30.Name = "ThumbnailPose"
- Keyframe30.Parent = Tool0
- Pose31.Name = "LowerTorso"
- Pose31.Parent = Keyframe30
- Pose31.Weight = 0
- Pose32.Name = "LeftUpperLeg"
- Pose32.Parent = Pose31
- 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)
- Pose33.Name = "RightUpperLeg"
- Pose33.Parent = Pose31
- Pose33.CFrame = CFrame.new(0, 0, 0, 0.95105654, 0, 0.309017003, 0.256186724, 0.559192955, -0.788461626, -0.172800124, 0.829037607, 0.531824112)
- Pose34.Name = "UpperTorso"
- Pose34.Parent = Pose31
- Pose34.CFrame = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692616, -0.342020124, 0, 0.342020124, 0.939692616)
- Pose35.Name = "RightLowerArm"
- Pose35.Parent = Keyframe30
- Pose35.Weight = 0
- Pose36.Name = "RightHand"
- Pose36.Parent = Pose35
- Pose36.CFrame = CFrame.new(0, 7.4505806e-09, -1.49011612e-08, 1, 0, 0, 0, 0.7313537, 0.681998372, 0, -0.681998372, 0.7313537)
- Pose37.Name = "LeftUpperArm"
- Pose37.Parent = Keyframe30
- Pose37.Weight = 0
- Pose38.Name = "LeftLowerArm"
- Pose38.Parent = Pose37
- Pose38.CFrame = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.766044438, -0.642787576, 0, 0.642787576, 0.766044438)
- Pose39.Name = "UpperTorso"
- Pose39.Parent = Keyframe30
- Pose39.Weight = 0
- Pose40.Name = "RightUpperArm"
- Pose40.Parent = Pose39
- 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)
- Pose41.Name = "LeftUpperArm"
- Pose41.Parent = Pose39
- 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)
- Pose42.Name = "Head"
- Pose42.Parent = Pose39
- Pose42.CFrame = CFrame.new(0, 0, 0, 0.848048091, 0, 0.529919267, 0, 1, 0, -0.529919267, 0, 0.848048091)
- Pose43.Name = "RightLowerLeg"
- Pose43.Parent = Keyframe30
- Pose43.Weight = 0
- Pose44.Name = "RightFoot"
- Pose44.Parent = Pose43
- Pose44.CFrame = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.906307697, 0.422618449, 0, -0.422618449, 0.906307697)
- Pose45.Name = "LeftLowerLeg"
- Pose45.Parent = Keyframe30
- Pose45.Weight = 0
- Pose46.Name = "LeftFoot"
- Pose46.Parent = Pose45
- Pose47.Name = "HumanoidRootPart"
- Pose47.Parent = Keyframe30
- Pose47.Weight = 0
- Pose48.Name = "LowerTorso"
- Pose48.Parent = Pose47
- 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)
- Pose49.Name = "RightUpperArm"
- Pose49.Parent = Keyframe30
- Pose49.Weight = 0
- Pose50.Name = "RightLowerArm"
- Pose50.Parent = Pose49
- Pose50.CFrame = CFrame.new(0, 1.49011612e-08, 0, 1, 0, 0, 0, 0.0174522251, -0.99984777, 0, 0.99984777, 0.0174522251)
- Pose51.Name = "LeftLowerArm"
- Pose51.Parent = Keyframe30
- Pose51.Weight = 0
- Pose52.Name = "LeftHand"
- Pose52.Parent = Pose51
- Pose53.Name = "LeftUpperLeg"
- Pose53.Parent = Keyframe30
- Pose53.Weight = 0
- Pose54.Name = "LeftLowerLeg"
- Pose54.Parent = Pose53
- Pose54.CFrame = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.681998372, 0.7313537, 0, -0.7313537, 0.681998372)
- Pose55.Name = "RightUpperLeg"
- Pose55.Parent = Keyframe30
- Pose55.Weight = 0
- Pose56.Name = "RightLowerLeg"
- Pose56.Parent = Pose55
- Pose56.CFrame = CFrame.new(0, -2.98023224e-08, 0, 1, 0, 0, 0, 0.798635364, 0.601815224, 0, -0.601815224, 0.798635364)
- Camera57.Name = "ThumbnailCamera"
- Camera57.Parent = Tool0
- 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)
- 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)
- Camera57.Focus = CFrame.new(-3.72812748, 2.72841263, 12.8495407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera57.focus = CFrame.new(-3.72812748, 2.72841263, 12.8495407, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement