Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local damage = 35
- local canshoot = true
- local tweenService = game:GetService("TweenService")
- Tool = Instance.new("Tool")
- Tool.Name = "Pistol 2.0"
- local magout = Instance.new("Sound")
- magout.SoundId = "rbxassetid://6829540723"
- magout.PlayOnRemove = true
- magout.Volume = 3
- magout.TimePosition = 0.2
- local magin = Instance.new("Sound")
- magin.SoundId = "rbxassetid://6829539267"
- magin.PlayOnRemove = true
- magin.Volume = 3
- magin.TimePosition = 0.2
- local slideback = Instance.new("Sound")
- slideback.SoundId = "rbxassetid://3617680419"
- slideback.PlayOnRemove = true
- slideback.Volume = 0.75
- local slidefront = Instance.new("Sound")
- slidefront.SoundId = "rbxassetid://3617684821"
- slidefront.PlayOnRemove = true
- slidefront.Volume = 0.75
- Gun = Instance.new("Part")
- local shoots = Instance.new("Sound",Gun)
- shoots.SoundId = "rbxassetid://4502821590"
- shoots.Volume = 1.5
- Gun2 = Instance.new("Part",Gun)
- Gun3 = Instance.new("Part",Gun)
- Gun.Name = "Handle"
- Gun.Parent = Tool
- Tool.Parent = owner.Character
- Gun.Size = Vector3.new(0.172, 0.805, 1.332)
- Gun.Massless = true
- Gun2.Size = Vector3.new(0.181, 0.25, 1.184)
- Gun2.Massless = true
- Gun2.CanCollide = false
- Gun3.Size = Vector3.new(0.141, 0.63, 0.319)
- Gun3.Massless = true
- Gun3.CanCollide = false
- Gun3.Transparency = 0
- weld = Instance.new("Weld",Gun)
- weld.Part0 = Gun2
- weld.Part1 = Gun
- weld.C0 = CFrame.new(0,-0.5,-0.025)
- weld2 = Instance.new("Weld",Gun)
- weld2.Part0 = Gun3
- weld2.Part1 = Gun
- weld2.C0 = CFrame.new(0,0.125,0.65)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Gun
- Mesh2 = Instance.new("SpecialMesh")
- Mesh2.Parent = Gun2
- Mesh3 = Instance.new("SpecialMesh")
- Mesh3.Parent = Gun3
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = weld
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
- local tweenInfo2 = TweenInfo.new(0.25,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
- local goal = {}
- goal.C0 = CFrame.new(0,-0.5,0.2)
- local shot = tweenService:Create(object, tweenInfo, goal)
- local goal = {}
- goal.C0 = CFrame.new(0,-0.5,0.35)
- local shott = tweenService:Create(object, tweenInfo2, goal)
- local returnshot = {}
- returnshot.C0 = CFrame.new(0,-0.5,-0.025)
- local shot2 = tweenService:Create(object, tweenInfo, returnshot)
- Mesh.MeshId = "http://www.roblox.com/asset/?id=436643435"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=436655930"
- Mesh.Scale = Vector3.new(0.01, 0.01, 0.01)
- Mesh2.MeshId = "http://www.roblox.com/asset/?id=436644181"
- Mesh2.TextureId = "http://www.roblox.com/asset/?id=436655930"
- Mesh2.Scale = Vector3.new(0.01, 0.01, 0.01)
- Mesh3.MeshId = "http://www.roblox.com/asset/?id=436643848"
- Mesh3.TextureId = "http://www.roblox.com/asset/?id=436655930"
- Mesh3.Scale = Vector3.new(0.01, 0.01, 0.01)
- local wels = Instance.new("Weld",owner.Character.Torso)
- wels.Part0 = owner.Character["Right Arm"]
- wels.Part1 = owner.Character.Torso
- wels.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,0)
- wels.C1 = CFrame.new(1.5,0.5,0)
- wels.Enabled = false
- local wels2 = Instance.new("Weld",owner.Character.Torso)
- wels2.Part0 = owner.Character["Left Arm"]
- wels2.Part1 = owner.Character.Torso
- wels2.C0 = CFrame.new(0,0.5,0)
- wels2.C1 = CFrame.new(-1.5,0.5,0)
- wels2.Enabled = false
- count = 0
- function mag()
- local magdebris = Instance.new("Part",workspace)
- magdebris.Size = Vector3.new(0.121, 0.8, 0.26)
- magdebris.CFrame = Gun3.CFrame
- magdebris.Transparency = 1
- local magdebris2 = Instance.new("Part",workspace)
- magdebris2.Size = Vector3.new(0.141, 0.055, 0.319)
- magdebris2.CFrame = Gun3.CFrame
- local magweld = Instance.new("Weld",magdebris2)
- magweld.Part0 = magdebris
- magweld.Part1 = magdebris2
- magweld.C0 = CFrame.Angles(math.rad(-10),0,0) * CFrame.new(0,-0.5,0)
- game:GetService("Debris"):AddItem(magdebris,10)
- game:GetService("Debris"):AddItem(magdebris2,10)
- local Mesh4 = Instance.new("SpecialMesh")
- Mesh4.Parent = magdebris2
- Mesh4.MeshId = "http://www.roblox.com/asset/?id=436643848"
- Mesh4.TextureId = "http://www.roblox.com/asset/?id=436655930"
- Mesh4.Scale = Vector3.new(0.01, 0.01, 0.01)
- Mesh4.Offset = Vector3.new(0,0.5,0)
- magdebris:ApplyImpulse(magdebris.CFrame.upVector * (-10 * (magdebris:GetMass() + magdebris2:GetMass())))
- end
- Tool.Grip = CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,-0.25,0.55)
- local reloading = false
- local blacklist = {}
- for i,v in pairs(owner:GetDescendants()) do
- table.insert(blacklist,v)
- end
- function animate(what)
- if what == "Reload" then
- reloading = true
- wels.Enabled = true
- wels2.Enabled = true
- if count == 0 then
- shot:Play()
- end
- local info = TweenInfo.new(0.175,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
- local g = {}
- g.C0 = CFrame.new(-0.2,0.5,0) * CFrame.Angles(math.rad(15),math.rad(5),math.rad(-15))
- g.C1 = CFrame.new(-1.5,0.25,0)
- local t = tweenService:Create(wels2, info, g)
- t:Play()
- local g = {}
- g.Grip = CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,-0.25,0.55)
- local t = tweenService:Create(Tool, info, g)
- t:Play()
- local info = TweenInfo.new(0.175,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
- local g = {}
- g.C0 = CFrame.new(-0.1,0.5,0) * CFrame.Angles(math.rad(-90),math.rad(5),math.rad(-65))
- g.C1 = CFrame.new(1.5,0.25,0)
- local t = tweenService:Create(wels, info, g)
- t:Play()
- t.Completed:Wait()
- magout.Parent = Gun
- magout.Parent = nil
- mag()
- Gun3.Transparency = 1
- wels2.C0 = CFrame.new(0.5,2.25,0.35) * CFrame.Angles(math.rad(-75),math.rad(70),math.rad(15))
- wels2.C1 = CFrame.new(-1.65,0.25,0)
- wels.C0 = CFrame.new(0,0.75,0) * CFrame.Angles(math.rad(-85),math.rad(-5),math.rad(15))
- local fakemagcf = owner.Character["Left Arm"].CFrame:Inverse() * Gun3.CFrame
- local fakemag = Instance.new("Part",script)
- fakemag.Size = Vector3.new(0.141, 0.63, 0.319)
- fakemag.Massless = true
- fakemag.CanCollide = false
- local m = Instance.new("SpecialMesh",fakemag)
- m.MeshId = "http://www.roblox.com/asset/?id=436643848"
- m.TextureId = "http://www.roblox.com/asset/?id=436655930"
- m.Scale = Vector3.new(0.01, 0.01, 0.01)
- local w = Instance.new("Weld",owner.Character["Left Arm"])
- w.Part0 = fakemag
- w.Part1 = w.Parent
- w.C0 = fakemagcf * CFrame.Angles(math.rad(-60),math.rad(-75),math.rad(30))
- w.C1 = CFrame.new(1,-1,0)
- wels2.C0 = CFrame.new(-0.2,0.5,0) * CFrame.Angles(math.rad(15),math.rad(5),math.rad(-15))
- wels2.C1 = CFrame.new(-1.5,0.25,0)
- wels.C0 = CFrame.new(-0.1,0.5,0) * CFrame.Angles(math.rad(-90),math.rad(5),math.rad(-65))
- local info = TweenInfo.new(0.125,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
- local g = {}
- g.C0 = CFrame.new(-0.1,0.5,0) * CFrame.Angles(math.rad(-85),math.rad(15),math.rad(-55))
- local t = tweenService:Create(wels, info, g)
- t:Play()
- t.Completed:Wait()
- local info = TweenInfo.new(0.2,Enum.EasingStyle.Quart,Enum.EasingDirection.Out)
- local g = {}
- g.C0 = CFrame.new(0.5,2.25,0.35) * CFrame.Angles(math.rad(-75),math.rad(70),math.rad(15))
- g.C1 = CFrame.new(-1.65,0.25,0)
- local t = tweenService:Create(wels2, info, g)
- t:Play()
- local info = TweenInfo.new(0.2,Enum.EasingStyle.Quart,Enum.EasingDirection.Out)
- local g = {}
- g.C0 = CFrame.new(0,0.75,0) * CFrame.Angles(math.rad(-85),math.rad(-5),math.rad(15))
- local t = tweenService:Create(wels, info, g)
- t:Play()
- t.Completed:Wait()
- local info = TweenInfo.new(0.175,Enum.EasingStyle.Quad,Enum.EasingDirection.In)
- local g = {}
- g.C0 = CFrame.new(0.5,2.25,0.5) * CFrame.Angles(math.rad(-95),math.rad(70),math.rad(15))
- g.C1 = CFrame.new(-1.65,0.25,0)
- local t = tweenService:Create(wels2, info, g)
- t:Play()
- local info = TweenInfo.new(0.175,Enum.EasingStyle.Quad,Enum.EasingDirection.In)
- local g = {}
- g.C0 = CFrame.new(0,0.75,0) * CFrame.Angles(math.rad(-95),math.rad(-5),math.rad(15))
- local t = tweenService:Create(wels, info, g)
- t:Play()
- magin.Parent = Gun
- magin.Parent = nil
- Gun3.Transparency = 0
- game:GetService("Debris"):AddItem(fakemag,0)
- t.Completed:Wait()
- if count == 0 then
- local info = TweenInfo.new(0.175,Enum.EasingStyle.Cubic,Enum.EasingDirection.In)
- local g = {}
- g.C0 = CFrame.new(0.5,2.25,0.75) * CFrame.Angles(math.rad(-100),math.rad(70),math.rad(15))
- g.C1 = CFrame.new(-1.5,0.25,0)
- local t = tweenService:Create(wels2, info, g)
- t:Play()
- local info = TweenInfo.new(0.25,Enum.EasingStyle.Cubic,Enum.EasingDirection.In)
- local g = {}
- g.C0 = CFrame.new(0,0.75,0) * CFrame.Angles(math.rad(-85),math.rad(-5),math.rad(-35))
- local t = tweenService:Create(wels, info, g)
- t:Play()
- t.Completed:Wait()
- local info = TweenInfo.new(0.175,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)
- local g = {}
- g.C0 = CFrame.new(0.5,1.5,0.75) * CFrame.Angles(math.rad(-95),math.rad(75),math.rad(15))
- g.C1 = CFrame.new(-1.45,0.25,0)
- local t = tweenService:Create(wels2, info, g)
- t:Play()
- local info = TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)
- local g = {}
- g.C0 = CFrame.new(0,0.75,0) * CFrame.Angles(math.rad(-90),math.rad(-10),math.rad(-35))
- local t = tweenService:Create(wels, info, g)
- t:Play()
- shott:Play()
- slideback.Parent = Gun
- slideback.Parent = nil
- t.Completed:Wait()
- shot2:Play()
- slidefront.Parent = Gun
- slidefront.Parent = nil
- end
- local info = TweenInfo.new(0.175,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)
- local g = {}
- g.C0 = CFrame.new(0.5,2.25,0.45) * CFrame.Angles(math.rad(-95),math.rad(60),math.rad(15))
- g.C1 = CFrame.new(-1.85,0.25,0)
- local t = tweenService:Create(wels2, info, g)
- t:Play()
- local info = TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)
- local g = {}
- g.C0 = CFrame.new(0,1,-0.2) * CFrame.Angles(math.rad(-92),math.rad(-15),0)
- g.C1 = CFrame.new(1.5,0.45,0)
- local t = tweenService:Create(wels, info, g)
- t:Play()
- local info = TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)
- local g = {}
- g.Grip = CFrame.Angles(0,math.rad(190),0) * CFrame.new(0,-0.25,0.55)
- local t = tweenService:Create(Tool, info, g)
- t:Play()
- t.Completed:Wait()
- reloading = false
- count = 10
- elseif what == "Shoot" then
- canshoot = false
- shot:Play()
- local info = TweenInfo.new(0.0875,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
- local g = {}
- g.C0 = CFrame.new(0.5,2.25,-0.25) * CFrame.Angles(math.rad(-100),math.rad(60),math.rad(15))
- g.C1 = CFrame.new(-1.85,0.55,0.5)
- local t = tweenService:Create(wels2, info, g)
- t:Play()
- local info = TweenInfo.new(0.0875,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
- local g = {}
- g.C0 = CFrame.new(0,1,-0.4) * CFrame.Angles(math.rad(-97),math.rad(-15),0)
- g.C1 = CFrame.new(1.5,0.55,0.5)
- local t = tweenService:Create(wels, info, g)
- t:Play()
- t.Completed:Wait()
- if count ~= 0 then
- shot2:Play()
- end
- local info = TweenInfo.new(0.0875,Enum.EasingStyle.Quint,Enum.EasingDirection.In)
- local g = {}
- g.C0 = CFrame.new(0.5,2.25,0.45) * CFrame.Angles(math.rad(-95),math.rad(60),math.rad(15))
- g.C1 = CFrame.new(-1.85,0.25,0)
- local t = tweenService:Create(wels2, info, g)
- t:Play()
- local info = TweenInfo.new(0.0875,Enum.EasingStyle.Quint,Enum.EasingDirection.In)
- local g = {}
- g.C0 = CFrame.new(0,1,-0.2) * CFrame.Angles(math.rad(-92),math.rad(-15),0)
- g.C1 = CFrame.new(1.5,0.45,0)
- local t = tweenService:Create(wels, info, g)
- t:Play()
- t.Completed:Wait()
- canshoot = true
- end
- end
- local equipped = false
- e = Instance.new("RemoteEvent",owner.Character)
- e.OnServerEvent:Connect(function(_,what,pos)
- if equipped then
- if what == "reload" then
- if not reloading then
- animate("Reload")
- end
- elseif what == "shoot" then
- if count > 0 and not reloading and canshoot then
- count -= 1
- local shootybang
- shoots:Play()
- coroutine.wrap(function()
- local bullet = Instance.new("Part",script)
- bullet.Size = Vector3.new(0.25,0.25,10)
- bullet.CanCollide = false
- bullet.Anchored = true
- bullet.Color = Color3.fromRGB(235, 235, 12)
- bullet.Material = "Neon"
- local buls = Instance.new("Sound",bullet)
- buls.Volume = 5
- buls.Pitch = Random.new():NextNumber(1,1.25)
- local bulstab = {"3809085250","3809084884","3809085650","3809085996","3809086455"}
- buls.SoundId = "rbxassetid://"..bulstab[math.random(1,#bulstab)]
- buls.Looped = true
- buls.RollOffMinDistance = 50
- buls.RollOffMaxDistance = 125
- buls:Play()
- local a1 = Instance.new("Attachment",bullet)
- a1.CFrame = CFrame.new(0,-0.1,10)
- local a2 = Instance.new("Attachment",bullet)
- a2.CFrame = CFrame.new(0,0.1,10)
- local t = Instance.new("Trail",bullet)
- t.Attachment0 = a1
- t.Attachment1 = a2
- t.Color = ColorSequence.new(bullet.Color)
- t.WidthScale = NumberSequence.new{NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}
- t.Lifetime = 0.5
- t.MaxLength = 0
- t.MinLength = 0.1
- t.LightEmission = 1
- t.LightInfluence = 0.5
- t.TextureLength = 1
- t.TextureMode = "Stretch"
- t.FaceCamera = true
- Instance.new("SpecialMesh",bullet).MeshType = "Sphere"
- local ang = CFrame.Angles(0,0,math.pi * 2 * math.random()) * CFrame.Angles(math.random() * math.rad(0.5),0,0)
- bullet.CFrame = CFrame.new((Gun.CFrame * CFrame.new(0,0,2)).Position) * CFrame.Angles(CFrame.new((Gun.CFrame * CFrame.new(0,0,2)).Position,pos):ToEulerAnglesXYZ()) * ang
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {blacklist,bullet}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local sped = 20
- shootybang = game:GetService("RunService").Stepped:Connect(function(_,b)
- local res = workspace:Raycast(bullet.Position, bullet.CFrame.lookVector*((sped)*b*30), params)
- if not res then
- bullet.CFrame = bullet.CFrame * CFrame.new(0,0,(-sped)*b*30)
- sped = sped - (30*b)
- bullet.Size = Vector3.new(0.25,0.25,sped/2)
- a2.CFrame = CFrame.new(0,0.1,sped/2)
- a1.CFrame = CFrame.new(0,-0.1,sped/2)
- if sped < 0 then
- bullet:Destroy()
- shootybang:Disconnect()
- end
- else
- local whathit = res.Instance
- local hole2 = Instance.new("Part",workspace)
- table.insert(blacklist,hole2)
- hole2.Shape = "Cylinder"
- hole2.CanCollide = false
- hole2.Size = Vector3.new(0.02,0.35,0.35)
- hole2:BreakJoints()
- hole2.Position = res.Position
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = res.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- hole2.CFrame = CFrame.fromMatrix(hole2.Position, currentRightVector, upVector, newFacialVector) * CFrame.Angles(0,0,math.rad(90))
- local holeweld = Instance.new("WeldConstraint",whathit)
- holeweld.Part0 = hole2
- holeweld.Part1 = whathit
- hole2.Color = Color3.fromRGB()
- game:GetService("Debris"):AddItem(hole2,30)
- hole2.Color = Color3.fromRGB()
- if res.Instance:FindFirstAncestorWhichIsA("Model") and res.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid") then
- hole2.BrickColor = BrickColor.new("Maroon")
- end
- local params2 = RaycastParams.new()
- params2.FilterDescendantsInstances = {res.Instance}
- params2.FilterType = Enum.RaycastFilterType.Whitelist
- local res2 = workspace:Raycast(bullet.Position + bullet.CFrame.lookVector * 250,bullet.CFrame.lookVector * -500, params2)
- local depth = (res.Position - res2.Position).Magnitude
- if depth <= damage * 0.0525 then
- local perc = Instance.new("Sound")
- local randsound = {"6962155018","6962154328"}
- perc.SoundId = "rbxassetid://"..randsound[math.random(1,2)]
- perc.PlayOnRemove = true
- perc.Parent = bullet
- perc:Destroy()
- local whathit = res2.Instance
- local hole = Instance.new("Part",workspace)
- table.insert(blacklist,hole)
- hole.Shape = "Cylinder"
- hole.CanCollide = false
- hole.Size = Vector3.new(0.02,0.35,0.35)
- hole:BreakJoints()
- hole.Position = res2.Position
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = res2.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- hole.CFrame = CFrame.fromMatrix(hole.Position, currentRightVector, upVector, newFacialVector) * CFrame.Angles(0,0,math.rad(90))
- local holeweld = Instance.new("WeldConstraint",whathit)
- holeweld.Part0 = hole
- holeweld.Part1 = whathit
- hole.Color = Color3.fromRGB()
- game:GetService("Debris"):AddItem(hole,30)
- hole.Color = Color3.fromRGB()
- if res2.Instance:FindFirstAncestorWhichIsA("Model") and res2.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid") then
- hole.BrickColor = BrickColor.new("Maroon")
- end
- bullet.CFrame = CFrame.new(hole.Position) * CFrame.Angles(bullet.CFrame:ToEulerAnglesXYZ()) * CFrame.Angles(0,0,math.pi * 2 * math.random()) * CFrame.Angles(math.random() * math.rad(2),0,0)
- sped = sped - damage * 0.029
- bullet.Size = Vector3.new(0.25,0.25,sped/2)
- a2.CFrame = CFrame.new(0,0.1,sped/2)
- a1.CFrame = CFrame.new(0,-0.1,sped/2)
- if sped < 0 then
- bullet:Destroy()
- shootybang:Disconnect()
- end
- else
- local crac = Instance.new("Sound",bullet)
- local randsound = {"9063083721","9063080907"}
- crac.SoundId = "rbxassetid://"..randsound[math.random(1,2)]
- crac.PlayOnRemove = true
- crac.Volume = 1.5
- local perc = Instance.new("Sound",bullet)
- local randsound = {"6962155018","6962154328"}
- perc.SoundId = "rbxassetid://"..randsound[math.random(1,2)]
- perc.PlayOnRemove = true
- bullet:Destroy()
- shootybang:Disconnect()
- end
- local hum = res.Instance:FindFirstAncestorWhichIsA("Model") and res.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid")
- if res.Instance.Name == "Head" then
- if hum then
- hum.Health = 0
- end
- else
- if hum then
- hum.Health = hum.Health - 35
- end
- end
- end
- end)
- end)()
- animate("Shoot")
- end
- elseif what == "camera" then
- --[[
- local lookvector = owner.Character.Torso.CFrame:toObjectSpace(pos).lookVector.unit
- rotwel.C0 = rotwel.C0:Lerp(CFrame.Angles(math.sin(-lookvector.Y)*1,0,0), 0.2)
- rotwel2.C0 = rotwel2.C0:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(math.sin(-lookvector.Y)*1,0,0), 0.2)
- ]]--
- end
- end
- end)
- Tool.Unequipped:Connect(function()
- wels.Enabled = false
- wels2.Enabled = false
- wels2.C0 = CFrame.new(0,0.5,0)
- wels2.C1 = CFrame.new(-1.5,0.5,0)
- wels.C0 = CFrame.new(0,0.5,0)
- wels.C1 = CFrame.new(1.5,0.5,0)
- equipped = false
- end)
- Tool.Equipped:Connect(function()
- wels.Enabled = true
- wels2.Enabled = true
- local info = TweenInfo.new(0.25,Enum.EasingStyle.Back,Enum.EasingDirection.InOut)
- local g = {}
- g.C0 = CFrame.new(0.5,2.25,0.45) * CFrame.Angles(math.rad(-95),math.rad(60),math.rad(15))
- g.C1 = CFrame.new(-1.85,0.25,0)
- local t = tweenService:Create(wels2, info, g)
- t:Play()
- local info = TweenInfo.new(0.25,Enum.EasingStyle.Back,Enum.EasingDirection.InOut)
- local g = {}
- g.C0 = CFrame.new(0,1,-0.2) * CFrame.Angles(math.rad(-92),math.rad(-15),0)
- g.C1 = CFrame.new(1.5,0.45,0)
- local t = tweenService:Create(wels, info, g)
- t:Play()
- t.Completed:Wait()
- equipped = true
- end)
- NLS([[
- local auto = false
- local down = false
- e = script.Parent
- mouse = owner:GetMouse()
- mouse.KeyDown:Connect(function(key)
- key = key:lower()
- if key == "r" then
- e:FireServer("reload")
- end
- end)
- mouse.KeyDown:Connect(function(key)
- key = key:lower()
- if key == "=" then
- auto = not auto
- end
- end)
- mouse.Button1Down:Connect(function()
- down = true
- e:FireServer("shoot",mouse.Hit.Position)
- end)
- mouse.Button1Up:Connect(function()
- down = false
- end)
- while wait(0.0625) do
- if auto and down then
- e:FireServer("shoot",mouse.Hit.Position)
- end
- end
- ]],e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement