Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --M1911 By Rufus14
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- Sound2 = Instance.new("Sound")
- Sound3 = Instance.new("Sound")
- Sound4 = Instance.new("Sound")
- Sound5 = Instance.new("Sound")
- Sound6 = Instance.new("Sound")
- Sound7 = Instance.new("Sound")
- Sound8 = Instance.new("Sound")
- Sound9 = Instance.new("Sound")
- Weld10 = Instance.new("Weld")
- Weld11 = Instance.new("Weld")
- Weld12 = Instance.new("Weld")
- Weld13 = Instance.new("Weld")
- Weld14 = Instance.new("Weld")
- Weld15 = Instance.new("Weld")
- Weld16 = Instance.new("Weld")
- Weld17 = Instance.new("Weld")
- Weld18 = Instance.new("Weld")
- Weld19 = Instance.new("Weld")
- Weld20 = Instance.new("Weld")
- Weld21 = Instance.new("Weld")
- Weld22 = Instance.new("Weld")
- Weld23 = Instance.new("Weld")
- Weld24 = Instance.new("Weld")
- Weld25 = Instance.new("Weld")
- Weld26 = Instance.new("Weld")
- Weld27 = Instance.new("Weld")
- Sound28 = Instance.new("Sound")
- Part29 = Instance.new("Part")
- Part30 = Instance.new("Part")
- Part31 = Instance.new("Part")
- Part32 = Instance.new("Part")
- Part33 = Instance.new("Part")
- Part34 = Instance.new("Part")
- Part35 = Instance.new("Part")
- Part36 = Instance.new("Part")
- Part37 = Instance.new("Part")
- Part38 = Instance.new("Part")
- Part39 = Instance.new("Part")
- Part40 = Instance.new("Part")
- Part41 = Instance.new("Part")
- NumberValue42 = Instance.new("NumberValue")
- RemoteEvent43 = Instance.new("RemoteEvent")
- Part44 = Instance.new("Part")
- Part45 = Instance.new("Part")
- Part46 = Instance.new("Part")
- Part47 = Instance.new("Part")
- NumberValue48 = Instance.new("NumberValue")
- Part49 = Instance.new("Part")
- Tool0.Name = "M1911"
- Tool0.Parent = mas
- Tool0.CanBeDropped = false
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(-10, 0.899688065, -10.3526802, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736)
- Part1.Orientation = Vector3.new(-20, 0, 0)
- Part1.Position = Vector3.new(-10, 0.899688065, -10.3526802)
- Part1.Rotation = Vector3.new(-20, 0, 0)
- Part1.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part1.Size = Vector3.new(0.299999475, 1.02499986, 0.599999845)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Smoky grey")
- Part1.Material = Enum.Material.Metal
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Smoky grey")
- Sound2.Name = "empty"
- Sound2.Parent = Part1
- Sound2.SoundId = "rbxassetid://1347142405"
- Sound3.Name = "bullethit"
- Sound3.Parent = Part1
- Sound3.SoundId = "rbxassetid://1489924400"
- Sound4.Name = "bullethitflesh"
- Sound4.Parent = Part1
- Sound4.SoundId = "rbxassetid://3092866899"
- Sound5.Name = "reload"
- Sound5.Parent = Part1
- Sound5.SoundId = "rbxassetid://317130715"
- Sound6.Name = "shatter"
- Sound6.Parent = Part1
- Sound6.Pitch = 2
- Sound6.PlaybackSpeed = 2
- Sound6.SoundId = "rbxassetid://2978605361"
- Sound7.Name = "supersonic bullet crack"
- Sound7.Parent = Part1
- Sound7.EmitterSize = 1
- Sound7.MinDistance = 1
- Sound7.Pitch = 1.5
- Sound7.PlaybackSpeed = 1.5
- Sound7.SoundId = "rbxassetid://259586543"
- Sound7.Volume = 1
- Sound8.Name = "unequip"
- Sound8.Parent = Part1
- Sound8.SoundId = "rbxassetid://769464514"
- Sound9.Name = "equip"
- Sound9.Parent = Part1
- Sound9.SoundId = "rbxassetid://291256829"
- Weld10.Parent = Part1
- Weld10.C0 = CFrame.new(0, 0.730558395, -0.543087959, 1, 0, 0, 0, 0.342019975, 0.939692736, 0, -0.939692736, 0.342019826)
- Weld10.Part0 = Part1
- Weld10.Part1 = Part29
- Weld10.part1 = Part29
- Weld11.Parent = Part1
- Weld11.C0 = CFrame.new(0, -0.512499571, 0.0999956131, 1, 0, 0, 0, 1.00000012, -8.94069672e-08, 0, -8.94069672e-08, 1)
- Weld11.Part0 = Part1
- Weld11.Part1 = Part32
- Weld11.part1 = Part32
- Weld12.Parent = Part1
- Weld12.C0 = CFrame.new(5.7220459e-06, 0.542803764, -0.32055378, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
- Weld12.Part0 = Part1
- Weld12.Part1 = Part44
- Weld12.part1 = Part44
- Weld13.Name = "sightweld"
- Weld13.Parent = Part1
- Weld13.C0 = CFrame.new(5.7220459e-06, 1.15795279, -1.27877331, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
- Weld13.Part0 = Part1
- Weld13.Part1 = Part41
- Weld13.part1 = Part41
- Weld14.Parent = Part1
- Weld14.C0 = CFrame.new(5.7220459e-06, 0.559608459, 0.353029251, 0, 1, 0, 0.642788708, 0, 0.766043663, 0.766043544, 0, -0.642788827)
- Weld14.Part0 = Part1
- Weld14.Part1 = Part39
- Weld14.part1 = Part39
- Weld15.Parent = Part1
- Weld15.C0 = CFrame.new(0, -0.512500286, -0.100002289, 1, 0, 0, 0, 1.00000012, -8.94069672e-08, 0, -8.94069672e-08, 1)
- Weld15.Part0 = Part1
- Weld15.Part1 = Part33
- Weld15.part1 = Part33
- Weld16.Parent = Part1
- Weld16.C0 = CFrame.new(5.7220459e-06, 0.44359827, -0.370306015, 0, 1, 0, -0.642787337, 0, 0.766044796, 0.766044915, 0, 0.642787218)
- Weld16.Part0 = Part1
- Weld16.Part1 = Part45
- Weld16.part1 = Part45
- Weld17.Parent = Part1
- Weld17.C0 = CFrame.new(5.7220459e-06, 0.338733196, -0.405702591, 0, 1, 0, 0.866026282, 0, 0.499998868, 0.499998719, 0, -0.866026342)
- Weld17.Part0 = Part1
- Weld17.Part1 = Part46
- Weld17.part1 = Part46
- Weld18.Parent = Part1
- Weld18.C0 = CFrame.new(9.53674316e-07, -0.0624990463, -9.53674316e-07, 1, 0, 0, 0, 1.00000012, -8.94069672e-08, 0, -8.94069672e-08, 1)
- Weld18.Part0 = Part1
- Weld18.Part1 = Part31
- Weld18.part1 = Part31
- Weld19.Parent = Part1
- Weld19.C0 = CFrame.new(5.7220459e-06, 0.400207043, 0.214749336, 0, 1, 0, -0.866025805, 0, 0.499999821, 0.499999911, 0, 0.866025567)
- Weld19.Part0 = Part1
- Weld19.Part1 = Part37
- Weld19.part1 = Part37
- Weld20.Parent = Part1
- Weld20.C0 = CFrame.new(0, -0.612498999, -9.53674316e-07, 1, 0, 0, 0, 1.00000012, -8.94069672e-08, 0, -8.94069672e-08, 1)
- Weld20.Part0 = Part1
- Weld20.Part1 = Part30
- Weld20.part1 = Part30
- Weld21.Parent = Part1
- Weld21.C0 = CFrame.new(5.7220459e-06, 0.468093395, -0.480766296, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
- Weld21.Part0 = Part1
- Weld21.Part1 = Part47
- Weld21.part1 = Part47
- Weld22.Parent = Part1
- Weld22.C0 = CFrame.new(5.7220459e-06, 0.812779903, -0.513159752, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
- Weld22.Part0 = Part1
- Weld22.Part1 = Part49
- Weld22.part1 = Part49
- Weld23.Parent = Part1
- Weld23.C0 = CFrame.new(4.76837158e-06, 1.09835386, -1.22467232, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
- Weld23.Part0 = Part1
- Weld23.Part1 = Part35
- Weld23.part1 = Part35
- Weld24.Parent = Part1
- Weld24.C0 = CFrame.new(5.7220459e-06, 0.538232803, 0.411758423, 0, 1, 0, 0.939692736, 0, 0.342019975, 0.342019826, 0, -0.939692736)
- Weld24.Part0 = Part1
- Weld24.Part1 = Part40
- Weld24.part1 = Part40
- Weld25.Parent = Part1
- Weld25.C0 = CFrame.new(5.7220459e-06, 0.4821558, 0.352754593, 0, 1, 0, 0.866026282, 0, 0.499998868, 0.499998719, 0, -0.866026342)
- Weld25.Part0 = Part1
- Weld25.Part1 = Part38
- Weld25.part1 = Part38
- Weld26.Parent = Part1
- Weld26.C0 = CFrame.new(5.7220459e-06, 0.387227058, 0.373927116, 0, 1, 0, -0.173648238, 0, 0.984807909, 0.984807789, 0, 0.173648104)
- Weld26.Part0 = Part1
- Weld26.Part1 = Part36
- Weld26.part1 = Part36
- Weld27.Name = "moveweld"
- Weld27.Parent = Part1
- Weld27.C0 = CFrame.new(5.7220459e-06, 0.859765053, -0.496061325, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692736, 0, 0.342019826)
- Weld27.Part0 = Part1
- Weld27.Part1 = Part34
- Weld27.part1 = Part34
- Sound28.Name = "gunshot"
- Sound28.Parent = Part1
- Sound28.Pitch = 1.2000000476837
- Sound28.PlaybackSpeed = 1.2000000476837
- Sound28.SoundId = "rbxassetid://2400424487"
- Part29.Parent = Tool0
- Part29.CFrame = CFrame.new(-10, 1.40044165, -11.1128817, 1, 0, 0, 0, 8.94069672e-08, 1, 0, -1.00000012, -8.94069672e-08)
- Part29.Orientation = Vector3.new(-90, 0, 0)
- Part29.Position = Vector3.new(-10, 1.40044165, -11.1128817)
- Part29.Rotation = Vector3.new(-90, 0, 0)
- Part29.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part29.Size = Vector3.new(0.299999475, 1.74999952, 0.274999887)
- Part29.BottomSurface = Enum.SurfaceType.Smooth
- Part29.BrickColor = BrickColor.new("Smoky grey")
- Part29.CanCollide = false
- Part29.Material = Enum.Material.Metal
- Part29.TopSurface = Enum.SurfaceType.Smooth
- Part29.brickColor = BrickColor.new("Smoky grey")
- Part30.Parent = Tool0
- Part30.CFrame = CFrame.new(-10, 0.324126899, -10.1431942, 1, 0, 0, 0, 0.939692795, 0.342019796, 0, -0.342020035, 0.939692795)
- Part30.Orientation = Vector3.new(-20, 0, 0)
- Part30.Position = Vector3.new(-10, 0.324126899, -10.1431942)
- Part30.Rotation = Vector3.new(-20, 0, 0)
- Part30.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part30.Size = Vector3.new(0.299999475, 0.200000003, 0.199999854)
- Part30.BottomSurface = Enum.SurfaceType.Smooth
- Part30.BrickColor = BrickColor.new("Smoky grey")
- Part30.CanCollide = false
- Part30.Material = Enum.Material.Metal
- Part30.TopSurface = Enum.SurfaceType.Smooth
- Part30.brickColor = BrickColor.new("Smoky grey")
- Part31.Parent = Tool0
- Part31.CFrame = CFrame.new(-9.99999905, 0.84095782, -10.3313055, 1, 0, 0, 0, 0.939692795, 0.342019796, 0, -0.342020035, 0.939692795)
- Part31.Orientation = Vector3.new(-20, 0, 0)
- Part31.Position = Vector3.new(-9.99999905, 0.84095782, -10.3313055)
- Part31.Rotation = Vector3.new(-20, 0, 0)
- Part31.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part31.Size = Vector3.new(0.349999458, 0.899999976, 0.399999857)
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.BrickColor = BrickColor.new("Dark orange")
- Part31.CanCollide = false
- Part31.Material = Enum.Material.WoodPlanks
- Part31.TopSurface = Enum.SurfaceType.Smooth
- Part31.brickColor = BrickColor.new("Dark orange")
- Part32.Parent = Tool0
- Part32.CFrame = CFrame.new(-10, 0.452296436, -10.0834303, 1, 0, 0, 0, 0.939692795, 0.342019796, 0, -0.342020035, 0.939692795)
- Part32.Orientation = Vector3.new(-20, 0, 0)
- Part32.Position = Vector3.new(-10, 0.452296436, -10.0834303)
- Part32.Rotation = Vector3.new(-20, 0, 0)
- Part32.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part32.Size = Vector3.new(0.299999475, 0.400000036, 0.399999857)
- Part32.BottomSurface = Enum.SurfaceType.Smooth
- Part32.BrickColor = BrickColor.new("Smoky grey")
- Part32.CanCollide = false
- Part32.Material = Enum.Material.Metal
- Part32.TopSurface = Enum.SurfaceType.Smooth
- Part32.brickColor = BrickColor.new("Smoky grey")
- Part32.Shape = Enum.PartType.Cylinder
- Part33.Parent = Tool0
- Part33.CFrame = CFrame.new(-10, 0.383892477, -10.2713661, 1, 0, 0, 0, 0.939692795, 0.342019796, 0, -0.342020035, 0.939692795)
- Part33.Orientation = Vector3.new(-20, 0, 0)
- Part33.Position = Vector3.new(-10, 0.383892477, -10.2713661)
- Part33.Rotation = Vector3.new(-20, 0, 0)
- Part33.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part33.Size = Vector3.new(0.299999475, 0.400000036, 0.399999857)
- Part33.BottomSurface = Enum.SurfaceType.Smooth
- Part33.BrickColor = BrickColor.new("Smoky grey")
- Part33.CanCollide = false
- Part33.Material = Enum.Material.Metal
- Part33.TopSurface = Enum.SurfaceType.Smooth
- Part33.brickColor = BrickColor.new("Smoky grey")
- Part33.Shape = Enum.PartType.Cylinder
- Part34.Name = "movingpart"
- Part34.Parent = Tool0
- Part34.CFrame = CFrame.new(-9.99999428, 1.53794026, -11.1128826, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
- Part34.Orientation = Vector3.new(-90, -90, 0)
- Part34.Position = Vector3.new(-9.99999428, 1.53794026, -11.1128826)
- Part34.Rotation = Vector3.new(-90, 0, -90)
- Part34.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part34.Size = Vector3.new(1.74999917, 0.300000399, 0.299999893)
- Part34.BottomSurface = Enum.SurfaceType.Smooth
- Part34.BrickColor = BrickColor.new("Smoky grey")
- Part34.CanCollide = false
- Part34.Material = Enum.Material.Metal
- Part34.TopSurface = Enum.SurfaceType.Smooth
- Part34.brickColor = BrickColor.new("Smoky grey")
- Part34.Shape = Enum.PartType.Cylinder
- Part35.Parent = Tool0
- Part35.CFrame = CFrame.new(-9.99999523, 1.51294088, -11.8791552, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
- Part35.Orientation = Vector3.new(-90, -90, 0)
- Part35.Position = Vector3.new(-9.99999523, 1.51294088, -11.8791552)
- Part35.Rotation = Vector3.new(-90, 0, -90)
- Part35.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part35.Size = Vector3.new(0.249999985, 0.200000003, 0.199999899)
- Part35.BottomSurface = Enum.SurfaceType.Smooth
- Part35.BrickColor = BrickColor.new("Really black")
- Part35.CanCollide = false
- Part35.Material = Enum.Material.Metal
- Part35.TopSurface = Enum.SurfaceType.Smooth
- Part35.brickColor = BrickColor.new("Really black")
- Part35.Shape = Enum.PartType.Cylinder
- Part36.Parent = Tool0
- Part36.CFrame = CFrame.new(-9.99999428, 1.39145303, -10.1337433, 0, 1, 0, 0.173647866, 0, 0.984807909, 0.984807849, 0, -0.173648044)
- Part36.Orientation = Vector3.new(-80, 180, 90)
- Part36.Position = Vector3.new(-9.99999428, 1.39145303, -10.1337433)
- Part36.Rotation = Vector3.new(-100, 0, -90)
- Part36.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part36.Size = Vector3.new(0.224999025, 0.300000399, 0.0500000007)
- Part36.BottomSurface = Enum.SurfaceType.Smooth
- Part36.BrickColor = BrickColor.new("Smoky grey")
- Part36.CanCollide = false
- Part36.Material = Enum.Material.Metal
- Part36.TopSurface = Enum.SurfaceType.Smooth
- Part36.brickColor = BrickColor.new("Smoky grey")
- Part37.Parent = Tool0
- Part37.CFrame = CFrame.new(-9.99999428, 1.34920824, -10.2877607, 0, 1, 0, -0.642788231, 0, 0.76604414, 0.766044378, 0, 0.642788053)
- Part37.Orientation = Vector3.new(-50, 0, -90)
- Part37.Position = Vector3.new(-9.99999428, 1.34920824, -10.2877607)
- Part37.Rotation = Vector3.new(-50, 0, -90)
- Part37.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part37.Size = Vector3.new(0.224998981, 0.300000399, 0.249999985)
- Part37.BottomSurface = Enum.SurfaceType.Smooth
- Part37.BrickColor = BrickColor.new("Smoky grey")
- Part37.CanCollide = false
- Part37.Material = Enum.Material.Metal
- Part37.TopSurface = Enum.SurfaceType.Smooth
- Part37.brickColor = BrickColor.new("Smoky grey")
- Part38.Parent = Tool0
- Part38.CFrame = CFrame.new(-9.99999428, 1.47341537, -10.1861057, 0, 1, 0, 0.984808087, 0, 0.173647076, 0.173646927, 0, -0.984808207)
- Part38.Orientation = Vector3.new(-10, 180, 90)
- Part38.Position = Vector3.new(-9.99999428, 1.47341537, -10.1861057)
- Part38.Rotation = Vector3.new(-170, 0, -90)
- Part38.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part38.Size = Vector3.new(0.175000012, 0.100000389, 0.0500000007)
- Part38.BottomSurface = Enum.SurfaceType.Smooth
- Part38.BrickColor = BrickColor.new("Smoky grey")
- Part38.CanCollide = false
- Part38.Material = Enum.Material.Metal
- Part38.TopSurface = Enum.SurfaceType.Smooth
- Part38.brickColor = BrickColor.new("Smoky grey")
- Part39.Parent = Tool0
- Part39.CFrame = CFrame.new(-9.99999428, 1.54629111, -10.2123384, 0, 1, 0, 0.866025984, 0, 0.499999106, 0.499998987, 0, -0.866026163)
- Part39.Orientation = Vector3.new(-30, 180, 90)
- Part39.Position = Vector3.new(-9.99999428, 1.54629111, -10.2123384)
- Part39.Rotation = Vector3.new(-150, 0, -90)
- Part39.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part39.Size = Vector3.new(0.0500000007, 0.100000389, 0.124999993)
- Part39.BottomSurface = Enum.SurfaceType.Smooth
- Part39.BrickColor = BrickColor.new("Smoky grey")
- Part39.CanCollide = false
- Part39.Material = Enum.Material.Metal
- Part39.TopSurface = Enum.SurfaceType.Smooth
- Part39.brickColor = BrickColor.new("Smoky grey")
- Part40.Parent = Tool0
- Part40.CFrame = CFrame.new(-9.99999428, 1.54629111, -10.1498404, 0, 1, 0, 1, 0, 8.94069672e-08, -8.94069672e-08, 0, -1.00000012)
- Part40.Orientation = Vector3.new(0, 180, 90)
- Part40.Position = Vector3.new(-9.99999428, 1.54629111, -10.1498404)
- Part40.Rotation = Vector3.new(-180, 0, -90)
- Part40.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part40.Size = Vector3.new(0.0500000007, 0.100000389, 0.100000016)
- Part40.BottomSurface = Enum.SurfaceType.Smooth
- Part40.BrickColor = BrickColor.new("Smoky grey")
- Part40.CanCollide = false
- Part40.Material = Enum.Material.Metal
- Part40.TopSurface = Enum.SurfaceType.Smooth
- Part40.brickColor = BrickColor.new("Smoky grey")
- Part41.Name = "sight"
- Part41.Parent = Tool0
- Part41.CFrame = CFrame.new(-9.99999428, 1.55044198, -11.9503775, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
- Part41.Orientation = Vector3.new(-90, -90, 0)
- Part41.Position = Vector3.new(-9.99999428, 1.55044198, -11.9503775)
- Part41.Rotation = Vector3.new(-90, 0, -90)
- Part41.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part41.Size = Vector3.new(0.0749999955, 0.0500003882, 0.324999899)
- Part41.BottomSurface = Enum.SurfaceType.Smooth
- Part41.BrickColor = BrickColor.new("Smoky grey")
- Part41.CanCollide = false
- Part41.Material = Enum.Material.Metal
- Part41.TopSurface = Enum.SurfaceType.Smooth
- Part41.brickColor = BrickColor.new("Smoky grey")
- NumberValue42.Name = "MaxMagAmmo"
- NumberValue42.Parent = Tool0
- NumberValue42.Value = 7
- RemoteEvent43.Name = "GunEvent"
- RemoteEvent43.Parent = Tool0
- Part44.Parent = Tool0
- Part44.CFrame = CFrame.new(-9.99999428, 1.30012107, -10.8395519, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
- Part44.Orientation = Vector3.new(-90, -90, 0)
- Part44.Position = Vector3.new(-9.99999428, 1.30012107, -10.8395519)
- Part44.Rotation = Vector3.new(-90, 0, -90)
- Part44.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part44.Size = Vector3.new(0.0500000007, 0.100000389, 0.175000012)
- Part44.BottomSurface = Enum.SurfaceType.Smooth
- Part44.BrickColor = BrickColor.new("Smoky grey")
- Part44.CanCollide = false
- Part44.Material = Enum.Material.Metal
- Part44.TopSurface = Enum.SurfaceType.Smooth
- Part44.brickColor = BrickColor.new("Smoky grey")
- Part45.Parent = Tool0
- Part45.CFrame = CFrame.new(-9.99999428, 1.18988204, -10.8523731, 0, 1, 0, -0.342019975, 0, 0.939692736, 0.939692914, 0, 0.342019916)
- Part45.Orientation = Vector3.new(-70, 0, -90)
- Part45.Position = Vector3.new(-9.99999428, 1.18988204, -10.8523731)
- Part45.Rotation = Vector3.new(-70, 0, -90)
- Part45.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part45.Size = Vector3.new(0.0500000007, 0.100000389, 0.100000001)
- Part45.BottomSurface = Enum.SurfaceType.Smooth
- Part45.BrickColor = BrickColor.new("Smoky grey")
- Part45.CanCollide = false
- Part45.Material = Enum.Material.Metal
- Part45.TopSurface = Enum.SurfaceType.Smooth
- Part45.brickColor = BrickColor.new("Smoky grey")
- Part46.Parent = Tool0
- Part46.CFrame = CFrame.new(-9.99999428, 1.07923484, -10.8497696, 0, 1, 0, 0.984808087, 0, 0.173647076, 0.173646927, 0, -0.984808207)
- Part46.Orientation = Vector3.new(-10, 180, 90)
- Part46.Position = Vector3.new(-9.99999428, 1.07923484, -10.8497696)
- Part46.Rotation = Vector3.new(-170, 0, -90)
- Part46.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part46.Size = Vector3.new(0.0500000007, 0.100000389, 0.275000006)
- Part46.BottomSurface = Enum.SurfaceType.Smooth
- Part46.BrickColor = BrickColor.new("Smoky grey")
- Part46.CanCollide = false
- Part46.Material = Enum.Material.Metal
- Part46.TopSurface = Enum.SurfaceType.Smooth
- Part46.brickColor = BrickColor.new("Smoky grey")
- Part47.Parent = Tool0
- Part47.CFrame = CFrame.new(-9.99999428, 1.17512035, -10.96455, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
- Part47.Orientation = Vector3.new(-90, -90, 0)
- Part47.Position = Vector3.new(-9.99999428, 1.17512035, -10.96455)
- Part47.Rotation = Vector3.new(-90, 0, -90)
- Part47.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part47.Size = Vector3.new(0.0500000007, 0.100000389, 0.175000012)
- Part47.BottomSurface = Enum.SurfaceType.Smooth
- Part47.BrickColor = BrickColor.new("Smoky grey")
- Part47.CanCollide = false
- Part47.Material = Enum.Material.Metal
- Part47.TopSurface = Enum.SurfaceType.Smooth
- Part47.brickColor = BrickColor.new("Smoky grey")
- NumberValue48.Name = "Ammo"
- NumberValue48.Parent = Tool0
- NumberValue48.Value = 7
- Part49.Name = "stayingpart"
- Part49.Parent = Tool0
- Part49.CFrame = CFrame.new(-9.99999428, 1.48794055, -11.1128798, 0, 1, 0, -8.94069672e-08, 0, 1, 1.00000012, 0, -8.94069672e-08)
- Part49.Orientation = Vector3.new(-90, -90, 0)
- Part49.Position = Vector3.new(-9.99999428, 1.48794055, -11.1128798)
- Part49.Rotation = Vector3.new(-90, 0, -90)
- Part49.Size = Vector3.new(1.69999921, 0.300000399, 0.299999893)
- Part49.BottomSurface = Enum.SurfaceType.Smooth
- Part49.CanCollide = false
- Part49.Material = Enum.Material.Metal
- Part49.TopSurface = Enum.SurfaceType.Smooth
- Part49.Shape = Enum.PartType.Cylinder
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = owner.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- NS ([=[
- --By Rufus14, no this isnt a turbo fusion remake
- canuse = true
- step = game:GetService("RunService").Stepped
- tool = script.Parent
- gunevent = tool.GunEvent
- handle = tool.Handle
- shoot = handle.gunshot
- sightweld = handle.sightweld
- moveweld = handle.moveweld
- shattersound = handle.shatter
- reloadsound = handle.reload
- empty = handle.empty
- shootevent = tool.GunEvent
- equip = handle.equip
- unequip = handle.unequip
- bullethitflesh = handle.bullethitflesh
- bullethit = handle.bullethit
- bulletcrack = handle["supersonic bullet crack"]
- ammo = tool.Ammo
- maxammo = tool.MaxMagAmmo
- owner = nil
- shooting = false
- function positiongun()
- equip:Play()
- tool = script.Parent
- owner = tool.Parent
- local gunweld = owner["Right Arm"]:WaitForChild("RightGrip")
- gunweld.C0 = gunweld.C0 * CFrame.fromEulerAnglesXYZ(-0.4,-0.2,0) * CFrame.new(-0.4,0,0)
- if not owner.Torso:findFirstChild("HeadWeldd") then
- local head = Instance.new("Weld", owner.Torso)
- head.Part0 = owner.Torso
- head.Part1 = owner.Head
- head.C0 = CFrame.new(0,1,0)
- head.C1 = CFrame.new(0,-0.5,0)
- head.Name = "HeadWeldd"
- end
- if not owner.Torso:findFirstChild("RightArmWeldd") then
- local rightarm = Instance.new("Weld", owner.Torso)
- rightarm.Part0 = owner.Torso
- rightarm.Part1 = owner["Right Arm"]
- rightarm.C0 = CFrame.new(1.5,0.5,0)
- rightarm.C1 = CFrame.new(0,0.5,0)
- rightarm.Name = "RightArmWeldd"
- end
- if not owner.Torso:findFirstChild("LeftArmWeldd") then
- local leftarm = Instance.new("Weld", owner.Torso)
- leftarm.Part0 = owner.Torso
- leftarm.Part1 = owner["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5,0,0)
- leftarm.C1 = CFrame.new(0,0.5,0)
- leftarm.Name = "LeftArmWeldd"
- end
- --Converted with ttyyuu12345's model to script plugin v4
- local function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- local cors = {}
- local mas = Instance.new("Model",game:GetService("Lighting"))
- local ScreenGui0 = Instance.new("ScreenGui")
- local Frame1 = Instance.new("Frame")
- local TextLabel2 = Instance.new("TextLabel")
- ScreenGui0.Name = "GunM1911 Gui"
- ScreenGui0.Parent = mas
- ScreenGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame1.Name = "border"
- Frame1.Parent = ScreenGui0
- Frame1.Position = UDim2.new(0.743219674, 0, 0.866925299, 0)
- Frame1.Size = UDim2.new(0, 300, 0, 68)
- Frame1.BackgroundColor = BrickColor.new("Institutional white")
- Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame1.Style = Enum.FrameStyle.RobloxRound
- TextLabel2.Name = "ammo text"
- TextLabel2.Parent = Frame1
- TextLabel2.Position = UDim2.new(0.082382001, 0, 0.101317458, 0)
- TextLabel2.Size = UDim2.new(0, 237, 0, 42)
- TextLabel2.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel2.BackgroundTransparency = 1
- TextLabel2.Font = Enum.Font.Code
- TextLabel2.FontSize = Enum.FontSize.Size14
- TextLabel2.Text = "Ammo: "..ammo.Value.."/"..maxammo.Value
- TextLabel2.TextColor = BrickColor.new("New Yeller")
- TextLabel2.TextColor3 = Color3.new(1, 1, 0)
- TextLabel2.TextScaled = true
- TextLabel2.TextSize = 14
- TextLabel2.TextWrap = true
- TextLabel2.TextWrapped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players"):findFirstChild(owner.Name):findFirstChildOfClass("PlayerGui")
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- local candothefunc = true
- local function action(plr, what, message1, message2)
- if candothefunc then
- if plr.Character then
- if plr.Character == owner then
- if tool.Parent == plr.Character then
- if candothefunc then
- if what == "shoot" and not shooting then
- if ammo.Value == 0 then
- empty:Play()
- return
- end
- ammo.Value = ammo.Value - 1
- TextLabel2.Text = "Ammo: "..ammo.Value.."/"..maxammo.Value
- shooting = true
- if plr.Character:findFirstChild("AnimationState") then
- plr.Character:findFirstChild("AnimationState").Value = "Shoot"
- end
- local function changestate()
- wait(0.02)
- if plr.Character:findFirstChild("AnimationState") then
- plr.Character:findFirstChild("AnimationState").Value = "Idle"
- end
- end
- spawn(changestate)
- local rightarmweld = plr.Character.Torso:findFirstChild("RightArmWeldd")
- local leftarmweld = plr.Character.Torso:findFirstChild("LeftArmWeldd")
- local headweld = plr.Character.Torso:findFirstChild("HeadWeldd")
- for i = 1,10 do
- moveweld.C0 = moveweld.C0 * CFrame.new(0.07,0,0)
- sightweld.C0 = sightweld.C0 * CFrame.new(0.07,0,0)
- headweld.C1 = headweld.C1 * CFrame.fromEulerAnglesXYZ(0.015,0,0)
- leftarmweld.C1 = leftarmweld.C1 * CFrame.new(0,-0.04,0) * CFrame.fromEulerAnglesXYZ(-0.03,0,0)
- rightarmweld.C1 = rightarmweld.C1 * CFrame.new(0,-0.04,0) * CFrame.fromEulerAnglesXYZ(-0.03,0,0)
- gunweld.C0 = gunweld.C0 * CFrame.fromEulerAnglesXYZ(0.03,0,0)
- end
- local light = Instance.new("PointLight", handle)
- light.Brightness = 10
- local ray = Ray.new(handle.Position, (message1 - handle.Position).unit * 400)
- local hit, position, surface = workspace:FindPartOnRayWithIgnoreList(ray, {handle, tool.Parent["Right Arm"]})
- local part = Instance.new("Part", handle)
- part.Anchored = true
- part.CanCollide = false
- part.Material = "Neon"
- part.Size = Vector3.new(0,0,(handle.Position - position).magnitude/4)
- part.CFrame = CFrame.new(handle.Position, position) * CFrame.new(0,0,-(handle.Position - position).magnitude/2)
- shoot:Play()
- local function makewound(hitt)
- local where = position
- local hole = Instance.new("Part", hitt.Parent)
- hole.Name = "ouchwound"
- hole.Transparency = hitt.Transparency
- hole.CanCollide = false
- hole.Size = Vector3.new(0.3,0.3,0)
- hole.Transparency = 1
- hole.CFrame = CFrame.new(position.x,position.y,position.z) * CFrame.new(hole.Position, hole.Position+surface)
- local surface = Instance.new("Decal", hole)
- surface.Name = "decal"
- surface.Texture = "http://www.roblox.com/asset/?id=359667702"
- surface.Face = "Front"
- local hitweld = Instance.new("Weld", hitt)
- hitweld.C0 = hitt.CFrame:toObjectSpace(hole.CFrame)
- hitweld.Part0 = hitt
- hitweld.Part1 = hole
- hitweld.Name = "ouch_weld"
- if bullethit.Parent ~= nil then
- bullethit.Parent = hole
- end
- if hitt.Parent:findFirstChildOfClass("Humanoid") then
- surface.Color3 = Color3.fromRGB(255,0,0)
- -- bullethitflesh.Parent = hole
- -- bullethitflesh:Play()
- -- bullethitflesh.MaxDistance = 10
- local randomdamage = math.random(18,24)
- if hitt.Parent:findFirstChildOfClass("Humanoid").Health > 500 then
- hitt.Parent:findFirstChildOfClass("Humanoid").MaxHealth = 500
- hitt.Parent:findFirstChildOfClass("Humanoid").Health = 500
- end
- if hitt.Parent:findFirstChildOfClass("Humanoid").Health <= randomdamage then
- local velocity = Instance.new("BodyVelocity", hit)
- velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
- velocity.Velocity = handle.CFrame.lookVector * math.random(15,25)
- game.Debris:AddItem(velocity, 0.1)
- hitt.Parent:findFirstChildOfClass("Humanoid").Health = 0
- local function searchforweld(wot)
- for i,v in pairs(wot:GetChildren()) do
- searchforweld(v)
- if v.ClassName == "Weld" or v.ClassName == "Motor6D" then
- if v.Name ~= "ouch_weld" then
- v:destroy()
- end
- end
- end
- end
- searchforweld(hitt.Parent)
- ragdollkill(hitt.Parent)
- else
- if hitt.Name ~= "Head" then
- hitt.Parent:findFirstChildOfClass("Humanoid").Health = hitt.Parent:findFirstChildOfClass("Humanoid").Health - randomdamage
- local velocity = Instance.new("BodyVelocity", hit)
- velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
- velocity.Velocity = handle.CFrame.lookVector * math.random(15,25)
- game.Debris:AddItem(velocity, 0.1)
- else
- hitt.Parent:findFirstChildOfClass("Humanoid").Health = 0
- local function searchforweld(wot)
- for i,v in pairs(wot:GetChildren()) do
- searchforweld(v)
- if v.ClassName == "Weld" or v.ClassName == "Motor6D" then
- if v.Name ~= "ouch_weld" then
- v:destroy()
- end
- end
- end
- end
- searchforweld(hitt.Parent)
- ragdollkill(hitt.Parent)
- end
- end
- -- local function bbb()
- -- wait(bullethitflesh.TimeLength)
- -- bullethitflesh.Parent = handle
- -- end
- -- spawn(bbb)
- else
- if not hitt.Parent:findFirstChildOfClass("Humanoid") and hitt.Parent.ClassName == "Model" then
- hitt:BreakJoints()
- local velocity = Instance.new("BodyVelocity", hitt)
- velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velocity.Velocity = handle.CFrame.lookVector * math.random(10,30)
- local function cancollide()
- wait(0.1)
- hitt.CanCollide = true
- velocity:destroy()
- end
- spawn(cancollide)
- end
- game.Debris:AddItem(hole, 10)
- end
- if hitt.Name == "ouchwound" then
- bullethit.Parent = handle
- hole:destroy()
- else
- bullethit:Play()
- end
- end
- if hit ~= nil then
- if hit.Parent ~= nil then
- if not hit.Parent:findFirstChildOfClass("Humanoid") and not hit:findFirstChild("shattered") and hit.Name ~= "HumanoidRootPart" and hit.Transparency > 0.1 and hit.Name ~= "ouchwound" or hit.Material == "Glass" then
- if hit.Size.z < hit.Size.x then
- if hit.Size.z < 1.5 then
- local sha = Instance.new("BoolValue", hit)
- sha.Name = "shattered"
- local shatter = Instance.new("Part", workspace)
- shatter.Transparency = hit.Transparency
- shatter.Material = hit.Material
- shatter.BrickColor = hit.BrickColor
- shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
- shatter.CanCollide = hit.CanCollide
- shatter.CFrame = hit.CFrame * CFrame.new(shatter.Size.x/2,shatter.Size.y/2,0)
- shatter:BreakJoints()
- shatter.Velocity = handle.CFrame.lookVector * 20
- game.Debris:AddItem(shatter, 15)
- --
- local shatter = Instance.new("Part", workspace)
- shatter.Transparency = hit.Transparency
- shatter.Material = hit.Material
- shatter.BrickColor = hit.BrickColor
- shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
- shatter.CanCollide = hit.CanCollide
- shatter.CFrame = hit.CFrame * CFrame.new(-shatter.Size.x/2,shatter.Size.y/2,0)
- shatter:BreakJoints()
- shatter.Velocity = handle.CFrame.lookVector * 20
- game.Debris:AddItem(shatter, 15)
- --
- local shatter = Instance.new("Part", workspace)
- shatter.Transparency = hit.Transparency
- shatter.Material = hit.Material
- shatter.BrickColor = hit.BrickColor
- shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
- shatter.CanCollide = hit.CanCollide
- shatter.CFrame = hit.CFrame * CFrame.new(shatter.Size.x/2,-shatter.Size.y/2,0)
- shatter:BreakJoints()
- shatter.Velocity = handle.CFrame.lookVector * 20
- game.Debris:AddItem(shatter, 15)
- --
- local shatter = Instance.new("Part", workspace)
- shatter.Transparency = hit.Transparency
- shatter.Material = hit.Material
- shatter.BrickColor = hit.BrickColor
- shatter.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z)
- shatter.CanCollide = hit.CanCollide
- shatter.CFrame = hit.CFrame * CFrame.new(-shatter.Size.x/2,-shatter.Size.y/2,0)
- shatter:BreakJoints()
- shatter.Velocity = handle.CFrame.lookVector * 20
- game.Debris:AddItem(shatter, 15)
- --
- hit.Anchored = true
- hit.Transparency = 1
- hit.CanCollide = false
- local function stopshattering()
- shattersound.Parent = hit
- shattersound:Play()
- shattersound.MaxDistance = 30
- wait(shattersound.TimeLength/2)
- shattersound.Parent = handle
- hit:destroy()
- end
- spawn(stopshattering)
- end
- elseif hit.Size.x < hit.Size.z then
- if hit.Size.x < 1.5 then
- local sha = Instance.new("BoolValue", hit)
- sha.Name = "shattered"
- local shatter = Instance.new("Part", workspace)
- shatter.Transparency = hit.Transparency
- shatter.Material = hit.Material
- shatter.BrickColor = hit.BrickColor
- shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
- shatter.CanCollide = hit.CanCollide
- shatter.CFrame = hit.CFrame * CFrame.new(0,shatter.Size.y/2,shatter.Size.z/2)
- shatter:BreakJoints()
- shatter.Velocity = handle.CFrame.lookVector * 20
- game.Debris:AddItem(shatter, 15)
- --
- local shatter = Instance.new("Part", workspace)
- shatter.Transparency = hit.Transparency
- shatter.Material = hit.Material
- shatter.BrickColor = hit.BrickColor
- shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
- shatter:BreakJoints()
- shatter.CanCollide = hit.CanCollide
- shatter.CFrame = hit.CFrame * CFrame.new(0,-shatter.Size.y/2,shatter.Size.z/2)
- shatter.Velocity = handle.CFrame.lookVector * 20
- game.Debris:AddItem(shatter, 15)
- --
- local shatter = Instance.new("Part", workspace)
- shatter.Transparency = hit.Transparency
- shatter.Material = hit.Material
- shatter.BrickColor = hit.BrickColor
- shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
- shatter.CanCollide = hit.CanCollide
- shatter.CFrame = hit.CFrame * CFrame.new(0,shatter.Size.y/2,-shatter.Size.z/2)
- shatter:BreakJoints()
- shatter.Velocity = handle.CFrame.lookVector * 20
- game.Debris:AddItem(shatter, 15)
- --
- local shatter = Instance.new("Part", workspace)
- shatter.Transparency = hit.Transparency
- shatter.Material = hit.Material
- shatter.BrickColor = hit.BrickColor
- shatter.Size = Vector3.new(hit.Size.x,hit.Size.y/2,hit.Size.z/2)
- shatter.CanCollide = hit.CanCollide
- shatter.CFrame = hit.CFrame * CFrame.new(0,-shatter.Size.y/2,-shatter.Size.z/2)
- shatter:BreakJoints()
- shatter.Velocity = handle.CFrame.lookVector * 20
- game.Debris:AddItem(shatter, 15)
- --
- hit.Anchored = true
- hit.Transparency = 1
- hit.CanCollide = false
- local function stopshattering()
- shattersound.Parent = hit
- shattersound:Play()
- shattersound.MaxDistance = 30
- wait(shattersound.TimeLength/2)
- shattersound.Parent = handle
- hit:destroy()
- end
- spawn(stopshattering)
- end
- end
- end
- end
- if hit.Parent.ClassName == "Accessory" or hit.Parent.ClassName == "Hat" then
- for i,v in pairs(hit:GetChildren()) do
- if v.ClassName == "Attachment" or v.ClassName == "Weld" or v.ClassName == "Motor6D" then
- v:destroy()
- end
- end
- hit.Parent.Parent = workspace
- hit.CanCollide = false
- local velocity = Instance.new("BodyVelocity", hit)
- velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velocity.Velocity = handle.CFrame.lookVector * math.random(10,30)
- local function cancollide()
- wait(0.1)
- hit.CanCollide = true
- velocity:destroy()
- end
- spawn(cancollide)
- else
- makewound(hit)
- end
- end
- local function hide()
- bulletcrack.Parent = part
- bulletcrack:Play()
- bulletcrack.MaxDistance = part.Size.z
- wait(0.005)
- part.Transparency = 1
- wait(bulletcrack.TimeLength - 0.01)
- bulletcrack.Parent = handle
- part:destroy()
- end
- spawn(hide)
- game.Debris:AddItem(light, 0.04)
- for i = 1,10 do
- moveweld.C0 = moveweld.C0 * CFrame.new(-0.07,0,0)
- sightweld.C0 = sightweld.C0 * CFrame.new(-0.07,0,0)
- headweld.C1 = headweld.C1 * CFrame.fromEulerAnglesXYZ(-0.015,0,0)
- leftarmweld.C1 = leftarmweld.C1 * CFrame.new(0,0.04,0) * CFrame.fromEulerAnglesXYZ(0.03,0,0)
- rightarmweld.C1 = rightarmweld.C1 * CFrame.new(0,0.04,0) * CFrame.fromEulerAnglesXYZ(0.03,0,0)
- gunweld.C0 = gunweld.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0,0)
- step:wait()
- end
- rightarmweld.C1 = CFrame.new(0,0.5,0)
- leftarmweld.C1 = CFrame.new(0,0.5,0)
- shooting = false
- elseif what == "track" then
- if not plr.Character:findFirstChild("AnimationState") then
- Instance.new("StringValue", plr.Character).Name = "AnimationState"
- plr.Character.AnimationState.Value = "Idle"
- end
- if plr.Character:findFirstChild("Torso") then
- if not plr.Character.Torso:findFirstChild("HeadWeldd") then
- local head = Instance.new("Weld", plr.Character.Torso)
- head.Part0 = plr.Character.Torso
- head.Part1 = plr.Character.Head
- head.C0 = CFrame.new(0,1.5,0)
- head.C1 = CFrame.new(0,-0.5,0)
- head.Name = "HeadWeldd"
- end
- if not plr.Character.Torso:findFirstChild("RightArmWeldd") then
- local rightarm = Instance.new("Weld", plr.Character.Torso)
- rightarm.Part0 = plr.Character.Torso
- rightarm.Part1 = plr.Character["Right Arm"]
- rightarm.C0 = CFrame.new(1.5,0,0)
- rightarm.C1 = CFrame.new(0,0.5,0)
- rightarm.Name = "RightArmWeldd"
- end
- if not plr.Character.Torso:findFirstChild("LeftArmWeldd") then
- local leftarm = Instance.new("Weld", plr.Character.Torso)
- leftarm.Part0 = plr.Character.Torso
- leftarm.Part1 = plr.Character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5,0,0)
- leftarm.C1 = CFrame.new(0,0.5,0)
- leftarm.Name = "LeftArmWeldd"
- end
- if plr.Character.Torso:findFirstChild("RightArmWeldd") then
- plr.Character.Torso:findFirstChild("RightArmWeldd").C0 = plr.Character.Torso:findFirstChild("RightArmWeldd").C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/2 + math.asin((message1-message2).unit.y),0,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.2) * CFrame.new(-0.3,-0.5,0),0.3)
- end
- if plr.Character.Torso:findFirstChild("HeadWeldd") then
- plr.Character.Torso:findFirstChild("HeadWeldd").C0 = plr.Character.Torso:findFirstChild("HeadWeldd").C0:lerp(CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.asin((message1-message2).unit.y),0,0),0.3)
- end
- if plr.Character.Torso:findFirstChild("LeftArmWeldd") then
- plr.Character.Torso:findFirstChild("LeftArmWeldd").C0 = plr.Character.Torso:findFirstChild("LeftArmWeldd").C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/2 + math.asin((message1-message2).unit.y),0,0) * CFrame.fromEulerAnglesXYZ(0,0,0.7) * CFrame.new(0.3,-1,0),0.3)
- end
- end
- elseif what == "reload" then
- wait(0.1)
- reloadsound:Play()
- wait(0.5)
- ammo.Value = maxammo.Value
- TextLabel2.Text = "Ammo: "..ammo.Value.."/"..maxammo.Value
- end
- end
- end
- end
- end
- end
- end
- local function no()
- candothefunc = false
- end
- tool.Unequipped:connect(no)
- gunevent.OnServerEvent:connect(action)
- end
- function resetgun()
- unequip:Play()
- local this = game:GetService("Players"):findFirstChild(owner.Name):findFirstChildOfClass("PlayerGui"):findFirstChild("GunM1911 Gui")
- if this then
- this:destroy()
- end
- end
- tool.Unequipped:connect(resetgun)
- tool.Equipped:connect(positiongun)
- function ragdollkill(character)
- local victimshumanoid = character:findFirstChildOfClass("Humanoid")
- local checkragd = character:findFirstChild("ragded")
- if not checkragd then
- local boolvalue = Instance.new("BoolValue", character)
- boolvalue.Name = "ragded"
- if not character:findFirstChild("UpperTorso") then
- character.Archivable = true
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Sound" then
- v:remove()
- end
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Sound" then
- w:remove()
- end
- end
- end
- local ragdoll = character:Clone()
- ragdoll:findFirstChildOfClass("Humanoid").Health = 0
- if ragdoll:findFirstChild("Health") then
- if ragdoll:findFirstChild("Health").ClassName == "Script" then
- ragdoll:findFirstChild("Health").Disabled = true
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
- v:destroy()
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(character:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- ragdoll.Parent = workspace
- if ragdoll:findFirstChild("Right Arm") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Right Arm")
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider.Name = "LimbCollider"
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Left Arm") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Left Arm")
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Left Leg") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Left Leg")
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Right Leg") then
- local glue = Instance.new("Glue", ragdoll.Torso)
- glue.Part0 = ragdoll.Torso
- glue.Part1 = ragdoll:findFirstChild("Right Leg")
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Name = "LimbCollider"
- limbcollider.Transparency = 1
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- end
- if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
- local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
- HeadAttachment.Position = Vector3.new(0, -0.5, 0)
- local connection = Instance.new('HingeConstraint', ragdoll["Head"])
- connection.LimitsEnabled = true
- connection.Attachment0 = ragdoll.Torso.NeckAttachment
- connection.Attachment1 = HeadAttachment
- connection.UpperAngle = 60
- connection.LowerAngle = -60
- elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
- local hedweld = Instance.new("Weld", ragdoll.Torso)
- hedweld.Part0 = ragdoll.Torso
- hedweld.Part1 = ragdoll.Head
- hedweld.C0 = CFrame.new(0,1.5,0)
- end
- game.Debris:AddItem(ragdoll, 30)
- local function aaaalol()
- wait(0.2)
- local function searchforvelocity(wot)
- for i,v in pairs(wot:GetChildren()) do
- searchforvelocity(v)
- if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
- v:destroy()
- end
- end
- end
- searchforvelocity(ragdoll)
- wait(0.5)
- if ragdoll:findFirstChildOfClass("Humanoid") then
- ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
- end
- if ragdoll:findFirstChild("HumanoidRootPart") then
- ragdoll:findFirstChild("HumanoidRootPart"):destroy()
- end
- end
- spawn(aaaalol)
- elseif character:findFirstChild("UpperTorso") then
- character.Archivable = true
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Sound" then
- v:remove()
- end
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Sound" then
- w:remove()
- end
- end
- end
- local ragdoll = character:Clone()
- ragdoll:findFirstChildOfClass("Humanoid").Health = 0
- if ragdoll:findFirstChild("Health") then
- if ragdoll:findFirstChild("Health").ClassName == "Script" then
- ragdoll:findFirstChild("Health").Disabled = true
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
- v:destroy()
- end
- end
- for i,v in pairs(character:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(character:GetChildren()) do
- if w.ClassName == "Part" or w.ClassName == "MeshPart" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- ragdoll.Parent = workspace
- local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
- Humanoid.PlatformStand = true
- local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
- local connection = Instance.new('BallSocketConstraint', limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.TwistLimitsEnabled = true
- connection.TwistLowerAngle = twistlower
- connection.TwistUpperAngle = twistupper
- local limbcollider = Instance.new("Part", limb)
- limbcollider.Size = Vector3.new(0.1,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider:BreakJoints()
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = limb
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
- end
- local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
- local connection = Instance.new('HingeConstraint', limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.LimitsEnabled = true
- connection.LowerAngle = lower
- connection.UpperAngle = upper
- local limbcollider = Instance.new("Part", limb)
- limbcollider.Size = Vector3.new(0.1,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider:BreakJoints()
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = limb
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
- end
- local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
- HeadAttachment.Position = Vector3.new(0, -0.5, 0)
- if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
- makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
- end
- makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
- makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
- makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
- makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
- makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
- makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
- makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
- makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
- --
- makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
- makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
- makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
- for i,v in pairs(Humanoid.Parent:GetChildren()) do
- if v.ClassName == "Accessory" then
- local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
- if attachment1 then
- for q,w in pairs(Humanoid.Parent:GetChildren()) do
- if w.ClassName == "Part" then
- local attachment2 = w:findFirstChild(attachment1.Name)
- if attachment2 then
- local hinge = Instance.new("HingeConstraint", v.Handle)
- hinge.Attachment0 = attachment1
- hinge.Attachment1 = attachment2
- hinge.LimitsEnabled = true
- hinge.LowerAngle = 0
- hinge.UpperAngle = 0
- end
- end
- end
- end
- end
- end
- for i,v in pairs(ragdoll:GetChildren()) do
- for q,w in pairs(v:GetChildren()) do
- if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
- w:destroy()
- end
- end
- end
- if ragdoll:findFirstChild("HumanoidRootPart") then
- ragdoll.HumanoidRootPart:destroy()
- end
- if ragdoll:findFirstChildOfClass("Humanoid") then
- ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
- end
- local function waitfordatmoment()
- wait(0.2)
- local function searchforvelocity(wot)
- for i,v in pairs(wot:GetChildren()) do
- searchforvelocity(v)
- if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
- v:destroy()
- end
- end
- end
- searchforvelocity(ragdoll)
- end
- spawn(waitfordatmoment)
- game.Debris:AddItem(ragdoll, 30)
- end
- end
- end
- ]=], Tool0);
- NLS ([=[
- --By Rufus14
- tool = script.Parent
- playermouse = game:GetService("Players").LocalPlayer:GetMouse()
- runservice = game:GetService("RunService").RenderStepped
- step = game:GetService("RunService").Stepped
- gunevent = tool.GunEvent
- localplr = game:GetService("Players").LocalPlayer
- char = localplr.Character
- function sprinton(key)
- key = key:lower()
- if key:byte() == 48 and char:findFirstChildOfClass("Humanoid").WalkSpeed > 0 and tool.Parent == char then
- char:findFirstChildOfClass("Humanoid").WalkSpeed = 23
- end
- end
- function sprintoff(key)
- key = key:lower()
- if key:byte() == 48 and char:findFirstChildOfClass("Humanoid").WalkSpeed > 0 and tool.Parent == char then
- char:findFirstChildOfClass("Humanoid").WalkSpeed = 15
- end
- end
- playermouse.KeyUp:connect(sprintoff)
- playermouse.KeyDown:connect(sprinton)
- reloading = false
- function equip()
- localplr = game:GetService("Players").LocalPlayer
- char = localplr.Character
- game:GetService("Players").LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
- playermouse = game:GetService("Players").LocalPlayer:GetMouse()
- local function localscript()
- local sinee = 0
- going = false
- local function run(howfast)
- if howfast > 1 and howfast < 18 then
- going = true
- local function waitforrunsound()
- char.Head:WaitForChild("Running").Volume = 4.5
- char.Head:WaitForChild("Running").PlaybackSpeed = 1.48
- end
- if (workspace.CurrentCamera.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude < 2 then
- spawn(waitforrunsound)
- end
- elseif howfast <= 1 then
- going = false
- else
- going = nil
- local function waitforrunsound()
- char.Head:WaitForChild("Running").Volume = 4.5
- char.Head:WaitForChild("Running").PlaybackSpeed = 1.85
- end
- if (workspace.CurrentCamera.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude < 2 then
- spawn(waitforrunsound)
- end
- end
- end
- local function keybuttonaction(key)
- key = key:lower()
- if key == "r" and not reloading and tool.Ammo.Value ~= tool.MaxMagAmmo.Value then
- reloading = true
- gunevent:FireServer("reload")
- for i = 0,0.75 , 0.04 do
- if workspace.CurrentCamera:findFirstChild("armModel") then
- if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
- if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm") then
- local rarm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm")
- rarm.C0 = rarm.C0:lerp(CFrame.new(1.5,1.6 + math.sin(sine/30)/40,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi/2+math.cos(sine/30)/30,0,0) * CFrame.fromEulerAnglesXYZ(0,-0.5,-math.pi/2.5) * CFrame.new(0.3,-0.5,0),i)
- end
- end
- if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
- if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm") then
- local larm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm")
- larm.C0 = larm.C0:lerp(CFrame.new(-1.5,0,0.5),i)
- end
- end
- end
- runservice:wait()
- end
- local fakemag = Instance.new("Part", workspace)
- fakemag.Size = Vector3.new(0.2, 0.7, 0.3)
- fakemag.BrickColor = BrickColor.new("Black")
- fakemag.CanCollide = false
- if workspace.CurrentCamera:findFirstChild("armModel") then
- if workspace.CurrentCamera.armModel:findFirstChild("gunModel") then
- fakemag.CFrame = workspace.CurrentCamera.armModel:findFirstChild("gunModel").Handle.CFrame * CFrame.new(0,-0.4,0)
- end
- else
- fakemag.CFrame = tool.Handle.CFrame
- end
- for i = 0,1 , 0.1 do
- if workspace.CurrentCamera:findFirstChild("armModel") then
- if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
- if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm") then
- local rarm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm")
- rarm.C0 = rarm.C0:lerp(CFrame.new(1.5,0.65 + math.sin(sine/30)/40,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi/2+math.cos(sine/30)/30,0,0) * CFrame.fromEulerAnglesXYZ(0,0,-math.pi/2.5) * CFrame.new(0.3,-0.5,0),i)
- end
- end
- if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
- if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm") then
- local larm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm")
- larm.C0 = larm.C0:lerp(CFrame.new(-1.5,0,0.5),i)
- end
- end
- end
- runservice:wait()
- end
- local fakemag = Instance.new("Part", workspace)
- fakemag.Size = Vector3.new(0.2, 0.7, 0.3)
- fakemag.BrickColor = BrickColor.new("Black")
- fakemag.CanCollide = false
- fakemag.Anchored = true
- for i = 0,1 , 0.06 do
- if workspace.CurrentCamera:findFirstChild("armModel") then
- if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
- if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm") then
- local rarm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("rarm")
- rarm.C0 = rarm.C0:lerp(CFrame.new(1.5, math.sin(sine/30)/40,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi/2+math.cos(sine/30)/30,0,0) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2.5,-math.pi/2.5) * CFrame.new(0.3,-0.5,0),i)
- end
- end
- if workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
- if workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm") then
- local larm = workspace.CurrentCamera.armModel.fakeTorso:findFirstChild("larm")
- larm.C0 = larm.C0:lerp(CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.pi/1.5,-math.pi/1.5,0),i)
- fakemag.CFrame = larm.Part1.CFrame * CFrame.new(0,0.5,-1)
- end
- end
- else
- fakemag:destroy()
- end
- runservice:wait()
- end
- fakemag:destroy()
- reloading = false
- end
- end
- playermouse.KeyDown:connect(keybuttonaction)
- char:findFirstChildOfClass("Humanoid").Running:connect(run)
- sine = 0
- while runservice:wait() and tool.Parent == game:GetService("Players").LocalPlayer.Character do
- if (workspace.CurrentCamera.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude < 2 then
- workspace.CurrentCamera.FieldOfView = 85
- char:findFirstChildOfClass("Humanoid").CameraOffset = Vector3.new(0,0,-1.5)
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" and v.Name ~= "Head" then
- if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
- v.LocalTransparencyModifier = 0
- end
- end
- if v.ClassName == "Accessory" then
- v.Handle.Transparency = 1
- end
- end
- if char.Head:findFirstChildOfClass("Decal") then
- char.Head:findFirstChildOfClass("Decal").Transparency = 1
- end
- char.Head.Transparency = 1
- for i,v in pairs(tool:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 1
- end
- end
- if going == true then
- sinee = sinee + 1
- workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(0,math.sin(sinee/4)/13,0) * CFrame.Angles(0,0,math.sin(sinee/8)/50)
- elseif going == false then
- sinee = sinee + 0.08
- workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(0,math.sin(sinee/4)/15,0) * CFrame.Angles(0,0,math.sin(sinee/8)/70)
- elseif going == nil then
- sinee = sinee + 1
- workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(0,math.sin(sinee/3)/12,0) * CFrame.Angles(0,0,math.sin(sinee/6)/40)
- end
- gunevent:FireServer("track", playermouse.Hit.p, playermouse.Origin.p)
- sine = sine + 1
- if char:findFirstChild("AnimationState") then
- local state = char:findFirstChild("AnimationState")
- if state.Value == "Shoot" then
- local shakesine = 0
- local decreasevalue = 0
- local function shake()
- for i = 1,40 do
- shakesine = shakesine + 1
- decreasevalue = decreasevalue + 90
- workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.fromEulerAnglesXYZ(math.cos(shakesine/4)/(10+decreasevalue)-0.00025,0,0)
- runservice:wait()
- end
- end
- spawn(shake)
- end
- end
- if not workspace.CurrentCamera:findFirstChild("armModel") then
- Instance.new("Model", workspace.CurrentCamera).Name = "armModel"
- end
- if not workspace.CurrentCamera.armModel:findFirstChildOfClass("Humanoid") then
- Instance.new("Humanoid", workspace.CurrentCamera.armModel)
- local shirt = game.Players.LocalPlayer.Character:FindFirstChild("Shirt"):Clone()
- shirt.Parent = workspace.CurrentCamera:FindFirstChild("armModel")
- end
- if not workspace.CurrentCamera.armModel:findFirstChild("fakeTorso") then
- local faketorso = Instance.new("Part", workspace.CurrentCamera.armModel)
- faketorso.Size = Vector3.new(2,2,1)
- faketorso.CFrame = workspace.CurrentCamera.CFrame
- faketorso.Transparency = 1
- faketorso.Anchored = true
- faketorso.Name = "fakeTorso"
- faketorso.CanCollide = false
- else
- if going or going == false then
- workspace.CurrentCamera.armModel.fakeTorso.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(math.cos(sinee/8)/12,-2+math.sin(sinee/4)/16,-1)
- elseif going == nil then
- workspace.CurrentCamera.armModel.fakeTorso.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(math.cos(sinee/6)/6,-2+math.sin(sinee/3)/10,-1)
- end
- end
- if not workspace.CurrentCamera.armModel:findFirstChild("Right Arm") then
- local rarmclone = Instance.new("Part", workspace.CurrentCamera.armModel)
- rarmclone.Size = Vector3.new(1,2,1)
- rarmclone.BrickColor = char["Right Arm"].BrickColor
- rarmclone.Name = "Right Arm"
- local rarmcloneweld = Instance.new("Weld", workspace.CurrentCamera.armModel.fakeTorso)
- rarmcloneweld.Part0 = workspace.CurrentCamera.armModel.fakeTorso
- rarmcloneweld.Part1 = rarmclone
- rarmcloneweld.Name = "rarm"
- local function uncollide()
- rarmclone.CanCollide = false
- end
- local function checkanim()
- while workspace.CurrentCamera:findFirstChild("armModel") do
- if char:findFirstChild("AnimationState") then
- local state = char:findFirstChild("AnimationState")
- if not reloading then
- if state.Value == "Idle" and going ~= nil then
- rarmcloneweld.C0 = rarmcloneweld.C0:lerp(CFrame.new(1.5,0.5 + math.sin(sine/30)/40,0) * CFrame.fromEulerAnglesXYZ(math.pi/2+math.cos(sine/30)/30,0,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.2) * CFrame.new(-0.3,-0.5,0),0.3)
- elseif going == nil then
- if state.Value ~= "Shoot" then
- --sprint anim
- rarmcloneweld.C0 = rarmcloneweld.C0:lerp(CFrame.new(1.5,0.5 + math.sin(sine/6)/30,0.7-math.cos(sine/6)*2) * CFrame.fromEulerAnglesXYZ(0.4+1.5*math.cos(sine/6),0,0) * CFrame.new(-0.3,-0.5,0.5),0.3)
- elseif state.Value == "Shoot" then
- rarmcloneweld.C0 = rarmcloneweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0)
- end
- elseif state.Value == "Shoot" then
- rarmcloneweld.C0 = rarmcloneweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0)
- end
- end
- end
- runservice:wait()
- end
- end
- spawn(checkanim)
- step:connect(uncollide)
- end
- if not workspace.CurrentCamera.armModel:findFirstChild("gunModel") then
- local modelgun = Instance.new("Model", workspace.CurrentCamera.armModel)
- modelgun.Name = "gunModel"
- for i,v in pairs(tool:GetChildren()) do
- if v.ClassName == "Part" then
- local partclone = v:Clone()
- partclone:BreakJoints()
- partclone.Parent = modelgun
- partclone.Transparency = 0
- end
- end
- local handle = modelgun:WaitForChild("Handle")
- handle:BreakJoints()
- for i,v in pairs(modelgun:GetChildren()) do
- if v.ClassName == "Part" and v ~= handle then
- local doweld = Instance.new("Weld", handle)
- doweld.C0 = handle.CFrame:toObjectSpace(v.CFrame)
- doweld.Part0 = handle
- doweld.Part1 = v
- local beginc0 = doweld.C0
- if v.Name == "movingpart" then
- local function checkanim()
- while workspace.CurrentCamera:findFirstChild("armModel") do
- if char:findFirstChild("AnimationState") then
- local state = char:findFirstChild("AnimationState")
- if state.Value == "Idle" then
- doweld.C0 = doweld.C0:lerp(beginc0,0.3)
- elseif state.Value == "Shoot" then
- doweld.C0 = doweld.C0 * CFrame.new(0.1,0,0)
- end
- end
- runservice:wait()
- end
- end
- spawn(checkanim)
- end
- end
- end
- local handleweld = Instance.new("Weld", handle)
- handleweld.Part0 = workspace.CurrentCamera.armModel["Right Arm"]
- handleweld.Part1 = handle
- handleweld.C0 = CFrame.fromEulerAnglesXYZ(-0.4-math.pi/2,-0.2,0) * CFrame.new(-0.35,0.45,-0.7)
- local function checkforsprint()
- while runservice:wait() do
- if going == nil then
- handleweld.C0 = handleweld.C0:lerp(CFrame.fromEulerAnglesXYZ(-0.4-math.pi/2,-0.2,0) * CFrame.new(-0.35,0.45,-0.7) * CFrame.Angles(0,0.15,0),0.3)
- else
- handleweld.C0 = handleweld.C0:lerp(CFrame.fromEulerAnglesXYZ(-0.4-math.pi/2,-0.2,0) * CFrame.new(-0.35,0.45,-0.7),0.3)
- end
- end
- end
- spawn(checkforsprint)
- end
- if not workspace.CurrentCamera.armModel:findFirstChild("Left Arm") then
- local larmclone = Instance.new("Part", workspace.CurrentCamera.armModel)
- larmclone.Size = Vector3.new(1,2,1)
- larmclone.BrickColor = char["Left Arm"].BrickColor
- larmclone.Name = "Left Arm"
- local larmcloneweld = Instance.new("Weld", workspace.CurrentCamera.armModel.fakeTorso)
- larmcloneweld.Part0 = workspace.CurrentCamera.armModel.fakeTorso
- larmcloneweld.Part1 = larmclone
- larmcloneweld.Name = "larm"
- local function uncollide()
- larmclone.CanCollide = false
- end
- local function checkanim()
- while workspace.CurrentCamera:findFirstChild("armModel") do
- if char:findFirstChild("AnimationState") then
- local state = char:findFirstChild("AnimationState")
- if not reloading then
- if state.Value == "Idle" then
- larmcloneweld.C0 = larmcloneweld.C0:lerp(CFrame.new(-1,0.5 + math.sin(sine/30)/40,0) * CFrame.fromEulerAnglesXYZ(math.pi/2+math.cos(sine/30)/30,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0.7) * CFrame.new(0.3,-1,0),0.3)
- elseif state.Value == "Shoot" then
- larmcloneweld.C0 = larmcloneweld.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,0) * CFrame.new(0,0.1,0.05)
- end
- if going == nil then
- if state.Value ~= "Shoot" then
- --sprint anim
- larmcloneweld.C0 = larmcloneweld.C0:lerp(CFrame.new(-1.5,0.5 - math.sin(sine/6)/30,0.7+math.cos(sine/6)*2) * CFrame.fromEulerAnglesXYZ(0.4+1.5*-math.cos(sine/6),0,0) * CFrame.new(-0.3,-0.5,0.5),0.3)
- elseif state.Value == "Shoot" then
- larmcloneweld.C0 = larmcloneweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0)
- end
- end
- end
- end
- runservice:wait()
- end
- end
- spawn(checkanim)
- step:connect(uncollide)
- end
- else
- char:findFirstChildOfClass("Humanoid").CameraOffset = Vector3.new(0,0,0)
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Accessory" then
- v.Handle.Transparency = 0
- end
- end
- workspace.CurrentCamera.FieldOfView = 70
- char.Head.Transparency = 0
- if char.Head:findFirstChildOfClass("Decal") then
- char.Head:findFirstChildOfClass("Decal").Transparency = 0
- end
- for i,v in pairs(tool:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 0
- end
- end
- local function waitforrunsound()
- char.Head:WaitForChild("Running").Volume = 0.65
- char.Head:WaitForChild("Running").PlaybackSpeed = 1.85
- end
- spawn(waitforrunsound)
- if workspace.CurrentCamera:findFirstChild("armModel") then
- workspace.CurrentCamera:findFirstChild("armModel"):destroy()
- end
- if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld") then
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeld"):destroy()
- end
- gunevent:FireServer("track", playermouse.Hit.p, playermouse.Origin.p)
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame:lerp(CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(playermouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,playermouse.Hit.p.z)),0.4)
- end
- end
- end
- spawn(localscript)
- end
- function onpress()
- if not reloading then
- gunevent:FireServer("shoot", playermouse.Hit.p, playermouse.Origin.p)
- end
- end
- function removearms()
- game:GetService("Players").LocalPlayer.CameraMode = Enum.CameraMode.Classic
- char:findFirstChildOfClass("Humanoid").WalkSpeed = 16
- if workspace.CurrentCamera:findFirstChild("armModel") then
- workspace.CurrentCamera:findFirstChild("armModel"):destroy()
- end
- if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("RightArmWeldd") then
- game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("RightArmWeldd"):destroy()
- end
- if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("HeadWeldd") then
- game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("HeadWeldd"):destroy()
- end
- if game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("LeftArmWeldd") then
- game:GetService("Players").LocalPlayer.Character.Torso:findFirstChild("LeftArmWeldd"):destroy()
- end
- if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldd") then
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldd"):destroy()
- end
- for i,v in pairs(tool:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 0
- end
- end
- char:findFirstChildOfClass("Humanoid").CameraOffset = Vector3.new(0,0,0)
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Accessory" then
- v.Handle.Transparency = 0
- end
- end
- workspace.CurrentCamera.FieldOfView = 70
- char.Head.Transparency = 0
- if char.Head:findFirstChildOfClass("Decal") then
- char.Head:findFirstChildOfClass("Decal").Transparency = 0
- end
- local function waitforrunsound()
- char.Head:WaitForChild("Running").Volume = 0.65
- char.Head:WaitForChild("Running").PlaybackSpeed = 1.85
- end
- spawn(waitforrunsound)
- end
- tool.Equipped:connect(equip)
- tool.Activated:connect(onpress)
- tool.Unequipped:connect(removearms)
- ]=], Tool0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement