Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- i have come out of hibernation
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- GuiPart = Instance.new("Part")
- local w = Instance.new("Weld",Part1)
- w.Part0 = Part1
- w.Part1 = GuiPart
- w.C0 = CFrame.new(-0.848, 0.985, 0) * CFrame.Angles(math.rad(10),math.rad(-90),0)
- Gui = Instance.new("SurfaceGui")
- Gui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
- Gui.PixelsPerStud = 150
- F1 = Instance.new("Frame")
- F2 = Instance.new("Frame")
- local round = Instance.new("UICorner",F1)
- round.CornerRadius = UDim.new(0.1)
- local round = Instance.new("UICorner",F2)
- round.CornerRadius = UDim.new(0.1)
- Text1 = Instance.new("TextBox")
- Text2 = Instance.new("TextBox")
- GuiPart.Parent = Part1
- GuiPart.Transparency = 0.7
- GuiPart.Size = Vector3.new(0.7272560596466064, 0.586264431476593, 0.0010000020265579224)
- GuiPart.CanCollide = false
- GuiPart.Material = Enum.Material.ForceField
- Gui.Parent = GuiPart
- Gui.LightInfluence = 1
- Gui.ClipsDescendants = true
- Gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- F1.Parent = Gui
- F1.Position = UDim2.new(0.5, 0, 0.75, 0)
- F1.Size = UDim2.new(0.850000024, 0, 0.100000001, 0)
- F1.AnchorPoint = Vector2.new(0.5, 0.5)
- F1.BackgroundColor = BrickColor.new("Smoky grey")
- F1.BackgroundColor3 = Color3.new(0.305882, 0.32549, 0.403922)
- F1.ClipsDescendants = true
- F2.Parent = F1
- F2.Position = UDim2.new(1, 0, 0.5, 0)
- F2.Size = UDim2.new(1, 0, 1, 0)
- F2.AnchorPoint = Vector2.new(1, 0.5)
- F2.BackgroundColor = BrickColor.new("Toothpaste")
- F2.BackgroundColor3 = Color3.new(0.282353, 0.894118, 0.988235)
- Text1.Parent = Gui
- Text1.Position = UDim2.new(0.5, 0, 0.550000012, 0)
- Text1.Size = UDim2.new(0.5, 0, 0.25, 0)
- Text1.AnchorPoint = Vector2.new(0.5, 0.5)
- Text1.BackgroundColor = BrickColor.new("Institutional white")
- Text1.BackgroundColor3 = Color3.new(1, 1, 1)
- Text1.BackgroundTransparency = 1
- Text1.Font = Enum.Font.Gotham
- Text1.FontSize = Enum.FontSize.Size60
- Text1.Text = "READY"
- Text1.TextColor = BrickColor.new("Cyan")
- Text1.TextColor3 = Color3.new(0.188235, 0.811765, 1)
- Text1.TextScaled = true
- Text1.TextSize = 50
- Text1.TextEditable = false
- Text1.TextStrokeTransparency = 0
- Text1.TextWrap = true
- Text1.TextWrapped = true
- Text1.ClearTextOnFocus = false
- Text1.MultiLine = true
- Text2.Parent = Gui
- Text2.Position = UDim2.new(0.5, 0, 0.300000012, 0)
- Text2.Size = UDim2.new(0.850000024, 0, 0.5, 0)
- Text2.TextEditable = false
- Text2.AnchorPoint = Vector2.new(0.5, 0.5)
- Text2.BackgroundColor = BrickColor.new("Institutional white")
- Text2.BackgroundColor3 = Color3.new(1, 1, 1)
- Text2.BackgroundTransparency = 1
- Text2.Font = Enum.Font.Gotham
- Text2.FontSize = Enum.FontSize.Size60
- Text2.Text = "FRZN"
- Text2.TextColor = BrickColor.new("Cyan")
- Text2.TextColor3 = Color3.new(0.305882, 0.32549, 0.403922)
- Text2.TextScaled = true
- Text2.TextSize = 60
- Text2.TextStrokeTransparency = 0
- Text2.TextWrap = true
- Text2.TextWrapped = true
- Text2.ClearTextOnFocus = false
- Text2.MultiLine = true
- local activecolor = Color3.new(0.188235, 0.811765, 1)
- local inactivecolor = Color3.new(0.305882, 0.32549, 0.403922)
- local freezetime = 10
- local s = Instance.new("Sound",Part1)
- s.Volume = 2
- s.SoundId = "rbxassetid://12823408456"
- local freeze = false
- local s2 = Instance.new("Sound")
- s2.Volume = 2
- s2.SoundId = "rbxassetid://12823408456"
- s2.PlayOnRemove = true
- local object = Instance.new("ObjectValue", owner.PlayerGui)
- object.Value = s
- object.Name = "thes"
- SpecialMesh2 = Instance.new("SpecialMesh")
- Weld3 = Instance.new("Weld")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Part7 = Instance.new("Part")
- Part7.CanQuery = false
- SpecialMesh8 = Instance.new("SpecialMesh")
- Tool0.Name = "Rocket Launcher"
- Tool0.Parent = mas
- Tool0.Grip = CFrame.new(-0.25, 0, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- Tool0.GripForward = Vector3.new(-1, -0, 4.371138828673793e-08)
- Tool0.GripPos = Vector3.new(-0.25, 0, 0)
- Tool0.GripRight = Vector3.new(-4.371138828673793e-08, 0, -1)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(-3.24324417, 1.59824371, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(-3.243244171142578, 1.5982437133789062, 2.5)
- Part1.Size = Vector3.new(2.6220510005950928, 1.6931220293045044, 1.6534632444381714)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxassetid://12801788581"
- SpecialMesh2.Scale = Vector3.new(1.5253353118896484, 1.5253350734710693, 1.5253350734710693)
- SpecialMesh2.TextureId = "rbxassetid://12801788586"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Weld3.Name = "rweld"
- Weld3.Parent = Part1
- Weld3.C1 = CFrame.new(2.5, -0.0270000007, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld3.Part0 = Part1
- Weld3.Part1 = Part4
- Weld3.part1 = Part4
- Part4.Name = "f"
- Part4.Parent = Tool0
- Part4.CFrame = CFrame.new(-5.74324417, 1.62524366, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(-5.743244171142578, 1.6252436637878418, 2.5)
- Part4.Size = Vector3.new(3.3417856693267822, 1.3104428052902222, 1.2025424242019653)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.CanCollide = false
- Part4.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh5.Parent = Part4
- SpecialMesh5.MeshId = "rbxassetid://12801787103"
- SpecialMesh5.Scale = Vector3.new(1.5637744665145874, 1.5637743473052979, 1.5637743473052979)
- SpecialMesh5.TextureId = "rbxassetid://12801788586"
- SpecialMesh5.MeshType = Enum.MeshType.FileMesh
- Part7.Name = "ExplSph"
- Part7.Parent = Script6
- Part7.CFrame = CFrame.new(-5.1099987, 2.12441111, 1.38000011, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.Position = Vector3.new(-5.10999870300293, 2.124411106109619, 1.380000114440918)
- Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part7.Size = Vector3.new(0.5, 0.5, 0.5)
- Part7.Anchored = true
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Institutional white")
- Part7.CanCollide = false
- Part7.Material = Enum.Material.SmoothPlastic
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Institutional white")
- Part7.Shape = Enum.PartType.Ball
- SpecialMesh8.Parent = Part7
- SpecialMesh8.MeshId = "rbxassetid://6247281036"
- SpecialMesh8.Scale = Vector3.new(0.009999999776482582, 0.009999999776482582, 0.009999999776482582)
- SpecialMesh8.MeshType = Enum.MeshType.FileMesh
- Part0 = Instance.new("Part")
- ParticleEmitter1 = Instance.new("ParticleEmitter")
- Trail2 = Instance.new("Trail")
- Weld2 = Instance.new("Weld")
- Part42 = Instance.new("Part")
- local reloadtime = 0
- local at1 = Instance.new("Attachment",Part0)
- at1.CFrame = CFrame.new(1.925, -0.689, 0.689)
- local at2 = Instance.new("Attachment",Part0)
- at2.CFrame = CFrame.new(1.925, 0.689, -0.689)
- local at3 = Instance.new("Attachment",Part0)
- at3.CFrame = CFrame.new(2.129, -0, -0.011)
- Part0.CFrame = CFrame.new(-11.1224995, 1.42500401, -0.612217247, 1, 0, 0, 0, 0.707106769, -0.707106769, 0, 0.707106769, 0.707106769)
- Part0.Orientation = Vector3.new(45, 0, 0)
- Part0.Anchored = true
- Part0.Position = Vector3.new(-11.122499465942383, 1.425004005432129, -0.6122172474861145)
- Part0.Rotation = Vector3.new(45, 0, 0)
- Part0.Color = Color3.new(1, 0.0117647, 0.0117647)
- Part0.Size = Vector3.new(4, 1, 1)
- Part0.BackSurface = Enum.SurfaceType.Studs
- Part0.BottomSurface = Enum.SurfaceType.Studs
- Part0.BrickColor = BrickColor.new("Really red")
- Part0.CanCollide = false
- Part0.FrontSurface = Enum.SurfaceType.Studs
- Part0.LeftSurface = Enum.SurfaceType.Studs
- Part0.RightSurface = Enum.SurfaceType.Inlet
- Part0.brickColor = BrickColor.new("Really red")
- ParticleEmitter1.Parent = at3
- ParticleEmitter1.Speed = NumberRange.new(0, 0)
- ParticleEmitter1.LightEmission = 0.20000000298023224
- ParticleEmitter1.LightInfluence = 1
- ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=12803112648"
- ParticleEmitter1.Transparency = NumberSequence.new(0.800000011920929,0.012499988079071045,0.02499997615814209,0.800000011920929)
- ParticleEmitter1.ZOffset = 0.20000000298023224
- ParticleEmitter1.Size = NumberSequence.new(0.8125001192092896,1.190000057220459,1.190000057220459)
- ParticleEmitter1.EmissionDirection = Enum.NormalId.Back
- ParticleEmitter1.Lifetime = NumberRange.new(0.11999999731779099, 0.11999999731779099)
- ParticleEmitter1.LockedToPart = true
- ParticleEmitter1.Rate = 30
- Trail2.Parent = Part0
- Trail2.Attachment0 = at1
- Trail2.Attachment1 = at2
- Trail2.Color = ColorSequence.new(Color3.new(0.784314, 0, 0),Color3.new(0.784314, 0, 0))
- Trail2.LightEmission = 0.4000000059604645
- Trail2.LightInfluence = 0.30000001192092896
- Trail2.Transparency = NumberSequence.new(0.20000000298023224,0.1875,0)
- Trail2.MinLength = 0
- Trail2.Lifetime = 0.4000000059604645
- Weld2.Parent = Part0
- Weld2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.707106769, 0.707106769, 0, -0.707106769, 0.707106769)
- Weld2.C1 = CFrame.new(-1.10000002, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld2.Part0 = Part0
- Weld2.Part1 = Part42
- Weld2.part1 = Part42
- Part42.Parent = Part0
- Part42.CFrame = CFrame.new(-10.0224991, 1.42500401, -0.612217247, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994)
- Part42.Position = Vector3.new(-10.022499084472656, 1.425004005432129, -0.6122172474861145)
- Part42.Color = Color3.new(1, 0.0117647, 0.0117647)
- Part42.Size = Vector3.new(1.625, 2, 0.009999999776482582)
- Part42.BackSurface = Enum.SurfaceType.Weld
- Part42.BottomSurface = Enum.SurfaceType.Weld
- Part42.BrickColor = BrickColor.new("Really red")
- Part42.CanCollide = false
- Part42.FrontSurface = Enum.SurfaceType.Weld
- Part42.LeftSurface = Enum.SurfaceType.Weld
- Part42.RightSurface = Enum.SurfaceType.Weld
- Part42.TopSurface = Enum.SurfaceType.Weld
- Part42.brickColor = BrickColor.new("Really red")
- local tool = Tool0
- model = Part0
- model.Parent = nil
- db = false
- e = Instance.new("RemoteEvent",owner.Character)
- e2 = Instance.new("RemoteEvent",e)
- e.Name = "a"
- local hed = Instance.new("Weld",owner.Character.Torso)
- hed.Part0 = owner.Character.Head
- hed.Part1 = hed.Parent
- hed.C0 = CFrame.new(0,-0.5,0)
- hed.C1 = CFrame.new(0,1,0)
- hed.Enabled = false
- local armw = Instance.new("Weld",owner.Character.Torso)
- armw.Part0 = owner.Character["Right Arm"]
- armw.Part1 = owner.Character.Torso
- armw.C1 = CFrame.new(1.5,0.4,0.25)
- armw.Enabled = false
- armw.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,0)
- local equip = Instance.new("Sound")
- equip.PlayOnRemove = true
- equip.Volume = 1
- equip.SoundId = "rbxassetid://6870002623"
- local tweenservice = game:GetService("TweenService")
- local t1 = tweenservice:Create(Weld3,TweenInfo.new(0.1,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{C0 = CFrame.new(1.75,0,0)})
- local t2 = tweenservice:Create(Weld3,TweenInfo.new(0.1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{C0 = CFrame.new(1.65,0,0)})
- local t3 = tweenservice:Create(Weld3,TweenInfo.new(0.25,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{C0 = CFrame.new(0,0,0)})
- local tweenService = game:GetService("TweenService")
- local tweenInfo = TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
- local goal4 = {}
- goal4.C0 = CFrame.new(0,-0.8,-0.1) * CFrame.Angles(math.rad(-110),0,0)
- local tween4 = tweenService:Create(armw, tweenInfo, goal4)
- local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
- local goal5 = {}
- goal5.C0 = CFrame.new(0,-0.3,-0.05) * CFrame.Angles(math.rad(-85),0,0)
- local tween5 = tweenService:Create(armw, tweenInfo, goal5)
- local tweenInfo = TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,true)
- local goa = {}
- goa.C0 = owner.Character.HumanoidRootPart:FindFirstChildWhichIsA("Motor6D").C0 * CFrame.Angles(math.rad(-5),0,0)
- local twee = tweenService:Create(owner.Character.HumanoidRootPart:FindFirstChildWhichIsA("Motor6D"), tweenInfo, goa)
- local b4 = tweenservice:Create(armw,TweenInfo.new(0.1,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false),{C0 = CFrame.new(0,1.4,0) * CFrame.Angles(math.rad(-90),0,0)})
- local b5 = tweenservice:Create(armw,TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false),{C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,0)})
- tool.Parent = owner.Backpack
- function explode(pos,res)
- coroutine.wrap(function()
- if res:FindFirstAncestorWhichIsA("Model") and res:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid") then
- local explsph1 = Part7:Clone()
- explsph1.Position = pos
- explsph1.Size = Vector3.new()
- explsph1.Parent = workspace
- explsph1.BrickColor = BrickColor.new("Neon orange")
- local hitm = {}
- local h
- h = explsph1.Touched:Connect(function(hit)
- if hit:FindFirstAncestorWhichIsA("Model") and hit:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid") and not table.find(hitm,hit:FindFirstAncestorWhichIsA("Model")) and hit:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health > 0 then
- table.insert(hitm,hit:FindFirstAncestorWhichIsA("Model"))
- hit:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health -= 40
- elseif not table.find(hitm,hit) then
- table.insert(hitm,hit)
- local blastForce = Instance.new('BodyForce', hit)
- blastForce.Force = (hit.Position - explsph1.Position).unit * 500 * hit:GetMass()
- game:GetService("Debris"):AddItem(blastForce, 0.1)
- end
- end)
- s2.Volume = 4
- s2.SoundId = "rbxassetid://12823409310"
- s2.Parent = explsph1
- s2.Parent = nil
- local explsph2 = Part7:Clone()
- explsph2.Position = pos
- explsph2.Parent = workspace
- explsph2.Material = Enum.Material.SmoothPlastic
- explsph2.Transparency = 0.7
- local explsph1tween = game:GetService("TweenService"):Create(explsph1,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Size = Vector3.new(4.5 * 5,4.5 * 5,4.5 * 5)})
- explsph1tween:Play()
- local explsph1tween3 = game:GetService("TweenService"):Create(explsph1.Mesh,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Scale = Vector3.new(4.5 * 5,4.5 * 5,4.5 * 5)*0.01})
- explsph1tween3:Play()
- local explsph2tween = game:GetService("TweenService"):Create(explsph2,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Size = Vector3.new(4.55 * 5,4.55 * 5,4.55 * 5)})
- explsph2tween:Play()
- local explsph2tween3 = game:GetService("TweenService"):Create(explsph2.Mesh,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Scale = Vector3.new(4.55 * 5,4.55 * 5,4.55 * 5)*0.01})
- explsph2tween3:Play()
- wait(0.15)
- h:Disconnect()
- local explsph1tween2 = game:GetService("TweenService"):Create(explsph1,TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Transparency = 1})
- explsph1tween2:Play()
- local explsph2tween2 = game:GetService("TweenService"):Create(explsph2,TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Transparency = 1})
- explsph2tween2:Play()
- game:GetService("Debris"):AddItem(explsph1,0.25)
- game:GetService("Debris"):AddItem(explsph2,0.25)
- else
- local explsph2 = Part7:Clone()
- explsph2.Position = pos
- explsph2.Size = Vector3.new()
- explsph2.Parent = workspace
- explsph2.Material = Enum.Material.SmoothPlastic
- explsph2.Transparency = 0.7
- s2.Volume = 2.5
- s2.SoundId = "rbxassetid://12823409310"
- s2.Parent = explsph2
- s2.Parent = nil
- local hitm = {}
- local h
- h = explsph2.Touched:Connect(function(hit)
- if not (hit:FindFirstAncestorWhichIsA("Model") and hit:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) and not table.find(hitm,hit) then
- table.insert(hitm,hit)
- local blastForce = Instance.new('BodyForce', hit)
- blastForce.Force = (hit.Position - explsph2.Position).unit * 500 * hit:GetMass()
- game:GetService("Debris"):AddItem(blastForce, 0.1)
- end
- end)
- local explsph2tween = game:GetService("TweenService"):Create(explsph2,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Size = Vector3.new(4 * 7,4 * 7,4 * 7)})
- explsph2tween:Play()
- local explsph2tween3 = game:GetService("TweenService"):Create(explsph2.Mesh,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Scale = Vector3.new(4 * 7,4 * 7,4 * 7)*0.01})
- explsph2tween3:Play()
- wait(0.15)
- h:Disconnect()
- local explsph2tween2 = game:GetService("TweenService"):Create(explsph2,TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Transparency = 1})
- explsph2tween2:Play()
- game:GetService("Debris"):AddItem(explsph2,0.25)
- end
- end)()
- end
- e2.OnServerEvent:Connect(function(_,wha,cf)
- if wha == "rocket" then
- e2:FireClient(owner)
- db = true
- twee:Play()
- s:Play()
- coroutine.wrap(function()
- reloadtime = 1.1
- Text1.Text = tostring(reloadtime)
- repeat
- reloadtime = math.clamp(reloadtime-0.1,0,1.1)
- Text1.Text = tostring(reloadtime)
- wait(0.1)
- until reloadtime == 0
- Text1.Text = "RDY"
- end)()
- coroutine.wrap(function()
- local shootybang
- local r = model:Clone()
- r.Parent = script
- r.CFrame = cf * CFrame.Angles(0,math.rad(-90),0) * CFrame.new(-3.5,0,0)
- r.CFrame *= CFrame.Angles(math.rad(45),0,0)
- local bullet = r
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {r,tool:FindFirstAncestorWhichIsA("Model")}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local c = 0
- local sped = 150
- shootybang = game:GetService("RunService").Stepped:Connect(function(_,b)
- if not freeze then
- local res
- res = workspace:Raycast(bullet.Position, bullet.CFrame.RightVector*(-b*80*4.5)*1.1, params)
- if not res then
- bullet.CFrame = bullet.CFrame * CFrame.new(-b*80*4,0,0)
- sped = sped - (10*b)
- if sped < 0 then
- r:Destroy()
- shootybang:Disconnect()
- end
- else
- r:Destroy()
- shootybang:Disconnect()
- coroutine.wrap(function()
- explode(res.Position,res.Instance)
- end)()
- end
- end
- end)
- end)()
- t1:Play()
- coroutine.wrap(function()
- delay(0.1,function()
- tween4:Play()
- tween4.Completed:Wait(0.15)
- tween5:Play()
- end)
- end)()
- delay(0.55,function()
- t2:Play()
- t2.Completed:Wait(0)
- b4:Play()
- b4.Completed:Wait(0.1)
- b5:Play()
- t3:Play()
- t3.Completed:Wait()
- db = false
- end)
- else
- freeze = wha
- if freeze == true then
- Text2.TextColor3 = inactivecolor
- else
- Text2.TextColor3 = activecolor
- end
- end
- end)
- tool.Equipped:Connect(function()
- equip.Parent = tool.Handle
- equip.Parent = nil
- armw.Enabled = true
- hed.Enabled = true
- end)
- tool.Unequipped:Connect(function()
- armw.Enabled = false
- hed.Enabled = false
- end)
- e.OnServerEvent:Connect(function(_,cam,alpha,dt)
- local lookvector = owner.Character.HumanoidRootPart.CFrame:toObjectSpace(cam).lookVector.unit
- local y = lookvector.y
- local x = 0
- hed.C0 = hed.C0:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(-y,0,0),dt*15)
- if y > 0 then
- armw.C1 = armw.C1:Lerp(CFrame.new(1.5,0.4,0) * CFrame.Angles((y),-(x * 0.25),0) * CFrame.new(0,-0.5 * (y * 0.75),-0.5 * (y * 0.75)),dt*15)
- else
- armw.C1 = armw.C1:Lerp(CFrame.new(1.5,0.4,0) * CFrame.Angles((y),-(x * 0.25),0) * CFrame.new(0,0.5 * (y * 0.75),-0.5 * (y * 0.75)),dt*15)
- end
- end)
- coroutine.wrap(function()
- while task.wait() do
- if freeze == true then
- Text2.TextColor3 = activecolor
- freezetime = math.clamp(freezetime-0.1,0,10)
- F2.Size = UDim2.new(freezetime/10,0,1,0)
- if freezetime == 0 then
- freeze = false
- end
- wait(0.1)
- else
- Text2.TextColor3 = inactivecolor
- freezetime = math.clamp(freezetime+0.1,0,10)
- F2.Size = UDim2.new(freezetime/10,0,1,0)
- wait(0.1)
- end
- end
- end)()
- NLS([[
- e = script.Parent
- local s = owner.PlayerGui.thes.Value
- s.Volume = 0
- e2 = script.Parent:FindFirstChildWhichIsA("RemoteEvent")
- local tool = owner.Backpack:WaitForChild("Rocket Launcher")
- for i,v in pairs(tool:GetDescendants()) do
- pcall(function()
- v.Transparency = 1
- v.Active = false
- v.TextStrokeTransparency = 1
- v.TextTransparency = 1
- v.BackgroundTransparency = 1
- end)
- end
- char = owner.Character
- Part1 = Instance.new("Part",workspace)
- GuiPart = Instance.new("Part")
- local w = Instance.new("Weld",Part1)
- w.Part0 = Part1
- w.Part1 = GuiPart
- w.C0 = CFrame.new(-0.848*0.15,0.985*0.15, -0) * CFrame.Angles(math.rad(10), math.rad(-93), 0)
- Gui = Instance.new("SurfaceGui")
- Gui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
- Gui.PixelsPerStud = 900
- F1 = Instance.new("Frame")
- F2 = Instance.new("Frame")
- local round = Instance.new("UICorner",F1)
- round.CornerRadius = UDim.new(0.1)
- local round = Instance.new("UICorner",F2)
- round.CornerRadius = UDim.new(0.1)
- Text1 = Instance.new("TextBox")
- Text2 = Instance.new("TextBox")
- GuiPart.Parent = Part1
- GuiPart.Transparency = 0.7
- GuiPart.Size = Vector3.new(0.7272560596466064, 0.586264431476593, 0.0010000020265579224)*0.15
- GuiPart.CanCollide = false
- GuiPart.Material = Enum.Material.ForceField
- Gui.Parent = GuiPart
- Gui.LightInfluence = 1
- Gui.ClipsDescendants = true
- Gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- F1.Parent = Gui
- F1.Position = UDim2.new(0.5, 0, 0.75, 0)
- F1.Size = UDim2.new(0.850000024, 0, 0.100000001, 0)
- F1.AnchorPoint = Vector2.new(0.5, 0.5)
- F1.BackgroundColor = BrickColor.new("Smoky grey")
- F1.BackgroundColor3 = Color3.new(0.305882, 0.32549, 0.403922)
- F1.ClipsDescendants = true
- F2.Parent = F1
- F2.Position = UDim2.new(1, 0, 0.5, 0)
- F2.Size = UDim2.new(1, 0, 1, 0)
- F2.AnchorPoint = Vector2.new(1, 0.5)
- F2.BackgroundColor = BrickColor.new("Toothpaste")
- F2.BackgroundColor3 = Color3.new(0.282353, 0.894118, 0.988235)
- local round = Instance.new("UICorner",F1)
- round.CornerRadius = UDim.new(0.1)
- local round = Instance.new("UICorner",F2)
- round.CornerRadius = UDim.new(0.1)
- Text1.Parent = Gui
- Text1.Position = UDim2.new(0.5, 0, 0.550000012, 0)
- Text1.Size = UDim2.new(0.5, 0, 0.25, 0)
- Text1.AnchorPoint = Vector2.new(0.5, 0.5)
- Text1.BackgroundColor = BrickColor.new("Institutional white")
- Text1.BackgroundColor3 = Color3.new(1, 1, 1)
- Text1.BackgroundTransparency = 1
- Text1.Font = Enum.Font.Gotham
- Text1.FontSize = Enum.FontSize.Size60
- Text1.Text = "READY"
- Text1.TextColor = BrickColor.new("Cyan")
- Text1.TextColor3 = Color3.new(0.188235, 0.811765, 1)
- Text1.TextScaled = true
- Text1.TextSize = 50
- Text1.TextEditable = false
- Text1.TextStrokeTransparency = 0
- Text1.TextWrap = true
- Text1.TextWrapped = true
- Text1.ClearTextOnFocus = false
- Text1.MultiLine = true
- Text2.Parent = Gui
- Text2.Position = UDim2.new(0.5, 0, 0.300000012, 0)
- Text2.Size = UDim2.new(0.850000024, 0, 0.5, 0)
- Text2.TextEditable = false
- Text2.AnchorPoint = Vector2.new(0.5, 0.5)
- Text2.BackgroundColor = BrickColor.new("Institutional white")
- Text2.BackgroundColor3 = Color3.new(1, 1, 1)
- Text2.BackgroundTransparency = 1
- Text2.Font = Enum.Font.Gotham
- Text2.FontSize = Enum.FontSize.Size60
- Text2.Text = "FRZN"
- Text2.TextColor = BrickColor.new("Cyan")
- Text2.TextColor3 = Color3.new(0.305882, 0.32549, 0.403922)
- Text2.TextScaled = true
- Text2.TextSize = 60
- Text2.TextStrokeTransparency = 0
- Text2.TextWrap = true
- Text2.TextWrapped = true
- Text2.ClearTextOnFocus = false
- Text2.MultiLine = true
- local activecolor = Color3.new(0.188235, 0.811765, 1)
- local inactivecolor = Color3.new(0.305882, 0.32549, 0.403922)
- local freezetime = 10
- SpecialMesh2 = Instance.new("SpecialMesh")
- Weld3 = Instance.new("Weld")
- Part4 = Instance.new("Part",workspace)
- SpecialMesh5 = Instance.new("SpecialMesh")
- Part1.CFrame = CFrame.new(-3.24324417, 1.59824371, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(-3.243244171142578, 1.5982437133789062, 2.5)
- Part1.Size = Vector3.new(2.6220510005950928, 1.6931220293045044, 1.6534632444381714)*0.15
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.CanCollide = false
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxassetid://12801788581"
- SpecialMesh2.Scale = Vector3.new(1.5253353118896484, 1.5253350734710693, 1.5253350734710693)*0.15
- SpecialMesh2.TextureId = "rbxassetid://12801788586"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Weld3.Name = "rweld"
- Weld3.Parent = Part1
- Weld3.C1 = CFrame.new(2.5*0.15, -0.0270000007*0.15, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld3.Part0 = Part1
- Weld3.Part1 = Part4
- Weld3.part1 = Part4
- Part4.CFrame = CFrame.new(-5.74324417, 1.62524366, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(-5.743244171142578, 1.6252436637878418, 2.5)
- Part4.Size = Vector3.new(3.3417856693267822, 1.3104428052902222, 1.2025424242019653)*0.15
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.CanCollide = false
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.CanCollide = false
- SpecialMesh5.Parent = Part4
- SpecialMesh5.MeshId = "rbxassetid://12801787103"
- SpecialMesh5.Scale = Vector3.new(1.5637744665145874, 1.5637743473052979, 1.5637743473052979)*0.15
- SpecialMesh5.TextureId = "rbxassetid://12801788586"
- SpecialMesh5.MeshType = Enum.MeshType.FileMesh
- local eq = false
- tool.Equipped:Connect(function()
- owner.CameraMode = Enum.CameraMode.LockFirstPerson
- Part4.Transparency = 0
- Part1.Transparency = 0
- GuiPart.Transparency = 0
- Gui.Active = true
- Text1.Active = true
- Text2.TextStrokeTransparency = 0
- Text2.TextTransparency = 0
- Text1.TextStrokeTransparency = 0
- Text1.TextTransparency = 0
- F1.BackgroundTransparency = 0
- F2.BackgroundTransparency = 0
- Text2.Active = true
- F1.Active = true
- F2.Active = true
- workspace.CurrentCamera.FieldOfView = 72
- eq = true
- end)
- tool.Unequipped:Connect(function()
- workspace.CurrentCamera.FieldOfView = 70
- owner.CameraMode = Enum.CameraMode.Classic
- Part4.Transparency = 1
- Part1.Transparency = 1
- GuiPart.Transparency = 1
- Gui.Active = false
- Text2.TextStrokeTransparency = 1
- Text2.TextTransparency = 1
- Text1.TextStrokeTransparency = 1
- Text1.TextTransparency = 1
- F1.BackgroundTransparency = 1
- F2.BackgroundTransparency = 1
- Text1.Active = false
- Text2.Active = false
- F1.Active = false
- F2.Active = false
- eq = false
- end)
- local ITERATIONS = 8
- local SPRING = {}
- function SPRING.create(self, mass, force, damping, speed)
- local spring = {
- Target = Vector3.new();
- Position = Vector3.new();
- Velocity = Vector3.new();
- Mass = mass or 5;
- Force = force or 50;
- Damping = damping or 4;
- Speed = speed or 4;
- }
- function spring.shove(self, force)
- local x, y, z = force.X, force.Y, force.Z
- if x ~= x or x == math.huge or x == -math.huge then
- x = 0
- end
- if y ~= y or y == math.huge or y == -math.huge then
- y = 0
- end
- if z ~= z or z == math.huge or z == -math.huge then
- z = 0
- end
- self.Velocity = self.Velocity + Vector3.new(x, y, z)
- end
- function spring.update(self, dt)
- local scaledDeltaTime = math.min(dt,1) * self.Speed / ITERATIONS
- for i = 1, ITERATIONS do
- local iterationForce = self.Target - self.Position
- local acceleration = (iterationForce * self.Force) / self.Mass
- acceleration = acceleration - (self.Velocity * self.Damping)
- self.Velocity = self.Velocity + (acceleration * scaledDeltaTime)
- self.Position = self.Position + (self.Velocity * scaledDeltaTime)
- end
- return self.Position
- end
- return spring
- end
- local wc = SPRING.create()
- local sway = SPRING.create()
- local bobspeed = 1
- local bobmod = .1
- local alpha = .25
- local hitcf = CFrame.new()
- local function gb(addition, speed, modifier)
- return math.sin(tick() * addition * speed) * modifier
- end
- local mouse = owner:GetMouse()
- local part = Instance.new("Part",workspace)
- part.Size = Vector3.new()
- part.CanCollide = false
- part.Transparency = 1
- part.Anchored = true
- local part2 = Instance.new("Part",workspace)
- part2.Size = Vector3.new()
- part2.CanCollide = false
- part2.Transparency = 1
- local s2 = Instance.new("Sound",part)
- s2.Volume = 2
- s2.SoundId = "rbxassetid://12823408456"
- local weld2 = Instance.new("Weld",part)
- weld2.Part0 = part
- weld2.Part1 = part2
- weld2.C1 = CFrame.new(-1.35*0.15,1.35*0.15,-0.6*0.15) * CFrame.Angles(math.rad(-7),0,0)
- local tweenservice = game:GetService("TweenService")
- local weld = Instance.new("Weld",part2)
- weld.Part0 = part2
- weld.Part1 = Part1
- weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(89),0)
- local b1 = tweenservice:Create(weld,TweenInfo.new(0.25,Enum.EasingStyle.Back,Enum.EasingDirection.Out),{C0 = CFrame.new(-0.2*0.15,-0.55*0.15,0.4*0.15) * CFrame.Angles(math.rad(55),math.rad(-5),math.rad(-20))})
- local b2 = tweenservice:Create(weld,TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{C0 = CFrame.new()})
- local b4 = tweenservice:Create(weld,TweenInfo.new(0.1,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false),{C0 = CFrame.new(0,0,-1.4*0.15)})
- local b5 = tweenservice:Create(weld,TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false),{C0 = CFrame.new(0,0,0)})
- local t1 = tweenservice:Create(Weld3,TweenInfo.new(0.1,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{C0 = CFrame.new(1.75*0.15,0,0)})
- local t2 = tweenservice:Create(Weld3,TweenInfo.new(0.1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{C0 = CFrame.new(1.65*0.15,0,0)})
- local t3 = tweenservice:Create(Weld3,TweenInfo.new(0.25,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{C0 = CFrame.new(0,0,0)})
- db = false
- local active = false
- tool.Activated:Connect(function()
- active = true
- end)
- tool.Deactivated:Connect(function()
- active = false
- end)
- local frozen = false
- mouse.Button2Down:Connect(function()
- if eq then
- frozen = not frozen
- e2:FireServer(frozen)
- if frozen == true then
- Text2.TextColor3 = inactivecolor
- else
- Text2.TextColor3 = activecolor
- end
- end
- end)
- local reloadtime = 0
- game:GetService("RunService").RenderStepped:Connect(function()
- if not db and active then
- e2:FireServer("rocket",workspace.CurrentCamera.CFrame)
- e2.OnClientEvent:Wait()
- s2:Play()
- coroutine.wrap(function()
- reloadtime = 1.1
- Text1.Text = tostring(reloadtime)
- repeat
- reloadtime = math.clamp(reloadtime-0.1,0,1.1)
- Text1.Text = tostring(reloadtime)
- wait(0.1)
- until reloadtime == 0
- Text1.Text = "RDY"
- end)()
- db = true
- t1:Play()
- coroutine.wrap(function()
- delay(0.1,function()
- b1:Play()
- coroutine.wrap(function()
- for i = 1, 4 do
- local d = math.random(-100,100)/400
- local d2 = math.random(-100,100)/400
- char:FindFirstChildWhichIsA("Humanoid").CameraOffset = Vector3.new(d,d2,0)
- wait(0.01)
- char:FindFirstChildWhichIsA("Humanoid").CameraOffset = Vector3.new((d+math.random(-100,100)/1200)*1.5,(d2+math.random(-100,100)/1200)*1.5,0)
- wait(0.005)
- end
- char:FindFirstChildWhichIsA("Humanoid").CameraOffset = Vector3.new(0,0,0)
- end)()
- b1.Completed:Wait(0.15)
- b2:Play()
- end)
- end)()
- delay(0.55,function()
- t2:Play()
- t2.Completed:Wait()
- b4:Play()
- b4.Completed:Wait(0.1)
- b5:Play()
- t3:Play()
- t3.Completed:Wait()
- db = false
- end)
- end
- end)
- game:GetService("RunService").RenderStepped:Connect(function(dt)
- part.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(0,0,-1.5*0.15)
- local vel = char.HumanoidRootPart.Velocity
- local msway = Vector3.new(gb(10, bobspeed, bobmod), gb(5, bobspeed, bobmod), gb(5, bobspeed, bobmod))
- local msway2 = Vector3.new(gb(10, bobspeed/5, bobmod), gb(5, bobspeed/5, bobmod), gb(5, bobspeed/5, bobmod))
- wc:shove((msway / 25) * dt * 60 * math.clamp(vel.Magnitude,0,30))
- sway:shove((msway2 / 25) * dt * 60 * 30)
- local wcs = wc:update(dt)
- local sws = sway:update(dt)
- local relativevel = workspace.CurrentCamera.CFrame:vectorToObjectSpace(vel)
- local clampvelx, clampvelz, clampvely = math.clamp(relativevel.x, -50, 50)/200, math.clamp(relativevel.z, -50, 50)/200, math.clamp(relativevel.y, -35, 35)/200
- e:FireServer(workspace.CurrentCamera.CFrame,alpha,dt)
- if vel.Magnitude > 0.5 then
- weld2.C0 = weld2.C0:Lerp(CFrame.new(wcs.y*0.15 / 3, wcs.x*0.15 / 3,0)*CFrame.new(-clampvelx*0.15, -clampvely*0.15, clampvelz*0.15),dt*15)
- else
- weld2.C0 = weld2.C0:Lerp(CFrame.new(0, sws.x*0.15 / 3,0),dt*15)
- end
- end)
- coroutine.wrap(function()
- while task.wait() do
- if frozen == true then
- Text2.TextColor3 = activecolor
- freezetime = math.clamp(freezetime-0.1,0,10)
- F2.Size = UDim2.new(freezetime/10,0,1,0)
- if freezetime == 0 then
- frozen = false
- end
- wait(0.1)
- else
- Text2.TextColor3 = inactivecolor
- freezetime = math.clamp(freezetime+0.1,0,10)
- F2.Size = UDim2.new(freezetime/10,0,1,0)
- wait(0.1)
- end
- end
- end)()
- ]],e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement