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