Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fire = "10209776"
- local dry = "10209771"
- local down = "10209788"
- local up = "10209786"
- local rev = "7127177877"
- local tool = Instance.new("Tool",owner.Backpack)
- part2 = Instance.new("Part",tool)
- part2.Name = "Handle"
- part2.Size = Vector3.new(0.1,0.1,0.1)
- part2.Transparency = 1
- part = Instance.new("Part",part2)
- part.Size = Vector3.new(2,5.4,3.2)
- part.Massless = true
- part.CanCollide = false
- local weld = Instance.new("Weld",part2)
- weld.Part0 = part
- weld.Part1 = part2
- weld.C1 = CFrame.new(0.25,-0.25,-0.25) * CFrame.Angles(0,math.rad(180),0)
- weld.C0 = CFrame.new(0,-2,-0.5)
- local mesh = Instance.new("SpecialMesh",part)
- mesh.MeshId = "rbxassetid://7805077723"
- mesh.TextureId = "rbxassetid://7805076584"
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.35
- local object = weld
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
- local goal = {}
- goal.C0 = CFrame.new(0,-2,-0.5) * CFrame.Angles(math.rad(-90),0,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- local tweenInfo2 = TweenInfo.new(timeToFade,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
- local goal2 = {}
- goal2.C0 = CFrame.new(0,-2,-0.5) * CFrame.Angles(math.rad(0),0,0)
- local tween2 = tweenService:Create(object, tweenInfo2, goal2)
- local sound = Instance.new("Sound",part)
- sound.Volume = 0.35
- revving = false
- tool.Activated:Connect(function()
- tween2:Cancel()
- tween:Play()
- sound.Looped = false
- sound.TimePosition = 0
- sound.SoundId = "rbxassetid://"..down
- sound:Play()
- revving = true
- owner.Character.Humanoid.WalkSpeed = 8
- end)
- firing = false
- tool.Deactivated:Connect(function()
- tween:Cancel()
- tween2:Play()
- sound:Stop()
- sound.Looped = false
- sound.TimePosition = 0.1
- sound.SoundId = "rbxassetid://"..up
- sound:Play()
- firing = false
- revving = false
- owner.Character.Humanoid.WalkSpeed = 16
- end)
- sound.Ended:Connect(function()
- if (sound.SoundId == "rbxassetid://"..down or sound.SoundId == "rbxassetid://"..fire) then
- sound.Looped = true
- sound.TimePosition = 0
- sound.SoundId = "rbxassetid://"..fire
- firing = true
- sound:Play()
- end
- end)
- e = Instance.new("RemoteEvent",owner.Character)
- e.OnServerEvent:Connect(function(_,zoomed,cf)
- if zoomed == true and revving then
- local lookvector = owner.Character.Torso.CFrame:toObjectSpace(cf).lookVector.unit
- tool.Grip = tool.Grip:Lerp(CFrame.Angles(math.sin(-lookvector.y),0,0),0.3)
- else
- tool.Grip = tool.Grip:Lerp(CFrame.Angles(math.sin(0),0,0),0.3)
- end
- end)
- NLS([[
- e = script.Parent
- game:GetService("RunService").RenderStepped:Connect(function()
- if (workspace.CurrentCamera.CFrame.Position - owner.Character.Head.Position).Magnitude <= 0.75 then
- e:FireServer(true,workspace.CurrentCamera.CFrame)
- else
- e:FireServer(false)
- end
- end)
- ]],e)
- local hit = Instance.new("Sound")
- hit.PlayOnRemove = true
- hit.Volume = 0.75
- while task.wait() do
- if firing then
- wait(0.0625)
- part:ApplyImpulse(part.CFrame.upVector * -5)
- local Flame3 = Instance.new("SpawnLocation", script)
- Flame3.Size = Vector3.new(0.5,0.5,0.5)
- Flame3.Neutral = false
- Flame3.Enabled = false
- Flame3.CFrame = part.CFrame * CFrame.new(0.25,2.7,-0.5)
- Flame3.Position = Flame3.Position + (part.Velocity * 2) * owner:GetNetworkPing()
- Flame3.CanCollide = false
- Flame3.CanTouch = false
- Flame3.Color = Color3.fromRGB(255, 50, 50)
- Flame3.Material = "Neon"
- Flame3.Anchored = true
- Flame3.Name = "Flameslol"
- local timeToFade6
- if part.Velocity ~= Vector3.new(0,0,0) then
- timeToFade6 = (Flame3.Position - (Flame3.Position + (part.Velocity * 2) * owner:GetNetworkPing())).Magnitude * 0.25
- game:GetService("Debris"):AddItem(Flame3,(Flame3.Position - (Flame3.Position + (part.Velocity * 2) * owner:GetNetworkPing())).Magnitude * 0.25)
- else
- timeToFade6 = 0.25
- game:GetService("Debris"):AddItem(Flame3,0.25)
- end
- local object6 = Flame3
- local tweenInfo6 = TweenInfo.new(timeToFade6,Enum.EasingStyle.Cubic,Enum.EasingDirection.Out)
- local tweenInfo5 = TweenInfo.new(timeToFade6 * 0.79)
- local goal10 = {}
- goal10.CFrame = CFrame.new(Flame3.Position + (part.Velocity * 2) * owner:GetNetworkPing()) * CFrame.Angles(Flame3.CFrame:ToEulerAnglesXYZ()) * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- local tween10 = tweenService:Create(object6, tweenInfo6, goal10)
- tween10:Play()
- local goal11 = {}
- goal11.Transparency = 1
- goal11.Color = Color3.fromRGB(255, 155, 0)
- local tween11 = tweenService:Create(object6, tweenInfo5, goal11)
- tween11:Play()
- local s = Instance.new("SpawnLocation",script)
- s.Enabled = false
- s.CFrame = part.CFrame * CFrame.new(-0.25 + Random.new():NextNumber(-0.125,0.125),4,-0.5 + Random.new():NextNumber(-0.125,0.125)) * CFrame.Angles(math.rad(-90),math.rad(180),0)
- if part.Velocity ~= Vector3.new(0,0,0) then
- s.Position = s.Position + (part.Velocity * 2) * owner:GetNetworkPing()
- end
- s.Size = Vector3.new(0.812145,1.03994,0.8652875)
- local m = Instance.new("SpecialMesh",s)
- m.MeshId = "rbxassetid://5204380553"
- m.TextureId = "rbxassetid://5204380894"
- m.Scale = Vector3.new(0.0725,0.0725,0.0725)
- local tw = TweenInfo.new(0.125,Enum.EasingStyle.Quint,Enum.EasingDirection.In)
- local g = {}
- g.Size = Vector3.new(0.812145,1.03994,0.8652875) * 3
- local t = tweenService:Create(s, tw, g)
- t:Play()
- local g2 = {}
- g2.Scale = Vector3.new(0.0725,0.0725,0.0725) * 3
- local t2 = tweenService:Create(m, tw, g2)
- t2:Play()
- game:GetService("Debris"):AddItem(s,2)
- local ya = Instance.new("Sound",s)
- ya.Volume = 2
- ya.SoundId = "rbxassetid://5291644593"
- ya.Looped = true
- ya:Play()
- s.Touched:Connect(function(wha)
- if wha:FindFirstAncestorWhichIsA("Model") and wha:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid") then
- if wha:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- wha:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health -= 5
- if wha:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health > 0 then
- hit.Parent = part
- hit.SoundId = "rbxassetid://2868331684"
- hit.Parent = nil
- else
- hit.Parent = part
- hit.SoundId = "rbxassetid://2866718318"
- hit.Parent = nil
- end
- s:Destroy()
- end
- end
- end)
- s:ApplyImpulse(part.CFrame.upVector * 750 * s:GetMass() + Vector3.new(0,s:GetMass(),0))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement