Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(0.5)
- local player = game.Players.LocalPlayer
- local backpack, playergui = player:WaitForChild("Backpack"), player:WaitForChild("PlayerGui")
- repeat wait(0.1) until player.Character
- local char, camera = player.Character, workspace.CurrentCamera
- local tool = script.Parent
- local handle = tool:WaitForChild("Handle")
- local barrel = tool:WaitForChild("Barrel")
- local GunGUI = tool:WaitForChild("GunGUI")
- local replicatedstorage = game:GetService("ReplicatedStorage")
- local create = assert(LoadLibrary("RbxUtility")).Create
- local storage = game:GetService("ReplicatedStorage")
- local debris = game:GetService("Debris")
- local cframe, cframeXYZ, vector = CFrame.new, CFrame.fromEulerAnglesXYZ, Vector3.new
- local arms = {
- Left = cframe(-0.249, 1.35, 0.6) * cframeXYZ(math.rad(290), 0, math.rad(-90)),
- Right = cframe(-0.7, 0.4, 0.35) * cframeXYZ(math.rad(-90),math.rad(-5),math.rad(0))
- }
- local cursor = {
- Standard = "http://www.roblox.com/asset/?id=205898768",
- }
- local creator = create("ObjectValue"){Name = "creator", Value = player}
- local laser = create("Part"){Name = "Ray", Anchored = true, CanCollide = false, formFactor = 0, Size = vector(1, 1, 1), BrickColor = BrickColor.new("New Yeller"), Reflectance = 0.2, Transparency = 0.25, Material="Neon"}
- local mesh = create("BlockMesh"){Parent = laser, Name = "Mesh", Scale = Vector3.new(0.15, 0.15, 1)}
- local armToggle = char:FindFirstChild("armToggle") and char.armToggle or create("BoolValue"){Parent = char, Name = "armToggle"}
- local fireMode = "Auto" -- Auto/Semi/Shotgun
- local clip = 30
- local spread = 4 -- In studs
- local firerate = 0.04
- local damage = 14
- local mag = clip
- local teamkill = false
- local equipped = false
- local mouseDown = false
- local reloading = false
- local canFire = true
- local firing = false
- local crouch = false
- -- Remote Events --
- local shootevent = replicatedstorage:WaitForChild("ShootEvent")
- -----------------------------------------------------------------------------------------------------------
- if tool:FindFirstChild("used") then
- mag = 0
- else
- create("ObjectValue"){Name = "used", Parent = tool}
- end
- local welding = {}
- welding.Weld = create("Weld"){}
- local leftCrouchWeld, rightCrouchWeld = create("Weld"){}, create("Weld"){}
- function welding.SetArms(bool)
- local torso = char:FindFirstChild("Torso")
- local leftS, rightS = torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")
- local left, right = char:FindFirstChild("Left Arm"), char:FindFirstChild("Right Arm")
- if bool then
- leftS.Part1, rightS.Part1 = nil, nil
- leftWeld = welding.Weld:Clone()
- leftWeld.Name = "Weld1"; leftWeld.Part0 = torso; leftWeld.Part1 = left; leftWeld.C1 = arms.Left; leftWeld.Parent = torso
- rightWeld = welding.Weld:Clone()
- rightWeld.Name = "Weld2"; rightWeld.Part0 = torso; rightWeld.Part1 = right; rightWeld.C1 = arms.Right; rightWeld.Parent = torso
- print("welded arms!")
- FakeLeftArm, FakeRightArm = left:Clone(), right:Clone()
- FakeLeftArm:ClearAllChildren()
- FakeLeftArm.Name = "FakeLeftArm"
- FakeLeftArm.FormFactor = "Custom"
- FakeLeftArm.Material = "SmoothPlastic"
- FakeLeftArm.Size = Vector3.new(0.9, 1.75, 0.9)
- FakeLeftArm.Transparency = 0.6
- FakeLeftArm.Parent = tool
- local flaWeld = welding.Weld:Clone()
- flaWeld.Parent = FakeLeftArm; flaWeld.Part0 = left; flaWeld.Part1 = FakeLeftArm
- FakeRightArm.Name = "FakeRightArm"
- FakeRightArm:ClearAllChildren()
- FakeRightArm.FormFactor = "Custom"
- FakeRightArm.Material = "SmoothPlastic"
- FakeRightArm.Size = Vector3.new(0.9, 1.75, 0.9)
- FakeRightArm.Transparency = 0.6
- FakeRightArm.Parent = tool
- local fraWeld = welding.Weld:Clone()
- fraWeld.Parent = FakeRightArm; fraWeld.Part0 = right; fraWeld.Part1 = FakeRightArm
- print("fake arms created!")
- else
- leftS.Part1, rightS.Part1 = left, right
- if leftWeld and rightWeld then
- leftWeld:Destroy()
- rightWeld:Destroy()
- end
- if FakeLeftArm and FakeRightArm then
- FakeLeftArm:Destroy()
- FakeRightArm:Destroy()
- end
- end
- end
- function welding.Default(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local Left = char.Torso:FindFirstChild("Weld1")
- local Right = char.Torso:FindFirstChild("Weld2")
- Left.C1 = arms.Left
- Right.C1 = arms.Right
- char.Humanoid.WalkSpeed = 16
- end
- end
- function welding.Default2(...)
- script.Parent.GripForward=Vector3.new(0, 0, -1)
- script.Parent.GripPos=Vector3.new(0, 0, 0)
- script.Parent.GripRight=Vector3.new(1, 0, 0)
- script.Parent.GripUp=Vector3.new(0, 1, 0)
- end
- function welding.Holster(...)
- local left = char.Torso:FindFirstChild("Weld1")
- local right = char.Torso:FindFirstChild("Weld2")
- right.C1 = right.C1 * CFrame.Angles(math.pi/6, -math.pi/6, 0) * CFrame.new(-0.5, 0.1, 0)
- left.C1 = left.C1 * CFrame.Angles(math.pi/6, 0, 0) * CFrame.new(0.5, -0.5, -0.5)
- end
- function welding.Crouch(bool)
- if bool then
- if char:FindFirstChild('Left Leg') and char:findFirstChild('Right Leg') and char:findFirstChild('HumanoidRootPart') and char.HumanoidRootPart:findFirstChild('RootJoint') and char.Torso and char.Torso:findFirstChild('Left Hip') and char.Torso:findFirstChild('Right Hip') then
- char.Torso['Right Hip'].Part1 = nil
- char.Torso['Left Hip'].Part1 = nil
- char.HumanoidRootPart.RootJoint.C1 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(90),math.rad(180),0)
- leftCrouchWeld.Part0 = char.Torso leftCrouchWeld.Parent = char.Torso leftCrouchWeld.Part1 = char['Left Leg']
- rightCrouchWeld.Part0 = char.Torso rightCrouchWeld.Parent = char.Torso rightCrouchWeld.Part1 = char['Right Leg']
- leftCrouchWeld.C1 = CFrame.new(.5,.5,1.5)*CFrame.Angles(math.rad(90),0,0)
- rightCrouchWeld.C1 = CFrame.new(-.55,1.3,.5)*CFrame.Angles(math.rad(-15),0,0)
- end
- else
- if char:findFirstChild('Left Leg') and char:findFirstChild('Right Leg') and char:findFirstChild('HumanoidRootPart') and char.HumanoidRootPart:findFirstChild('RootJoint') and char.Torso and char.Torso:findFirstChild('Left Hip') and char.Torso:findFirstChild('Right Hip') then
- char.Torso['Right Hip'].Part1 = char['Right Leg']
- char.Torso['Left Hip'].Part1 = char['Left Leg']
- char.HumanoidRootPart.RootJoint.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(90),math.rad(180),0)
- leftCrouchWeld.Parent = nil rightCrouchWeld.Parent = nil
- end
- end
- end
- local arCooldown = 0.09
- function welding.Animations(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- weld55.C1 = CFrame.new(-0.25, 1.15, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(300), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-95), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(-0.15, 0.95, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(310), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-100), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(-0.05, 0.75, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(320), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-105), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(0.05, 0.55, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(330), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-110), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(0.15, 0.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(340), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-100), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(0.2, 0.15, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(350), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(0.2, -0.2, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(360), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-80), math.rad(-5), 0)
- wait(0.2)
- weld55.C1 = CFrame.new(0.17, 0, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(350), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-85), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(0.14, 0.2, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(340), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(0.11, 0.4, 0.45) * CFrame.fromEulerAnglesXYZ(math.rad(330), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(0.08, 0.6, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(320), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(0.05, 0.8, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(310), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(0, 1, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(-0), math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(0.3)
- weld55.C1 = CFrame.new(-0.1, 1.15, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(-0), math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(-0.2, 1.3, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(-0), math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.35, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(0.02)
- weld55.C1 = CFrame.new(-0.25, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(-0), math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.3, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(0.1)
- welding.Default()
- end
- end
- function welding.Animations2(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld1 = char.Torso:FindFirstChild("Weld1")
- local weld2=char.Torso:FindFirstChild("Weld2")
- weld1.C1 = CFrame.new(-0.25, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))--Left arm
- weld2.C1 = CFrame.new(-1, 0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0))--Right arm
- wait(0.03)
- weld1.C1 = CFrame.new(0.25, 1, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(310), math.rad(5), math.rad(-60))--Left arm
- weld2.C1 = CFrame.new(-1, 0, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(-75), math.rad(-20), math.rad(0))--Right arm
- wait(0.03)
- weld1.C1 = CFrame.new(0.75, 0.75, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(330), math.rad(10), math.rad(-30))--Left arm
- weld2.C1 = CFrame.new(-1, -0.2, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-60), math.rad(-40), math.rad(0))--Right arm
- wait(0.03)
- weld1.C1 = CFrame.new(1.2, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(350), math.rad(10), math.rad(0))--Left arm
- weld2.C1 = CFrame.new(-1, -0.4, -0.2) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-60), math.rad(0))--Right arm
- wait(0.03)
- weld1.C1 = CFrame.new(1.2, 0.25, 0) * CFrame.fromEulerAnglesXYZ(math.rad(350), math.rad(10), math.rad(10))--Left arm
- weld2.C1 = CFrame.new(-1, -0.5, -0.4) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-80), math.rad(0))--Right arm
- wait(0.03)
- script.Parent.GripForward=Vector3.new(0, 0, -1)
- script.Parent.GripPos=Vector3.new(0, 0, 0)
- script.Parent.GripRight=Vector3.new(1.6, 0, 0.316)
- script.Parent.GripUp=Vector3.new(0, 1, 0)
- end
- end
- function welding.Animations3(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld1= char.Torso:FindFirstChild("Weld1")
- local weld2 = char.Torso:FindFirstChild("Weld2")
- weld1.C1 = CFrame.new(1.2, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(350), math.rad(10), math.rad(0))--Left arm
- weld2.C1 = CFrame.new(-1, -0.4, -0.2) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-60), math.rad(0))--Right arm
- wait(0.03)
- weld1.C1 = CFrame.new(0.75, 0.75, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(330), math.rad(10), math.rad(-30))--Left arm
- weld2.C1 = CFrame.new(-1, -0.2, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-60), math.rad(-40), math.rad(0))--Right arm
- wait(0.03)
- weld1.C1 = CFrame.new(0.25, 1, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(310), math.rad(5), math.rad(-60))--Left arm
- weld2.C1 = CFrame.new(-1, 0, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(-75), math.rad(-20), math.rad(0))--Right arm
- wait(0.03)
- weld1.C1 = CFrame.new(-0.25, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))--Left arm
- weld2.C1 = CFrame.new(-1, 0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0))--Right arm
- welding.Default2()
- welding.Default() wait(0.03)
- end
- end
- function welding.Animations4(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- weld55.C1 = CFrame.new(-0.25, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))--Left arm
- weld33.C1 = CFrame.new(-1, 0.2, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0))--Right arm
- wait(0.02)
- --Original
- weld55.C1 = CFrame.new(0.75, 0.75, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(250), math.rad(0), math.rad(-60))--Left arm
- weld33.C1 = CFrame.new(-1, 0, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(-75), math.rad(-20), math.rad(0))--Right arm
- wait(0.02)
- weld55.C1 = CFrame.new(1.25, 0.75, -0.2) * CFrame.fromEulerAnglesXYZ(math.rad(210), math.rad(0), math.rad(-30))--Left arm
- weld33.C1 = CFrame.new(-1, -0.2, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-60), math.rad(-40), math.rad(0))--Right arm
- wait(0.02)
- weld55.C1 = CFrame.new(1.5, 0.75, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(0), math.rad(20))--Left arm
- weld33.C1 = CFrame.new(-1, -0.5, -0.4) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-80), math.rad(0))--Right arm
- wait(0.02)
- weld55.C1 = CFrame.new(1.5, 0.75, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(0), math.rad(20))--Left arm
- weld33.C1 = CFrame.new(-1, -0.5, -0.4) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-80), math.rad(0))--Right arm
- wait(0.02)
- end
- end
- function welding.Animations5(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- weld55.C1 = CFrame.new(1.5, 0.75, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(0), math.rad(20))--Left arm
- weld33.C1 = CFrame.new(-1, -0.5, -0.4) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-80), math.rad(0))--Right arm
- wait(0.02)
- weld55.C1 = CFrame.new(1.5, 0.75, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(180), math.rad(0), math.rad(20))--Left arm
- weld33.C1 = CFrame.new(-1, -0.5, -0.4) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-80), math.rad(0))--Right arm
- wait(0.02)
- weld55.C1 = CFrame.new(1.25, 0.75, -0.2) * CFrame.fromEulerAnglesXYZ(math.rad(210), math.rad(0), math.rad(-30))--Left arm
- weld33.C1 = CFrame.new(-1, -0.2, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-60), math.rad(-40), math.rad(0))--Right arm
- wait(0.02)
- weld55.C1 = CFrame.new(0.75, 0.75, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(250), math.rad(0), math.rad(-60))--Left arm
- weld33.C1 = CFrame.new(-1, 0, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(-75), math.rad(-20), math.rad(0))--Right arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.25, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(-0), math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.3, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(0.03)
- welding.Default2()
- end
- end
- function welding.Animations6(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- weld55.C1 = CFrame.new(-0.25, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))--Left arm
- wait(0.01)
- --Original
- weld55.C1 = CFrame.new(-0.25, 1.35, 0.9) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(30), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.2) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(60), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(80), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(80), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(60), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(40), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(20), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(0), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(20), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(40), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(60), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(80), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(80), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(60), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(40), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(20), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(0), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(20), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(40), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(60), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(80), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(80), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(60), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(40), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(20), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(0), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(20), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(40), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(60), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(80), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.5) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(80), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 1.2) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(60), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 0.9) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(30), math.rad(-90))--Left arm
- wait(0.01)
- weld55.C1 = CFrame.new(-0.25, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))--Left arm
- wait(0.01)
- welding.Default()
- end
- end
- function welding.Animations7(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- weld55.C1 = CFrame.new(-0.25, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- --Original
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(250), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(230), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(210), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(190), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(210), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(230), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(250), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(230), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(210), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(190), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(210), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(230), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(210), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(190), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(210), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(230), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(250), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.5, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- weld55.C1 = CFrame.new(-0.25, 1.35, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))--Left arm
- wait(0.02)
- welding.Default()
- end
- end
- function welding.Animations8(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- handle.bayonet:play()
- script.Parent.bayonetblade.Knifekill.Disabled = false
- script.Parent.bayonetblade1.Knifekill.Disabled = false
- wait(0.2)
- weld33.C1 = CFrame.new(-0.75, 0.35, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-7), math.rad(-0))
- weld55.C1 = CFrame.new(-0.35, 1.7, .8) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))
- wait(0.03)
- weld33.C1 = CFrame.new(-0.75, 0.55, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-7), math.rad(-0))
- weld55.C1 = CFrame.new(-0.35, 1.9, .8) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))
- wait(0.03)
- weld33.C1 = CFrame.new(-0.75, 0.75, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-7), math.rad(-0))
- weld55.C1 = CFrame.new(-0.35, 2.1, .8) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))
- wait(0.03)
- weld33.C1 = CFrame.new(-0.75, 0.85, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-7), math.rad(-0))
- weld55.C1 = CFrame.new(-0.35, 2.2, .8) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))
- wait(0.05)
- weld33.C1 = CFrame.new(-0.75, 0.75, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-7), math.rad(-0))
- weld55.C1 = CFrame.new(-0.35, 2.1, .8) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))
- wait(0.03)
- weld33.C1 = CFrame.new(-0.75, 0.55, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-7), math.rad(-0))
- weld55.C1 = CFrame.new(-0.35, 1.9, .8) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))
- wait(0.03)
- weld33.C1 = CFrame.new(-0.75, 0.35, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-7), math.rad(-0))
- weld55.C1 = CFrame.new(-0.35, 1.7, .8) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))
- wait(0.03)
- weld33.C1 = CFrame.new(-0.75, 0.15, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-7), math.rad(-0))
- weld55.C1 = CFrame.new(-0.35, 1.5, .8) * CFrame.fromEulerAnglesXYZ(math.rad(290), math.rad(0), math.rad(-90))
- wait(0.03)
- script.Parent.bayonetblade.Knifekill.Disabled = true
- script.Parent.bayonetblade1.Knifekill.Disabled = true
- welding.Default()
- end
- end
- function welding.Animations9(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- weld55.C1 = CFrame.new(1.15, 0.6, 0.25) * CFrame.fromEulerAnglesXYZ(math.rad(285), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.3, 0.1, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-85), math.rad(-25), math.rad(-4))
- wait(0.02)
- weld55.C1 = CFrame.new(1.1, 0.45, 0.1) * CFrame.fromEulerAnglesXYZ(math.rad(295), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.2, 0, 0.15) * CFrame.fromEulerAnglesXYZ(math.rad(-80), math.rad(-30), math.rad(-7))
- wait(0.02)
- weld55.C1 = CFrame.new(1.05, 0.25, -0.05) * CFrame.fromEulerAnglesXYZ(math.rad(305), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.15, -0.05, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-75), math.rad(-33), math.rad(-9))
- wait(0.02)
- weld55.C1 = CFrame.new(1.025, 0.12, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(310), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.1, -0.1, -0.125) * CFrame.fromEulerAnglesXYZ(math.rad(-70), math.rad(-36), math.rad(-11))
- wait(0.02)
- weld55.C1 = CFrame.new(1.01, 0.035, -0.15) * CFrame.fromEulerAnglesXYZ(math.rad(315), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.05, -0.15, -0.23) * CFrame.fromEulerAnglesXYZ(math.rad(-67), math.rad(-38), math.rad(-13))
- wait(0.02)
- script.Parent.GripForward=Vector3.new(0.2795, -0.5007, 0.8193)
- script.Parent.GripPos=Vector3.new(0.3055, 0.6054, -1.383)
- script.Parent.GripRight=Vector3.new(0.924, -0.09162, -0.3712)
- script.Parent.GripUp=Vector3.new(-0.2609, -0.8608, -0.437)
- weld55.C1 = CFrame.new(1, 0, -0.2) * CFrame.fromEulerAnglesXYZ(math.rad(320), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1, -0.2, -0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-65), math.rad(-40), math.rad(-15))
- end
- end
- function welding.Animations10(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- weld55.C1 = CFrame.new(1.01, 0.035, -0.15) * CFrame.fromEulerAnglesXYZ(math.rad(315), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.05, -0.15, -0.23) * CFrame.fromEulerAnglesXYZ(math.rad(-67), math.rad(-38), math.rad(-13))
- wait(0.02)
- weld55.C1 = CFrame.new(1.025, 0.12, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(310), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.1, -0.1, -0.125) * CFrame.fromEulerAnglesXYZ(math.rad(-70), math.rad(-36), math.rad(-11))
- wait(0.02)
- weld55.C1 = CFrame.new(1.05, 0.25, -0.05) * CFrame.fromEulerAnglesXYZ(math.rad(305), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.15, -0.05, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-75), math.rad(-33), math.rad(-9))
- wait(0.02)
- weld55.C1 = CFrame.new(1.1, 0.45, 0.1) * CFrame.fromEulerAnglesXYZ(math.rad(295), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.2, 0, 0.15) * CFrame.fromEulerAnglesXYZ(math.rad(-80), math.rad(-30), math.rad(-7))
- wait(0.02)
- weld55.C1 = CFrame.new(1.15, 0.6, 0.25) * CFrame.fromEulerAnglesXYZ(math.rad(285), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.3, 0.1, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-85), math.rad(-25), math.rad(-4))
- wait(0.02)
- weld33.C1 = CFrame.new(-1.4, 0.15, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(45), math.rad(0))
- welding.Default()
- welding.Default2()
- end
- end
- function welding.Animations11(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- script.Parent.GripForward=Vector3.new(0.259, -0.604, 0.753)
- script.Parent.GripPos=Vector3.new(0.5, 0.7, -1.2)
- script.Parent.GripRight=Vector3.new(0.9252, -0.2641, -0.15)
- script.Parent.GripUp=Vector3.new(-0.3364, -0.9032, -0.2665)
- weld55.C1 = CFrame.new(1.1, 0.55, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(285), math.rad(55), math.rad(-10))
- weld33.C1 = CFrame.new(-1.41, 0.16, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-75), math.rad(-14), math.rad(-2))
- wait(.02)
- weld55.C1 = CFrame.new(1.2, 0.45, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(300), math.rad(35), math.rad(-5))
- weld33.C1 = CFrame.new(-1.42, 0.17, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(-55), math.rad(-13), math.rad(-4))
- wait(.02)
- weld55.C1 = CFrame.new(1.3, 0.35, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(310), math.rad(25), math.rad(0))
- weld33.C1 = CFrame.new(-1.43, 0.18, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-12), math.rad(-6))
- wait(.02)
- weld55.C1 = CFrame.new(1.5, 0.25, 0.1) * CFrame.fromEulerAnglesXYZ(math.rad(320), math.rad(15), math.rad(2))
- weld33.C1 = CFrame.new(-1.44, 0.19, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-35), math.rad(-11), math.rad(-8))
- wait(.02)
- weld55.C1 = CFrame.new(1.5, 0.17, 0) * CFrame.fromEulerAnglesXYZ(math.rad(330), math.rad(0), math.rad(5))
- weld33.C1 = CFrame.new(-1.45, 0.2, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-25), math.rad(-10), math.rad(-10))
- wait(.02)
- weld55.C1 = CFrame.new(1.5, .15, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(340), math.rad(0), math.rad(5))
- weld33.C1 = CFrame.new(-1.45, 0.2, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-20), math.rad(-10), math.rad(-10))
- weld55.C1 = CFrame.new(1.5, .13, -.1) * CFrame.fromEulerAnglesXYZ(math.rad(350), math.rad(0), math.rad(2.5))
- end
- end
- function welding.Animations12(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- script.Parent.GripForward=Vector3.new(-0.2431, 0.08344, -0.9664)
- script.Parent.GripPos=Vector3.new(0.2107, -0.07341, -1.661)
- script.Parent.GripRight=Vector3.new(0.9693, -0.01642, -0.2452)
- script.Parent.GripUp=Vector3.new(0.03633, 0.9964, 0.07689)
- weld55.C1 = CFrame.new(0.72, 0.15, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(320), math.rad(85), math.rad(-46))
- weld33.C1 = CFrame.new(-1.45, 0.2, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-25), math.rad(-10), math.rad(-10))
- wait(0.02)
- weld55.C1 = CFrame.new(0.80, 0.15, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(315), math.rad(80), math.rad(-37))
- weld33.C1 = CFrame.new(-1.44, 0.19, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-35), math.rad(-11), math.rad(-8))
- wait(0.02)
- weld55.C1 = CFrame.new(0.90, 0.25, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(305), math.rad(75), math.rad(-30))
- weld33.C1 = CFrame.new(-1.43, 0.18, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-12), math.rad(-6))
- wait(0.02)
- weld55.C1 = CFrame.new(1, 0.35, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(295), math.rad(65), math.rad(-20))
- weld33.C1 = CFrame.new(-1.42, 0.17, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(-55), math.rad(-13), math.rad(-4))
- wait(0.02)
- weld55.C1 = CFrame.new(1.1, 0.55, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(285), math.rad(55), math.rad(-10))
- weld33.C1 = CFrame.new(-1.41, 0.16, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-75), math.rad(-14), math.rad(-2))
- wait(0.02)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.4, 0.15, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
- welding.Default()
- welding.Default2()
- end
- end
- function welding.Animations13(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- script.Parent.GripForward=Vector3.new(0.133, -0.326, 0.936)
- script.Parent.GripPos=Vector3.new(0.64, 0.6, 0.8)
- script.Parent.GripRight=Vector3.new(0.956, -0.208, -0.208)
- script.Parent.GripUp=Vector3.new(-0.262, -0.922, -0.284)
- weld55.C1 = CFrame.new(1.1, 0.55, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(285), math.rad(55), math.rad(-10))
- weld33.C1 = CFrame.new(-1.41, 0.16, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-75), math.rad(-14), math.rad(-2))
- wait(0.02)
- weld55.C1 = CFrame.new(1, 0.35, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(295), math.rad(65), math.rad(-20))
- weld33.C1 = CFrame.new(-1.42, 0.17, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(-55), math.rad(-13), math.rad(-4))
- wait(0.02)
- weld55.C1 = CFrame.new(0.90, 0.25, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(305), math.rad(75), math.rad(-30))
- weld33.C1 = CFrame.new(-1.43, 0.18, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-12), math.rad(-6))
- wait(0.02)
- weld55.C1 = CFrame.new(0.80, 0.15, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(315), math.rad(80), math.rad(-37))
- weld33.C1 = CFrame.new(-1.44, 0.19, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-35), math.rad(-11), math.rad(-8))
- wait(0.02)
- weld55.C1 = CFrame.new(0.72, 0.15, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(320), math.rad(85), math.rad(-46))
- weld33.C1 = CFrame.new(-1.45, 0.2, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-25), math.rad(-10), math.rad(-10))
- wait(0.02)
- weld55.C1 = CFrame.new(0.65, -0.05, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(325), math.rad(90), math.rad(-50))
- weld33.C1 = CFrame.new(-1.45, 0.2, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-20), math.rad(-10), math.rad(-10))
- end
- end
- function welding.Animations14(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- script.Parent.GripForward=Vector3.new(0.133, -0.326, 0.936)
- script.Parent.GripForward=Vector3.new(-0.2431, 0.08344, -0.9664)
- script.Parent.GripPos=Vector3.new(0.2107, -0.07341, -1.661)
- script.Parent.GripRight=Vector3.new(0.9693, -0.01642, -0.2452)
- script.Parent.GripUp=Vector3.new(0.03633, 0.9964, 0.07689)
- weld55.C1 = CFrame.new(0.72, 0.15, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(320), math.rad(85), math.rad(-46))
- weld33.C1 = CFrame.new(-1.45, 0.2, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-25), math.rad(-10), math.rad(-10))
- wait(0.02)
- weld55.C1 = CFrame.new(0.80, 0.15, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(315), math.rad(80), math.rad(-37))
- weld33.C1 = CFrame.new(-1.44, 0.19, -0.1) * CFrame.fromEulerAnglesXYZ(math.rad(-35), math.rad(-11), math.rad(-8))
- wait(0.02)
- weld55.C1 = CFrame.new(0.90, 0.25, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(305), math.rad(75), math.rad(-30))
- weld33.C1 = CFrame.new(-1.43, 0.18, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(-12), math.rad(-6))
- wait(0.02)
- weld55.C1 = CFrame.new(1, 0.35, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(295), math.rad(65), math.rad(-20))
- weld33.C1 = CFrame.new(-1.42, 0.17, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(-55), math.rad(-13), math.rad(-4))
- wait(0.02)
- weld55.C1 = CFrame.new(1.1, 0.55, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(285), math.rad(55), math.rad(-10))
- weld33.C1 = CFrame.new(-1.41, 0.16, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-75), math.rad(-14), math.rad(-2))
- wait(0.02)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.4, 0.15, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
- welding.Default()
- welding.Default2()
- end
- end
- function welding.Animations15(...)
- if char and char:FindFirstChild("Torso") and char.Torso:FindFirstChild("Weld1") and char.Torso:FindFirstChild("Weld2") then
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- handle.Swing:play()
- script.Parent.Stock.Knifekill.Disabled = false
- script.Parent.GripForward=Vector3.new(0.2389, -0.3376, -0.9105)
- script.Parent.GripPos=Vector3.new(0.2688, -0.1414, -0.3195)
- script.Parent.GripRight=Vector3.new(0.8172, -0.4366, 0.3763)
- script.Parent.GripUp=Vector3.new(0.5246, 0.8339, -0.1715)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(30), math.rad(0))
- weld33.C1 = CFrame.new(-1.4, 0.20, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-18), 0)
- wait(0.06)
- script.Parent.GripForward=Vector3.new(0.3875, -0.3959, -0.8326)
- script.Parent.GripPos=Vector3.new(0.2751, -0.09156, -0.7735)
- script.Parent.GripRight=Vector3.new(0.3209, -0.7887, 0.5244)
- script.Parent.GripUp=Vector3.new(0.8642, 0.4704, 0.1785)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(15), math.rad(0))
- weld33.C1 = CFrame.new(-1.4, 0.26, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-20), 0)
- wait(0.06)
- script.Parent.GripForward=Vector3.new(0.3283, -0.7604, -0.5604)
- script.Parent.GripPos=Vector3.new(0.134, 0.2273, -0.7142)
- script.Parent.GripRight=Vector3.new(0.2382, -0.5074, 0.8281)
- script.Parent.GripUp=Vector3.new(0.914, 0.4053, -0.01457)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(-5), math.rad(0))
- weld33.C1 = CFrame.new(-1.4, 0.33, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-23), 0)
- wait(0.06)
- script.Parent.GripForward=Vector3.new(0.06785, -0.9805, -0.1846)
- script.Parent.GripPos=Vector3.new(-0.05761, 0.3628, -0.4614)
- script.Parent.GripRight=Vector3.new(-0.1389, -0.1925, 0.9714)
- script.Parent.GripUp=Vector3.new(0.988, 0.04026, 0.1493)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(-25), math.rad(0))
- weld33.C1 = CFrame.new(-1.4, 0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-25), 0)
- wait(0.08)
- script.Parent.GripForward=Vector3.new(0.3283, -0.7604, -0.5604)
- script.Parent.GripPos=Vector3.new(0.134, 0.2273, -0.7142)
- script.Parent.GripRight=Vector3.new(0.2382, -0.5074, 0.8281)
- script.Parent.GripUp=Vector3.new(0.914, 0.4053, -0.01457)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(-5), math.rad(0))
- weld33.C1 = CFrame.new(-1.4, 0.33, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-23), 0)
- wait(0.05)
- script.Parent.GripForward=Vector3.new(0.3875, -0.3959, -0.8326)
- script.Parent.GripPos=Vector3.new(0.2751, -0.09156, -0.7735)
- script.Parent.GripRight=Vector3.new(0.3209, -0.7887, 0.5244)
- script.Parent.GripUp=Vector3.new(0.8642, 0.4704, 0.1785)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(15), math.rad(0))
- weld33.C1 = CFrame.new(-1.4, 0.26, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-20), 0)
- wait(0.05)
- script.Parent.GripForward=Vector3.new(0.2389, -0.3376, -0.9105)
- script.Parent.GripPos=Vector3.new(0.2688, -0.1414, -0.3195)
- script.Parent.GripRight=Vector3.new(0.8172, -0.4366, 0.3763)
- script.Parent.GripUp=Vector3.new(0.5246, 0.8339, -0.1715)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(30), math.rad(0))
- weld33.C1 = CFrame.new(-1.4, 0.20, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-18), 0)
- wait(0.05)
- script.Parent.GripForward = Vector3.new(-0.2431, 0.08344, -0.9664)
- script.Parent.GripPos = Vector3.new(0.2107, -0.07341, -1.661)
- script.Parent.GripRight = Vector3.new(0.9693, -0.01642, -0.2452)
- script.Parent.GripUp = Vector3.new(0.03633, 0.9964, 0.07689)
- weld55.C1 = CFrame.new(1.2, 0.75, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(275), math.rad(45), math.rad(0))
- weld33.C1 = CFrame.new(-1.4, 0.15, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
- wait(0.01)
- script.Parent.Stock.Knifekill.Disabled = true
- welding.Default()
- welding.Default2()
- end
- end
- local call = {}
- --[[function call.GetPlayer(obj)
- if obj == nil then
- return nil, nil
- else
- if obj:IsA("Player") then
- return obj, obj.Character
- elseif obj:IsA("Part") and obj.Parent and obj.Parent:IsA("Model") then
- if game.Players:FindFirstChild(obj.Parent.Name) then
- return game.Players[obj.Parent.Name], game.Players[obj.Parent.Name].Character
- end
- elseif obj:IsA("Model") then
- if game.Players:FindFirstChild(obj.Name) then
- return game.Players[obj.Name], game.Players[obj.Parent.Name].Character
- end
- end
- end
- end]]
- function call.UpdateGui(...)
- if playergui:FindFirstChild("GunGUI") then
- playergui.GunGUI.Main.Ammo.Text = "["..mag.."]"
- end
- end
- function call.GetPlayer(hit)
- if hit and hit.Parent then
- if hit.Parent:FindFirstChild("Humanoid") then
- return hit.Parent.Humanoid
- elseif hit.Parent.Parent:FindFirstChild("Humanoid") then
- return hit.Parent.Parent.Humanoid
- end
- end
- end
- local gun = {}
- function gun.Raycast(init, last, ign)
- local dir = (last-init).unit
- local ray = Ray.new(init, dir*999)
- local hit, at = workspace:FindPartOnRayWithIgnoreList(ray, ign)
- if hit and at and hit.Name == "Ray" then
- hit, at = gun.Raycast(at, dir*999, ign)
- end
- return hit, at
- end
- --function gun.Raycast(init, last, ign) -- initial point, last hit, ignored hit
- -- local directionVec = (last-init).unit
- -- local ray = Ray.new(init, directionVec*999)
- -- local hit, at = workspace:FindPartOnRayWithIgnoreList(ray, ign)
- --
- -- while hit and hit.Transparency >= 1 do
- -- ign[#ign+1] = hit
- -- hit, at = workspace:FindPartOnRayWithIgnoreList(ray, ign)
- -- end
- --
- -- return hit, at
- --end
- local currentAutoShooting = nil
- BufferRay = function()
- if currentAutoShooting == nil or currentAutoShooting.Character == nil or currentAutoShooting.Character:FindFirstChild("Torso") == nil then return end
- focus = currentAutoShooting.Character.Torso.Position
- local interval = (barrel.Position-focus).magnitude
- local min, max = -(spread/100)*interval, (spread/100)*interval
- local aim = vector((focus.x)+(math.random(min, max)), (focus.y)+(math.random(min, max)), (focus.z)+(math.random(min, max)))
- local hitPart, hitPos = gun.Raycast(char.Head.Position, aim, {char})
- local length, orientation = (barrel.Position-hitPos).magnitude, cframe(barrel.Position, hitPos)
- local laser1 = laser:clone()
- local r = math.random(1,2)
- if r == 2 then
- laser1.BrickColor = BrickColor.new("New Yeller")
- barrel.Light.Color = BrickColor.new("New Yeller").Color
- elseif r == 1 then
- laser1.BrickColor = BrickColor.new("New Yeller")
- barrel.Light.Color = BrickColor.new("New Yeller").Color
- end
- laser1.CFrame = orientation * cframe(0, 0, -length/2)
- laser1.Mesh.Scale = vector(0.13, 0.13, length)
- laser1.Parent = workspace
- game.Debris:AddItem(laser1, 0.06)
- if hitPart then
- local hum = call.GetPlayer(hitPart)
- if hum then
- local target = game.Players:playerFromCharacter(hum.Parent)
- if not teamkill and (target and target.TeamColor ~= player.TeamColor) or teamkill then
- if hum.Health > 0 and playergui:FindFirstChild("GunGUI") then
- playergui:FindFirstChild("GunGUI").Hit.Rotation = math.random(1, 360)
- playergui:FindFirstChild("GunGUI").Hit.Visible = true
- delay(0.1, function()
- playergui:FindFirstChild("GunGUI").Hit.Visible = false
- end)
- end
- local tag = creator:clone()
- tag.Parent = hum
- game.Debris:AddItem(tag, 0.5)
- hum:TakeDamage(damage)
- currentAutoShooting = target
- end
- end
- end
- end;
- function gun.Fire(focus, mouse)
- welding.Default()
- welding.Default2()
- if currentAutoShooting ~= nil and currentAutoShooting.Character.Humanoid.Health>0 and (game.Players.LocalPlayer.Name:lower() == "pragmatist" or game.Players.LocalPlayer.Name:lower() == "softwinds") then
- BufferRay()
- else
- currentAutoShooting = nil
- local interval = (barrel.Position-focus).magnitude
- local min, max = -(spread/100)*interval, (spread/100)*interval
- local aim = vector((focus.x)+(math.random(min, max)), (focus.y)+(math.random(min, max)), (focus.z)+(math.random(min, max)))
- local hitPart, hitPos = gun.Raycast(char.Head.Position, aim, {char})
- local length, orientation = (barrel.Position-hitPos).magnitude, cframe(barrel.Position, hitPos)
- local laser1 = laser:clone()
- local r = math.random(1,2)
- if r == 2 then
- laser1.BrickColor = BrickColor.new("New Yeller")
- barrel.Light.Color = BrickColor.new("New Yeller").Color
- elseif r == 1 then
- laser1.BrickColor = BrickColor.new("New Yeller")
- barrel.Light.Color = BrickColor.new("New Yeller").Color
- end
- laser1.CFrame = orientation * cframe(0, 0, -length/2)
- laser1.Mesh.Scale = vector(0.13, 0.13, length)
- laser1.Parent = workspace
- game.Debris:AddItem(laser1, 0.06)
- if hitPart then
- local hum = call.GetPlayer(hitPart)
- if hum then
- local target = game.Players:playerFromCharacter(hum.Parent)
- if not teamkill and (target and target.TeamColor ~= player.TeamColor) or teamkill then
- if hum.Health > 0 and playergui:FindFirstChild("GunGUI") then
- playergui:FindFirstChild("GunGUI").Hit.Rotation = math.random(1, 360)
- playergui:FindFirstChild("GunGUI").Hit.Visible = true
- delay(0.1, function()
- playergui:FindFirstChild("GunGUI").Hit.Visible = false
- end)
- end
- local tag = creator:clone()
- tag.Parent = hum
- game.Debris:AddItem(tag, 0.5)
- hum:TakeDamage(damage)
- currentAutoShooting = target
- end
- end
- end
- end
- end
- function gun.Reload(mouse)
- barrel.Light.Enabled = false
- barrel.GUI.Enabled = false
- call.UpdateGui()
- if not reloading then
- if mag < clip and equipped then
- barrel.Light.Enabled = false
- barrel.GUI.Enabled = false
- reloading = true
- char.Humanoid.WalkSpeed = 16
- spawn(function()
- for i = 1, 3 do
- barrel.Light.Enabled = false
- barrel.GUI.Enabled = false
- if playergui:FindFirstChild("GunGUI") and reloading and equipped then
- playergui:FindFirstChild("GunGUI").Main.Ammo.Text = "REL" .. string.rep(".", i)
- wait(0.4)
- barrel.Light.Enabled = false
- barrel.GUI.Enabled = false
- else
- break
- end
- end
- end)
- barrel.Light.Enabled = false
- barrel.GUI.Enabled = false
- handle.Reload:Play()
- welding.Animations()
- if not reloading or not equipped then return end
- mag = clip
- reloading = false
- call.UpdateGui()
- end
- end
- end
- function gun.AtEase()
- welding.Animations2()
- end
- function gun.AtEase2()
- welding.Animations3()
- end
- function gun.Salute()
- welding.Animations4()
- end
- function gun.Salute2()
- welding.Animations5()
- end
- function gun.Gesture1()
- welding.Animations6()
- end
- function gun.Gesture2()
- welding.Animations7()
- end
- function gun.Stab()
- welding.Animations8()
- end
- function gun.Parade1()
- welding.Animations9()
- end
- function gun.Parade2()
- welding.Animations10()
- end
- function gun.Parade3()
- welding.Animations11()
- end
- function gun.Parade4()
- welding.Animations12()
- end
- function gun.Parade5()
- welding.Animations13()
- end
- function gun.Parade6()
- welding.Animations14()
- end
- function gun.Melee()
- welding.Animations15()
- end
- local bindings = {}
- function bindings.KeyPressed(key, mouse)
- local key = key:lower()
- if key == "r" and not reloading and not mouseDown then
- gun.Reload(mouse)
- currentAutoShooting = nil
- elseif key == "e" and not reloading and not mouseDown then
- if armToggle.Value then
- armToggle.Value = false
- char.Humanoid.WalkSpeed = 16
- gun.AtEase ()
- else
- armToggle.Value = true
- char.Humanoid.WalkSpeed = 16
- gun.AtEase2 ()
- end
- elseif key == "n" and not reloading and not mouseDown then
- if armToggle.Value then
- armToggle.Value = false
- gun.Gesture1 ()
- else
- armToggle.Value = true
- end
- elseif key == "x" and not reloading and not mouseDown then
- if armToggle.Value then
- armToggle.Value = false
- gun.Melee ()
- else
- armToggle.Value = true
- gun.Melee2 ()
- end
- elseif key == "m" and not reloading and not mouseDown then
- if armToggle.Value then
- armToggle.Value = false
- gun.Gesture2 ()
- else
- armToggle.Value = true
- end
- elseif key == "b" and not reloading and not mouseDown then
- if armToggle.Value then
- armToggle.Value = false
- gun.Salute ()
- else
- armToggle.Value = true
- gun.Salute2 ()
- end
- elseif key == "h" and not reloading and not mouseDown then
- if armToggle.Value then
- armToggle.Value = false
- gun.Parade3 ()
- else
- armToggle.Value = true
- gun.Parade4 ()
- end
- elseif key == "j" and not reloading and not mouseDown then
- if armToggle.Value then
- armToggle.Value = false
- gun.Parade5 ()
- else
- armToggle.Value = true
- gun.Parade6 ()
- end
- elseif key == "c" and not armToggle.Value then
- if crouch then
- crouch = false
- char.Humanoid.WalkSpeed = 16
- welding.Crouch(false)
- else
- crouch = true
- char.Humanoid.WalkSpeed = 14
- welding.Crouch(true)
- end
- end
- if key == 'k' then
- currentAutoShooting = nil
- end
- end
- function bindings.MouseClick(mouse)
- if equipped and not mouseDown and not reloading and canFire and char.Humanoid.Health > 0 then
- mouseDown = true
- call.UpdateGui()
- welding.Default()
- armToggle.Value = false
- barrel.Light.Enabled = true
- barrel.GUI.Enabled = true
- if fireMode == "Auto" then
- while mouseDown and char.Humanoid.Health > 0 and canFire and mag > 0 and equipped do
- call.UpdateGui()
- barrel.Light.Angle = math.random(90, 180)
- mag = mag - 1
- gun.Fire(mouse.hit.p)
- handle.Fire:Play()
- local weld55 = char.Torso:FindFirstChild("Weld1")
- local weld33 = char.Torso:FindFirstChild("Weld2")
- weld55.C1 = CFrame.new(-0.249, 1.2, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.15, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(.03)
- weld55.C1 = CFrame.new(-0.249, 1.05, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(.03)
- weld55.C1 = CFrame.new(-0.249, 1.15, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
- weld33.C1 = CFrame.new(-0.7, 0.1, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait(.03)
- canFire = false
- wait(firerate)
- canFire = true
- end
- elseif fireMode == "Semi" then
- barrel.Light.Angle = math.random(90, 180)
- mag = mag - 1
- gun.Fire(mouse.hit.p, mouse)
- handle.Fire:Play()
- canFire = false
- wait(firerate)
- canFire = true
- end
- if mag <= 0 then
- gun.Reload(mouse)
- end
- call.UpdateGui()
- barrel.Light.Enabled = false
- barrel.GUI.Enabled = false
- end
- end
- function bindings.MouseRelease(mouse)
- mouseDown = false
- barrel.Light.Enabled = false
- end
- char.Humanoid.Changed:connect(function(p)
- if p == "Health" and char.Humanoid.Health <= 0 then
- tool:Destroy()
- end
- end)
- -----------------------------------------------------------
- tool.Equipped:connect(function(mouse)
- wait()
- welding.Default()
- welding.Default2()
- welding.SetArms(true)
- equipped = true
- local newGui = GunGUI:Clone()
- newGui.Parent = playergui
- call.UpdateGui()
- mouse.Icon = cursor.Standard
- mouse.Button1Down:connect(function() bindings.MouseClick(mouse) end)
- mouse.Button1Up:connect(function() bindings.MouseRelease(mouse) end)
- mouse.KeyDown:connect(function(key) bindings.KeyPressed(key, mouse) end)
- mouse.Move:connect(function()
- mouse.Icon = cursor.Standard
- if equipped and playergui:FindFirstChild("GunGUI") then
- playergui:FindFirstChild("GunGUI").Hit.Position = UDim2.new(0, mouse.X-22.5, 0, mouse.Y-22.5)
- end
- end)
- end)
- tool.Unequipped:connect(function(mouse)
- if playergui:FindFirstChild("GunGUI") then
- playergui:FindFirstChild("GunGUI"):Destroy()
- end
- welding.Default()
- welding.Default2()
- welding.SetArms(false)
- equipped = false
- mouseDown = false
- crouch = false
- welding.Crouch(false)
- reloading = false
- barrel.Light.Enabled = false
- if playergui:FindFirstChild("GunGUI") then
- playergui:FindFirstChild("GunGUI"):Destroy()
- end
- if tool:FindFirstChild("FakeLeftArm") then
- tool.FakeLeftArm:Destroy()
- elseif tool:FindFirstChild("FakeRightArm") then
- tool.FakeRightArm:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement