SHOW:
|
|
- or go back to the newest paste.
| 1 | CV="White" | |
| 2 | ||
| 3 | p = game.Players.LocalPlayer | |
| 4 | char = p.Character | |
| 5 | local txt = Instance.new("BillboardGui", char)
| |
| 6 | txt.Adornee = char .Head | |
| 7 | - | local ammo = 71 |
| 7 | + | txt.Name = "_status" |
| 8 | - | local maxammo = 71 |
| 8 | + | txt.Size = UDim2.new(2, 0, 1.2, 0) |
| 9 | txt.StudsOffset = Vector3.new(-9, 6, 0) | |
| 10 | local text = Instance.new("TextLabel", txt)
| |
| 11 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 12 | text.FontSize = "Size24" | |
| 13 | text.TextScaled = true | |
| 14 | text.TextTransparency = 0 | |
| 15 | text.BackgroundTransparency = 1 | |
| 16 | text.TextTransparency = 0 | |
| 17 | text.TextStrokeTransparency = 1 | |
| 18 | text.Font = "Code" | |
| 19 | text.TextStrokeColor3 = Color3.new(40,0,0) | |
| 20 | ||
| 21 | v=Instance.new("Part")
| |
| 22 | v.Name = "ColorBrick" | |
| 23 | v.Parent=p.Character | |
| 24 | v.FormFactor="Symmetric" | |
| 25 | v.Anchored=true | |
| 26 | v.CanCollide=false | |
| 27 | v.BottomSurface="Smooth" | |
| 28 | v.TopSurface="Smooth" | |
| 29 | v.Size=Vector3.new(10,5,3) | |
| 30 | v.Transparency=1 | |
| 31 | v.CFrame=char.Torso.CFrame | |
| 32 | v.BrickColor=BrickColor.new(CV) | |
| 33 | v.Transparency=1 | |
| 34 | text.TextColor3 = Color3.fromRGB(255,140,0) | |
| 35 | v.Shape="Block" | |
| 36 | text.Text = "NTF UNIT" | |
| 37 | coroutine.wrap(function() | |
| 38 | while wait() do | |
| 39 | wait(3) | |
| 40 | text.Text = "Kill" | |
| 41 | wait() | |
| 42 | text.Text = "NTF UNIT"; | |
| 43 | wait(2) | |
| 44 | local str = "" | |
| 45 | for i = 1, math.random(3,25) do | |
| 46 | str = str..string.char(math.random(65,122)) | |
| 47 | end | |
| 48 | text.Text = str | |
| 49 | wait() | |
| 50 | str = "" | |
| 51 | for i = 1, math.random(12,25) do | |
| 52 | str = str..string.char(math.random(48,122)) | |
| 53 | end | |
| 54 | wait() | |
| 55 | text.Text = str | |
| 56 | wait() | |
| 57 | text.Text = "NTF UNIT"; | |
| 58 | wait(1) | |
| 59 | text.Text = "FBI, WHERE ARE YOU." | |
| 60 | wait() | |
| 61 | text.Text = "SCP-106 SPOTTED." | |
| 62 | wait() | |
| 63 | text.Text = "NTF UNIT"; | |
| 64 | wait(2) | |
| 65 | text.Text = "CLASS-D TERMINATED."; | |
| 66 | wait() | |
| 67 | text.Text = "SCP-096 SPOTTED."; | |
| 68 | wait() | |
| 69 | for i = 1, math.random(12,25) do | |
| 70 | str = str..string.char(math.random(48,57)) | |
| 71 | end | |
| 72 | text.Text = str | |
| 73 | wait() | |
| 74 | text.Text = "NTF UNIT"; | |
| 75 | wait(2) | |
| 76 | end | |
| 77 | end)() | |
| 78 | -------- | |
| 79 | local s = Instance.new("Sound",Character)
| |
| 80 | s.Name = "BGMusic" | |
| 81 | s.SoundId = "rbxassetid://714974960" | |
| 82 | s.Pitch = 1 | |
| 83 | s.Volume = 0.25 | |
| 84 | s.Looped = true | |
| 85 | s.archivable = false | |
| 86 | wait(0.1) | |
| 87 | s:play() | |
| 88 | -------- | |
| 89 | Character = game.Players.LocalPlayer.Character | |
| 90 | Player = game.Players.LocalPlayer | |
| 91 | char = Character | |
| 92 | hum = Character.Humanoid | |
| 93 | Torso = Character.Torso | |
| 94 | Head = Character.Head | |
| 95 | ||
| 96 | char.Shirt.ShirtTemplate = "rbxassetid://994469018" | |
| 97 | char.Pants.PantsTemplate = "rbxassetid://977437883" | |
| 98 | ||
| 99 | ||
| 100 | local BC = char["Body Colors"] | |
| 101 | BC.HeadColor = BrickColor.new("Really black")
| |
| 102 | BC.LeftArmColor = BrickColor.new("Really black")
| |
| 103 | BC.LeftLegColor = BrickColor.new("Really black")
| |
| 104 | BC.RightArmColor = BrickColor.new("Really black")
| |
| 105 | BC.RightLegColor = BrickColor.new("Really black")
| |
| 106 | BC.TorsoColor = BrickColor.new("Really black")
| |
| 107 | ||
| 108 | char.Head.face.Texture = "rbxassetid://701379058" | |
| 109 | ||
| 110 | hum.MaxHealth = math.huge | |
| 111 | ||
| 112 | ||
| 113 | ||
| 114 | ||
| 115 | for i,v in pairs(char:children()) do | |
| 116 | if v:IsA("Hat") then
| |
| 117 | v:Destroy() | |
| 118 | end | |
| 119 | end | |
| 120 | for i,v in pairs(char:children()) do | |
| 121 | if v:IsA("Accessory") then
| |
| 122 | v:Destroy() | |
| 123 | end | |
| 124 | end | |
| 125 | for i,v in pairs(char:children()) do | |
| 126 | if v:IsA("Hair") then
| |
| 127 | v:Destroy() | |
| 128 | end | |
| 129 | end | |
| 130 | --141378828 | |
| 131 | Reaper = Instance.new("Model")
| |
| 132 | Reaper.Parent = Player.Character | |
| 133 | Reaper.Name = "Reaper" | |
| 134 | rh = Instance.new("Part")
| |
| 135 | rh.Parent = Reaper | |
| 136 | rh.BrickColor = BrickColor.new("Really red")
| |
| 137 | rh.Locked = true | |
| 138 | rh.CanCollide = false | |
| 139 | mesh = Instance.new("SpecialMesh")
| |
| 140 | rh.formFactor = "Symmetric" | |
| 141 | mesh.MeshType = "FileMesh" | |
| 142 | mesh.MeshId = "http://www.roblox.com/asset/?id=112643970" | |
| 143 | mesh.TextureId = "http://www.roblox.com/asset/?id=1018233493" | |
| 144 | mesh.Parent = rh | |
| 145 | mesh.Scale = Vector3.new(1.1,1.1,1.1) | |
| 146 | local weld = Instance.new("Weld")
| |
| 147 | weld.Parent = rh | |
| 148 | rh.Transparency = 0 | |
| 149 | weld.Part0 = rh | |
| 150 | weld.Part1 = Player.Character.Head | |
| 151 | weld.C0 = CFrame.new(-0, -0.05, -0)*CFrame.Angles(0, 0, 0) | |
| 152 | ---------------- | |
| 153 | local player = game.Players.LocalPlayer | |
| 154 | local char = player.Character | |
| 155 | local tor = char.Torso | |
| 156 | local camera = game.Workspace.CurrentCamera | |
| 157 | local ra = char['Right Arm'] | |
| 158 | local la = char['Left Arm'] | |
| 159 | local ammo = 500 | |
| 160 | local maxammo = 500 | |
| 161 | local neck=tor:findFirstChild'Neck' | |
| 162 | local nco=neck.C0 | |
| 163 | local UserInputService = game:GetService("UserInputService")
| |
| 164 | local firing = false | |
| 165 | local shellsenabled = false | |
| 166 | ||
| 167 | function weld(p0,p1,c0) | |
| 168 | local w=Instance.new("Weld",p0)
| |
| 169 | w.Part0=p0 | |
| 170 | w.Part1=p1 | |
| 171 | w.C0=c0 | |
| 172 | return w | |
| 173 | end | |
| 174 | ||
| 175 | bin=Instance.new('HopperBin',player.Backpack)
| |
| 176 | bin.Name='PPSH-41' | |
| 177 | ||
| 178 | bin.Selected:connect(function(mouse) | |
| 179 | pcall(function() | |
| 180 | if char:FindFirstChild("PPSHClone") then char.PPSHClone:Destroy() end
| |
| 181 | local reloading = false | |
| 182 | local canfire = true | |
| 183 | local canmovemouse = true | |
| 184 | local mouselook = 0 | |
| 185 | local aimed = false | |
| 186 | local tool = Instance.new("Tool",char)
| |
| 187 | ||
| 188 | local ppsh = Instance.new("Model", tool)
| |
| 189 | ppsh.Name = "ppsh" | |
| 190 | ||
| 191 | handle = Instance.new("Part", ppsh)
| |
| 192 | handle.FormFactor = Enum.FormFactor.Symmetric | |
| 193 | handle.CanCollide = false | |
| 194 | handle.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 195 | handle.Transparency = 1 | |
| 196 | handle.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 197 | handle.Reflectance = 0.1 | |
| 198 | handle.Anchored = false | |
| 199 | handle.Material = Enum.Material.Metal | |
| 200 | handle.Size = Vector3.new(0.856, 0.856, 0.856) | |
| 201 | handle.Name = "Handle" | |
| 202 | handle.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 203 | handle.CFrame = CFrame.new(134.255, 3.832, 84.391)* CFrame.Angles(-1.5207579906473e-007, 1.80538290806e-006, -0.0003191729192622) | |
| 204 | handle.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 205 | handle.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 206 | handle.BrickColor = BrickColor.new("Dark stone grey")
| |
| 207 | handle.Friction = 0.3 | |
| 208 | handle.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 209 | ||
| 210 | part = Instance.new("Part", ppsh)
| |
| 211 | part.FormFactor = Enum.FormFactor.Plate | |
| 212 | part.CanCollide = false | |
| 213 | part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 214 | part.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 215 | part.Anchored = false | |
| 216 | part.Material = Enum.Material.Wood | |
| 217 | part.Size = Vector3.new(1, 0.4, 1) | |
| 218 | part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 219 | part.CFrame = CFrame.new(134.179, 3.777, 85.684)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 220 | part.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 221 | part.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 222 | part.BrickColor = BrickColor.new("Reddish brown")
| |
| 223 | part.Friction = 0.3 | |
| 224 | part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 225 | ||
| 226 | mesh = Instance.new("SpecialMesh", part)
| |
| 227 | mesh.Scale = Vector3.new(0.25, 0.25, 0.167) | |
| 228 | mesh.MeshType = Enum.MeshType.Wedge | |
| 229 | ||
| 230 | part_2 = Instance.new("Part", ppsh)
| |
| 231 | part_2.FormFactor = Enum.FormFactor.Plate | |
| 232 | part_2.CanCollide = false | |
| 233 | part_2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 234 | part_2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 235 | part_2.Anchored = false | |
| 236 | part_2.Material = Enum.Material.Wood | |
| 237 | part_2.Size = Vector3.new(1, 0.4, 1) | |
| 238 | part_2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 239 | part_2.CFrame = CFrame.new(134.175, 3.327, 86.101)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, 3.1415493488312) | |
| 240 | part_2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 241 | part_2.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 242 | part_2.BrickColor = BrickColor.new("Reddish brown")
| |
| 243 | part_2.Friction = 0.3 | |
| 244 | part_2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 245 | ||
| 246 | mesh_2 = Instance.new("SpecialMesh", part_2)
| |
| 247 | mesh_2.Scale = Vector3.new(0.25, 0.167, 0.667) | |
| 248 | mesh_2.MeshType = Enum.MeshType.Wedge | |
| 249 | ||
| 250 | part_3 = Instance.new("Part", ppsh)
| |
| 251 | part_3.FormFactor = Enum.FormFactor.Plate | |
| 252 | part_3.CanCollide = false | |
| 253 | part_3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 254 | part_3.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 255 | part_3.Anchored = false | |
| 256 | part_3.Material = Enum.Material.Wood | |
| 257 | part_3.Size = Vector3.new(1, 0.4, 1) | |
| 258 | part_3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 259 | part_3.CFrame = CFrame.new(134.175, 3.594, 86.101)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 260 | part_3.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 261 | part_3.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 262 | part_3.BrickColor = BrickColor.new("Reddish brown")
| |
| 263 | part_3.Friction = 0.3 | |
| 264 | part_3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 265 | ||
| 266 | mesh_3 = Instance.new("SpecialMesh", part_3)
| |
| 267 | mesh_3.Scale = Vector3.new(0.25, 1.167, 0.667) | |
| 268 | mesh_3.MeshType = Enum.MeshType.Brick | |
| 269 | ||
| 270 | stock = Instance.new("Part", ppsh)
| |
| 271 | stock.FormFactor = Enum.FormFactor.Plate | |
| 272 | stock.CanCollide = false | |
| 273 | stock.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 274 | stock.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 275 | stock.Anchored = false | |
| 276 | stock.Material = Enum.Material.Wood | |
| 277 | stock.Size = Vector3.new(1, 0.4, 1) | |
| 278 | stock.Name = "Stock" | |
| 279 | stock.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 280 | stock.CFrame = CFrame.new(134.172, 3.561, 86.517)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 281 | stock.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 282 | stock.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 283 | stock.BrickColor = BrickColor.new("Reddish brown")
| |
| 284 | stock.Friction = 0.3 | |
| 285 | stock.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 286 | ||
| 287 | mesh_4 = Instance.new("SpecialMesh", stock)
| |
| 288 | mesh_4.Scale = Vector3.new(0.25, 1.333, 0.167) | |
| 289 | mesh_4.MeshType = Enum.MeshType.Brick | |
| 290 | ||
| 291 | part_4 = Instance.new("Part", ppsh)
| |
| 292 | part_4.FormFactor = Enum.FormFactor.Custom | |
| 293 | part_4.CanCollide = false | |
| 294 | part_4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 295 | part_4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 296 | part_4.Anchored = false | |
| 297 | part_4.Material = Enum.Material.Metal | |
| 298 | part_4.Size = Vector3.new(0.242, 0.242, 0.242) | |
| 299 | part_4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 300 | part_4.CFrame = CFrame.new(134.178, 4.026, 81.881)* CFrame.Angles(-1.5717061758041, 8.5014959040564e-005, -0.0080821355804801) | |
| 301 | part_4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 302 | part_4.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 303 | part_4.BrickColor = BrickColor.new("Really black")
| |
| 304 | part_4.Friction = 0.3 | |
| 305 | part_4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 306 | ||
| 307 | mesh_5 = Instance.new("CylinderMesh", part_4)
| |
| 308 | mesh_5.Scale = Vector3.new(0.6, 0.038, 0.6) | |
| 309 | ||
| 310 | muzzleflash = Instance.new("Part", ppsh)
| |
| 311 | muzzleflash.CanCollide = false | |
| 312 | muzzleflash.Transparency = 1 | |
| 313 | muzzleflash.TopSurface = Enum.SurfaceType.Smooth | |
| 314 | muzzleflash.Anchored = false | |
| 315 | muzzleflash.Material = Enum.Material.Neon | |
| 316 | muzzleflash.Size = Vector3.new(1.001, 2.003, 2.003) | |
| 317 | muzzleflash.Name = "MuzzleFlash" | |
| 318 | muzzleflash.CFrame = CFrame.new(134.206, 4.029, 80.998)* CFrame.Angles(0.010700599290431, 1.5627064704895, -1.5815346240997) | |
| 319 | muzzleflash.BrickColor = BrickColor.new("New Yeller")
| |
| 320 | muzzleflash.Friction = 0.3 | |
| 321 | muzzleflash.BottomSurface = Enum.SurfaceType.Smooth | |
| 322 | ||
| 323 | mesh_6 = Instance.new("SpecialMesh", muzzleflash)
| |
| 324 | mesh_6.Scale = Vector3.new(0.5, 1, 0.5) | |
| 325 | mesh_6.MeshType = Enum.MeshType.Sphere | |
| 326 | ||
| 327 | pointlight = Instance.new("PointLight", muzzleflash)
| |
| 328 | pointlight.Enabled = false | |
| 329 | pointlight.Color = Color3.new(1, 1, 0) | |
| 330 | pointlight.Brightness = 5 | |
| 331 | pointlight.Range = 5 | |
| 332 | ||
| 333 | newp = Instance.new("Part", ppsh)
| |
| 334 | newp.CanCollide = false | |
| 335 | newp.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 336 | newp.Transparency = 1 | |
| 337 | newp.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 338 | newp.Anchored = false | |
| 339 | newp.Material = Enum.Material.Metal | |
| 340 | newp.Size = Vector3.new(0.242, 0.242, 0.242) | |
| 341 | newp.Name = "newp" | |
| 342 | newp.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 343 | newp.CFrame = CFrame.new(134.182, 4.035, 81.738)* CFrame.Angles(1.2531131687865e-006, -0.00099066097754985, -3.862278390443e-005) | |
| 344 | newp.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 345 | newp.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 346 | newp.BrickColor = BrickColor.new("Really black")
| |
| 347 | newp.Friction = 0.3 | |
| 348 | newp.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 349 | ||
| 350 | mesh_7 = Instance.new("BlockMesh", newp)
| |
| 351 | mesh_7.Scale = Vector3.new(0.828, 0.828, 0.828) | |
| 352 | ||
| 353 | mag = Instance.new("Part", ppsh)
| |
| 354 | mag.FormFactor = Enum.FormFactor.Symmetric | |
| 355 | mag.CanCollide = false | |
| 356 | mag.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 357 | mag.Elasticity = 0 | |
| 358 | mag.TopSurface = Enum.SurfaceType.Smooth | |
| 359 | mag.Anchored = false | |
| 360 | mag.Material = Enum.Material.Metal | |
| 361 | mag.Size = Vector3.new(1, 1, 1) | |
| 362 | mag.Name = "mag" | |
| 363 | mag.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 364 | mag.CFrame = CFrame.new(134.18, 3.537, 83.84)* CFrame.Angles(-1.5707964897156, -1.5707963705063, 0) | |
| 365 | mag.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 366 | mag.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 367 | mag.BrickColor = BrickColor.new("Dark stone grey")
| |
| 368 | mag.Friction = 0.3 | |
| 369 | mag.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 370 | ||
| 371 | mesh_8 = Instance.new("CylinderMesh", mag)
| |
| 372 | mesh_8.Scale = Vector3.new(0.9, 0.41, 0.9) | |
| 373 | ||
| 374 | part_5 = Instance.new("Part", ppsh)
| |
| 375 | part_5.FormFactor = Enum.FormFactor.Plate | |
| 376 | part_5.CanCollide = false | |
| 377 | part_5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 378 | part_5.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 379 | part_5.Anchored = false | |
| 380 | part_5.Material = Enum.Material.Metal | |
| 381 | part_5.Size = Vector3.new(1, 2.4, 1) | |
| 382 | part_5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 383 | part_5.CFrame = CFrame.new(134.182, 4.024, 83.319)* CFrame.Angles(-1.5707964897156, 4.6109793316873e-008, -4.6110906759544e-010) | |
| 384 | part_5.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 385 | part_5.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 386 | part_5.BrickColor = BrickColor.new("Dark stone grey")
| |
| 387 | part_5.Friction = 0.3 | |
| 388 | part_5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 389 | ||
| 390 | mesh_9 = Instance.new("CylinderMesh", part_5)
| |
| 391 | mesh_9.Scale = Vector3.new(1, 1.2, 0.19) | |
| 392 | ||
| 393 | part_6 = Instance.new("Part", ppsh)
| |
| 394 | part_6.FormFactor = Enum.FormFactor.Plate | |
| 395 | part_6.CanCollide = false | |
| 396 | part_6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 397 | part_6.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 398 | part_6.Anchored = false | |
| 399 | part_6.Material = Enum.Material.Metal | |
| 400 | part_6.Size = Vector3.new(1, 0.4, 1) | |
| 401 | part_6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 402 | part_6.CFrame = CFrame.new(134.183, 4.158, 82.302)* CFrame.Angles(0.0042714844457805, 1.5627138614655, -0.0051786983385682) | |
| 403 | part_6.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 404 | part_6.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 405 | part_6.BrickColor = BrickColor.new("Dark stone grey")
| |
| 406 | part_6.Friction = 0.3 | |
| 407 | part_6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 408 | ||
| 409 | mesh_10 = Instance.new("SpecialMesh", part_6)
| |
| 410 | mesh_10.Scale = Vector3.new(0.083, 0.333, 0.083) | |
| 411 | mesh_10.MeshType = Enum.MeshType.Brick | |
| 412 | ||
| 413 | part_7 = Instance.new("Part", ppsh)
| |
| 414 | part_7.FormFactor = Enum.FormFactor.Plate | |
| 415 | part_7.CanCollide = false | |
| 416 | part_7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 417 | part_7.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 418 | part_7.Anchored = false | |
| 419 | part_7.Material = Enum.Material.Metal | |
| 420 | part_7.Size = Vector3.new(1, 0.4, 1) | |
| 421 | part_7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 422 | part_7.CFrame = CFrame.new(134.194, 3.942, 83.767)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 423 | part_7.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 424 | part_7.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 425 | part_7.BrickColor = BrickColor.new("Dark stone grey")
| |
| 426 | part_7.Friction = 0.3 | |
| 427 | part_7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 428 | ||
| 429 | mesh_11 = Instance.new("SpecialMesh", part_7)
| |
| 430 | mesh_11.Scale = Vector3.new(0.25, 0.083, 0.167) | |
| 431 | mesh_11.MeshType = Enum.MeshType.Brick | |
| 432 | ||
| 433 | part_8 = Instance.new("Part", ppsh)
| |
| 434 | part_8.FormFactor = Enum.FormFactor.Plate | |
| 435 | part_8.CanCollide = false | |
| 436 | part_8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 437 | part_8.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 438 | part_8.Anchored = false | |
| 439 | part_8.Material = Enum.Material.Metal | |
| 440 | part_8.Size = Vector3.new(1, 0.4, 1) | |
| 441 | part_8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 442 | part_8.CFrame = CFrame.new(134.193, 3.809, 83.934)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 443 | part_8.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 444 | part_8.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 445 | part_8.BrickColor = BrickColor.new("Dark stone grey")
| |
| 446 | part_8.Friction = 0.3 | |
| 447 | part_8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 448 | ||
| 449 | mesh_12 = Instance.new("SpecialMesh", part_8)
| |
| 450 | mesh_12.Scale = Vector3.new(0.25, 0.75, 0.167) | |
| 451 | mesh_12.MeshType = Enum.MeshType.Brick | |
| 452 | ||
| 453 | part_9 = Instance.new("Part", ppsh)
| |
| 454 | part_9.FormFactor = Enum.FormFactor.Plate | |
| 455 | part_9.CanCollide = false | |
| 456 | part_9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 457 | part_9.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 458 | part_9.Anchored = false | |
| 459 | part_9.Material = Enum.Material.Metal | |
| 460 | part_9.Size = Vector3.new(1, 0.4, 1) | |
| 461 | part_9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 462 | part_9.CFrame = CFrame.new(134.184, 4.158, 82.219)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 463 | part_9.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 464 | part_9.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 465 | part_9.BrickColor = BrickColor.new("Dark stone grey")
| |
| 466 | part_9.Friction = 0.3 | |
| 467 | part_9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 468 | ||
| 469 | mesh_13 = Instance.new("SpecialMesh", part_9)
| |
| 470 | mesh_13.Scale = Vector3.new(0.083, 0.333, 0.083) | |
| 471 | mesh_13.MeshType = Enum.MeshType.Wedge | |
| 472 | ||
| 473 | part_10 = Instance.new("Part", ppsh)
| |
| 474 | part_10.FormFactor = Enum.FormFactor.Plate | |
| 475 | part_10.CanCollide = false | |
| 476 | part_10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 477 | part_10.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 478 | part_10.Anchored = false | |
| 479 | part_10.Material = Enum.Material.Metal | |
| 480 | part_10.Size = Vector3.new(1, 0.4, 1) | |
| 481 | part_10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 482 | part_10.CFrame = CFrame.new(134.183, 4.158, 82.385)* CFrame.Angles(3.1406810283661, 0.0080923540517688, -3.1415493488312) | |
| 483 | part_10.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 484 | part_10.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 485 | part_10.BrickColor = BrickColor.new("Dark stone grey")
| |
| 486 | part_10.Friction = 0.3 | |
| 487 | part_10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 488 | ||
| 489 | mesh_14 = Instance.new("SpecialMesh", part_10)
| |
| 490 | mesh_14.Scale = Vector3.new(0.083, 0.333, 0.083) | |
| 491 | mesh_14.MeshType = Enum.MeshType.Wedge | |
| 492 | ||
| 493 | part_11 = Instance.new("Part", ppsh)
| |
| 494 | part_11.FormFactor = Enum.FormFactor.Plate | |
| 495 | part_11.CanCollide = false | |
| 496 | part_11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 497 | part_11.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 498 | part_11.Anchored = false | |
| 499 | part_11.Material = Enum.Material.Metal | |
| 500 | part_11.Size = Vector3.new(1, 0.4, 1) | |
| 501 | part_11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 502 | part_11.CFrame = CFrame.new(134.196, 3.825, 83.601)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 503 | part_11.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 504 | part_11.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 505 | part_11.BrickColor = BrickColor.new("Dark stone grey")
| |
| 506 | part_11.Friction = 0.3 | |
| 507 | part_11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 508 | ||
| 509 | mesh_15 = Instance.new("SpecialMesh", part_11)
| |
| 510 | mesh_15.Scale = Vector3.new(0.25, 0.667, 0.167) | |
| 511 | mesh_15.MeshType = Enum.MeshType.Brick | |
| 512 | ||
| 513 | part_12 = Instance.new("Part", ppsh)
| |
| 514 | part_12.FormFactor = Enum.FormFactor.Plate | |
| 515 | part_12.CanCollide = false | |
| 516 | part_12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 517 | part_12.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 518 | part_12.Anchored = false | |
| 519 | part_12.Material = Enum.Material.Metal | |
| 520 | part_12.Size = Vector3.new(1, 0.4, 1) | |
| 521 | part_12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 522 | part_12.CFrame = CFrame.new(134.196, 3.65, 83.601)* CFrame.Angles(-1.5717036724091, 4.335065750638e-005, -0.0080923531204462) | |
| 523 | part_12.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 524 | part_12.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 525 | part_12.BrickColor = BrickColor.new("Dark stone grey")
| |
| 526 | part_12.Friction = 0.3 | |
| 527 | part_12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 528 | ||
| 529 | mesh_16 = Instance.new("SpecialMesh", part_12)
| |
| 530 | mesh_16.Scale = Vector3.new(0.25, 0.417, 0.083) | |
| 531 | mesh_16.MeshType = Enum.MeshType.Wedge | |
| 532 | ||
| 533 | part_13 = Instance.new("Part", ppsh)
| |
| 534 | part_13.FormFactor = Enum.FormFactor.Plate | |
| 535 | part_13.CanCollide = false | |
| 536 | part_13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 537 | part_13.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 538 | part_13.Anchored = false | |
| 539 | part_13.Material = Enum.Material.Metal | |
| 540 | part_13.Size = Vector3.new(1, 0.4, 1) | |
| 541 | part_13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 542 | part_13.CFrame = CFrame.new(134.19, 3.459, 84.309)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, 3.1415493488312) | |
| 543 | part_13.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 544 | part_13.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 545 | part_13.BrickColor = BrickColor.new("Dark stone grey")
| |
| 546 | part_13.Friction = 0.3 | |
| 547 | part_13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 548 | ||
| 549 | mesh_17 = Instance.new("SpecialMesh", part_13)
| |
| 550 | mesh_17.Scale = Vector3.new(0.083, 0.167, 0.083) | |
| 551 | mesh_17.MeshType = Enum.MeshType.Wedge | |
| 552 | ||
| 553 | part_14 = Instance.new("Part", ppsh)
| |
| 554 | part_14.FormFactor = Enum.FormFactor.Plate | |
| 555 | part_14.CanCollide = false | |
| 556 | part_14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 557 | part_14.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 558 | part_14.Anchored = false | |
| 559 | part_14.Material = Enum.Material.Metal | |
| 560 | part_14.Size = Vector3.new(1, 0.4, 1) | |
| 561 | part_14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 562 | part_14.CFrame = CFrame.new(134.197, 3.875, 83.467)* CFrame.Angles(-1.5717036724091, 4.335065750638e-005, -0.0080923531204462) | |
| 563 | part_14.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 564 | part_14.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 565 | part_14.BrickColor = BrickColor.new("Dark stone grey")
| |
| 566 | part_14.Friction = 0.3 | |
| 567 | part_14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 568 | ||
| 569 | mesh_18 = Instance.new("SpecialMesh", part_14)
| |
| 570 | mesh_18.Scale = Vector3.new(0.25, 0.25, 0.167) | |
| 571 | mesh_18.MeshType = Enum.MeshType.Wedge | |
| 572 | ||
| 573 | part_15 = Instance.new("Part", ppsh)
| |
| 574 | part_15.FormFactor = Enum.FormFactor.Plate | |
| 575 | part_15.CanCollide = false | |
| 576 | part_15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 577 | part_15.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 578 | part_15.Anchored = false | |
| 579 | part_15.Material = Enum.Material.Metal | |
| 580 | part_15.Size = Vector3.new(1, 0.4, 1) | |
| 581 | part_15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 582 | part_15.CFrame = CFrame.new(134.187, 3.576, 84.642)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 583 | part_15.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 584 | part_15.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 585 | part_15.BrickColor = BrickColor.new("Dark stone grey")
| |
| 586 | part_15.Friction = 0.3 | |
| 587 | part_15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 588 | ||
| 589 | mesh_19 = Instance.new("SpecialMesh", part_15)
| |
| 590 | mesh_19.Scale = Vector3.new(0.083, 0.417, 0.083) | |
| 591 | mesh_19.MeshType = Enum.MeshType.Brick | |
| 592 | ||
| 593 | part_16 = Instance.new("Part", ppsh)
| |
| 594 | part_16.FormFactor = Enum.FormFactor.Plate | |
| 595 | part_16.CanCollide = false | |
| 596 | part_16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 597 | part_16.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 598 | part_16.Anchored = false | |
| 599 | part_16.Material = Enum.Material.Metal | |
| 600 | part_16.Size = Vector3.new(1, 0.4, 1) | |
| 601 | part_16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 602 | part_16.CFrame = CFrame.new(134.188, 3.459, 84.476)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 603 | part_16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 604 | part_16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 605 | part_16.BrickColor = BrickColor.new("Dark stone grey")
| |
| 606 | part_16.Friction = 0.3 | |
| 607 | part_16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 608 | ||
| 609 | mesh_20 = Instance.new("SpecialMesh", part_16)
| |
| 610 | mesh_20.Scale = Vector3.new(0.083, 0.167, 0.25) | |
| 611 | mesh_20.MeshType = Enum.MeshType.Brick | |
| 612 | ||
| 613 | part_17 = Instance.new("Part", ppsh)
| |
| 614 | part_17.FormFactor = Enum.FormFactor.Plate | |
| 615 | part_17.CanCollide = false | |
| 616 | part_17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 617 | part_17.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 618 | part_17.Anchored = false | |
| 619 | part_17.Material = Enum.Material.Wood | |
| 620 | part_17.Size = Vector3.new(1, 0.4, 1) | |
| 621 | part_17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 622 | part_17.CFrame = CFrame.new(134.182, 3.41, 85.226)* CFrame.Angles(3.1406810283661, 0.0080923540517688, 4.3383752199588e-005) | |
| 623 | part_17.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 624 | part_17.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 625 | part_17.BrickColor = BrickColor.new("Reddish brown")
| |
| 626 | part_17.Friction = 0.3 | |
| 627 | part_17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 628 | ||
| 629 | mesh_21 = Instance.new("SpecialMesh", part_17)
| |
| 630 | mesh_21.Scale = Vector3.new(0.25, 0.083, 0.083) | |
| 631 | mesh_21.MeshType = Enum.MeshType.Wedge | |
| 632 | ||
| 633 | part_18 = Instance.new("Part", ppsh)
| |
| 634 | part_18.FormFactor = Enum.FormFactor.Plate | |
| 635 | part_18.CanCollide = false | |
| 636 | part_18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 637 | part_18.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 638 | part_18.Anchored = false | |
| 639 | part_18.Material = Enum.Material.Wood | |
| 640 | part_18.Size = Vector3.new(1, 0.4, 1) | |
| 641 | part_18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 642 | part_18.CFrame = CFrame.new(134.183, 3.627, 85.184)* CFrame.Angles(-0.00091102049918845, -0.0080923540517688, -4.3163738155272e-005) | |
| 643 | part_18.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 644 | part_18.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 645 | part_18.BrickColor = BrickColor.new("Reddish brown")
| |
| 646 | part_18.Friction = 0.3 | |
| 647 | part_18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 648 | ||
| 649 | mesh_22 = Instance.new("SpecialMesh", part_18)
| |
| 650 | mesh_22.Scale = Vector3.new(0.25, 0.5, 0.333) | |
| 651 | mesh_22.MeshType = Enum.MeshType.Brick | |
| 652 | ||
| 653 | part_19 = Instance.new("Part", ppsh)
| |
| 654 | part_19.FormFactor = Enum.FormFactor.Plate | |
| 655 | part_19.CanCollide = false | |
| 656 | part_19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 657 | part_19.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 658 | part_19.Anchored = false | |
| 659 | part_19.Material = Enum.Material.Metal | |
| 660 | part_19.Size = Vector3.new(1, 0.4, 1) | |
| 661 | part_19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 662 | part_19.CFrame = CFrame.new(134.187, 3.459, 84.642)* CFrame.Angles(3.1406810283661, 0.0080923540517688, 4.3383752199588e-005) | |
| 663 | part_19.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 664 | part_19.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 665 | part_19.BrickColor = BrickColor.new("Dark stone grey")
| |
| 666 | part_19.Friction = 0.3 | |
| 667 | part_19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 668 | ||
| 669 | mesh_23 = Instance.new("SpecialMesh", part_19)
| |
| 670 | mesh_23.Scale = Vector3.new(0.083, 0.167, 0.083) | |
| 671 | mesh_23.MeshType = Enum.MeshType.Wedge | |
| 672 | ||
| 673 | part_20 = Instance.new("Part", ppsh)
| |
| 674 | part_20.FormFactor = Enum.FormFactor.Plate | |
| 675 | part_20.CanCollide = false | |
| 676 | part_20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 677 | part_20.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 678 | part_20.Anchored = false | |
| 679 | part_20.Material = Enum.Material.Wood | |
| 680 | part_20.Size = Vector3.new(1, 0.4, 1) | |
| 681 | part_20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 682 | part_20.CFrame = CFrame.new(134.181, 3.777, 85.392)* CFrame.Angles(3.1406810283661, 0.0080923540517688, -3.1415493488312) | |
| 683 | part_20.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 684 | part_20.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 685 | part_20.BrickColor = BrickColor.new("Reddish brown")
| |
| 686 | part_20.Friction = 0.3 | |
| 687 | part_20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 688 | ||
| 689 | mesh_24 = Instance.new("SpecialMesh", part_20)
| |
| 690 | mesh_24.Scale = Vector3.new(0.25, 0.25, 0.417) | |
| 691 | mesh_24.MeshType = Enum.MeshType.Wedge | |
| 692 | ||
| 693 | part_21 = Instance.new("Part", ppsh)
| |
| 694 | part_21.FormFactor = Enum.FormFactor.Plate | |
| 695 | part_21.CanCollide = false | |
| 696 | part_21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 697 | part_21.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 698 | part_21.Anchored = false | |
| 699 | part_21.Material = Enum.Material.Wood | |
| 700 | part_21.Size = Vector3.new(1, 0.4, 1) | |
| 701 | part_21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 702 | part_21.CFrame = CFrame.new(134.183, 3.777, 85.101)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 703 | part_21.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 704 | part_21.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 705 | part_21.BrickColor = BrickColor.new("Reddish brown")
| |
| 706 | part_21.Friction = 0.3 | |
| 707 | part_21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 708 | ||
| 709 | mesh_25 = Instance.new("SpecialMesh", part_21)
| |
| 710 | mesh_25.Scale = Vector3.new(0.25, 0.25, 0.167) | |
| 711 | mesh_25.MeshType = Enum.MeshType.Brick | |
| 712 | ||
| 713 | part_22 = Instance.new("Part", ppsh)
| |
| 714 | part_22.FormFactor = Enum.FormFactor.Plate | |
| 715 | part_22.CanCollide = false | |
| 716 | part_22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 717 | part_22.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 718 | part_22.Anchored = false | |
| 719 | part_22.Material = Enum.Material.Metal | |
| 720 | part_22.Size = Vector3.new(1, 0.4, 1) | |
| 721 | part_22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 722 | part_22.CFrame = CFrame.new(134.182, 4.024, 84.769)* CFrame.Angles(-1.5707964897156, 4.6109793316873e-008, -4.6110906759544e-010) | |
| 723 | part_22.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 724 | part_22.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 725 | part_22.BrickColor = BrickColor.new("Dark stone grey")
| |
| 726 | part_22.Friction = 0.3 | |
| 727 | part_22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 728 | ||
| 729 | mesh_26 = Instance.new("CylinderMesh", part_22)
| |
| 730 | mesh_26.Scale = Vector3.new(1, 1.2, 0.2) | |
| 731 | ||
| 732 | part_23 = Instance.new("Part", ppsh)
| |
| 733 | part_23.FormFactor = Enum.FormFactor.Plate | |
| 734 | part_23.CanCollide = false | |
| 735 | part_23.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 736 | part_23.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 737 | part_23.Anchored = false | |
| 738 | part_23.Material = Enum.Material.Wood | |
| 739 | part_23.Size = Vector3.new(1, 0.4, 1) | |
| 740 | part_23.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 741 | part_23.CFrame = CFrame.new(134.188, 3.809, 84.517)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 742 | part_23.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 743 | part_23.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 744 | part_23.BrickColor = BrickColor.new("Reddish brown")
| |
| 745 | part_23.Friction = 0.3 | |
| 746 | part_23.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 747 | ||
| 748 | mesh_27 = Instance.new("SpecialMesh", part_23)
| |
| 749 | mesh_27.Scale = Vector3.new(0.25, 0.75, 1) | |
| 750 | mesh_27.MeshType = Enum.MeshType.Brick | |
| 751 | ||
| 752 | part_24 = Instance.new("Part", ppsh)
| |
| 753 | part_24.FormFactor = Enum.FormFactor.Plate | |
| 754 | part_24.CanCollide = false | |
| 755 | part_24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 756 | part_24.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 757 | part_24.Anchored = false | |
| 758 | part_24.Material = Enum.Material.Metal | |
| 759 | part_24.Size = Vector3.new(1, 0.4, 1) | |
| 760 | part_24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 761 | part_24.CFrame = CFrame.new(134.19, 3.576, 84.309)* CFrame.Angles(-0.00091091770445928, -0.0080922329798341, -4.3334443034837e-005) | |
| 762 | part_24.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 763 | part_24.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 764 | part_24.BrickColor = BrickColor.new("Dark stone grey")
| |
| 765 | part_24.Friction = 0.3 | |
| 766 | part_24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 767 | ||
| 768 | mesh_28 = Instance.new("SpecialMesh", part_24)
| |
| 769 | mesh_28.Scale = Vector3.new(0.083, 0.417, 0.083) | |
| 770 | mesh_28.MeshType = Enum.MeshType.Brick | |
| 771 | ||
| 772 | part_25 = Instance.new("Part", ppsh)
| |
| 773 | part_25.FormFactor = Enum.FormFactor.Plate | |
| 774 | part_25.CanCollide = false | |
| 775 | part_25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 776 | part_25.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 777 | part_25.Anchored = false | |
| 778 | part_25.Material = Enum.Material.Wood | |
| 779 | part_25.Size = Vector3.new(1, 0.4, 1) | |
| 780 | part_25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 781 | part_25.CFrame = CFrame.new(134.183, 3.41, 85.143)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, 3.1415493488312) | |
| 782 | part_25.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 783 | part_25.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 784 | part_25.BrickColor = BrickColor.new("Reddish brown")
| |
| 785 | part_25.Friction = 0.3 | |
| 786 | part_25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 787 | ||
| 788 | mesh_29 = Instance.new("SpecialMesh", part_25)
| |
| 789 | mesh_29.Scale = Vector3.new(0.25, 0.083, 0.083) | |
| 790 | mesh_29.MeshType = Enum.MeshType.Wedge | |
| 791 | ||
| 792 | part_26 = Instance.new("Part", ppsh)
| |
| 793 | part_26.FormFactor = Enum.FormFactor.Plate | |
| 794 | part_26.CanCollide = false | |
| 795 | part_26.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 796 | part_26.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 797 | part_26.Anchored = false | |
| 798 | part_26.Material = Enum.Material.Wood | |
| 799 | part_26.Size = Vector3.new(1, 0.4, 1) | |
| 800 | part_26.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 801 | part_26.CFrame = CFrame.new(134.185, 3.593, 84.851)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, 3.1415493488312) | |
| 802 | part_26.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 803 | part_26.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 804 | part_26.BrickColor = BrickColor.new("Reddish brown")
| |
| 805 | part_26.Friction = 0.3 | |
| 806 | part_26.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 807 | ||
| 808 | mesh_30 = Instance.new("SpecialMesh", part_26)
| |
| 809 | mesh_30.Scale = Vector3.new(0.25, 0.333, 0.333) | |
| 810 | mesh_30.MeshType = Enum.MeshType.Wedge | |
| 811 | ||
| 812 | chamber = Instance.new("Part", ppsh)
| |
| 813 | chamber.FormFactor = Enum.FormFactor.Plate | |
| 814 | chamber.CanCollide = false | |
| 815 | chamber.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 816 | chamber.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 817 | chamber.Anchored = false | |
| 818 | chamber.Material = Enum.Material.Metal | |
| 819 | chamber.Size = Vector3.new(1, 0.4, 1) | |
| 820 | chamber.Name = "Chamber" | |
| 821 | chamber.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 822 | chamber.CFrame = CFrame.new(134.188, 4.126, 84.475)* CFrame.Angles(0.0042714844457805, 1.5627138614655, -0.0051786983385682) | |
| 823 | chamber.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 824 | chamber.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 825 | chamber.BrickColor = BrickColor.new("Dark stone grey")
| |
| 826 | chamber.Friction = 0.3 | |
| 827 | chamber.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 828 | ||
| 829 | mesh_31 = Instance.new("SpecialMesh", chamber)
| |
| 830 | mesh_31.Scale = Vector3.new(0.25, 0.167, 0.083) | |
| 831 | mesh_31.MeshType = Enum.MeshType.Brick | |
| 832 | ||
| 833 | part_27 = Instance.new("Part", ppsh)
| |
| 834 | part_27.FormFactor = Enum.FormFactor.Plate | |
| 835 | part_27.CanCollide = false | |
| 836 | part_27.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 837 | part_27.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 838 | part_27.Anchored = false | |
| 839 | part_27.Material = Enum.Material.Wood | |
| 840 | part_27.Size = Vector3.new(1, 0.4, 1) | |
| 841 | part_27.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 842 | part_27.CFrame = CFrame.new(134.18, 3.627, 85.559)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 843 | part_27.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 844 | part_27.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 845 | part_27.BrickColor = BrickColor.new("Reddish brown")
| |
| 846 | part_27.Friction = 0.3 | |
| 847 | part_27.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 848 | ||
| 849 | mesh_32 = Instance.new("SpecialMesh", part_27)
| |
| 850 | mesh_32.Scale = Vector3.new(0.25, 0.5, 0.417) | |
| 851 | mesh_32.MeshType = Enum.MeshType.Brick | |
| 852 | ||
| 853 | part_28 = Instance.new("Part", ppsh)
| |
| 854 | part_28.FormFactor = Enum.FormFactor.Plate | |
| 855 | part_28.CanCollide = false | |
| 856 | part_28.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 857 | part_28.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 858 | part_28.Anchored = false | |
| 859 | part_28.Material = Enum.Material.Wood | |
| 860 | part_28.Size = Vector3.new(1, 0.4, 1) | |
| 861 | part_28.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 862 | part_28.CFrame = CFrame.new(134.183, 3.893, 85.1)* CFrame.Angles(3.1406810283661, 0.0080923540517688, -3.1415493488312) | |
| 863 | part_28.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 864 | part_28.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 865 | part_28.BrickColor = BrickColor.new("Reddish brown")
| |
| 866 | part_28.Friction = 0.3 | |
| 867 | part_28.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 868 | ||
| 869 | mesh_33 = Instance.new("SpecialMesh", part_28)
| |
| 870 | mesh_33.Scale = Vector3.new(0.25, 0.333, 0.167) | |
| 871 | mesh_33.MeshType = Enum.MeshType.Wedge | |
| 872 | ||
| 873 | part_29 = Instance.new("Part", ppsh)
| |
| 874 | part_29.FormFactor = Enum.FormFactor.Plate | |
| 875 | part_29.CanCollide = false | |
| 876 | part_29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 877 | part_29.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 878 | part_29.Anchored = false | |
| 879 | part_29.Material = Enum.Material.Wood | |
| 880 | part_29.Size = Vector3.new(1, 0.4, 1) | |
| 881 | part_29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 882 | part_29.CFrame = CFrame.new(134.182, 3.477, 85.309)* CFrame.Angles(3.1406810283661, 0.0080923540517688, 4.3383752199588e-005) | |
| 883 | part_29.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 884 | part_29.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 885 | part_29.BrickColor = BrickColor.new("Reddish brown")
| |
| 886 | part_29.Friction = 0.3 | |
| 887 | part_29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 888 | ||
| 889 | mesh_34 = Instance.new("SpecialMesh", part_29)
| |
| 890 | mesh_34.Scale = Vector3.new(0.25, 0.25, 0.083) | |
| 891 | mesh_34.MeshType = Enum.MeshType.Wedge | |
| 892 | ||
| 893 | part_30 = Instance.new("Part", ppsh)
| |
| 894 | part_30.FormFactor = Enum.FormFactor.Plate | |
| 895 | part_30.CanCollide = false | |
| 896 | part_30.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 897 | part_30.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 898 | part_30.Anchored = false | |
| 899 | part_30.Material = Enum.Material.Wood | |
| 900 | part_30.Size = Vector3.new(1, 0.4, 1) | |
| 901 | part_30.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 902 | part_30.CFrame = CFrame.new(134.184, 3.476, 85.059)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, 3.1415493488312) | |
| 903 | part_30.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 904 | part_30.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 905 | part_30.BrickColor = BrickColor.new("Reddish brown")
| |
| 906 | part_30.Friction = 0.3 | |
| 907 | part_30.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 908 | ||
| 909 | mesh_35 = Instance.new("SpecialMesh", part_30)
| |
| 910 | mesh_35.Scale = Vector3.new(0.25, 0.25, 0.083) | |
| 911 | mesh_35.MeshType = Enum.MeshType.Wedge | |
| 912 | ||
| 913 | part_31 = Instance.new("Part", ppsh)
| |
| 914 | part_31.FormFactor = Enum.FormFactor.Plate | |
| 915 | part_31.CanCollide = false | |
| 916 | part_31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 917 | part_31.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 918 | part_31.Anchored = false | |
| 919 | part_31.Material = Enum.Material.Wood | |
| 920 | part_31.Size = Vector3.new(1, 0.4, 1) | |
| 921 | part_31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 922 | part_31.CFrame = CFrame.new(134.18, 3.444, 85.559)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, 3.1415493488312) | |
| 923 | part_31.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 924 | part_31.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 925 | part_31.BrickColor = BrickColor.new("Reddish brown")
| |
| 926 | part_31.Friction = 0.3 | |
| 927 | part_31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 928 | ||
| 929 | mesh_36 = Instance.new("SpecialMesh", part_31)
| |
| 930 | mesh_36.Scale = Vector3.new(0.25, 0.417, 0.417) | |
| 931 | mesh_36.MeshType = Enum.MeshType.Wedge | |
| 932 | ||
| 933 | part_32 = Instance.new("Part", ppsh)
| |
| 934 | part_32.FormFactor = Enum.FormFactor.Plate | |
| 935 | part_32.CanCollide = false | |
| 936 | part_32.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 937 | part_32.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 938 | part_32.Anchored = false | |
| 939 | part_32.Material = Enum.Material.Wood | |
| 940 | part_32.Size = Vector3.new(1, 0.4, 1) | |
| 941 | part_32.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 942 | part_32.CFrame = CFrame.new(134.183, 3.477, 85.184)* CFrame.Angles(-0.00091165496269241, -0.0080923540517688, -4.3383752199588e-005) | |
| 943 | part_32.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 944 | part_32.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 945 | part_32.BrickColor = BrickColor.new("Reddish brown")
| |
| 946 | part_32.Friction = 0.3 | |
| 947 | part_32.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 948 | ||
| 949 | mesh_37 = Instance.new("SpecialMesh", part_32)
| |
| 950 | mesh_37.Scale = Vector3.new(0.25, 0.25, 0.167) | |
| 951 | mesh_37.MeshType = Enum.MeshType.Brick | |
| 952 | ||
| 953 | local gungui = Instance.new("GuiMain", player.PlayerGui)
| |
| 954 | gungui.Name = "GunGUI" | |
| 955 | ||
| 956 | main = Instance.new("Frame", gungui)
| |
| 957 | main.ZIndex = 2 | |
| 958 | main.Size = UDim2.new(0, 120, 0, 75) | |
| 959 | main.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 960 | main.Name = "Main" | |
| 961 | main.Position = UDim2.new(1, -250, 1, -100) | |
| 962 | main.BorderSizePixel = 0 | |
| 963 | main.BackgroundTransparency = 1 | |
| 964 | main.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 965 | ||
| 966 | local amount = Instance.new("TextLabel", main)
| |
| 967 | amount.TextStrokeTransparency = 0.8 | |
| 968 | amount.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 969 | amount.BackgroundTransparency = 1 | |
| 970 | amount.Size = UDim2.new(0.5, 0, 0.5, 0) | |
| 971 | amount.TextColor3 = Color3.new(1, 1, 1) | |
| 972 | amount.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 973 | amount.Text = "["..ammo.."/"..maxammo.."]" | |
| 974 | amount.Position = UDim2.new(0.25, 0, 0, 20) | |
| 975 | amount.Font = Enum.Font.SourceSansBold | |
| 976 | amount.Name = "Amount" | |
| 977 | amount.FontSize = Enum.FontSize.Size36 | |
| 978 | ||
| 979 | borders = Instance.new("Frame", main)
| |
| 980 | borders.ZIndex = 2 | |
| 981 | borders.Size = UDim2.new(1, 0, 1, 0) | |
| 982 | borders.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 983 | borders.Name = "Borders" | |
| 984 | borders.BackgroundTransparency = 1 | |
| 985 | borders.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 986 | ||
| 987 | gname = Instance.new("TextLabel", main)
| |
| 988 | gname.TextStrokeTransparency = 0.8 | |
| 989 | gname.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 990 | gname.BackgroundTransparency = 1 | |
| 991 | gname.Size = UDim2.new(0.5, 0, 0.5, 0) | |
| 992 | gname.TextColor3 = Color3.new(1, 1, 1) | |
| 993 | gname.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 994 | gname.Text = "PPSH-41" | |
| 995 | gname.Position = UDim2.new(0.25, 0, 0, -20) | |
| 996 | gname.Font = Enum.Font.SourceSansBold | |
| 997 | gname.Name = "gname" | |
| 998 | gname.FontSize = Enum.FontSize.Size36 | |
| 999 | ||
| 1000 | desc = Instance.new("TextLabel", main)
| |
| 1001 | desc.TextStrokeTransparency = 0.8 | |
| 1002 | desc.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 1003 | desc.BackgroundTransparency = 1 | |
| 1004 | desc.Size = UDim2.new(0.5, 0, 0.5, 0) | |
| 1005 | desc.TextColor3 = Color3.new(1, 1, 1) | |
| 1006 | desc.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 1007 | desc.Text = "7.62x25mm Tokarev" | |
| 1008 | desc.Position = UDim2.new(0.25, 0, 0, 50) | |
| 1009 | desc.Font = Enum.Font.SourceSansBold | |
| 1010 | desc.Name = "desc" | |
| 1011 | desc.FontSize = Enum.FontSize.Size18 | |
| 1012 | ||
| 1013 | local hitm = Instance.new("ImageLabel", gungui)
| |
| 1014 | hitm.Visible = false | |
| 1015 | hitm.BorderSizePixel = 0 | |
| 1016 | hitm.Image = "http://www.roblox.com/asset/?id=131358529" | |
| 1017 | hitm.Name = "Hit" | |
| 1018 | hitm.Position = UDim2.new(0, 938, 0, 198) | |
| 1019 | hitm.BorderColor3 = Color3.new(0, 0, 0) | |
| 1020 | hitm.BackgroundTransparency = 1 | |
| 1021 | hitm.Size = UDim2.new(0, 45, 0, 45) | |
| 1022 | hitm.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 1023 | ||
| 1024 | ppsh.Parent = tool | |
| 1025 | ppsh:BreakJoints() | |
| 1026 | ppsh:MakeJoints() | |
| 1027 | ||
| 1028 | local prev | |
| 1029 | local parts = ppsh:GetChildren() | |
| 1030 | ||
| 1031 | for i = 1,#parts do | |
| 1032 | if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then | |
| 1033 | if (prev ~= nil)then | |
| 1034 | if parts[i]:FindFirstChild("Weld") then parts[i]:FindFirstChild("Weld"):Destroy() end
| |
| 1035 | local weld = Instance.new("Weld")
| |
| 1036 | weld.Part0 = prev | |
| 1037 | weld.Part1 = parts[i] | |
| 1038 | weld.C0 = prev.CFrame:inverse() | |
| 1039 | weld.C1 = parts[i].CFrame:inverse() | |
| 1040 | weld.Parent = prev | |
| 1041 | parts[i].Anchored = false | |
| 1042 | end | |
| 1043 | prev = parts[i] | |
| 1044 | end | |
| 1045 | end | |
| 1046 | ppsh:MakeJoints() | |
| 1047 | ||
| 1048 | tor["Right Shoulder"].Part1 = nil | |
| 1049 | tor["Left Shoulder"].Part1 = nil | |
| 1050 | ||
| 1051 | weld(tor, ra, CFrame.new(.6,.1,0)*CFrame.Angles(math.rad(0),0,0)) | |
| 1052 | weld(la, ra, CFrame.new(.9,.8,-.1)*CFrame.Angles(math.rad(-5),0,-.4)) | |
| 1053 | ppsh.Handle.Weld.Name = "Weld2" | |
| 1054 | weld(ppsh.Handle, ra, CFrame.new(0,-.5,.9)*CFrame.Angles(math.rad(90),0,0)) | |
| 1055 | local weld1 = tor.Weld | |
| 1056 | local offset = CFrame.new(0,-.1,-0.8)*CFrame.Angles(math.pi/2,0,0) | |
| 1057 | local barrel = newp | |
| 1058 | ||
| 1059 | local newl = char["Left Arm"]:Clone() | |
| 1060 | newl.Size = Vector3.new(.9,1.9,.9) | |
| 1061 | local newr = char["Right Arm"]:Clone() | |
| 1062 | newr.Size = Vector3.new(.9,1.9,.9) | |
| 1063 | newl.Weld:Destroy() | |
| 1064 | newl.Parent = camera | |
| 1065 | newr.Parent = camera | |
| 1066 | weld(newl, la, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)) | |
| 1067 | weld(newr, ra, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)) | |
| 1068 | ||
| 1069 | mouse.KeyDown:connect(function(key) | |
| 1070 | if key == "f" then | |
| 1071 | mouselook = mouselook + 1 | |
| 1072 | if mouselook == 1 then | |
| 1073 | ||
| 1074 | end | |
| 1075 | if mouselook == 2 then | |
| 1076 | mouselook = 0 | |
| 1077 | end | |
| 1078 | end | |
| 1079 | end) | |
| 1080 | ||
| 1081 | mouse.TargetFilter = workspace | |
| 1082 | mouse.Move:connect(function(key) | |
| 1083 | if mouselook == 0 then | |
| 1084 | --mouse.Icon = "http://www.roblox.com/asset/?id=316279304" | |
| 1085 | hitm.Position = UDim2.new(0, mouse.X-22.5, 0, mouse.Y-22.5) | |
| 1086 | if canmovemouse == true then | |
| 1087 | local p0c0 = tor:GetRenderCFrame()*weld1.C0 | |
| 1088 | weld1.C1 = (CFrame.new(p0c0.p, mouse.Hit.p)*offset):inverse()*p0c0 | |
| 1089 | end | |
| 1090 | end | |
| 1091 | end) | |
| 1092 | ||
| 1093 | local particleemitter = Instance.new("ParticleEmitter")
| |
| 1094 | particleemitter.VelocitySpread = 360 | |
| 1095 | particleemitter.Lifetime = NumberRange.new(1, 2) | |
| 1096 | particleemitter.Speed = NumberRange.new(10) | |
| 1097 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.1), NumberSequenceKeypoint.new(1, 0.1)})
| |
| 1098 | particleemitter.Acceleration = Vector3.new(0, -30, 0) | |
| 1099 | particleemitter.RotSpeed = NumberRange.new(260) | |
| 1100 | particleemitter.Texture = "http://www.roblox.com/asset/?id=274551257" | |
| 1101 | ||
| 1102 | local gf1 = Instance.new("Sound")
| |
| 1103 | gf1.SoundId="rbxassetid://224837148" | |
| 1104 | gf1.PlayOnRemove=false | |
| 1105 | gf1.Volume=0.7 | |
| 1106 | gf1.Looped=false | |
| 1107 | gf1.Pitch = 1 | |
| 1108 | gf1.Parent=barrel | |
| 1109 | local gf2 = Instance.new("Sound")
| |
| 1110 | gf2.SoundId="rbxassetid://240785604" | |
| 1111 | gf2.PlayOnRemove=false | |
| 1112 | gf2.Volume=0.7 | |
| 1113 | gf2.Looped=false | |
| 1114 | gf2.Pitch = 1 | |
| 1115 | gf2.Parent=barrel | |
| 1116 | ||
| 1117 | local magin = Instance.new("Sound")
| |
| 1118 | magin.SoundId="http://www.roblox.com/asset/?id=131045429" | |
| 1119 | magin.PlayOnRemove=false | |
| 1120 | magin.Volume=0.7 | |
| 1121 | magin.Looped=false | |
| 1122 | magin.Pitch = 1 | |
| 1123 | magin.Parent=ppsh.mag | |
| 1124 | local magout = Instance.new("Sound")
| |
| 1125 | magout.SoundId="http://www.roblox.com/asset/?id=131045401" | |
| 1126 | magout.PlayOnRemove=false | |
| 1127 | magout.Volume=0.7 | |
| 1128 | magout.Looped=false | |
| 1129 | magout.Pitch = 1 | |
| 1130 | magout.Parent=ppsh.mag | |
| 1131 | ||
| 1132 | function reload() | |
| 1133 | coroutine.resume(coroutine.create(function() | |
| 1134 | maxammo = 0 | |
| 1135 | ammo = 0 | |
| 1136 | canfire = false | |
| 1137 | la.Weld.C0 = CFrame.new(.9,.8,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1138 | wait(.05) | |
| 1139 | la.Weld.C0 = CFrame.new(.9,.7,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1140 | wait(.05) | |
| 1141 | la.Weld.C0 = CFrame.new(.9,.6,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1142 | wait(.05) | |
| 1143 | la.Weld.C0 = CFrame.new(.9,.5,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1144 | wait(.05) | |
| 1145 | la.Weld.C0 = CFrame.new(.9,.4,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1146 | wait(.05) | |
| 1147 | la.Weld.C0 = CFrame.new(.9,.3,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1148 | wait(.05) | |
| 1149 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1150 | ||
| 1151 | wait(.5) | |
| 1152 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(5),0,-.4) | |
| 1153 | wait(.05) | |
| 1154 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(10),0,-.4) | |
| 1155 | wait(.05) | |
| 1156 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(15),0,-.4) | |
| 1157 | magout:Play() | |
| 1158 | local magc = ppsh.mag:Clone() | |
| 1159 | ppsh.mag.Transparency = 1 | |
| 1160 | amount.Text = "["..ammo.."/"..maxammo.."]" | |
| 1161 | magc.Weld:Destroy() | |
| 1162 | magc.Parent = char | |
| 1163 | weld(magc, la, CFrame.new(-1,-.15,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90))) | |
| 1164 | wait(.05) | |
| 1165 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(20),0,-.4) | |
| 1166 | wait(.05) | |
| 1167 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(25),0,-.4) | |
| 1168 | wait(.1) | |
| 1169 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(30),0,-.4) | |
| 1170 | magc.Weld:Destroy() | |
| 1171 | magc.Parent = workspace | |
| 1172 | magc.CanCollide = true | |
| 1173 | game.Debris:AddItem(magc,3) | |
| 1174 | wait(1) | |
| 1175 | local magc = ppsh.mag:Clone() | |
| 1176 | magc.Weld:Destroy() | |
| 1177 | magc.Transparency = 0 | |
| 1178 | magc.Parent = char | |
| 1179 | weld(magc, la, CFrame.new(0,-1,-.1)*CFrame.Angles(math.rad(-180),math.rad(0),math.rad(0))) | |
| 1180 | wait(.05) | |
| 1181 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(25),0,-.4) | |
| 1182 | wait(.05) | |
| 1183 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(20),0,-.4) | |
| 1184 | wait(.05) | |
| 1185 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(15),0,-.4) | |
| 1186 | wait(.05) | |
| 1187 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(10),0,-.4) | |
| 1188 | wait(.05) | |
| 1189 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(5),0,-.4) | |
| 1190 | wait(.05) | |
| 1191 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1192 | wait(.05) | |
| 1193 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(-10),0,-.4) | |
| 1194 | wait(.05) | |
| 1195 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(-15),0,-.4) | |
| 1196 | wait(.05) | |
| 1197 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(-20),0,-.4) | |
| 1198 | magin:Play() | |
| 1199 | magc:Destroy() | |
| 1200 | ppsh.mag.Transparency = 0 | |
| 1201 | wait(.05) | |
| 1202 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(-25),0,-.4) | |
| 1203 | wait(.05) | |
| 1204 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(-20),0,-.4) | |
| 1205 | wait(.05) | |
| 1206 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(-15),0,-.4) | |
| 1207 | wait(.05) | |
| 1208 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(-10),0,-.4) | |
| 1209 | wait(.05) | |
| 1210 | la.Weld.C0 = CFrame.new(.9,.2,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1211 | wait(.05) | |
| 1212 | la.Weld.C0 = CFrame.new(.9,.3,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1213 | wait(.05) | |
| 1214 | la.Weld.C0 = CFrame.new(.9,.4,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1215 | wait(.05) | |
| 1216 | la.Weld.C0 = CFrame.new(.9,.5,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1217 | wait(.05) | |
| 1218 | la.Weld.C0 = CFrame.new(.9,.6,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1219 | wait(.05) | |
| 1220 | la.Weld.C0 = CFrame.new(.9,.7,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1221 | ||
| 1222 | ||
| 1223 | wait(.05) | |
| 1224 | la.Weld.C0 = CFrame.new(.9,.8,-.1)*CFrame.Angles(math.rad(-5),0,-.4) | |
| 1225 | canfire = true | |
| 1226 | maxammo = 71 | |
| 1227 | ammo = 71 | |
| 1228 | amount.Text = "["..ammo.."/"..maxammo.."]" | |
| 1229 | end)) | |
| 1230 | end | |
| 1231 | ||
| 1232 | function anim() | |
| 1233 | coroutine.resume(coroutine.create(function() | |
| 1234 | local p0c0 = tor:GetRenderCFrame()*weld1.C0 | |
| 1235 | offset = CFrame.new(0,-.1,-0.6)*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(math.rad(2),0,0) | |
| 1236 | weld1.C1 = (CFrame.new(p0c0.p, mouse.Hit.p)*offset):inverse()*p0c0 | |
| 1237 | wait() | |
| 1238 | offset = CFrame.new(0,-.1,-0.4)*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(math.rad(4),0,0) | |
| 1239 | weld1.C1 = (CFrame.new(p0c0.p, mouse.Hit.p)*offset):inverse()*p0c0 | |
| 1240 | wait() | |
| 1241 | offset = CFrame.new(0,-.1,-0.2)*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(math.rad(6),0,0) | |
| 1242 | weld1.C1 = (CFrame.new(p0c0.p, mouse.Hit.p)*offset):inverse()*p0c0 | |
| 1243 | wait() | |
| 1244 | offset = CFrame.new(0,-.1,-0.4)*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(math.rad(4),0,0) | |
| 1245 | weld1.C1 = (CFrame.new(p0c0.p, mouse.Hit.p)*offset):inverse()*p0c0 | |
| 1246 | wait() | |
| 1247 | offset = CFrame.new(0,-.1,-0.6)*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(math.rad(2),0,0) | |
| 1248 | weld1.C1 = (CFrame.new(p0c0.p, mouse.Hit.p)*offset):inverse()*p0c0 | |
| 1249 | wait() | |
| 1250 | offset = CFrame.new(0,-.1,-0.8)*CFrame.Angles(math.pi/2,0,0)*CFrame.Angles(math.rad(0),0,0) | |
| 1251 | weld1.C1 = (CFrame.new(p0c0.p, mouse.Hit.p)*offset):inverse()*p0c0 | |
| 1252 | end)) | |
| 1253 | end | |
| 1254 | ||
| 1255 | local newp = ppsh.newp | |
| 1256 | ||
| 1257 | function fire() | |
| 1258 | if ammo >=1 and canfire == true then | |
| 1259 | firing = true | |
| 1260 | --gf1.Pitch = math.random(1,1.5) | |
| 1261 | gf1:Play() | |
| 1262 | if aimed == false then | |
| 1263 | anim() | |
| 1264 | local cam_rot = camera.CoordinateFrame - camera.CoordinateFrame.p | |
| 1265 | local cam_scroll = (camera.CoordinateFrame.p - camera.Focus.p).magnitude | |
| 1266 | local ncf = CFrame.new(camera.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(0.0025+math.random()/100, math.random(-10,10)/1000, 0) | |
| 1267 | camera.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll) | |
| 1268 | end | |
| 1269 | ||
| 1270 | ||
| 1271 | local missile = Instance.new("Part")
| |
| 1272 | missile.CFrame = barrel.CFrame*CFrame.new(0,0,2) | |
| 1273 | missile.Material = Enum.Material.Metal | |
| 1274 | missile.Size = Vector3.new(0.2, 0.2, 0.2) | |
| 1275 | missile.CanCollide = false | |
| 1276 | ||
| 1277 | local bvelocity = Instance.new("BodyVelocity",missile)
| |
| 1278 | bvelocity.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1279 | bvelocity.velocity = mouse.Hit.lookVector*600 | |
| 1280 | --missile.Velocity = mouse.Hit.lookVector*1000 | |
| 1281 | ||
| 1282 | missile.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1283 | missile.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1284 | missile.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1285 | missile.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1286 | missile.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1287 | missile.BrickColor = BrickColor.new("Bright yellow")
| |
| 1288 | missile.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 1289 | missile.Name = "Bullet" | |
| 1290 | missile.Parent = workspace | |
| 1291 | game.Debris:AddItem(missile,4.2) | |
| 1292 | local bodyForce = Instance.new('BodyForce', missile)
| |
| 1293 | bodyForce.Name = 'Antigravity' | |
| 1294 | bodyForce.force = Vector3.new(0, missile:GetMass() * 196.2, 0) | |
| 1295 | ammo = ammo - 1 | |
| 1296 | amount.Text = "["..ammo.."/"..maxammo.."]" | |
| 1297 | coroutine.resume(coroutine.create(function() | |
| 1298 | wait() | |
| 1299 | ppsh.MuzzleFlash.Transparency = 0.3 | |
| 1300 | ppsh.MuzzleFlash.PointLight.Enabled = true | |
| 1301 | wait() | |
| 1302 | ppsh.MuzzleFlash.Transparency = 1 | |
| 1303 | ppsh.MuzzleFlash.PointLight.Enabled = false | |
| 1304 | end)) | |
| 1305 | ||
| 1306 | if shellsenabled == true then | |
| 1307 | local shell = Instance.new("Part")
| |
| 1308 | shell.CFrame = ppsh.Chamber.CFrame * CFrame.fromEulerAnglesXYZ(1.5,0,0) | |
| 1309 | shell.Size = Vector3.new(1,1,1) | |
| 1310 | shell.BrickColor = BrickColor.new(24) | |
| 1311 | shell.BottomSurface = 0 | |
| 1312 | shell.TopSurface = 0 | |
| 1313 | shell.Name = "Shell" | |
| 1314 | shell.Velocity = ppsh.Chamber.CFrame.lookVector * 20 + Vector3.new(math.random(-10,10),20,math.random(-10,10)) | |
| 1315 | shell.RotVelocity = Vector3.new(0,200,0) | |
| 1316 | shell.CanCollide = false | |
| 1317 | shell.Parent = workspace | |
| 1318 | coroutine.resume(coroutine.create(function() | |
| 1319 | wait(.1) | |
| 1320 | shell.CanCollide = true | |
| 1321 | while (shell) do wait() | |
| 1322 | shell.Transparency=shell.Transparency+.01 | |
| 1323 | end | |
| 1324 | end)) | |
| 1325 | game.Debris:AddItem(shell,3) | |
| 1326 | local shellmesh = Instance.new("SpecialMesh")
| |
| 1327 | shellmesh.Scale = Vector3.new(.1,.25,.1) | |
| 1328 | shellmesh.Parent = shell | |
| 1329 | end | |
| 1330 | ||
| 1331 | if math.random(1,4)==1 then | |
| 1332 | local air = Instance.new("Sound")
| |
| 1333 | air.SoundId="rbxassetid://341519743" | |
| 1334 | air.PlayOnRemove=false | |
| 1335 | air.Volume=0.7 | |
| 1336 | air.Looped=false | |
| 1337 | air.Pitch = 1 | |
| 1338 | air.Parent=missile | |
| 1339 | air:Play() | |
| 1340 | end | |
| 1341 | firing = false | |
| 1342 | missile.Touched:connect(function(h) | |
| 1343 | if (not h:isDescendantOf(ppsh)) and (not h:isDescendantOf(char)) then | |
| 1344 | missile:Destroy() | |
| 1345 | if not h.Name:lower():find("base") and h.Anchored == false then
| |
| 1346 | h.Velocity = h.CFrame.lookVector*-10 | |
| 1347 | end | |
| 1348 | if h.Parent:FindFirstChild("Humanoid") then
| |
| 1349 | coroutine.resume(coroutine.create(function() | |
| 1350 | hitm.Rotation = math.random(1, 360) | |
| 1351 | hitm.Visible = true | |
| 1352 | wait(.1) | |
| 1353 | hitm.Visible = false | |
| 1354 | end)) | |
| 1355 | local pclone = particleemitter:Clone() | |
| 1356 | pclone.Parent = h | |
| 1357 | game.Debris:AddItem(pclone,.5) | |
| 1358 | --missile:Destroy() | |
| 1359 | if h.Parent.Humanoid.Parent:FindFirstChild("ForceField") then h.Parent.ForceField:Destroy() end
| |
| 1360 | if h.Parent.Humanoid.Health >1000 then h.Parent.Humanoid.MaxHealth = 500 h.Parent.Humanoid.Health = 500 end | |
| 1361 | missile:destroy() | |
| 1362 | local dmg = (math.random(4,12)) | |
| 1363 | if aimed == true then | |
| 1364 | dmg = (math.random(12,24)) | |
| 1365 | end | |
| 1366 | ||
| 1367 | local hitms = Instance.new("Sound")
| |
| 1368 | hitms.SoundId="rbxassetid://131864673" | |
| 1369 | hitms.PlayOnRemove=false | |
| 1370 | hitms.Volume=0.7 | |
| 1371 | hitms.Looped=false | |
| 1372 | hitms.Pitch = 1 | |
| 1373 | hitms.Parent=player.PlayerGui | |
| 1374 | hitms:Play() | |
| 1375 | game.Debris:AddItem(hitms,1) | |
| 1376 | ||
| 1377 | if math.random(1,5)==1 then | |
| 1378 | local hitsound = Instance.new("Sound")
| |
| 1379 | hitsound.SoundId="rbxassetid://144884872" | |
| 1380 | hitsound.PlayOnRemove=false | |
| 1381 | hitsound.Volume=0.7 | |
| 1382 | hitsound.Looped=false | |
| 1383 | hitsound.Pitch = 1 | |
| 1384 | hitsound.Parent=h | |
| 1385 | hitsound:Play() | |
| 1386 | game.Debris:AddItem(hitsound,1) | |
| 1387 | end | |
| 1388 | ||
| 1389 | --Ragdoll-- | |
| 1390 | local victim = h.Parent | |
| 1391 | if victim.Humanoid.Health <=0 then | |
| 1392 | print("died")
| |
| 1393 | if victim.Head:FindFirstChild("ParticleEmitter") then victim.Head.ParticleEmitter:Destroy() end
| |
| 1394 | victim.Archivable = true | |
| 1395 | local rg = victim:Clone() | |
| 1396 | rg.HumanoidRootPart:Destroy() | |
| 1397 | rg.Name = "" | |
| 1398 | rg.Humanoid.MaxHealth = 0 | |
| 1399 | for i, v in pairs(rg.Torso:GetChildren()) do | |
| 1400 | if v:IsA("Motor6D") then
| |
| 1401 | v:Destroy() | |
| 1402 | end | |
| 1403 | end | |
| 1404 | ||
| 1405 | local n = Instance.new("Glue", rg.Torso)
| |
| 1406 | n.Name = "Neck" | |
| 1407 | n.Part0 = rg.Torso | |
| 1408 | n.Part1 = rg.Head | |
| 1409 | n.C0 = CFrame.new(0, 1, 0) | |
| 1410 | n.C1 = CFrame.new(0, -0.5, 0) | |
| 1411 | ||
| 1412 | local rs = Instance.new("Glue", rg.Torso)
| |
| 1413 | rs.Name = "Right Shoulder" | |
| 1414 | rs.Part0 = rg.Torso | |
| 1415 | rs.Part1 = rg["Right Arm"] | |
| 1416 | rs.C0 = CFrame.new(1.5, 0.5, 0) | |
| 1417 | rs.C1 = CFrame.new(0, 0.5, 0) | |
| 1418 | local ls = Instance.new("Glue", rg.Torso)
| |
| 1419 | ls.Name = "Left Shoulder" | |
| 1420 | ls.Part0 = rg.Torso | |
| 1421 | ls.Part1 = rg["Left Arm"] | |
| 1422 | ls.C0 = CFrame.new(-1.5, 0.5, 0) | |
| 1423 | ls.C1 = CFrame.new(0, 0.5, 0) | |
| 1424 | ||
| 1425 | local rh = Instance.new("Glue", rg.Torso)
| |
| 1426 | rh.Name = "Right Hip" | |
| 1427 | rh.Part0 = rg.Torso | |
| 1428 | rh.Part1 = rg["Right Leg"] | |
| 1429 | rh.C0 = CFrame.new(0.5, -1, 0) | |
| 1430 | rh.C1 = CFrame.new(0, 1, 0) | |
| 1431 | local lh = Instance.new("Glue", rg.Torso)
| |
| 1432 | lh.Name = "Left Hip" | |
| 1433 | lh.Part0 = rg.Torso | |
| 1434 | lh.Part1 = rg["Left Leg"] | |
| 1435 | lh.C0 = CFrame.new(-0.5, -1, 0) | |
| 1436 | lh.C1 = CFrame.new(0, 1, 0) | |
| 1437 | victim.Torso:Destroy() | |
| 1438 | victim.Head:Destroy() | |
| 1439 | victim["Left Leg"]:Destroy() | |
| 1440 | victim["Left Arm"]:Destroy() | |
| 1441 | victim["Right Leg"]:Destroy() | |
| 1442 | victim["Right Arm"]:Destroy() | |
| 1443 | rg.Parent = game.Workspace | |
| 1444 | rg.Head.BrickColor = BrickColor.new("Maroon")
| |
| 1445 | end | |
| 1446 | --Ragdoll End-- | |
| 1447 | ||
| 1448 | local textt = dmg | |
| 1449 | h.Parent.Humanoid:TakeDamage(dmg) | |
| 1450 | if h.Name == "Head" then h.Parent.Humanoid:TakeDamage(dmg) end | |
| 1451 | local guiMain = Instance.new("BillboardGui",h.Parent.Head)
| |
| 1452 | guiMain.AlwaysOnTop = true | |
| 1453 | guiMain.Size = UDim2.new(5,5,5) | |
| 1454 | guiMain.Name = "guiMain" | |
| 1455 | local bar3 = Instance.new("TextLabel")
| |
| 1456 | bar3.Position = UDim2.new(0, 50, 0, 0) | |
| 1457 | bar3.Size = UDim2.new(0, 100, 0, 100) | |
| 1458 | bar3.Parent = guiMain; | |
| 1459 | bar3.BackgroundColor3 = Color3.new(255/255,255/255,255/255) | |
| 1460 | bar3.BorderColor3 = Color3.new(27/255,42/255,53/255) | |
| 1461 | bar3.BackgroundTransparency = 1 | |
| 1462 | bar3.BorderSizePixel = 1 | |
| 1463 | bar3.Text = textt | |
| 1464 | bar3.TextColor3 = Color3.new(255/255,0/255,0/255) | |
| 1465 | bar3.TextStrokeColor3 = Color3.new(0/255,0/255,0/255) | |
| 1466 | bar3.TextStrokeTransparency = 1 | |
| 1467 | bar3.Font = "SourceSans" | |
| 1468 | bar3.FontSize = Enum.FontSize.Size24 | |
| 1469 | coroutine.resume(coroutine.create(function() | |
| 1470 | wait(.2) guiMain:Destroy() | |
| 1471 | end)) | |
| 1472 | end | |
| 1473 | end | |
| 1474 | end) | |
| 1475 | end | |
| 1476 | if ammo <=0 and canfire == true then | |
| 1477 | gf2:Play() | |
| 1478 | end | |
| 1479 | end | |
| 1480 | ||
| 1481 | local mousedown = false | |
| 1482 | mouse.Button1Down:connect(function() | |
| 1483 | mousedown = true | |
| 1484 | while mousedown == true do wait(.1) | |
| 1485 | fire() | |
| 1486 | end | |
| 1487 | end) | |
| 1488 | mouse.Button1Up:connect(function() | |
| 1489 | mousedown = false | |
| 1490 | end) | |
| 1491 | ||
| 1492 | ||
| 1493 | mouse.KeyDown:connect(function(key) | |
| 1494 | if key == "r" then | |
| 1495 | if canfire == true then | |
| 1496 | reload() | |
| 1497 | end | |
| 1498 | end | |
| 1499 | end) | |
| 1500 | ||
| 1501 | local swingsound = Instance.new("Sound")
| |
| 1502 | swingsound.SoundId="rbxassetid://181894961" | |
| 1503 | swingsound.PlayOnRemove=false | |
| 1504 | swingsound.Volume=0.7 | |
| 1505 | swingsound.Looped=false | |
| 1506 | swingsound.Pitch = 1 | |
| 1507 | swingsound.Parent=ppsh.Stock | |
| 1508 | --game.Debris:AddItem(swingsound,1) | |
| 1509 | ||
| 1510 | local handleweld = ppsh.Handle.Weld | |
| 1511 | local swinging = false | |
| 1512 | function melee() | |
| 1513 | canmovemouse = false | |
| 1514 | ppsh.Stock.CanCollide = true | |
| 1515 | swinging = true | |
| 1516 | swingsound:Play() | |
| 1517 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1518 | wait() | |
| 1519 | handleweld.C0 = CFrame.new(0,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(20))) | |
| 1520 | weld1.C1 = CFrame.new(-.6,1,0)*CFrame.Angles(math.rad(-90),(math.rad(-10)),0) | |
| 1521 | wait() | |
| 1522 | handleweld.C0 = CFrame.new(0,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(40))) | |
| 1523 | weld1.C1 = CFrame.new(-.6,1.2,0)*CFrame.Angles(math.rad(-90),(math.rad(-20)),0) | |
| 1524 | wait() | |
| 1525 | handleweld.C0 = CFrame.new(0,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(60))) | |
| 1526 | weld1.C1 = CFrame.new(-.6,1.4,0)*CFrame.Angles(math.rad(-90),(math.rad(-30)),0) | |
| 1527 | wait() | |
| 1528 | handleweld.C0 = CFrame.new(-1,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(80))) | |
| 1529 | weld1.C1 = CFrame.new(-.6,1.4,0)*CFrame.Angles(math.rad(-90),(math.rad(-40)),0) | |
| 1530 | wait() | |
| 1531 | handleweld.C0 = CFrame.new(-1,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(100))) | |
| 1532 | wait() | |
| 1533 | handleweld.C0 = CFrame.new(-1,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(100))) | |
| 1534 | --Return-- | |
| 1535 | wait() | |
| 1536 | ppsh.Stock.CanCollide = false | |
| 1537 | swinging = false | |
| 1538 | handleweld.C0 = CFrame.new(-1,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(100))) | |
| 1539 | wait() | |
| 1540 | handleweld.C0 = CFrame.new(-1,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(80))) | |
| 1541 | weld1.C1 = CFrame.new(-.6,1.4,0)*CFrame.Angles(math.rad(-90),(math.rad(-40)),0) | |
| 1542 | wait() | |
| 1543 | handleweld.C0 = CFrame.new(0,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(60))) | |
| 1544 | weld1.C1 = CFrame.new(-.6,1.4,0)*CFrame.Angles(math.rad(-90),(math.rad(-30)),0) | |
| 1545 | wait() | |
| 1546 | handleweld.C0 = CFrame.new(0,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(40))) | |
| 1547 | weld1.C1 = CFrame.new(-.6,1.2,0)*CFrame.Angles(math.rad(-90),(math.rad(-20)),0) | |
| 1548 | wait() | |
| 1549 | handleweld.C0 = CFrame.new(0,-.5,.9)*CFrame.Angles(math.rad(90),0,(math.rad(20))) | |
| 1550 | weld1.C1 = CFrame.new(-.6,1,0)*CFrame.Angles(math.rad(-90),(math.rad(-10)),0) | |
| 1551 | wait() | |
| 1552 | handleweld.C0 = CFrame.new(0,-.5,.9)*CFrame.Angles(math.rad(90),0,0) | |
| 1553 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1554 | wait() | |
| 1555 | canmovemouse = true | |
| 1556 | end | |
| 1557 | ||
| 1558 | local debounce = false | |
| 1559 | ppsh.Stock.Touched:connect(function(h) | |
| 1560 | if swinging == true then | |
| 1561 | if h.Parent:FindFirstChild("Humanoid") then
| |
| 1562 | if debounce == false then | |
| 1563 | debounce = true | |
| 1564 | local pclone = particleemitter:Clone() | |
| 1565 | pclone.Parent = h | |
| 1566 | game.Debris:AddItem(pclone,.5) | |
| 1567 | if h.Parent.Humanoid.Parent:FindFirstChild("ForceField") then h.Parent.ForceField:Destroy() end
| |
| 1568 | if h.Parent.Humanoid.Health >1000 then h.Parent.Humanoid.MaxHealth = 500 h.Parent.Humanoid.Health = 500 end | |
| 1569 | local dmg = (math.random(10,25)) | |
| 1570 | local textt = dmg | |
| 1571 | h.Parent.Humanoid:TakeDamage(dmg) | |
| 1572 | ||
| 1573 | local hitsound = Instance.new("Sound")
| |
| 1574 | hitsound.SoundId="rbxassetid://545219984" | |
| 1575 | hitsound.PlayOnRemove=false | |
| 1576 | hitsound.Volume=0.7 | |
| 1577 | hitsound.Looped=false | |
| 1578 | hitsound.Pitch = 1 | |
| 1579 | hitsound.Parent=h | |
| 1580 | hitsound:Play() | |
| 1581 | game.Debris:AddItem(hitsound,1) | |
| 1582 | ||
| 1583 | if h.Parent:FindFirstChild("Torso") then h.Parent.Torso.Velocity = char.Head.CFrame.lookVector*15 end
| |
| 1584 | ||
| 1585 | --Ragdoll-- | |
| 1586 | local victim = h.Parent | |
| 1587 | if victim.Humanoid.Health <=0 then | |
| 1588 | print("died")
| |
| 1589 | if victim.Head:FindFirstChild("ParticleEmitter") then victim.Head.ParticleEmitter:Destroy() end
| |
| 1590 | victim.Archivable = true | |
| 1591 | local rg = victim:Clone() | |
| 1592 | rg.HumanoidRootPart:Destroy() | |
| 1593 | rg.Name = "" | |
| 1594 | rg.Humanoid.MaxHealth = 0 | |
| 1595 | for i, v in pairs(rg.Torso:GetChildren()) do | |
| 1596 | if v:IsA("Motor6D") then
| |
| 1597 | v:Destroy() | |
| 1598 | end | |
| 1599 | end | |
| 1600 | ||
| 1601 | local n = Instance.new("Glue", rg.Torso)
| |
| 1602 | n.Name = "Neck" | |
| 1603 | n.Part0 = rg.Torso | |
| 1604 | n.Part1 = rg.Head | |
| 1605 | n.C0 = CFrame.new(0, 1, 0) | |
| 1606 | n.C1 = CFrame.new(0, -0.5, 0) | |
| 1607 | ||
| 1608 | local rs = Instance.new("Glue", rg.Torso)
| |
| 1609 | rs.Name = "Right Shoulder" | |
| 1610 | rs.Part0 = rg.Torso | |
| 1611 | rs.Part1 = rg["Right Arm"] | |
| 1612 | rs.C0 = CFrame.new(1.5, 0.5, 0) | |
| 1613 | rs.C1 = CFrame.new(0, 0.5, 0) | |
| 1614 | local ls = Instance.new("Glue", rg.Torso)
| |
| 1615 | ls.Name = "Left Shoulder" | |
| 1616 | ls.Part0 = rg.Torso | |
| 1617 | ls.Part1 = rg["Left Arm"] | |
| 1618 | ls.C0 = CFrame.new(-1.5, 0.5, 0) | |
| 1619 | ls.C1 = CFrame.new(0, 0.5, 0) | |
| 1620 | ||
| 1621 | local rh = Instance.new("Glue", rg.Torso)
| |
| 1622 | rh.Name = "Right Hip" | |
| 1623 | rh.Part0 = rg.Torso | |
| 1624 | rh.Part1 = rg["Right Leg"] | |
| 1625 | rh.C0 = CFrame.new(0.5, -1, 0) | |
| 1626 | rh.C1 = CFrame.new(0, 1, 0) | |
| 1627 | local lh = Instance.new("Glue", rg.Torso)
| |
| 1628 | lh.Name = "Left Hip" | |
| 1629 | lh.Part0 = rg.Torso | |
| 1630 | lh.Part1 = rg["Left Leg"] | |
| 1631 | lh.C0 = CFrame.new(-0.5, -1, 0) | |
| 1632 | lh.C1 = CFrame.new(0, 1, 0) | |
| 1633 | victim.Torso:Destroy() | |
| 1634 | victim.Head:Destroy() | |
| 1635 | victim["Left Leg"]:Destroy() | |
| 1636 | victim["Left Arm"]:Destroy() | |
| 1637 | victim["Right Leg"]:Destroy() | |
| 1638 | victim["Right Arm"]:Destroy() | |
| 1639 | rg.Parent = game.Workspace | |
| 1640 | rg.Head.BrickColor = BrickColor.new("Maroon")
| |
| 1641 | end | |
| 1642 | --Ragdoll End-- | |
| 1643 | ||
| 1644 | local guiMain = Instance.new("BillboardGui",h.Parent.Head)
| |
| 1645 | guiMain.AlwaysOnTop = true | |
| 1646 | guiMain.Size = UDim2.new(5,5,5) | |
| 1647 | guiMain.Name = "guiMain" | |
| 1648 | local bar3 = Instance.new("TextLabel")
| |
| 1649 | bar3.Position = UDim2.new(0, 50, 0, 0) | |
| 1650 | bar3.Size = UDim2.new(0, 100, 0, 100) | |
| 1651 | bar3.Parent = guiMain; | |
| 1652 | bar3.BackgroundColor3 = Color3.new(255/255,255/255,255/255) | |
| 1653 | bar3.BorderColor3 = Color3.new(27/255,42/255,53/255) | |
| 1654 | bar3.BackgroundTransparency = 1 | |
| 1655 | bar3.BorderSizePixel = 1 | |
| 1656 | bar3.Text = textt | |
| 1657 | bar3.TextColor3 = Color3.new(255/255,0/255,0/255) | |
| 1658 | bar3.TextStrokeColor3 = Color3.new(0/255,0/255,0/255) | |
| 1659 | bar3.TextStrokeTransparency = 1 | |
| 1660 | bar3.Font = "SourceSans" | |
| 1661 | bar3.FontSize = Enum.FontSize.Size24 | |
| 1662 | coroutine.resume(coroutine.create(function() | |
| 1663 | wait(.2) guiMain:Destroy() | |
| 1664 | end)) | |
| 1665 | end | |
| 1666 | wait(.1) debounce = false | |
| 1667 | end | |
| 1668 | end | |
| 1669 | end) | |
| 1670 | ||
| 1671 | local eased = 1 | |
| 1672 | function easeanim() | |
| 1673 | canmovemouse = false | |
| 1674 | canfire = false | |
| 1675 | local p0c0 = tor:GetRenderCFrame()*weld1.C0 | |
| 1676 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1677 | wait(.1) | |
| 1678 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-80),0,0) | |
| 1679 | wait(.1) | |
| 1680 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-70),0,0) | |
| 1681 | wait(.1) | |
| 1682 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-60),0,0) | |
| 1683 | wait(.2) | |
| 1684 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-60),(math.rad(-20)),0) | |
| 1685 | wait(.1) | |
| 1686 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-60),(math.rad(-40)),0) | |
| 1687 | char.Humanoid.WalkSpeed = 16 | |
| 1688 | mouse.Icon = "" | |
| 1689 | end | |
| 1690 | function uneaseanim() | |
| 1691 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-60),(math.rad(-20)),0) | |
| 1692 | wait(.1) | |
| 1693 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-60),0,0) | |
| 1694 | wait(.1) | |
| 1695 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-70),0,0) | |
| 1696 | wait(.1) | |
| 1697 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-80),0,0) | |
| 1698 | wait(.1) | |
| 1699 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1700 | wait(.1) | |
| 1701 | weld1.C1 = CFrame.new(.6,.1,0)*CFrame.Angles(math.rad(0),0,0) | |
| 1702 | ||
| 1703 | canfire = true | |
| 1704 | canmovemouse = true | |
| 1705 | local p0c0 = tor:GetRenderCFrame()*weld1.C0 | |
| 1706 | offset = CFrame.new(0,-.1,-0.8)*CFrame.Angles(math.pi/2,0,0) | |
| 1707 | weld1.C1 = (CFrame.new(p0c0.p, mouse.Hit.p)*offset):inverse()*p0c0 | |
| 1708 | char.Humanoid.WalkSpeed = 16 | |
| 1709 | mouse.Icon = "http://www.roblox.com/asset/?id=316279304" | |
| 1710 | end | |
| 1711 | mouse.KeyDown:connect(function(key) | |
| 1712 | if key == "e" then | |
| 1713 | eased = eased + 1 | |
| 1714 | if eased == 1 then | |
| 1715 | easeanim() | |
| 1716 | end | |
| 1717 | if eased == 2 then | |
| 1718 | eased = 0 | |
| 1719 | uneaseanim() | |
| 1720 | end | |
| 1721 | end | |
| 1722 | end) | |
| 1723 | ||
| 1724 | mouse.KeyDown:connect(function(key) | |
| 1725 | if key == "q" and swinging == false and eased == 0 and aimed == false and firing == false then | |
| 1726 | melee() | |
| 1727 | end | |
| 1728 | end) | |
| 1729 | ||
| 1730 | mouse.KeyDown:connect(function(key) | |
| 1731 | if key == "p" then | |
| 1732 | ||
| 1733 | local ppshc = ppsh:Clone() | |
| 1734 | ppshc.Handle:Destroy() | |
| 1735 | ppshc.Parent = workspace | |
| 1736 | ppshc.Name = "PPSHClone" | |
| 1737 | ppshc.Part.CFrame = char.Head.CFrame*CFrame.new(0,0,-4) | |
| 1738 | ||
| 1739 | local prev | |
| 1740 | local parts = ppshc:GetChildren() | |
| 1741 | ||
| 1742 | for i = 1,#parts do | |
| 1743 | if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then | |
| 1744 | if (prev ~= nil)then | |
| 1745 | parts[i].CanCollide = true | |
| 1746 | end | |
| 1747 | prev = parts[i] | |
| 1748 | end | |
| 1749 | end | |
| 1750 | ||
| 1751 | ppshc.Part.Touched:connect(function(h) | |
| 1752 | if h.Parent:FindFirstChild("Humanoid") then
| |
| 1753 | ppshc:Destroy() | |
| 1754 | local scriptclone = script:Clone() | |
| 1755 | scriptclone.Parent = h.Parent | |
| 1756 | ||
| 1757 | end | |
| 1758 | end) | |
| 1759 | ||
| 1760 | end | |
| 1761 | end) | |
| 1762 | ||
| 1763 | mouse.KeyDown:connect(function(k) | |
| 1764 | if k:byte() == 48 and eased == 1 then | |
| 1765 | char.Humanoid.WalkSpeed = 30 | |
| 1766 | for i = 1,5 do | |
| 1767 | game.Workspace.CurrentCamera.FieldOfView = (70+(i*2)) | |
| 1768 | wait() | |
| 1769 | end | |
| 1770 | end | |
| 1771 | end) | |
| 1772 | mouse.KeyUp:connect(function(k) | |
| 1773 | if k:byte() == 48 and char.Humanoid.WalkSpeed == 30 then | |
| 1774 | char.Humanoid.WalkSpeed = 16 | |
| 1775 | for i = 1,5 do | |
| 1776 | game.Workspace.CurrentCamera.FieldOfView = (80-(i*2)) | |
| 1777 | wait() | |
| 1778 | end | |
| 1779 | end | |
| 1780 | end) | |
| 1781 | ||
| 1782 | local UserInputService = game:GetService("UserInputService")
| |
| 1783 | local camera = game.Workspace.CurrentCamera | |
| 1784 | weld(char.Head, tor, CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(0),0,0)) | |
| 1785 | local headweld = char.Head.Weld | |
| 1786 | local aiming = false | |
| 1787 | function aim() | |
| 1788 | coroutine.resume(coroutine.create(function() | |
| 1789 | aiming = true | |
| 1790 | aimed = true | |
| 1791 | canmovemouse = false | |
| 1792 | camera.FieldOfView = 50 | |
| 1793 | UserInputService.MouseIconEnabled = false | |
| 1794 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1795 | wait(.1) | |
| 1796 | weld1.C1 = CFrame.new(-.4,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1797 | wait(.1) | |
| 1798 | weld1.C1 = CFrame.new(0,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1799 | wait(.1) | |
| 1800 | weld1.C1 = CFrame.new(.2,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1801 | wait(.1) | |
| 1802 | weld1.C1 = CFrame.new(.2,.8,.1)*CFrame.Angles(math.rad(-90),0,0) | |
| 1803 | wait(.1) | |
| 1804 | weld1.C1 = CFrame.new(.2,.8,.2)*CFrame.Angles(math.rad(-90),0,0) | |
| 1805 | wait(.1) | |
| 1806 | weld1.C1 = CFrame.new(.2,.8,.3)*CFrame.Angles(math.rad(-90),0,0) | |
| 1807 | wait(.1) | |
| 1808 | weld1.C1 = CFrame.new(.2,.8,.4)*CFrame.Angles(math.rad(-90),0,0) | |
| 1809 | headweld.C0 = CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(0),0,.05) | |
| 1810 | wait(.1) | |
| 1811 | headweld.C0 = CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(0),0,.10) | |
| 1812 | wait(.1) | |
| 1813 | headweld.C0 = CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(0),0,.15) | |
| 1814 | char.Humanoid.WalkSpeed = 0 | |
| 1815 | aiming = false | |
| 1816 | end)) | |
| 1817 | end | |
| 1818 | function unaim() | |
| 1819 | coroutine.resume(coroutine.create(function() | |
| 1820 | headweld.C0 = CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(0),0,.10) | |
| 1821 | wait(.1) | |
| 1822 | headweld.C0 = CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(0),0,.05) | |
| 1823 | wait(.1) | |
| 1824 | headweld.C0 = CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(0),0,0) | |
| 1825 | wait(.1) | |
| 1826 | weld1.C1 = CFrame.new(.2,.8,.3)*CFrame.Angles(math.rad(-90),0,0) | |
| 1827 | wait(.1) | |
| 1828 | weld1.C1 = CFrame.new(.2,.8,.2)*CFrame.Angles(math.rad(-90),0,0) | |
| 1829 | wait(.1) | |
| 1830 | weld1.C1 = CFrame.new(.2,.8,.1)*CFrame.Angles(math.rad(-90),0,0) | |
| 1831 | wait(.1) | |
| 1832 | weld1.C1 = CFrame.new(.2,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1833 | wait(.1) | |
| 1834 | weld1.C1 = CFrame.new(0,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1835 | wait(.1) | |
| 1836 | weld1.C1 = CFrame.new(-.4,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1837 | wait(.1) | |
| 1838 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 1839 | aimed = false | |
| 1840 | canmovemouse = true | |
| 1841 | camera.FieldOfView = 70 | |
| 1842 | UserInputService.MouseIconEnabled = true | |
| 1843 | char.Humanoid.WalkSpeed = 16 | |
| 1844 | end)) | |
| 1845 | end | |
| 1846 | mouse.Button2Down:connect(function() | |
| 1847 | if eased == 0 and aimed == false and aiming == false and swinging == false then | |
| 1848 | aim() | |
| 1849 | end | |
| 1850 | end) | |
| 1851 | mouse.Button2Up:connect(function() | |
| 1852 | if aimed == true and aiming == false then | |
| 1853 | unaim() | |
| 1854 | end | |
| 1855 | end) | |
| 1856 | ||
| 1857 | ||
| 1858 | local crouched = 0 | |
| 1859 | local proned = 0 | |
| 1860 | ||
| 1861 | function crouch() | |
| 1862 | local newl = char["Left Leg"]:Clone() | |
| 1863 | newl.Parent = char | |
| 1864 | weld(newl, char.Torso, CFrame.new(-0.5, 0.75, 1)) | |
| 1865 | newl.CanCollide = false | |
| 1866 | local newr = char["Right Leg"]:Clone() | |
| 1867 | newr.Parent = char | |
| 1868 | weld(newr, char.Torso, CFrame.new(0.5,0.495,1.25) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)) | |
| 1869 | newr.CanCollide = false | |
| 1870 | local collider = Instance.new("Part",char)
| |
| 1871 | collider.Transparency = 1 | |
| 1872 | collider.CanCollide = true | |
| 1873 | collider.Size = Vector3.new(2, 0.2, 3) | |
| 1874 | collider.Name = "Collider" | |
| 1875 | collider:BreakJoints() | |
| 1876 | weld(collider, newl, CFrame.new(0,.968,0)) | |
| 1877 | char["Left Leg"].Transparency = 1 | |
| 1878 | char["Right Leg"].Transparency = 1 | |
| 1879 | char.Torso["Left Hip"].Parent = char.Head | |
| 1880 | char.Torso["Right Hip"].Parent = char.Head | |
| 1881 | char["Left Leg"].Parent = char.Head | |
| 1882 | char["Right Leg"].Parent = char.Head | |
| 1883 | end | |
| 1884 | function uncrouch() | |
| 1885 | char.Collider:Destroy() | |
| 1886 | char["Left Leg"]:Destroy() | |
| 1887 | char["Right Leg"]:Destroy() | |
| 1888 | char.Head["Left Hip"].Parent = char.Torso | |
| 1889 | char.Head["Right Hip"].Parent = char.Torso | |
| 1890 | char.Head["Left Leg"].Parent = char | |
| 1891 | char.Head["Right Leg"].Parent = char | |
| 1892 | char["Left Leg"].Transparency = 0 | |
| 1893 | char["Right Leg"].Transparency = 0 | |
| 1894 | end | |
| 1895 | ||
| 1896 | function prone() | |
| 1897 | local newl = char["Left Leg"]:Clone() | |
| 1898 | newl.Parent = char | |
| 1899 | weld(newl, char.Torso, CFrame.new(0.4, 1.25, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),0.25,0)) | |
| 1900 | newl.CanCollide = false | |
| 1901 | local newr = char["Right Leg"]:Clone() | |
| 1902 | newr.Parent = char | |
| 1903 | weld(newr, char.Torso, CFrame.new(-0.4, 1.25, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),-0.25,0)) | |
| 1904 | newr.CanCollide = false | |
| 1905 | char["Left Leg"].Transparency = 1 | |
| 1906 | char["Right Leg"].Transparency = 1 | |
| 1907 | char.Torso["Left Hip"].Parent = char.Head | |
| 1908 | char.Torso["Right Hip"].Parent = char.Head | |
| 1909 | char["Left Leg"].Parent = char.Head | |
| 1910 | char["Right Leg"].Parent = char.Head | |
| 1911 | end | |
| 1912 | function unprone() | |
| 1913 | char["Left Leg"]:Destroy() | |
| 1914 | char["Right Leg"]:Destroy() | |
| 1915 | char.Head["Left Hip"].Parent = char.Torso | |
| 1916 | char.Head["Right Hip"].Parent = char.Torso | |
| 1917 | char.Head["Left Leg"].Parent = char | |
| 1918 | char.Head["Right Leg"].Parent = char | |
| 1919 | char["Left Leg"].Transparency = 0 | |
| 1920 | char["Right Leg"].Transparency = 0 | |
| 1921 | end | |
| 1922 | ||
| 1923 | mouse.KeyDown:connect(function(key) | |
| 1924 | if key == "c" and proned == 0 then | |
| 1925 | crouched = crouched + 1 | |
| 1926 | if crouched == 1 then | |
| 1927 | crouch() | |
| 1928 | end | |
| 1929 | if crouched == 2 then | |
| 1930 | uncrouch() | |
| 1931 | crouched = 0 | |
| 1932 | end | |
| 1933 | end | |
| 1934 | end) | |
| 1935 | mouse.KeyDown:connect(function(key) | |
| 1936 | if key == "x" and crouched == 0 then | |
| 1937 | proned = proned + 1 | |
| 1938 | if proned == 1 then | |
| 1939 | prone() | |
| 1940 | end | |
| 1941 | if proned == 2 then | |
| 1942 | unprone() | |
| 1943 | proned = 0 | |
| 1944 | end | |
| 1945 | end | |
| 1946 | end) | |
| 1947 | ||
| 1948 | --Equipped Stance-- | |
| 1949 | canmovemouse = false | |
| 1950 | canfire = false | |
| 1951 | weld1.C1 = CFrame.new(-.6,.8,0)*CFrame.Angles(math.rad(-60),(math.rad(-40)),0) | |
| 1952 | --Equipped Stance End-- | |
| 1953 | ||
| 1954 | bin.Deselected:connect(function() | |
| 1955 | local ppshc = ppsh:Clone() | |
| 1956 | if ppshc:FindFirstChild("Handle") then ppshc.Handle.Weld:Destroy() end
| |
| 1957 | if ppshc:FindFirstChild("Handle") then ppshc.Handle.Weld2:Destroy() end
| |
| 1958 | if ppshc:FindFirstChild("Handle") then ppshc.Handle.CanCollide = true end
| |
| 1959 | ppshc.Parent = char | |
| 1960 | ppshc.Name = "PPSHClone" | |
| 1961 | ||
| 1962 | local prev | |
| 1963 | local parts = ppshc:GetChildren() | |
| 1964 | ||
| 1965 | for i = 1,#parts do | |
| 1966 | if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "VehicleSeat") or (parts[i].className == "CornerWedgePart") then | |
| 1967 | if (prev ~= nil)then | |
| 1968 | if parts[i]:FindFirstChild("Weld") then parts[i]:FindFirstChild("Weld"):Destroy() end
| |
| 1969 | local weld = Instance.new("Weld")
| |
| 1970 | weld.Part0 = prev | |
| 1971 | weld.Part1 = parts[i] | |
| 1972 | weld.C0 = prev.CFrame:inverse() | |
| 1973 | weld.C1 = parts[i].CFrame:inverse() | |
| 1974 | weld.Parent = prev | |
| 1975 | parts[i].CanCollide = false | |
| 1976 | end | |
| 1977 | prev = parts[i] | |
| 1978 | end | |
| 1979 | end | |
| 1980 | ||
| 1981 | weld(ppshc.Handle, tor, CFrame.new(.5,0,0)*CFrame.Angles(math.rad(-120),(math.rad(-90)),0)) | |
| 1982 | ||
| 1983 | ppsh:Destroy() | |
| 1984 | tool:Destroy() | |
| 1985 | newl:Destroy() | |
| 1986 | newr:Destroy() | |
| 1987 | local reloading = false | |
| 1988 | local canfire = false | |
| 1989 | local canmovemouse = false | |
| 1990 | gungui:Destroy() | |
| 1991 | if la:FindFirstChild("Weld") then la.Weld:Destroy() end
| |
| 1992 | tor["Left Shoulder"].Part1 = la | |
| 1993 | if ra:FindFirstChild("Weld") then ra.Weld:Destroy() end
| |
| 1994 | tor["Right Shoulder"].Part1 = ra | |
| 1995 | if char.Torso:FindFirstChild("Weld") then char.Torso.Weld:Destroy() end
| |
| 1996 | end) | |
| 1997 | end) | |
| 1998 | end) |