SHOW:
|
|
- or go back to the newest paste.
| 1 | function createface() | |
| 2 | - | local Model0 = Instance.new("Model");
|
| 2 | + | local Model0 = Instance.new("Model")
|
| 3 | - | local Part1 = Instance.new("Part");
|
| 3 | + | local Part1 = Instance.new("Part")
|
| 4 | - | local SpecialMesh2 = Instance.new("SpecialMesh");
|
| 4 | + | local SpecialMesh2 = Instance.new("SpecialMesh")
|
| 5 | - | local Part3 = Instance.new("Part");
|
| 5 | + | local Part3 = Instance.new("Part")
|
| 6 | - | local Decal4 = Instance.new("Decal");
|
| 6 | + | local Decal4 = Instance.new("Decal")
|
| 7 | - | local SpecialMesh5 = Instance.new("SpecialMesh");
|
| 7 | + | local SpecialMesh5 = Instance.new("SpecialMesh")
|
| 8 | - | local Weld6 = Instance.new("Weld");
|
| 8 | + | local Weld6 = Instance.new("Weld")
|
| 9 | - | local Weld7 = Instance.new("Weld");
|
| 9 | + | local Weld7 = Instance.new("Weld")
|
| 10 | - | local Part8 = Instance.new("Part");
|
| 10 | + | local Part8 = Instance.new("Part")
|
| 11 | - | local SpecialMesh9 = Instance.new("SpecialMesh");
|
| 11 | + | local SpecialMesh9 = Instance.new("SpecialMesh")
|
| 12 | - | local Weld10 = Instance.new("Weld");
|
| 12 | + | local Weld10 = Instance.new("Weld")
|
| 13 | - | Model0.Name = "HeadAcc"; |
| 13 | + | Model0.Name = "HeadAcc" |
| 14 | - | Part1.Name = "Hair"; |
| 14 | + | Part1.Name = "Hair" |
| 15 | - | Part1.Parent = Model0; |
| 15 | + | Part1.Parent = Model0 |
| 16 | - | Part1.CFrame = CFrame.new(-10.5516481, 3.84958363, -39.6669617, -0.139173076, 0, 0.990268052, 0, 1, 0, -0.990268052, 0, -0.139173076); |
| 16 | + | Part1.CFrame = CFrame.new(-10.5516481, 3.84958363, -39.6669617, -0.139173076, 0, 0.990268052, 0, 1, 0, -0.990268052, 0, -0.139173076) |
| 17 | - | Part1.Orientation = Vector3.new(0, 98, 0); |
| 17 | + | Part1.Orientation = Vector3.new(0, 98, 0) |
| 18 | - | Part1.Position = Vector3.new(-10.551648139954, 3.8495836257935, -39.666961669922); |
| 18 | + | Part1.Position = Vector3.new(-10.551648139954, 3.8495836257935, -39.666961669922) |
| 19 | - | Part1.Rotation = Vector3.new(-180, 82, -180); |
| 19 | + | Part1.Rotation = Vector3.new(-180, 82, -180) |
| 20 | - | Part1.Size = Vector3.new(1, 1, 1); |
| 20 | + | Part1.Size = Vector3.new(1, 1, 1) |
| 21 | - | Part1.BottomSurface = Enum.SurfaceType.Smooth; |
| 21 | + | Part1.BottomSurface = Enum.SurfaceType.Smooth |
| 22 | - | Part1.TopSurface = Enum.SurfaceType.Smooth; |
| 22 | + | Part1.TopSurface = Enum.SurfaceType.Smooth |
| 23 | - | SpecialMesh2.Name = "SpecialMesh"; |
| 23 | + | SpecialMesh2.Name = "SpecialMesh" |
| 24 | - | SpecialMesh2.Parent = Part1; |
| 24 | + | SpecialMesh2.Parent = Part1 |
| 25 | - | SpecialMesh2.MeshId = "rbxassetid://6521980205"; |
| 25 | + | SpecialMesh2.MeshId = "rbxassetid://6521980205" |
| 26 | - | SpecialMesh2.Scale = Vector3.new(0.94999998807907, 0.95999997854233, 0.91000002622604); |
| 26 | + | SpecialMesh2.Scale = Vector3.new(0.94999998807907, 0.95999997854233, 0.91000002622604) |
| 27 | - | SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=6517665515"; |
| 27 | + | SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=6517665515" |
| 28 | - | SpecialMesh2.MeshType = Enum.MeshType.FileMesh; |
| 28 | + | SpecialMesh2.MeshType = Enum.MeshType.FileMesh |
| 29 | - | Part3.Name = "Head"; |
| 29 | + | Part3.Name = "Head" |
| 30 | - | Part3.Parent = Model0; |
| 30 | + | Part3.Parent = Model0 |
| 31 | - | Part3.CFrame = CFrame.new(-10.8355103, 4.5, -39.626709, 0, 0, 1, 0, 1, -0, -1, 0, 0); |
| 31 | + | Part3.CFrame = CFrame.new(-10.8355103, 4.5, -39.626709, 0, 0, 1, 0, 1, -0, -1, 0, 0) |
| 32 | - | Part3.Orientation = Vector3.new(0, 90, 0); |
| 32 | + | Part3.Orientation = Vector3.new(0, 90, 0) |
| 33 | - | Part3.Position = Vector3.new(-10.835510253906, 4.5, -39.626708984375); |
| 33 | + | Part3.Position = Vector3.new(-10.835510253906, 4.5, -39.626708984375) |
| 34 | - | Part3.Rotation = Vector3.new(0, 90, 0); |
| 34 | + | Part3.Rotation = Vector3.new(0, 90, 0) |
| 35 | - | Part3.Size = Vector3.new(2, 1, 1); |
| 35 | + | Part3.Size = Vector3.new(2, 1, 1) |
| 36 | - | Part3.BottomSurface = Enum.SurfaceType.Smooth; |
| 36 | + | Part3.BottomSurface = Enum.SurfaceType.Smooth |
| 37 | - | Part3.TopSurface = Enum.SurfaceType.Smooth; |
| 37 | + | Part3.TopSurface = Enum.SurfaceType.Smooth |
| 38 | - | Decal4.Name = "Face"; |
| 38 | + | Decal4.Name = "Face" |
| 39 | - | Decal4.Parent = Part3; |
| 39 | + | Decal4.Parent = Part3 |
| 40 | - | Decal4.Texture = "rbxasset://textures/face.png"; |
| 40 | + | Decal4.Texture = "rbxasset://textures/face.png" |
| 41 | - | SpecialMesh5.Parent = Part3; |
| 41 | + | SpecialMesh5.Parent = Part3 |
| 42 | - | SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25); |
| 42 | + | SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25) |
| 43 | - | Weld6.Name = "Hair"; |
| 43 | + | Weld6.Name = "Hair" |
| 44 | - | Weld6.Parent = Part3; |
| 44 | + | Weld6.Parent = Part3 |
| 45 | - | Weld6.C0 = CFrame.new(0.0402526855, -0.650416374, 0.283862114, 0.990268052, 0, 0.139173076, 0, 1, 0, -0.139173076, 0, 0.990268052); |
| 45 | + | Weld6.C0 = CFrame.new(0.0402526855, -0.650416374, 0.283862114, 0.990268052, 0, 0.139173076, 0, 1, 0, -0.139173076, 0, 0.990268052) |
| 46 | - | Weld6.Part0 = Part3; |
| 46 | + | Weld6.Part0 = Part3 |
| 47 | - | Weld6.Part1 = Part1; |
| 47 | + | Weld6.Part1 = Part1 |
| 48 | - | Weld6.part1 = Part1; |
| 48 | + | Weld6.part1 = Part1 |
| 49 | - | Weld7.Name = "Mask"; |
| 49 | + | Weld7.Name = "Mask" |
| 50 | - | Weld7.Parent = Part3; |
| 50 | + | Weld7.Parent = Part3 |
| 51 | - | Weld7.C0 = CFrame.new(0.000289916992, 0, -0.0448408127, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994); |
| 51 | + | Weld7.C0 = CFrame.new(0.000289916992, 0, -0.0448408127, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994) |
| 52 | - | Weld7.Part0 = Part3; |
| 52 | + | Weld7.Part0 = Part3 |
| 53 | - | Weld7.Part1 = Part8; |
| 53 | + | Weld7.Part1 = Part8 |
| 54 | - | Weld7.part1 = Part8; |
| 54 | + | Weld7.part1 = Part8 |
| 55 | - | Part8.Name = "Mask"; |
| 55 | + | Part8.Name = "Mask" |
| 56 | - | Part8.Parent = Model0; |
| 56 | + | Part8.Parent = Model0 |
| 57 | - | Part8.CFrame = CFrame.new(-10.8803511, 4.5, -39.6269989, 0, 0, 0.99999994, 0, 1, 0, -0.99999994, 0, 0); |
| 57 | + | Part8.CFrame = CFrame.new(-10.8803511, 4.5, -39.6269989, 0, 0, 0.99999994, 0, 1, 0, -0.99999994, 0, 0) |
| 58 | - | Part8.Orientation = Vector3.new(0, 90, 0); |
| 58 | + | Part8.Orientation = Vector3.new(0, 90, 0) |
| 59 | - | Part8.Position = Vector3.new(-10.880351066589, 4.5, -39.626998901367); |
| 59 | + | Part8.Position = Vector3.new(-10.880351066589, 4.5, -39.626998901367) |
| 60 | - | Part8.Rotation = Vector3.new(0, 89.980003356934, 0); |
| 60 | + | Part8.Rotation = Vector3.new(0, 89.980003356934, 0) |
| 61 | - | Part8.Size = Vector3.new(1, 1, 1); |
| 61 | + | Part8.Size = Vector3.new(1, 1, 1) |
| 62 | - | Part8.BottomSurface = Enum.SurfaceType.Smooth; |
| 62 | + | Part8.BottomSurface = Enum.SurfaceType.Smooth |
| 63 | - | Part8.TopSurface = Enum.SurfaceType.Smooth; |
| 63 | + | Part8.TopSurface = Enum.SurfaceType.Smooth |
| 64 | - | SpecialMesh9.Name = "SpecialMesh"; |
| 64 | + | SpecialMesh9.Name = "SpecialMesh" |
| 65 | - | SpecialMesh9.Parent = Part8; |
| 65 | + | SpecialMesh9.Parent = Part8 |
| 66 | - | SpecialMesh9.MeshId = "rbxassetid://5728632913"; |
| 66 | + | SpecialMesh9.MeshId = "rbxassetid://5728632913" |
| 67 | - | SpecialMesh9.TextureId = "http://www.roblox.com/asset/?id=4809181158"; |
| 67 | + | SpecialMesh9.TextureId = "http://www.roblox.com/asset/?id=4809181158" |
| 68 | - | SpecialMesh9.MeshType = Enum.MeshType.FileMesh; |
| 68 | + | SpecialMesh9.MeshType = Enum.MeshType.FileMesh |
| 69 | - | Weld10.Name = "Hair"; |
| 69 | + | Weld10.Name = "Hair" |
| 70 | - | Weld10.Parent = Part8; |
| 70 | + | Weld10.Parent = Part8 |
| 71 | - | Weld10.C0 = CFrame.new(0.0399627686, -0.650416374, 0.328702927, 0.990268052, 0, 0.139173076, 0, 1, 0, -0.139173076, 0, 0.990268052); |
| 71 | + | Weld10.C0 = CFrame.new(0.0399627686, -0.650416374, 0.328702927, 0.990268052, 0, 0.139173076, 0, 1, 0, -0.139173076, 0, 0.990268052) |
| 72 | - | Weld10.Part0 = Part8; |
| 72 | + | Weld10.Part0 = Part8 |
| 73 | - | Weld10.Part1 = Part1; |
| 73 | + | Weld10.Part1 = Part1 |
| 74 | - | Weld10.part1 = Part1; |
| 74 | + | Weld10.part1 = Part1 |
| 75 | - | return Model0; |
| 75 | + | return Model0 |
| 76 | end | |
| 77 | - | function creategun() |
| 77 | + | local mas = Instance.new("Model",game:GetService("Lighting"))
|
| 78 | - | local Model0 = Instance.new("Model")
|
| 78 | + | local Model0 = Instance.new("Model")
|
| 79 | - | local Part1 = Instance.new("Part")
|
| 79 | + | local Part1 = Instance.new("Part")
|
| 80 | - | local SpecialMesh2 = Instance.new("SpecialMesh")
|
| 80 | + | local ParticleEmitter2 = Instance.new("ParticleEmitter")
|
| 81 | - | local Weld3 = Instance.new("Weld")
|
| 81 | + | local Part3 = Instance.new("Part")
|
| 82 | - | local Part4 = Instance.new("Part")
|
| 82 | + | local Weld4 = Instance.new("Weld")
|
| 83 | - | local Part5 = Instance.new("Part")
|
| 83 | + | local Part5 = Instance.new("Part")
|
| 84 | - | local Weld6 = Instance.new("Weld")
|
| 84 | + | local Weld6 = Instance.new("Weld")
|
| 85 | - | Model0.Name = "GunModel" |
| 85 | + | local SpecialMesh7 = Instance.new("SpecialMesh")
|
| 86 | - | Model0.PrimaryPart = Part1 |
| 86 | + | Model0.Name = "Main" |
| 87 | - | Part1.Name = "gun" |
| 87 | + | Model0.Parent = mas |
| 88 | - | Part1.Parent = Model0 |
| 88 | + | Model0.PrimaryPart = Part1 |
| 89 | - | Part1.CFrame = CFrame.new(-36.0459862, 2.68512678, 5.4637394, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 89 | + | Part1.Name = "Hitbox" |
| 90 | - | Part1.Position = Vector3.new(-36.045986175537, 2.6851267814636, 5.4637393951416) |
| 90 | + | Part1.Parent = Model0 |
| 91 | - | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
| 91 | + | Part1.CFrame = CFrame.new(-65.1884003, 2.34880948, 29.0725231, 1, 0, 0, 0, 1, 4.37113883e-08, 0, -4.37113883e-08, 1) |
| 92 | - | Part1.Size = Vector3.new(0.20847088098526, 0.94680535793304, 6.3699998855591) |
| 92 | + | Part1.Position = Vector3.new(-65.188400268555, 2.3488094806671, 29.072523117065) |
| 93 | - | Part1.BottomSurface = Enum.SurfaceType.Smooth |
| 93 | + | Part1.Transparency = 1 |
| 94 | - | Part1.BrickColor = BrickColor.new("Really black")
|
| 94 | + | Part1.Size = Vector3.new(0.0010000000474975, 0.6583531498909, 11.325116157532) |
| 95 | - | Part1.CanCollide = false |
| 95 | + | Part1.BottomSurface = Enum.SurfaceType.Smooth |
| 96 | - | Part1.Locked = true |
| 96 | + | Part1.CanCollide = false |
| 97 | - | Part1.Reflectance = -100 |
| 97 | + | Part1.TopSurface = Enum.SurfaceType.Smooth |
| 98 | - | Part1.TopSurface = Enum.SurfaceType.Smooth |
| 98 | + | ParticleEmitter2.Parent = Part1 |
| 99 | - | Part1.brickColor = BrickColor.new("Really black")
|
| 99 | + | ParticleEmitter2.Speed = NumberRange.new(0, 0) |
| 100 | - | SpecialMesh2.Parent = Part1 |
| 100 | + | ParticleEmitter2.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0.117647, 0.117647, 0.117647)) |
| 101 | - | SpecialMesh2.MeshId = "rbxassetid://7515835851" |
| 101 | + | ParticleEmitter2.LightInfluence = 1 |
| 102 | - | SpecialMesh2.Scale = Vector3.new(0.45717298984528, 0.4571730196476, 0.45717298984528) |
| 102 | + | ParticleEmitter2.Texture = "rbxassetid://603193846" |
| 103 | - | SpecialMesh2.MeshType = Enum.MeshType.FileMesh |
| 103 | + | ParticleEmitter2.Transparency = NumberSequence.new(0,1) |
| 104 | - | Weld3.Name = "Bullet" |
| 104 | + | ParticleEmitter2.ZOffset = 1 |
| 105 | - | Weld3.Parent = Part1 |
| 105 | + | ParticleEmitter2.Size = NumberSequence.new(0.3125,0) |
| 106 | - | Weld3.C0 = CFrame.new(0, 0.313477516, -3.12394595, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 106 | + | ParticleEmitter2.Acceleration = Vector3.new(0, 5, 0) |
| 107 | - | Weld3.Part0 = Part1 |
| 107 | + | ParticleEmitter2.EmissionDirection = Enum.NormalId.Back |
| 108 | - | Weld3.Part1 = Part4 |
| 108 | + | ParticleEmitter2.Lifetime = NumberRange.new(0.75, 1) |
| 109 | - | Weld3.part1 = Part4 |
| 109 | + | ParticleEmitter2.Rate = 3000 |
| 110 | - | Part4.Name = "Bullet" |
| 110 | + | Part3.Name = "Handle" |
| 111 | - | Part4.Parent = Model0 |
| 111 | + | Part3.Parent = Model0 |
| 112 | - | Part4.CFrame = CFrame.new(-36.0459862, 2.9986043, 2.33979344, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 112 | + | Part3.CFrame = CFrame.new(-65.2248993, 3.1950767, 37.3521118, 1, 0, 0, 0, 0.985921264, -0.167210802, 0, 0.167210802, 0.985921264) |
| 113 | - | Part4.Position = Vector3.new(-36.045986175537, 2.9986042976379, 2.3397934436798) |
| 113 | + | Part3.Orientation = Vector3.new(9.6300001144409, 0, 0) |
| 114 | - | Part4.Size = Vector3.new(0.10000000149012, 0.10000000149012, 0.10000000149012) |
| 114 | + | Part3.Position = Vector3.new(-65.224899291992, 3.1950767040253, 37.352111816406) |
| 115 | - | Part4.BottomSurface = Enum.SurfaceType.Smooth |
| 115 | + | Part3.Rotation = Vector3.new(9.6300001144409, 0, 0) |
| 116 | - | Part4.CanCollide = false |
| 116 | + | Part3.Transparency = 1 |
| 117 | - | Part4.Locked = true |
| 117 | + | Part3.Size = Vector3.new(1, 2, 1) |
| 118 | - | Part4.TopSurface = Enum.SurfaceType.Smooth |
| 118 | + | Part3.BottomSurface = Enum.SurfaceType.Smooth |
| 119 | - | Part5.Name = "Handle" |
| 119 | + | Part3.CanCollide = false |
| 120 | - | Part5.Parent = Model0 |
| 120 | + | Part3.TopSurface = Enum.SurfaceType.Smooth |
| 121 | - | Part5.CFrame = CFrame.new(-36.0605736, 3.12793541, 7.73314953, 1, 0, 0, 0, 0.464352816, -0.885652781, 0, 0.885652781, 0.464352816) |
| 121 | + | Weld4.Name = "Sword" |
| 122 | - | Part5.Orientation = Vector3.new(62.330001831055, 0, 0) |
| 122 | + | Weld4.Parent = Part3 |
| 123 | - | Part5.Position = Vector3.new(-36.060573577881, 3.1279354095459, 7.7331495285034) |
| 123 | + | Weld4.C0 = CFrame.new(0.0368614197, -0.65113759, -6.00376034, 1, 0, 0, 0, 0, 1, 0, -1, 0) |
| 124 | - | Part5.Rotation = Vector3.new(62.330001831055, 0, 0) |
| 124 | + | Weld4.C1 = CFrame.new(0, 0, 1.20799994, 1, 0, 0, 0, 0.985921264, -0.167210847, 0, 0.167210847, 0.985921264) |
| 125 | - | Part5.Size = Vector3.new(1, 2, 1) |
| 125 | + | Weld4.Part0 = Part3 |
| 126 | - | Part5.BottomSurface = Enum.SurfaceType.Smooth |
| 126 | + | Weld4.Part1 = Part5 |
| 127 | - | Part5.CanCollide = false |
| 127 | + | Weld4.part1 = Part5 |
| 128 | - | Part5.Locked = true |
| 128 | + | Part5.Name = "Sword" |
| 129 | - | Part5.TopSurface = Enum.SurfaceType.Smooth |
| 129 | + | Part5.Parent = Model0 |
| 130 | - | Weld6.Name = "gun" |
| 130 | + | Part5.CFrame = CFrame.new(-65.1880417, 2.34899998, 31.3239994, 1, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08) |
| 131 | - | Weld6.Parent = Part5 |
| 131 | + | Part5.Orientation = Vector3.new(-90, 0, 0) |
| 132 | - | Weld6.C0 = CFrame.new(0.0725860596, -2.21551895, -0.661629438, 1, 0, 0, 0, 0.464352816, 0.885652781, 0, -0.885652781, 0.464352816) |
| 132 | + | Part5.Position = Vector3.new(-65.188041687012, 2.3489999771118, 31.323999404907) |
| 133 | - | Weld6.C1 = CFrame.new(0.0580000021, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 133 | + | Part5.Rotation = Vector3.new(-90, 0, 0) |
| 134 | - | Weld6.Part0 = Part5 |
| 134 | + | Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
| 135 | - | Weld6.Part1 = Part1 |
| 135 | + | Part5.Size = Vector3.new(0.67699998617172, 15.430000305176, 1.5319999456406) |
| 136 | - | Weld6.part1 = Part1 |
| 136 | + | Part5.BottomSurface = Enum.SurfaceType.Smooth |
| 137 | - | return Model0 |
| 137 | + | Part5.BrickColor = BrickColor.new("Really black")
|
| 138 | Part5.CanCollide = false | |
| 139 | - | function creategun2() |
| 139 | + | Part5.TopSurface = Enum.SurfaceType.Smooth |
| 140 | - | local Model0 = Instance.new("Model")
|
| 140 | + | Part5.brickColor = BrickColor.new("Really black")
|
| 141 | - | local Part1 = Instance.new("Part")
|
| 141 | + | Weld6.Name = "Hitbox" |
| 142 | - | local Part2 = Instance.new("Part")
|
| 142 | + | Weld6.Parent = Part5 |
| 143 | - | local SpecialMesh3 = Instance.new("SpecialMesh")
|
| 143 | + | Weld6.C0 = CFrame.new(-0.000358581543, 2.25147676, -0.000190496445, 1, 0, 0, 0, 0, -1, 0, 1, 0) |
| 144 | - | local Weld4 = Instance.new("Weld")
|
| 144 | + | Weld6.Part0 = Part5 |
| 145 | - | local Part5 = Instance.new("Part")
|
| 145 | + | Weld6.Part1 = Part1 |
| 146 | - | local Weld6 = Instance.new("Weld")
|
| 146 | + | Weld6.part1 = Part1 |
| 147 | - | Model0.Name = "Gun" |
| 147 | + | SpecialMesh7.Parent = Part5 |
| 148 | - | Model0.PrimaryPart = Part2 |
| 148 | + | SpecialMesh7.MeshId = "rbxassetid://7513632006" |
| 149 | - | Part1.Name = "Handle" |
| 149 | + | SpecialMesh7.MeshType = Enum.MeshType.FileMesh |
| 150 | - | Part1.Parent = Model0 |
| 150 | + | local swordmodel = nil |
| 151 | - | Part1.CFrame = CFrame.new(-56.3740005, 3.78794551, 7.83799982, 1, 3.82137432e-15, -8.74228334e-08, -3.82137093e-15, 1.00000095, 3.34075197e-22, 8.74227837e-08, 1.26217745e-28, 1.00000072) |
| 151 | + | for i,v in pairs(mas:GetChildren()) do |
| 152 | - | Part1.Position = Vector3.new(-56.374000549316, 3.7879455089569, 7.8379998207092) |
| 152 | + | v.Parent = workspace |
| 153 | - | Part1.Transparency = 1 |
| 153 | + | swordmodel = v |
| 154 | - | Part1.Size = Vector3.new(1, 2, 1) |
| 154 | + | pcall(function() v:MakeJoints() end) |
| 155 | - | Part1.BottomSurface = Enum.SurfaceType.Smooth |
| 155 | + | |
| 156 | - | Part1.CanCollide = false |
| 156 | + | mas:Destroy() |
| 157 | - | Part1.TopSurface = Enum.SurfaceType.Smooth |
| 157 | + | |
| 158 | - | Part2.Name = "Gun" |
| 158 | + | |
| 159 | - | Part2.Parent = Model0 |
| 159 | + | |
| 160 | - | Part2.CFrame = CFrame.new(-56.3740005, 2.14700007, 7.55256653, -1, 8.74227624e-08, -3.82137093e-15, 3.82137093e-15, 0, -1, -8.74227766e-08, -0.999999881, -3.34074869e-22) |
| 160 | + | |
| 161 | - | Part2.Orientation = Vector3.new(90, 180, 0) |
| 161 | + | |
| 162 | - | Part2.Position = Vector3.new(-56.374000549316, 2.1470000743866, 7.5525665283203) |
| 162 | + | |
| 163 | - | Part2.Rotation = Vector3.new(90, 0, -180) |
| 163 | + | |
| 164 | - | Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
| 164 | + | |
| 165 | - | Part2.Size = Vector3.new(0.37797310948372, 0.94999998807907, 2.6956248283386) |
| 165 | + | |
| 166 | - | Part2.BottomSurface = Enum.SurfaceType.Smooth |
| 166 | + | |
| 167 | - | Part2.BrickColor = BrickColor.new("Really black")
|
| 167 | + | |
| 168 | - | Part2.Reflectance = -1000 |
| 168 | + | |
| 169 | - | Part2.TopSurface = Enum.SurfaceType.Smooth |
| 169 | + | |
| 170 | - | Part2.brickColor = BrickColor.new("Really black")
|
| 170 | + | |
| 171 | - | Part2.CanCollide = false |
| 171 | + | |
| 172 | - | SpecialMesh3.Parent = Part2 |
| 172 | + | |
| 173 | - | SpecialMesh3.MeshId = "rbxassetid://7523374921" |
| 173 | + | |
| 174 | - | SpecialMesh3.Scale = Vector3.new(0.38372907042503, 0.38372913002968, 0.38372910022736) |
| 174 | + | |
| 175 | - | SpecialMesh3.MeshType = Enum.MeshType.FileMesh |
| 175 | + | |
| 176 | - | Weld4.Name = "Handle" |
| 176 | + | |
| 177 | - | Weld4.Parent = Part2 |
| 177 | + | |
| 178 | - | Weld4.C0 = CFrame.new(0, -0.285433292, -1.64094543, -1, 4.23516474e-22, 0, -7.10542736e-15, 3.34075096e-22, -1.00000083, -2.92057526e-29, -1.00000095, -3.34075197e-22) |
| 178 | + | |
| 179 | - | Weld4.Part0 = Part2 |
| 179 | + | |
| 180 | - | Weld4.Part1 = Part1 |
| 180 | + | |
| 181 | - | Weld4.part1 = Part1 |
| 181 | + | |
| 182 | - | Part5.Name = "Bullet" |
| 182 | + | |
| 183 | - | Part5.Parent = Model0 |
| 183 | + | |
| 184 | - | Part5.CFrame = CFrame.new(-56.3740005, 0.811995029, 7.22424364, 1, 0, 2.13162821e-14, 0, 1, 0, 2.13162821e-14, 0, 0.999999762) |
| 184 | + | |
| 185 | - | Part5.Position = Vector3.new(-56.374000549316, 0.81199502944946, 7.2242436408997) |
| 185 | + | |
| 186 | - | Part5.Transparency = 1 |
| 186 | + | |
| 187 | - | Part5.Size = Vector3.new(0.10000000149012, 0.10000000149012, 0.10000000149012) |
| 187 | + | |
| 188 | - | Part5.BottomSurface = Enum.SurfaceType.Smooth |
| 188 | + | |
| 189 | - | Part5.TopSurface = Enum.SurfaceType.Smooth |
| 189 | + | |
| 190 | - | Part5.CanCollide = false |
| 190 | + | |
| 191 | - | Weld6.Name = "Part" |
| 191 | + | |
| 192 | - | Weld6.Parent = Part5 |
| 192 | + | |
| 193 | - | Weld6.C0 = CFrame.new(0, 1.33500504, 0.328322887, -1, 8.74227624e-08, -3.82137093e-15, 3.82137093e-15, 0, -1, -8.74227766e-08, -0.999999881, -3.34074869e-22) |
| 193 | + | |
| 194 | - | Weld6.Part0 = Part5 |
| 194 | + | |
| 195 | - | Weld6.Part1 = Part2 |
| 195 | + | |
| 196 | - | Weld6.part1 = Part2 |
| 196 | + | |
| 197 | - | return Model0 |
| 197 | + | |
| 198 | RH=Torso["Right Hip"] | |
| 199 | - | function createsword() |
| 199 | + | |
| 200 | - | local Model0 = Instance.new("Model")
|
| 200 | + | |
| 201 | - | local Part1 = Instance.new("Part")
|
| 201 | + | |
| 202 | - | local ParticleEmitter2 = Instance.new("ParticleEmitter")
|
| 202 | + | |
| 203 | - | local Part3 = Instance.new("Part")
|
| 203 | + | |
| 204 | - | local Weld4 = Instance.new("Weld")
|
| 204 | + | |
| 205 | - | local Part5 = Instance.new("Part")
|
| 205 | + | |
| 206 | - | local Weld6 = Instance.new("Weld")
|
| 206 | + | |
| 207 | - | local SpecialMesh7 = Instance.new("SpecialMesh")
|
| 207 | + | |
| 208 | - | Model0.Name = "Main" |
| 208 | + | |
| 209 | - | Model0.PrimaryPart = Part1 |
| 209 | + | |
| 210 | - | Part1.Name = "Hitbox" |
| 210 | + | |
| 211 | - | Part1.Parent = Model0 |
| 211 | + | |
| 212 | - | Part1.CFrame = CFrame.new(-65.1884003, 2.34880948, 29.0725231, 1, 0, 0, 0, 1, 4.37113883e-08, 0, -4.37113883e-08, 1) |
| 212 | + | |
| 213 | - | Part1.Position = Vector3.new(-65.188400268555, 2.3488094806671, 29.072523117065) |
| 213 | + | |
| 214 | - | Part1.Transparency = 1 |
| 214 | + | |
| 215 | - | Part1.Size = Vector3.new(0.0010000000474975, 0.6583531498909, 11.325116157532) |
| 215 | + | |
| 216 | - | Part1.BottomSurface = Enum.SurfaceType.Smooth |
| 216 | + | |
| 217 | - | Part1.CanCollide = false |
| 217 | + | |
| 218 | - | Part1.TopSurface = Enum.SurfaceType.Smooth |
| 218 | + | |
| 219 | - | ParticleEmitter2.Parent = Part1 |
| 219 | + | |
| 220 | - | ParticleEmitter2.Speed = NumberRange.new(0, 0) |
| 220 | + | |
| 221 | - | ParticleEmitter2.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0.117647, 0.117647, 0.117647)) |
| 221 | + | |
| 222 | - | ParticleEmitter2.LightInfluence = 1 |
| 222 | + | |
| 223 | - | ParticleEmitter2.Texture = "rbxassetid://603193846" |
| 223 | + | |
| 224 | - | ParticleEmitter2.Transparency = NumberSequence.new(0,1) |
| 224 | + | |
| 225 | - | ParticleEmitter2.ZOffset = 1 |
| 225 | + | |
| 226 | - | ParticleEmitter2.Size = NumberSequence.new(0.3125,0) |
| 226 | + | |
| 227 | - | ParticleEmitter2.Acceleration = Vector3.new(0, 5, 0) |
| 227 | + | |
| 228 | - | ParticleEmitter2.EmissionDirection = Enum.NormalId.Back |
| 228 | + | |
| 229 | - | ParticleEmitter2.Lifetime = NumberRange.new(0.75, 1) |
| 229 | + | |
| 230 | - | ParticleEmitter2.Rate = 3000 |
| 230 | + | |
| 231 | - | Part3.Name = "Handle" |
| 231 | + | |
| 232 | - | Part3.Parent = Model0 |
| 232 | + | -- |
| 233 | - | Part3.CFrame = CFrame.new(-65.2248993, 3.1950767, 37.3521118, 1, 0, 0, 0, 0.985921264, -0.167210802, 0, 0.167210802, 0.985921264) |
| 233 | + | |
| 234 | - | Part3.Orientation = Vector3.new(9.6300001144409, 0, 0) |
| 234 | + | |
| 235 | - | Part3.Position = Vector3.new(-65.224899291992, 3.1950767040253, 37.352111816406) |
| 235 | + | -- |
| 236 | - | Part3.Rotation = Vector3.new(9.6300001144409, 0, 0) |
| 236 | + | |
| 237 | - | Part3.Transparency = 1 |
| 237 | + | |
| 238 | - | Part3.Size = Vector3.new(1, 2, 1) |
| 238 | + | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) |
| 239 | - | Part3.BottomSurface = Enum.SurfaceType.Smooth |
| 239 | + | |
| 240 | - | Part3.CanCollide = false |
| 240 | + | |
| 241 | - | Part3.TopSurface = Enum.SurfaceType.Smooth |
| 241 | + | |
| 242 | - | Weld4.Name = "Sword" |
| 242 | + | -- |
| 243 | - | Weld4.Parent = Part3 |
| 243 | + | |
| 244 | - | Weld4.C0 = CFrame.new(0.0368614197, -0.65113759, -6.00376034, 1, 0, 0, 0, 0, 1, 0, -1, 0) |
| 244 | + | |
| 245 | - | Weld4.C1 = CFrame.new(0, 0, 1.20799994, 1, 0, 0, 0, 0.985921264, -0.167210847, 0, 0.167210847, 0.985921264) |
| 245 | + | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) |
| 246 | - | Weld4.Part0 = Part3 |
| 246 | + | |
| 247 | - | Weld4.Part1 = Part5 |
| 247 | + | |
| 248 | - | Weld4.part1 = Part5 |
| 248 | + | |
| 249 | - | Part5.Name = "Sword" |
| 249 | + | |
| 250 | - | Part5.Parent = Model0 |
| 250 | + | |
| 251 | - | Part5.CFrame = CFrame.new(-65.1880417, 2.34899998, 31.3239994, 1, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08) |
| 251 | + | |
| 252 | - | Part5.Orientation = Vector3.new(-90, 0, 0) |
| 252 | + | |
| 253 | - | Part5.Position = Vector3.new(-65.188041687012, 2.3489999771118, 31.323999404907) |
| 253 | + | |
| 254 | - | Part5.Rotation = Vector3.new(-90, 0, 0) |
| 254 | + | |
| 255 | - | Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
| 255 | + | |
| 256 | - | Part5.Size = Vector3.new(0.67699998617172, 15.430000305176, 1.5319999456406) |
| 256 | + | |
| 257 | - | Part5.BottomSurface = Enum.SurfaceType.Smooth |
| 257 | + | |
| 258 | - | Part5.BrickColor = BrickColor.new("Really black")
|
| 258 | + | |
| 259 | - | Part5.CanCollide = false |
| 259 | + | |
| 260 | - | Part5.TopSurface = Enum.SurfaceType.Smooth |
| 260 | + | |
| 261 | - | Part5.brickColor = BrickColor.new("Really black")
|
| 261 | + | |
| 262 | - | Weld6.Name = "Hitbox" |
| 262 | + | |
| 263 | - | Weld6.Parent = Part5 |
| 263 | + | |
| 264 | - | Weld6.C0 = CFrame.new(-0.000358581543, 2.25147676, -0.000190496445, 1, 0, 0, 0, 0, -1, 0, 1, 0) |
| 264 | + | |
| 265 | - | Weld6.Part0 = Part5 |
| 265 | + | |
| 266 | - | Weld6.Part1 = Part1 |
| 266 | + | |
| 267 | - | Weld6.part1 = Part1 |
| 267 | + | |
| 268 | - | SpecialMesh7.Parent = Part5 |
| 268 | + | |
| 269 | - | SpecialMesh7.MeshId = "rbxassetid://7513632006" |
| 269 | + | |
| 270 | - | SpecialMesh7.MeshType = Enum.MeshType.FileMesh |
| 270 | + | |
| 271 | - | return Model0 |
| 271 | + | |
| 272 | local startInterp, finishInterp; | |
| 273 | - | function createsword2() |
| 273 | + | |
| 274 | - | local Model0 = Instance.new("Model")
|
| 274 | + | |
| 275 | - | local Part1 = Instance.new("Part")
|
| 275 | + | |
| 276 | - | local Weld2 = Instance.new("Weld")
|
| 276 | + | |
| 277 | - | local Part3 = Instance.new("Part")
|
| 277 | + | |
| 278 | - | local SpecialMesh4 = Instance.new("SpecialMesh")
|
| 278 | + | |
| 279 | - | local Weld5 = Instance.new("Weld")
|
| 279 | + | |
| 280 | - | local Weld6 = Instance.new("Weld")
|
| 280 | + | |
| 281 | - | local Weld7 = Instance.new("Weld")
|
| 281 | + | |
| 282 | - | local Weld8 = Instance.new("Weld")
|
| 282 | + | |
| 283 | - | local Part9 = Instance.new("Part")
|
| 283 | + | |
| 284 | - | local Part10 = Instance.new("Part")
|
| 284 | + | |
| 285 | - | local Part11 = Instance.new("Part")
|
| 285 | + | |
| 286 | - | local Part12 = Instance.new("Part")
|
| 286 | + | |
| 287 | - | Model0.Name = "Sword2" |
| 287 | + | |
| 288 | - | Model0.PrimaryPart = Part1 |
| 288 | + | |
| 289 | - | Part1.Name = "Handle" |
| 289 | + | |
| 290 | - | Part1.Parent = Model0 |
| 290 | + | |
| 291 | - | Part1.CFrame = CFrame.new(-57.4780884, 3.45233488, 9.50007629, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 291 | + | |
| 292 | - | Part1.Position = Vector3.new(-57.478088378906, 3.4523348808289, 9.5000762939453) |
| 292 | + | |
| 293 | - | Part1.Transparency = 1 |
| 293 | + | |
| 294 | - | Part1.Size = Vector3.new(1, 2, 1) |
| 294 | + | |
| 295 | - | Part1.BottomSurface = Enum.SurfaceType.Smooth |
| 295 | + | |
| 296 | - | Part1.CanCollide = false |
| 296 | + | |
| 297 | - | Part1.Locked = true |
| 297 | + | |
| 298 | - | Part1.TopSurface = Enum.SurfaceType.Smooth |
| 298 | + | |
| 299 | - | Weld2.Name = "Sword" |
| 299 | + | |
| 300 | - | Weld2.Parent = Part1 |
| 300 | + | |
| 301 | - | Weld2.C0 = CFrame.new(-0.111911774, -0.549632311, -4.20755672, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1) |
| 301 | + | |
| 302 | - | Weld2.Part0 = Part1 |
| 302 | + | |
| 303 | - | Weld2.Part1 = Part3 |
| 303 | + | |
| 304 | - | Weld2.part1 = Part3 |
| 304 | + | |
| 305 | - | Part3.Name = "Sword" |
| 305 | + | |
| 306 | - | Part3.Parent = Model0 |
| 306 | + | |
| 307 | - | Part3.CFrame = CFrame.new(-57.5900002, 2.90270257, 5.29251957, -1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, -1) |
| 307 | + | |
| 308 | - | Part3.Orientation = Vector3.new(0, 180, 0) |
| 308 | + | |
| 309 | - | Part3.Position = Vector3.new(-57.590000152588, 2.9027025699615, 5.292519569397) |
| 309 | + | |
| 310 | - | Part3.Rotation = Vector3.new(-180, 0, -180) |
| 310 | + | |
| 311 | - | Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) |
| 311 | + | |
| 312 | - | Part3.Size = Vector3.new(0.3568326830864, 1.1743521690369, 11.178980827332) |
| 312 | + | |
| 313 | - | Part3.BottomSurface = Enum.SurfaceType.Smooth |
| 313 | + | |
| 314 | - | Part3.BrickColor = BrickColor.new("Really black")
|
| 314 | + | |
| 315 | - | Part3.CanCollide = false |
| 315 | + | |
| 316 | - | Part3.Locked = true |
| 316 | + | |
| 317 | - | Part3.TopSurface = Enum.SurfaceType.Smooth |
| 317 | + | |
| 318 | - | Part3.brickColor = BrickColor.new("Really black")
|
| 318 | + | |
| 319 | - | SpecialMesh4.Parent = Part3 |
| 319 | + | |
| 320 | - | SpecialMesh4.MeshId = "rbxassetid://7527652353" |
| 320 | + | |
| 321 | - | SpecialMesh4.Scale = Vector3.new(0.53258603811264, 0.53258603811264, 0.53258603811264) |
| 321 | + | |
| 322 | - | SpecialMesh4.MeshType = Enum.MeshType.FileMesh |
| 322 | + | |
| 323 | - | Weld5.Name = "Hitbox0" |
| 323 | + | |
| 324 | - | Weld5.Parent = Part3 |
| 324 | + | |
| 325 | - | Weld5.C0 = CFrame.new(0.00191879272, 0.087678194, 5.09866619, -1, -4.63827234e-08, -7.41038804e-08, 0, 0.847649574, -0.5305565, 8.74227766e-08, -0.5305565, -0.847649574) |
| 325 | + | |
| 326 | - | Weld5.Part0 = Part3 |
| 326 | + | |
| 327 | - | Weld5.Part1 = Part10 |
| 327 | + | |
| 328 | - | Weld5.part1 = Part10 |
| 328 | + | |
| 329 | - | Weld6.Name = "Hitbox1" |
| 329 | + | |
| 330 | - | Weld6.Parent = Part3 |
| 330 | + | |
| 331 | - | Weld6.C0 = CFrame.new(0.0409698486, -0.228977919, 1.76255965, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1) |
| 331 | + | |
| 332 | - | Weld6.Part0 = Part3 |
| 332 | + | |
| 333 | - | Weld6.Part1 = Part9 |
| 333 | + | |
| 334 | - | Weld6.part1 = Part9 |
| 334 | + | |
| 335 | - | Weld7.Name = "Hitbox2" |
| 335 | + | |
| 336 | - | Weld7.Parent = Part3 |
| 336 | + | |
| 337 | - | Weld7.C0 = CFrame.new(0.0409698486, -0.346400023, -2.01896858, -1, 3.68905511e-08, -7.92580224e-08, 0, 0.906606138, 0.421978712, 8.74227766e-08, 0.421978712, -0.906606138) |
| 337 | + | |
| 338 | - | Weld7.Part0 = Part3 |
| 338 | + | |
| 339 | - | Weld7.Part1 = Part12 |
| 339 | + | |
| 340 | - | Weld7.part1 = Part12 |
| 340 | + | |
| 341 | - | Weld8.Name = "Hitbox3" |
| 341 | + | |
| 342 | - | Weld8.Parent = Part3 |
| 342 | + | |
| 343 | - | Weld8.C0 = CFrame.new(0.0409698486, -0.32441926, -1.37172031, -1, -1.94975538e-08, -8.52208188e-08, 0, 0.974812508, -0.223026022, 8.74227766e-08, -0.223026022, -0.974812508) |
| 343 | + | |
| 344 | - | Weld8.Part0 = Part3 |
| 344 | + | |
| 345 | - | Weld8.Part1 = Part11 |
| 345 | + | |
| 346 | - | Weld8.part1 = Part11 |
| 346 | + | |
| 347 | - | Part9.Name = "Hitbox1" |
| 347 | + | |
| 348 | - | Part9.Parent = Model0 |
| 348 | + | |
| 349 | - | Part9.CFrame = CFrame.new(-57.63097, 2.67372465, 3.52995992, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
| 349 | + | |
| 350 | - | Part9.Position = Vector3.new(-57.630970001221, 2.6737246513367, 3.5299599170685) |
| 350 | + | |
| 351 | - | Part9.Transparency = 1 |
| 351 | + | |
| 352 | - | Part9.Size = Vector3.new(0.14361953735352, 0.11858534812927, 5.6687269210815) |
| 352 | + | |
| 353 | - | Part9.BottomSurface = Enum.SurfaceType.Smooth |
| 353 | + | |
| 354 | - | Part9.CanCollide = false |
| 354 | + | |
| 355 | - | Part9.Locked = true |
| 355 | + | |
| 356 | - | Part9.TopSurface = Enum.SurfaceType.Smooth |
| 356 | + | |
| 357 | - | Part10.Name = "Hitbox0" |
| 357 | + | |
| 358 | - | Part10.Parent = Model0 |
| 358 | + | |
| 359 | - | Part10.CFrame = CFrame.new(-57.5919189, 2.99038076, 0.193853378, 1, 0, 0, 0, 0.847649574, -0.5305565, 0, 0.5305565, 0.847649574) |
| 359 | + | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants |
| 360 | - | Part10.Orientation = Vector3.new(32.040000915527, 0, 0) |
| 360 | + | |
| 361 | - | Part10.Position = Vector3.new(-57.591918945313, 2.9903807640076, 0.1938533782959) |
| 361 | + | |
| 362 | - | Part10.Rotation = Vector3.new(32.040000915527, 0, 0) |
| 362 | + | |
| 363 | - | Part10.Transparency = 1 |
| 363 | + | |
| 364 | - | Part10.Size = Vector3.new(0.13296127319336, 0.11858534812927, 1.2458262443542) |
| 364 | + | |
| 365 | - | Part10.BottomSurface = Enum.SurfaceType.Smooth |
| 365 | + | |
| 366 | - | Part10.CanCollide = false |
| 366 | + | |
| 367 | - | Part10.Locked = true |
| 367 | + | |
| 368 | - | Part10.TopSurface = Enum.SurfaceType.Smooth |
| 368 | + | |
| 369 | - | Part11.Name = "Hitbox3" |
| 369 | + | |
| 370 | - | Part11.Parent = Model0 |
| 370 | + | |
| 371 | - | Part11.CFrame = CFrame.new(-57.63097, 2.57828331, 6.66423988, 1, 0, 0, 0, 0.974812508, -0.223026022, 0, 0.223026022, 0.974812508) |
| 371 | + | |
| 372 | - | Part11.Orientation = Vector3.new(12.890000343323, 0, 0) |
| 372 | + | |
| 373 | - | Part11.Position = Vector3.new(-57.630970001221, 2.5782833099365, 6.6642398834229) |
| 373 | + | |
| 374 | - | Part11.Rotation = Vector3.new(12.890000343323, 0, 0) |
| 374 | + | |
| 375 | - | Part11.Transparency = 1 |
| 375 | + | |
| 376 | - | Part11.Size = Vector3.new(0.14361953735352, 0.11858534812927, 0.9631462097168) |
| 376 | + | |
| 377 | - | Part11.BottomSurface = Enum.SurfaceType.Smooth |
| 377 | + | |
| 378 | - | Part11.CanCollide = false |
| 378 | + | |
| 379 | - | Part11.Locked = true |
| 379 | + | |
| 380 | - | Part11.TopSurface = Enum.SurfaceType.Smooth |
| 380 | + | |
| 381 | - | Part12.Name = "Hitbox2" |
| 381 | + | |
| 382 | - | Part12.Parent = Model0 |
| 382 | + | |
| 383 | - | Part12.CFrame = CFrame.new(-57.63097, 2.55630255, 7.31148815, 1, 0, 0, 0, 0.906606138, 0.421978712, 0, -0.421978712, 0.906606138) |
| 383 | + | |
| 384 | - | Part12.Orientation = Vector3.new(-24.959999084473, 0, 0) |
| 384 | + | |
| 385 | - | Part12.Position = Vector3.new(-57.630970001221, 2.5563025474548, 7.3114881515503) |
| 385 | + | |
| 386 | - | Part12.Rotation = Vector3.new(-24.959999084473, 0, 0) |
| 386 | + | |
| 387 | - | Part12.Transparency = 1 |
| 387 | + | |
| 388 | - | Part12.Size = Vector3.new(0.14361953735352, 0.11858534812927, 0.46920847892761) |
| 388 | + | |
| 389 | - | Part12.BottomSurface = Enum.SurfaceType.Smooth |
| 389 | + | |
| 390 | - | Part12.CanCollide = false |
| 390 | + | --idle |
| 391 | - | Part12.Locked = true |
| 391 | + | |
| 392 | - | Part12.TopSurface = Enum.SurfaceType.Smooth |
| 392 | + | |
| 393 | - | return Model0 |
| 393 | + | |
| 394 | Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(22.5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
| 395 | - | local swordmodel = createsword() |
| 395 | + | RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) |
| 396 | LW.C0=Clerp(LW.C0,cf(-1.25,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(75 - 1 * math.cos(sine / 8)),math.rad(0),math.rad(20)),.1) | |
| 397 | elseif torvel>2 and hitfloor~=nil then | |
| 398 | --Walk | |
| 399 | RH.C0=Clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1) | |
| 400 | LH.C0=Clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1) | |
| 401 | RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1) | |
| 402 | Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1) | |
| 403 | RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 10 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1) | |
| 404 | LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1) | |
| 405 | end | |
| 406 | ||
| 407 | end | |
| 408 | end | |
| 409 | ||
| 410 | game:GetService("RunService").Heartbeat:Connect(function(delta)
| |
| 411 | music:Resume() | |
| 412 | if Humanoid.MaxHealth < 999 then | |
| 413 | Humanoid.MaxHealth = 999 | |
| 414 | end | |
| 415 | if Humanoid.Health ~=Humanoid.MaxHealth then | |
| 416 | - | local gunmodel = creategun() |
| 416 | + | |
| 417 | - | gunmodel.Parent = char |
| 417 | + | |
| 418 | - | local weldgun = Instance.new("Weld",char:WaitForChild("Right Arm"))
|
| 418 | + | for i,v in pairs(swordmodel:GetChildren()) do |
| 419 | - | weldgun.Part0 = weldgun.Parent |
| 419 | + | if v:IsA("BasePart") then
|
| 420 | - | weldgun.Part1 = gunmodel.Handle |
| 420 | + | v.CanCollide = false |
| 421 | - | local dualweld_folder = Instance.new("Folder",char)
|
| 421 | + | |
| 422 | - | dualweld_folder.Name = "Dual_Welded_Gun" |
| 422 | + | |
| 423 | - | local gunright = creategun2() |
| 423 | + | |
| 424 | - | gunright.Parent = char |
| 424 | + | |
| 425 | - | local gunleft = creategun2() |
| 425 | + | |
| 426 | - | gunleft.Parent = char |
| 426 | + | |
| 427 | - | local weldright_hand = Instance.new("Weld",char:WaitForChild("Right Arm"))
|
| 427 | + | |
| 428 | - | weldright_hand.Part0 = weldright_hand.Parent |
| 428 | + | local player = owner or game:GetService("Players").LocalPlayer
|
| 429 | - | weldright_hand.Part1 = gunright.Handle |
| 429 | + | local keylist={
|
| 430 | - | local weldleft_hand = Instance.new("Weld",char:WaitForChild("Left Arm"))
|
| 430 | + | ["n"] = "Teleport" |
| 431 | - | weldleft_hand.Part0 = weldleft_hand.Parent |
| 431 | + | } |
| 432 | - | weldleft_hand.Part1 = gunleft.Handle |
| 432 | + | local needargs = {
|
| 433 | - | local swordright = createsword2() |
| 433 | + | ["Teleport"] = "Hit" |
| 434 | - | swordright.Parent = char |
| 434 | + | } |
| 435 | - | local swordleft = createsword2() |
| 435 | + | local mouse = player:GetMouse() |
| 436 | - | swordleft.Parent = char |
| 436 | + | mouse.KeyDown:Connect(function(k) |
| 437 | - | local weldright_handsword = Instance.new("Weld",char:WaitForChild("Right Arm"))
|
| 437 | + | if keylist[k] then |
| 438 | - | weldright_handsword.Part0 = weldright_handsword.Parent |
| 438 | + | |
| 439 | - | weldright_handsword.Part1 = swordright.Handle |
| 439 | + | if script.Parent.Skill_Folder:FindFirstChild(keylist[k]) then |
| 440 | - | local weldleft_handsword = Instance.new("Weld",char:WaitForChild("Left Arm"))
|
| 440 | + | script.Parent.Skill_Folder:FindFirstChild(keylist[k]):FireServer(mouse[needargs[keylist[k]]]) |
| 441 | - | weldleft_handsword.Part0 = weldleft_handsword.Parent |
| 441 | + | |
| 442 | - | weldleft_handsword.Part1 = swordleft.Handle |
| 442 | + | |
| 443 | - | local weaponlist={
|
| 443 | + | |
| 444 | - | ["Dual_Weld_Gun"]={gunleft,gunright},
|
| 444 | + | end) |
| 445 | - | ["Gun"] = {gunmodel},
|
| 445 | + | |
| 446 | - | ["Dual_Weld_Sword"] = {swordright,swordleft}
|
| 446 | + |