Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created with PenguinAnonymous's compiler
- --PenguinAnonymous is not responsible for damages caused to your game
- --This plugin does not remove things
- --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
- --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
- --Thank you for using my plugin and enjoy :)
- --It is free to use
- --If you use this plugin to create your own, please give me credit
- --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
- --Errors: UnionOperation,ModuleScript
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Part")
- o2 = Instance.new("Part")
- o3 = Instance.new("Part")
- o4 = Instance.new("Part")
- o6 = Instance.new("WedgePart")
- o7 = Instance.new("WedgePart")
- o8 = Instance.new("WedgePart")
- o9 = Instance.new("WedgePart")
- o10 = Instance.new("Part")
- o11 = Instance.new("Part")
- o12 = Instance.new("Part")
- o13 = Instance.new("Part")
- o14 = Instance.new("Part")
- o15 = Instance.new("Part")
- o16 = Instance.new("Model")
- o17 = Instance.new("Part")
- o18 = Instance.new("Part")
- o19 = Instance.new("Part")
- o20 = Instance.new("Part")
- o21 = Instance.new("Part")
- o22 = Instance.new("Part")
- o23 = Instance.new("Part")
- o24 = Instance.new("Part")
- o25 = Instance.new("Part")
- o26 = Instance.new("Part")
- o27 = Instance.new("Part")
- o28 = Instance.new("Part")
- o29 = Instance.new("Part")
- o30 = Instance.new("Part")
- o31 = Instance.new("Part")
- o32 = Instance.new("Part")
- o33 = Instance.new("Part")
- o34 = Instance.new("Part")
- o35 = Instance.new("Part")
- o36 = Instance.new("Part")
- o37 = Instance.new("Part")
- o38 = Instance.new("PointLight")
- o39 = Instance.new("Tool")
- o40 = Instance.new("Configuration")
- o41 = Instance.new("IntValue")
- o42 = Instance.new("NumberValue")
- o43 = Instance.new("NumberValue")
- o44 = Instance.new("IntValue")
- o45 = Instance.new("NumberValue")
- o46 = Instance.new("LocalScript")
- o47 = Instance.new("Script")
- o48 = Instance.new("Sound")
- o49 = Instance.new("Sound")
- o50 = Instance.new("Decal")
- o52 = Instance.new("Part")
- o53 = Instance.new("PointLight")
- o54 = Instance.new("Model")
- o55 = Instance.new("Part")
- o56 = Instance.new("Part")
- o57 = Instance.new("ClickDetector")
- o58 = Instance.new("Script")
- o59 = Instance.new("Decal")
- o60 = Instance.new("Part")
- o61 = Instance.new("ClickDetector")
- o62 = Instance.new("Script")
- o63 = Instance.new("Decal")
- o64 = Instance.new("Part")
- o65 = Instance.new("ClickDetector")
- o66 = Instance.new("Script")
- o67 = Instance.new("Decal")
- o68 = Instance.new("Part")
- o69 = Instance.new("ClickDetector")
- o70 = Instance.new("Script")
- o71 = Instance.new("Decal")
- o72 = Instance.new("Part")
- o1.Parent = mas
- o1.Material = Enum.Material.Wood
- o1.BrickColor = BrickColor.new("Cyan")
- o1.Position = Vector3.new(-3.15308928, 6.88134098, 56.1934052)
- o1.Anchored = true
- o1.Size = Vector3.new(20.039999, 14.0699978, 0.610000253)
- o1.CFrame = CFrame.new(-3.15308928, 6.88134098, 56.1934052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o1.BottomSurface = Enum.SurfaceType.Smooth
- o1.TopSurface = Enum.SurfaceType.Smooth
- o1.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- o1.Position = Vector3.new(-3.15308928, 6.88134098, 56.1934052)
- o2.Parent = mas
- o2.Material = Enum.Material.Wood
- o2.BrickColor = BrickColor.new("CGA brown")
- o2.Position = Vector3.new(-2.81309295, 0.418967247, 46.0233307)
- o2.Anchored = true
- o2.Size = Vector3.new(19.0500011, 1, 19.7400036)
- o2.CFrame = CFrame.new(-2.81309295, 0.418967247, 46.0233307, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.666667, 0.333333, 0)
- o2.Position = Vector3.new(-2.81309295, 0.418967247, 46.0233307)
- o3.Parent = mas
- o3.Material = Enum.Material.Wood
- o3.BrickColor = BrickColor.new("Cyan")
- o3.Position = Vector3.new(-12.6933155, 6.95396614, 46.165451)
- o3.Rotation = Vector3.new(0, 90, 0)
- o3.Anchored = true
- o3.Size = Vector3.new(19.619997, 14.0699978, 0.610000253)
- o3.CFrame = CFrame.new(-12.6933155, 6.95396614, 46.165451, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o3.BottomSurface = Enum.SurfaceType.Smooth
- o3.TopSurface = Enum.SurfaceType.Smooth
- o3.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- o3.Position = Vector3.new(-12.6933155, 6.95396614, 46.165451)
- o4.Parent = mas
- o4.Material = Enum.Material.Wood
- o4.BrickColor = BrickColor.new("Cyan")
- o4.Position = Vector3.new(6.46980476, 6.93079567, 46.165451)
- o4.Rotation = Vector3.new(0, 90, 0)
- o4.Anchored = true
- o4.Size = Vector3.new(19.619997, 14.0699978, 0.610000253)
- o4.CFrame = CFrame.new(6.46980476, 6.93079567, 46.165451, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o4.BottomSurface = Enum.SurfaceType.Smooth
- o4.TopSurface = Enum.SurfaceType.Smooth
- o4.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- o4.Position = Vector3.new(6.46980476, 6.93079567, 46.165451)
- o6.Parent = mas
- o6.Material = Enum.Material.Concrete
- o6.BrickColor = BrickColor.new("Institutional white")
- o6.Position = Vector3.new(2.03596711, 2.20613098, 35.9954376)
- o6.Rotation = Vector3.new(0, 90, 0)
- o6.Anchored = true
- o6.Size = Vector3.new(0.700000405, 3.05999851, 3.9799993)
- o6.CFrame = CFrame.new(2.03596711, 2.20613098, 35.9954376, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o6.BottomSurface = Enum.SurfaceType.Smooth
- o6.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o6.Position = Vector3.new(2.03596711, 2.20613098, 35.9954376)
- o7.Parent = mas
- o7.Material = Enum.Material.Concrete
- o7.BrickColor = BrickColor.new("Institutional white")
- o7.Position = Vector3.new(-8.18541145, 2.1911869, 35.9954376)
- o7.Rotation = Vector3.new(0, -90, 0)
- o7.Anchored = true
- o7.Size = Vector3.new(0.700000405, 3.05999851, 3.9799993)
- o7.CFrame = CFrame.new(-8.18541145, 2.1911869, 35.9954376, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- o7.BottomSurface = Enum.SurfaceType.Smooth
- o7.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o7.Position = Vector3.new(-8.18541145, 2.1911869, 35.9954376)
- o8.Parent = mas
- o8.Material = Enum.Material.Concrete
- o8.BrickColor = BrickColor.new("Institutional white")
- o8.Position = Vector3.new(-8.16876411, 7.59485531, 35.9954376)
- o8.Rotation = Vector3.new(-180, -90, 0)
- o8.Anchored = true
- o8.Size = Vector3.new(0.700000405, 3.05999851, 3.9799993)
- o8.CFrame = CFrame.new(-8.16876411, 7.59485531, 35.9954376, 0, 0, -1, 0, -1, 0, -1, 0, 0)
- o8.BottomSurface = Enum.SurfaceType.Smooth
- o8.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o8.Position = Vector3.new(-8.16876411, 7.59485531, 35.9954376)
- o9.Parent = mas
- o9.Material = Enum.Material.Concrete
- o9.BrickColor = BrickColor.new("Institutional white")
- o9.Position = Vector3.new(1.97784638, 7.58220005, 35.9954376)
- o9.Rotation = Vector3.new(180, 90, 0)
- o9.Anchored = true
- o9.Size = Vector3.new(0.700000405, 3.05999851, 3.9799993)
- o9.CFrame = CFrame.new(1.97784638, 7.58220005, 35.9954376, 0, 0, 1, 0, -1, 0, 1, 0, 0)
- o9.BottomSurface = Enum.SurfaceType.Smooth
- o9.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o9.Position = Vector3.new(1.97784638, 7.58220005, 35.9954376)
- o10.Parent = mas
- o10.Material = Enum.Material.Wood
- o10.BrickColor = BrickColor.new("Cyan")
- o10.Position = Vector3.new(6.46980476, 21.0007896, 46.165451)
- o10.Rotation = Vector3.new(0, 90, 0)
- o10.Anchored = true
- o10.Size = Vector3.new(19.619997, 14.0699978, 0.610000253)
- o10.CFrame = CFrame.new(6.46980476, 21.0007896, 46.165451, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- o10.BottomSurface = Enum.SurfaceType.Smooth
- o10.TopSurface = Enum.SurfaceType.Smooth
- o10.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- o10.Position = Vector3.new(6.46980476, 21.0007896, 46.165451)
- o11.Parent = mas
- o11.Material = Enum.Material.Wood
- o11.BrickColor = BrickColor.new("Cyan")
- o11.Position = Vector3.new(-3.15308928, 20.8681259, 56.1934052)
- o11.Anchored = true
- o11.Size = Vector3.new(20.039999, 14.0699978, 0.610000253)
- o11.CFrame = CFrame.new(-3.15308928, 20.8681259, 56.1934052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o11.BottomSurface = Enum.SurfaceType.Smooth
- o11.TopSurface = Enum.SurfaceType.Smooth
- o11.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- o11.Position = Vector3.new(-3.15308928, 20.8681259, 56.1934052)
- o12.Parent = mas
- o12.Material = Enum.Material.Wood
- o12.BrickColor = BrickColor.new("Cyan")
- o12.Position = Vector3.new(-12.6933155, 21.0315361, 46.165451)
- o12.Rotation = Vector3.new(0, 90, 0)
- o12.Anchored = true
- o12.Size = Vector3.new(19.619997, 14.0699978, 0.610000253)
- o12.CFrame = CFrame.new(-12.6933155, 21.0315361, 46.165451, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o12.BottomSurface = Enum.SurfaceType.Smooth
- o12.TopSurface = Enum.SurfaceType.Smooth
- o12.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- o12.Position = Vector3.new(-12.6933155, 21.0315361, 46.165451)
- o13.Parent = mas
- o13.Material = Enum.Material.Wood
- o13.BrickColor = BrickColor.new("Cyan")
- o13.Position = Vector3.new(-3.15308928, 20.9867172, 35.9763336)
- o13.Anchored = true
- o13.Size = Vector3.new(20.039999, 14.0699978, 0.610000253)
- o13.CFrame = CFrame.new(-3.15308928, 20.9867172, 35.9763336, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o13.BottomSurface = Enum.SurfaceType.Smooth
- o13.TopSurface = Enum.SurfaceType.Smooth
- o13.Color = Color3.new(0.0156863, 0.686275, 0.92549)
- o13.Position = Vector3.new(-3.15308928, 20.9867172, 35.9763336)
- o14.Parent = mas
- o14.Material = Enum.Material.Concrete
- o14.BrickColor = BrickColor.new("Institutional white")
- o14.Position = Vector3.new(1.72670197, 13.6418896, 46.0437469)
- o14.Anchored = true
- o14.Size = Vector3.new(8.95000458, 0.569999993, 19.6799889)
- o14.CFrame = CFrame.new(1.72670197, 13.6418896, 46.0437469, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o14.BottomSurface = Enum.SurfaceType.Smooth
- o14.TopSurface = Enum.SurfaceType.Smooth
- o14.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o14.Position = Vector3.new(1.72670197, 13.6418896, 46.0437469)
- o15.Parent = mas
- o15.Material = Enum.Material.Concrete
- o15.BrickColor = BrickColor.new("Institutional white")
- o15.Position = Vector3.new(-7.59631538, 13.7386875, 40.7838898)
- o15.Anchored = true
- o15.Size = Vector3.new(9.71000385, 0.569999993, 9.15998554)
- o15.CFrame = CFrame.new(-7.59631538, 13.7386875, 40.7838898, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o15.BottomSurface = Enum.SurfaceType.Smooth
- o15.TopSurface = Enum.SurfaceType.Smooth
- o15.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o15.Position = Vector3.new(-7.59631538, 13.7386875, 40.7838898)
- o16.Parent = mas
- o17.Parent = o16
- o17.Material = Enum.Material.Metal
- o17.BrickColor = BrickColor.new("Lily white")
- o17.Position = Vector3.new(-2.92170501, 0.988617897, 51.785141)
- o17.Rotation = Vector3.new(-180, -89.2900009, -180)
- o17.Anchored = true
- o17.Shape = Enum.PartType.Cylinder
- o17.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o17.CFrame = CFrame.new(-2.92170501, 0.988617897, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o17.BottomSurface = Enum.SurfaceType.Smooth
- o17.TopSurface = Enum.SurfaceType.Smooth
- o17.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o17.Position = Vector3.new(-2.92170501, 0.988617897, 51.785141)
- o18.Parent = o16
- o18.Material = Enum.Material.Metal
- o18.BrickColor = BrickColor.new("Lily white")
- o18.Position = Vector3.new(-2.92170501, -3.01139379, 51.785141)
- o18.Rotation = Vector3.new(-180, -89.2900009, -180)
- o18.Anchored = true
- o18.Shape = Enum.PartType.Cylinder
- o18.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o18.CFrame = CFrame.new(-2.92170501, -3.01139379, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o18.BottomSurface = Enum.SurfaceType.Smooth
- o18.TopSurface = Enum.SurfaceType.Smooth
- o18.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o18.Position = Vector3.new(-2.92170501, -3.01139379, 51.785141)
- o19.Parent = o16
- o19.Material = Enum.Material.Metal
- o19.BrickColor = BrickColor.new("Lily white")
- o19.Position = Vector3.new(-2.92170501, -2.01140904, 51.785141)
- o19.Rotation = Vector3.new(-180, -89.2900009, -180)
- o19.Anchored = true
- o19.Shape = Enum.PartType.Cylinder
- o19.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o19.CFrame = CFrame.new(-2.92170501, -2.01140904, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o19.BottomSurface = Enum.SurfaceType.Smooth
- o19.TopSurface = Enum.SurfaceType.Smooth
- o19.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o19.Position = Vector3.new(-2.92170501, -2.01140904, 51.785141)
- o20.Parent = o16
- o20.Material = Enum.Material.Metal
- o20.BrickColor = BrickColor.new("Lily white")
- o20.Position = Vector3.new(-2.92170501, 2.9886179, 51.785141)
- o20.Rotation = Vector3.new(-180, -89.2900009, -180)
- o20.Anchored = true
- o20.Shape = Enum.PartType.Cylinder
- o20.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o20.CFrame = CFrame.new(-2.92170501, 2.9886179, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o20.BottomSurface = Enum.SurfaceType.Smooth
- o20.TopSurface = Enum.SurfaceType.Smooth
- o20.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o20.Position = Vector3.new(-2.92170501, 2.9886179, 51.785141)
- o21.Parent = o16
- o21.Material = Enum.Material.Metal
- o21.BrickColor = BrickColor.new("Lily white")
- o21.Position = Vector3.new(-2.92170501, 3.9886179, 51.785141)
- o21.Rotation = Vector3.new(-180, -89.2900009, -180)
- o21.Anchored = true
- o21.Shape = Enum.PartType.Cylinder
- o21.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o21.CFrame = CFrame.new(-2.92170501, 3.9886179, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o21.BottomSurface = Enum.SurfaceType.Smooth
- o21.TopSurface = Enum.SurfaceType.Smooth
- o21.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o21.Position = Vector3.new(-2.92170501, 3.9886179, 51.785141)
- o22.Parent = o16
- o22.Material = Enum.Material.Metal
- o22.BrickColor = BrickColor.new("Lily white")
- o22.Position = Vector3.new(-2.92170501, 7.98863411, 51.785141)
- o22.Rotation = Vector3.new(-180, -89.2900009, -180)
- o22.Anchored = true
- o22.Shape = Enum.PartType.Cylinder
- o22.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o22.CFrame = CFrame.new(-2.92170501, 7.98863411, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o22.BottomSurface = Enum.SurfaceType.Smooth
- o22.TopSurface = Enum.SurfaceType.Smooth
- o22.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o22.Position = Vector3.new(-2.92170501, 7.98863411, 51.785141)
- o23.Parent = o16
- o23.Material = Enum.Material.Metal
- o23.BrickColor = BrickColor.new("Lily white")
- o23.Position = Vector3.new(-2.92170501, 10.9886875, 51.785141)
- o23.Rotation = Vector3.new(-180, -89.2900009, -180)
- o23.Anchored = true
- o23.Shape = Enum.PartType.Cylinder
- o23.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o23.CFrame = CFrame.new(-2.92170501, 10.9886875, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o23.BottomSurface = Enum.SurfaceType.Smooth
- o23.TopSurface = Enum.SurfaceType.Smooth
- o23.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o23.Position = Vector3.new(-2.92170501, 10.9886875, 51.785141)
- o24.Parent = o16
- o24.Material = Enum.Material.Metal
- o24.BrickColor = BrickColor.new("Lily white")
- o24.Position = Vector3.new(-2.92170501, 12.9887028, 51.785141)
- o24.Rotation = Vector3.new(-180, -89.2900009, -180)
- o24.Anchored = true
- o24.Shape = Enum.PartType.Cylinder
- o24.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o24.CFrame = CFrame.new(-2.92170501, 12.9887028, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o24.BottomSurface = Enum.SurfaceType.Smooth
- o24.TopSurface = Enum.SurfaceType.Smooth
- o24.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o24.Position = Vector3.new(-2.92170501, 12.9887028, 51.785141)
- o25.Parent = o16
- o25.Material = Enum.Material.Metal
- o25.BrickColor = BrickColor.new("Lily white")
- o25.Position = Vector3.new(-2.92170501, 1.9886179, 51.785141)
- o25.Rotation = Vector3.new(-180, -89.2900009, -180)
- o25.Anchored = true
- o25.Shape = Enum.PartType.Cylinder
- o25.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o25.CFrame = CFrame.new(-2.92170501, 1.9886179, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o25.BottomSurface = Enum.SurfaceType.Smooth
- o25.TopSurface = Enum.SurfaceType.Smooth
- o25.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o25.Position = Vector3.new(-2.92170501, 1.9886179, 51.785141)
- o26.Parent = o16
- o26.Material = Enum.Material.Metal
- o26.BrickColor = BrickColor.new("Lily white")
- o26.Position = Vector3.new(-2.92170501, 9.98864174, 51.785141)
- o26.Rotation = Vector3.new(-180, -89.2900009, -180)
- o26.Anchored = true
- o26.Shape = Enum.PartType.Cylinder
- o26.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o26.CFrame = CFrame.new(-2.92170501, 9.98864174, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o26.BottomSurface = Enum.SurfaceType.Smooth
- o26.TopSurface = Enum.SurfaceType.Smooth
- o26.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o26.Position = Vector3.new(-2.92170501, 9.98864174, 51.785141)
- o27.Parent = o16
- o27.Material = Enum.Material.Metal
- o27.BrickColor = BrickColor.new("Lily white")
- o27.Position = Vector3.new(-2.92170501, 4.9886179, 51.785141)
- o27.Rotation = Vector3.new(-180, -89.2900009, -180)
- o27.Anchored = true
- o27.Shape = Enum.PartType.Cylinder
- o27.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o27.CFrame = CFrame.new(-2.92170501, 4.9886179, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o27.BottomSurface = Enum.SurfaceType.Smooth
- o27.TopSurface = Enum.SurfaceType.Smooth
- o27.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o27.Position = Vector3.new(-2.92170501, 4.9886179, 51.785141)
- o28.Parent = o16
- o28.Material = Enum.Material.Metal
- o28.BrickColor = BrickColor.new("Lily white")
- o28.Position = Vector3.new(-2.92170501, 5.98863316, 51.785141)
- o28.Rotation = Vector3.new(-180, -89.2900009, -180)
- o28.Anchored = true
- o28.Shape = Enum.PartType.Cylinder
- o28.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o28.CFrame = CFrame.new(-2.92170501, 5.98863316, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o28.BottomSurface = Enum.SurfaceType.Smooth
- o28.TopSurface = Enum.SurfaceType.Smooth
- o28.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o28.Position = Vector3.new(-2.92170501, 5.98863316, 51.785141)
- o29.Parent = o16
- o29.Material = Enum.Material.Metal
- o29.BrickColor = BrickColor.new("Lily white")
- o29.Position = Vector3.new(-2.92170501, 6.98863316, 51.785141)
- o29.Rotation = Vector3.new(-180, -89.2900009, -180)
- o29.Anchored = true
- o29.Shape = Enum.PartType.Cylinder
- o29.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o29.CFrame = CFrame.new(-2.92170501, 6.98863316, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o29.BottomSurface = Enum.SurfaceType.Smooth
- o29.TopSurface = Enum.SurfaceType.Smooth
- o29.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o29.Position = Vector3.new(-2.92170501, 6.98863316, 51.785141)
- o30.Parent = o16
- o30.Material = Enum.Material.Metal
- o30.BrickColor = BrickColor.new("Lily white")
- o30.Position = Vector3.new(-2.92170501, 8.98863411, 51.785141)
- o30.Rotation = Vector3.new(-180, -89.2900009, -180)
- o30.Anchored = true
- o30.Shape = Enum.PartType.Cylinder
- o30.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o30.CFrame = CFrame.new(-2.92170501, 8.98863411, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o30.BottomSurface = Enum.SurfaceType.Smooth
- o30.TopSurface = Enum.SurfaceType.Smooth
- o30.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o30.Position = Vector3.new(-2.92170501, 8.98863411, 51.785141)
- o31.Parent = o16
- o31.Material = Enum.Material.Metal
- o31.BrickColor = BrickColor.new("Lily white")
- o31.Position = Vector3.new(-2.92170501, 11.9886866, 51.785141)
- o31.Rotation = Vector3.new(-180, -89.2900009, -180)
- o31.Anchored = true
- o31.Shape = Enum.PartType.Cylinder
- o31.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o31.CFrame = CFrame.new(-2.92170501, 11.9886866, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o31.BottomSurface = Enum.SurfaceType.Smooth
- o31.TopSurface = Enum.SurfaceType.Smooth
- o31.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o31.Position = Vector3.new(-2.92170501, 11.9886866, 51.785141)
- o32.Parent = o16
- o32.Material = Enum.Material.Metal
- o32.BrickColor = BrickColor.new("Lily white")
- o32.Position = Vector3.new(-2.92170501, -4.0114851, 51.785141)
- o32.Rotation = Vector3.new(-180, -89.2900009, -180)
- o32.Anchored = true
- o32.Shape = Enum.PartType.Cylinder
- o32.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o32.CFrame = CFrame.new(-2.92170501, -4.0114851, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o32.BottomSurface = Enum.SurfaceType.Smooth
- o32.TopSurface = Enum.SurfaceType.Smooth
- o32.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o32.Position = Vector3.new(-2.92170501, -4.0114851, 51.785141)
- o33.Parent = o16
- o33.Material = Enum.Material.Metal
- o33.BrickColor = BrickColor.new("Lily white")
- o33.Position = Vector3.new(-2.92170501, -1.01141667, 51.785141)
- o33.Rotation = Vector3.new(-180, -89.2900009, -180)
- o33.Anchored = true
- o33.Shape = Enum.PartType.Cylinder
- o33.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o33.CFrame = CFrame.new(-2.92170501, -1.01141667, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o33.BottomSurface = Enum.SurfaceType.Smooth
- o33.TopSurface = Enum.SurfaceType.Smooth
- o33.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o33.Position = Vector3.new(-2.92170501, -1.01141667, 51.785141)
- o34.Parent = o16
- o34.Material = Enum.Material.Metal
- o34.BrickColor = BrickColor.new("Lily white")
- o34.Position = Vector3.new(-2.92170501, -0.0113744736, 51.785141)
- o34.Rotation = Vector3.new(-180, -89.2900009, -180)
- o34.Anchored = true
- o34.Shape = Enum.PartType.Cylinder
- o34.Size = Vector3.new(3.99999881, 0.400000006, 0.999984443)
- o34.CFrame = CFrame.new(-2.92170501, -0.0113744736, 51.785141, -0.0124000022, 0, -0.99992311, 0, 1, 0, 0.99992311, 0, -0.0124000032)
- o34.BottomSurface = Enum.SurfaceType.Smooth
- o34.TopSurface = Enum.SurfaceType.Smooth
- o34.Color = Color3.new(0.929412, 0.917647, 0.917647)
- o34.Position = Vector3.new(-2.92170501, -0.0113744736, 51.785141)
- o35.Parent = o16
- o35.Material = Enum.Material.Metal
- o35.BrickColor = BrickColor.new("Really red")
- o35.Position = Vector3.new(-2.89697051, 4.58860111, 49.785347)
- o35.Rotation = Vector3.new(-180, -89.2900009, -90)
- o35.Anchored = true
- o35.Shape = Enum.PartType.Cylinder
- o35.Size = Vector3.new(18.8000011, 0.399965286, 0.999915361)
- o35.CFrame = CFrame.new(-2.89697051, 4.58860111, 49.785347, 0, 0.0124000022, -0.99992311, 1, 0, 0, 0, -0.99992311, -0.0124000032)
- o35.BottomSurface = Enum.SurfaceType.Smooth
- o35.TopSurface = Enum.SurfaceType.Smooth
- o35.Color = Color3.new(1, 0, 0)
- o35.Position = Vector3.new(-2.89697051, 4.58860111, 49.785347)
- o36.Parent = o16
- o36.Material = Enum.Material.Metal
- o36.BrickColor = BrickColor.new("Really red")
- o36.Position = Vector3.new(-2.94653106, 4.58860111, 53.78508)
- o36.Rotation = Vector3.new(-180, -89.2900009, -90)
- o36.Anchored = true
- o36.Shape = Enum.PartType.Cylinder
- o36.Size = Vector3.new(18.8000011, 0.399965286, 0.999915361)
- o36.CFrame = CFrame.new(-2.94653106, 4.58860111, 53.78508, 0, 0.0124000022, -0.99992311, 1, 0, 0, 0, -0.99992311, -0.0124000032)
- o36.BottomSurface = Enum.SurfaceType.Smooth
- o36.TopSurface = Enum.SurfaceType.Smooth
- o36.Color = Color3.new(1, 0, 0)
- o36.Position = Vector3.new(-2.94653106, 4.58860111, 53.78508)
- o37.Parent = mas
- o37.BrickColor = BrickColor.new("Institutional white")
- o37.Position = Vector3.new(-0.541031837, 12.970232, 45.879097)
- o37.Anchored = true
- o37.Size = Vector3.new(1.88000059, 1, 1.71000016)
- o37.CFrame = CFrame.new(-0.541031837, 12.970232, 45.879097, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o37.BottomSurface = Enum.SurfaceType.Smooth
- o37.TopSurface = Enum.SurfaceType.Smooth
- o37.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o37.Position = Vector3.new(-0.541031837, 12.970232, 45.879097)
- o38.Parent = o37
- o38.Range = 10
- o39.Name = "Pistol"
- o39.Parent = mas
- o39.GripForward = Vector3.new(-0, 1, -0)
- o39.GripPos = Vector3.new(0, -0.400000006, -0.400000006)
- o39.GripUp = Vector3.new(0, 0, 1)
- o40.Name = "Configurations"
- o40.Parent = o39
- o41.Name = "ClipSize"
- o41.Parent = o40
- o41.Value = 8
- o42.Name = "AttackCooldown"
- o42.Parent = o40
- o42.Value = 0.15
- o43.Name = "Range"
- o43.Parent = o40
- o43.Value = 300
- o44.Name = "Damage"
- o44.Parent = o40
- o44.Value = 20
- o45.Name = "ReloadTime"
- o45.Parent = o40
- o45.Value = 1
- o46.Parent = o39
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- -- Variables for services
- local render = game:GetService("RunService").RenderStepped
- local contextActionService = game:GetService("ContextActionService")
- local userInputService = game:GetService("UserInputService")
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local Tool = script.Parent
- -- Variables for Module Scripts
- local screenSpace = require(Tool:WaitForChild("ScreenSpace"))
- local connection
- -- Variables for character joints
- local neck, shoulder, oldNeckC0, oldShoulderC0
- local mobileShouldTrack = true
- -- Thourough check to see if a character is sitting
- local function amISitting(character)
- local t = character.Torso
- for _, part in pairs(t:GetConnectedParts(true)) do
- if part:IsA("Seat") or part:IsA("VehicleSeat") then
- return true
- end
- end
- end
- -- Function to call on renderstepped. Orients the character so it is facing towards
- -- the player mouse's position in world space. If character is sitting then the torso
- -- should not track
- local function frame(mousePosition)
- -- Special mobile consideration. We don't want to track if the user was touching a ui
- -- element such as the movement controls. Just return out of function if so to make sure
- -- character doesn't track
- if not mobileShouldTrack then return end
- -- Make sure character isn't swiming. If the character is swimming the following code will
- -- not work well; the character will not swim correctly. Besides, who shoots underwater?
- if player.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Swimming then
- local torso = player.Character.Torso
- local head = player.Character.Head
- local toMouse = (mousePosition - head.Position).unit
- local angle = math.acos(toMouse:Dot(Vector3.new(0,1,0)))
- local neckAngle = angle
- -- Limit how much the head can tilt down. Too far and the head looks unnatural
- if math.deg(neckAngle) > 110 then
- neckAngle = math.rad(110)
- end
- neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.pi - neckAngle,math.pi,0)
- -- Calculate horizontal rotation
- local arm = player.Character:FindFirstChild("Right Arm")
- local fromArmPos = torso.Position + torso.CFrame:vectorToWorldSpace(Vector3.new(
- torso.Size.X/2 + arm.Size.X/2, torso.Size.Y/2 - arm.Size.Z/2, 0))
- local toMouseArm = ((mousePosition - fromArmPos) * Vector3.new(1,0,1)).unit
- local look = (torso.CFrame.lookVector * Vector3.new(1,0,1)).unit
- local lateralAngle = math.acos(toMouseArm:Dot(look))
- -- Check for rogue math
- if tostring(lateralAngle) == "-1.#IND" then
- lateralAngle = 0
- end
- -- Handle case where character is sitting down
- if player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then
- local cross = torso.CFrame.lookVector:Cross(toMouseArm)
- if lateralAngle > math.pi/2 then
- lateralAngle = math.pi/2
- end
- if cross.Y < 0 then
- lateralAngle = -lateralAngle
- end
- end
- -- Turn shoulder to point to mouse
- shoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(math.pi/2 - angle,math.pi/2 + lateralAngle,0)
- -- If not sitting then aim torso laterally towards mouse
- if not amISitting(player.Character) then
- torso.CFrame = CFrame.new(torso.Position, torso.Position + (Vector3.new(
- mousePosition.X, torso.Position.Y, mousePosition.Z)-torso.Position).unit)
- else
- --print("sitting")
- end
- end
- end
- -- Function to bind to render stepped if player is on PC
- local function pcFrame()
- frame(mouse.Hit.p)
- end
- -- Function to bind to touch moved if player is on mobile
- local function mobileFrame(touch, processed)
- -- Check to see if the touch was on a UI element. If so, we don't want to update anything
- if not processed then
- -- Calculate touch position in world space. Uses Stravant's ScreenSpace Module script
- -- to create a ray from the camera.
- local test = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1)
- local nearPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1))
- nearPos = game.Workspace.CurrentCamera.CoordinateFrame.p - nearPos
- local farPos = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y,50)
- farPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(farPos) * -1
- if farPos.magnitude > 900 then
- farPos = farPos.unit * 900
- end
- local ray = Ray.new(nearPos, farPos)
- local part, pos = game.Workspace:FindPartOnRay(ray, player.Character)
- -- if a position was found on the ray then update the character's rotation
- if pos then
- frame(pos)
- end
- end
- end
- local oldIcon = nil
- -- Function to bind to equip event
- local function equip()
- local torso = player.Character.Torso
- -- Setup joint variables
- neck = torso.Neck
- oldNeckC0 = neck.C0
- shoulder = torso:FindFirstChild("Right Shoulder")
- oldShoulderC0 = shoulder.C0
- -- Remember old mouse icon and update current
- oldIcon = mouse.Icon
- mouse.Icon = "http://www.roblox.com/asset/?id=79658449"
- -- Bind TouchMoved event if on mobile. Otherwise connect to renderstepped
- if userInputService.TouchEnabled then
- connection = userInputService.TouchMoved:connect(mobileFrame)
- else
- connection = render:connect(pcFrame)
- end
- -- Bind TouchStarted and TouchEnded. Used to determine if character should rotate
- -- during touch input
- userInputService.TouchStarted:connect(function(touch, processed)
- mobileShouldTrack = not processed
- end)
- userInputService.TouchEnded:connect(function(touch, processed)
- mobileShouldTrack = false
- end)
- -- Fire server's equip event
- game.ReplicatedStorage.ROBLOX_PistolEquipEvent:FireServer()
- -- Bind event for when mouse is clicked to fire server's fire event
- mouse.Button1Down:connect(function()
- game.ReplicatedStorage.ROBLOX_PistolFireEvent:FireServer(mouse.Hit.p)
- end)
- -- Bind reload event to mobile button and r key
- contextActionService:BindActionToInputTypes("Reload", function()
- game.ReplicatedStorage.ROBLOX_PistolReloadEvent:FireServer()
- end, true, "r")
- -- If game uses filtering enabled then need to update server while tool is
- -- held by character.
- if workspace.FilteringEnabled then
- while connection do
- wait()
- game.ReplicatedStorage.ROBLOX_PistolUpdateEvent:FireServer(neck.C0, shoulder.C0)
- end
- end
- end
- -- Function to bind to Unequip event
- local function unequip()
- if connection then connection:disconnect() end
- contextActionService:UnbindAction("Reload")
- game.ReplicatedStorage.ROBLOX_PistolUnequipEvent:FireServer()
- mouse.Icon = oldIcon
- neck.C0 = oldNeckC0
- shoulder.C0 = oldShoulderC0
- end
- -- Bind tool events
- Tool.Equipped:connect(equip)
- Tool.Unequipped:connect(unequip)
- end,o46)
- end))
- o47.Parent = o39
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- -- Local variables
- local tool = script.Parent
- local currentAmmo = tool.Configurations.ClipSize.Value
- local canFire = true
- local reloading = false
- local fireSound = tool.FireSound
- -- Configurable variables
- local attackCooldown = tool.Configurations.AttackCooldown.Value
- local range = tool.Configurations.Range.Value
- local damage = tool.Configurations.Damage.Value
- local reloadTime = tool.Configurations.ReloadTime.Value
- local clipSize = tool.Configurations.ClipSize.Value
- -- Setup Remote Events
- local function createEvent(eventName)
- local event = game.ReplicatedStorage:FindFirstChild(eventName)
- if not event then
- event = Instance.new("RemoteEvent", game.ReplicatedStorage)
- event.Name = eventName
- end
- return event
- end
- local updateEvent = createEvent("ROBLOX_PistolUpdateEvent")
- local equipEvent = createEvent("ROBLOX_PistolEquipEvent")
- local unequipEvent = createEvent("ROBLOX_PistolUnequipEvent")
- local fireEvent = createEvent("ROBLOX_PistolFireEvent")
- local reloadEvent = createEvent("ROBLOX_PistolReloadEvent")
- -- Add tracer decal to server storage if it isn't already there
- if not game.ServerStorage:FindFirstChild("ROBLOX_PistolTracerDecal") then
- tool.ROBLOX_PistolTracerDecal:Clone().Parent = game.ServerStorage
- end
- -- Bind function to update event. Used to update player's orientation if FilteringEnabled
- -- is true (otherwise the rotation would not replicate from the rotating player)
- updateEvent.OnServerEvent:connect(function(player, neckC0, rshoulderC0)
- local character = player.Character
- character.Torso.Neck.C0 = neckC0
- character.Torso:FindFirstChild("Right Shoulder").C0 = rshoulderC0
- end)
- -- Bind functions to when player equips/unequips the tool. Right now just need to turn on and
- -- off AutoRotate
- equipEvent.OnServerEvent:connect(function(player)
- player.Character.Humanoid.AutoRotate = false
- end)
- unequipEvent.OnServerEvent:connect(function(player)
- player.Character.Humanoid.AutoRotate = true
- end)
- -- Creates "bullet". No projectile motion is actually used. Pistol raytraces to target and creates
- -- a tracer trail to the target. Fading trail gives illusion of motion.
- local function createBullet(target)
- -- Get actual handle position. Want to offset from the center of the handle as the bullet comes
- -- from the barrel of the gun
- local handlePos = tool.Handle.CFrame + tool.Handle.CFrame:vectorToWorldSpace(Vector3.new(0,0,.3))
- local toTarget = handlePos:vectorToWorldSpace(Vector3.new(0,1,0)) * 200
- local torsoLook = (tool.Parent:FindFirstChild("Torso").CFrame.lookVector * Vector3.new(1,0,1)).unit
- local toTargetAngle = (toTarget * Vector3.new(1,0,1)).unit
- local angle = math.acos(torsoLook:Dot(toTargetAngle))
- -- Checks angle from where the character is facing to the orientation of the pistol. If the angle
- -- is less than 90 degress then we shoot to where the mouse is pointing (helps accuracy). Otherwise
- -- the gun is assumed at the edge of its rotation and just shoots straight.
- if math.deg(angle) < 90 then
- toTarget = target - tool.Handle.Position
- if toTarget.magnitude > range then
- toTarget = toTarget.unit * range
- end
- toTarget = toTarget * 1.1
- end
- -- Shoot ray and check if humanoid was hit. If so, it should take damage
- local ray = Ray.new(handlePos.p, toTarget)
- local part, position = game.Workspace:FindPartOnRay(ray, tool.Parent)
- if part and part.Parent and part.Parent:FindFirstChild("Humanoid") then
- part.Parent:FindFirstChild("Humanoid"):TakeDamage(damage)
- end
- if position then
- toTarget = position - handlePos.p
- end
- -- Create tracer trail. Trail is made of thin parts 2 studs long. Fades each segment
- -- starting with closest tracer to the tool.
- local bulletTrail = Instance.new("Model", game.Workspace)
- local trailTable = {}
- -- Fetch decal from server storage
- local decal = game.ServerStorage.ROBLOX_PistolTracerDecal
- for i = 0, toTarget.magnitude/2, 1 do
- local trailSegment = Instance.new("Part", bulletTrail)
- trailSegment.CanCollide = false
- trailSegment.Anchored = true
- trailSegment.FormFactor = Enum.FormFactor.Custom
- trailSegment.Size = Vector3.new(.1,.1,2)
- trailSegment.BrickColor = BrickColor.White()
- trailSegment.CFrame = CFrame.new(handlePos.p + (toTarget.unit * 2 * (i + .5)), handlePos.p)
- trailSegment.Transparency = 1
- -- Add point light to tracer for a little illumination
- local light = Instance.new("PointLight", trailSegment)
- light.Range = 3
- -- Add decal to faces of the part
- local function addDecal(face)
- local decalClone = decal:Clone()
- decalClone.Parent = trailSegment
- decalClone.Face = face
- end
- addDecal(Enum.NormalId.Top)
- addDecal(Enum.NormalId.Bottom)
- addDecal(Enum.NormalId.Left)
- addDecal(Enum.NormalId.Right)
- -- Add segment to all of the tracers
- table.insert(trailTable, trailSegment)
- end
- -- Coroutine thread to fade each trail segment. Put in coroutine so it does not
- -- block the rest of the pistol's script
- local fadeThread = coroutine.create(function()
- local count = 1
- local ended = false
- -- Keep looping until end condition is met
- while not ended do
- -- Assume end condition is met. Easier to switch it off later if we need to
- -- keep looping
- ended = true
- -- Loop through every part in the trail
- for index, part in pairs(trailTable) do
- if index <= count then
- local shouldDestroy = false
- for _, face in pairs(part:GetChildren()) do
- if face:IsA("Decal") then
- -- Increase decal transparencies and use this to determine if
- -- segment has completely faded
- face.Transparency = face.Transparency + .05
- if face.Transparency < 1 then
- ended = false
- else
- shouldDestroy = true
- end
- else
- -- Dim the point light
- face.Brightness = face.Brightness - .1
- end
- end
- -- If segment is completely faded then clean it up
- if shouldDestroy then
- table.remove(trailTable, index)
- part:Destroy()
- end
- end
- end
- count = count + 1
- wait()
- end
- bulletTrail:Destroy()
- end)
- coroutine.resume(fadeThread)
- end
- -- Function to bind to reload event
- local function reload()
- if not reloading then
- tool.ReloadSound:Play()
- reloading = true
- canFire = false
- wait(reloadTime)
- currentAmmo = clipSize
- canFire = true
- reloading = false
- end
- end
- reloadEvent.OnServerEvent:connect(reload)
- -- Bind function to fire event
- fireEvent.OnServerEvent:connect(function(player, target)
- if tool.Parent == player.Character then
- -- If tool has enough shots then fires. Otherwise reloads.
- if currentAmmo <= 0 then
- return reload()
- end
- if canFire then
- canFire = false
- currentAmmo = currentAmmo - 1
- fireSound:Play()
- createBullet(target)
- delay(attackCooldown, function()
- canFire = true
- end)
- end
- end
- end)
- end,o47)
- end))
- o48.Name = "ReloadSound"
- o48.Parent = o39
- o48.Pitch = 0.69999998807907
- o48.SoundId = "http://www.roblox.com/asset/?id=31762599"
- o48.Volume = 1
- o49.Name = "FireSound"
- o49.Parent = o39
- o49.Pitch = 0.69999998807907
- o49.SoundId = "http://www.roblox.com/asset/?id=12221976"
- o50.Name = "ROBLOX_PistolTracerDecal"
- o50.Parent = o39
- o50.Transparency = 0.5
- o50.Texture = "http://www.roblox.com/asset/?id=186982304"
- o50.Face = Enum.NormalId.Top
- o52.Parent = mas
- o52.BrickColor = BrickColor.new("Institutional white")
- o52.Position = Vector3.new(-3.04242778, 27.9451523, 45.879097)
- o52.Anchored = true
- o52.Size = Vector3.new(1.88000059, 1, 1.71000016)
- o52.CFrame = CFrame.new(-3.04242778, 27.9451523, 45.879097, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o52.BottomSurface = Enum.SurfaceType.Smooth
- o52.TopSurface = Enum.SurfaceType.Smooth
- o52.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o52.Position = Vector3.new(-3.04242778, 27.9451523, 45.879097)
- o53.Parent = o52
- o53.Range = 10
- o54.Name = "ButtonDoor"
- o54.Parent = mas
- o55.Name = "Door"
- o55.Parent = o54
- o55.Material = Enum.Material.DiamondPlate
- o55.BrickColor = BrickColor.new("Dark stone grey")
- o55.Position = Vector3.new(-3.15221953, 4.55396938, 35.912735)
- o55.Anchored = true
- o55.Size = Vector3.new(14.2800102, 9.27000523, 0.299999863)
- o55.CFrame = CFrame.new(-3.15221953, 4.55396938, 35.912735, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o55.BottomSurface = Enum.SurfaceType.Smooth
- o55.TopSurface = Enum.SurfaceType.Smooth
- o55.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o55.Position = Vector3.new(-3.15221953, 4.55396938, 35.912735)
- o56.Name = "Open2"
- o56.Parent = o54
- o56.BrickColor = BrickColor.new("Lime green")
- o56.Position = Vector3.new(5.06285286, 7.48103046, 36.3093414)
- o56.Anchored = true
- o56.Size = Vector3.new(1.5, 1.5, 0.25)
- o56.CFrame = CFrame.new(5.06285286, 7.48103046, 36.3093414, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o56.BottomSurface = Enum.SurfaceType.Smooth
- o56.TopSurface = Enum.SurfaceType.Smooth
- o56.Color = Color3.new(0, 0.666667, 0)
- o56.Position = Vector3.new(5.06285286, 7.48103046, 36.3093414)
- o57.Parent = o56
- o57.MaxActivationDistance = 15
- o58.Parent = o56
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- Door = script.Parent.Parent.Door
- local clickdetector = script.Parent:WaitForChild("ClickDetector")
- clickdetector.MouseClick:Connect(function()
- Door.CanCollide = false
- Door.Transparency = 0.4
- end)
- end,o58)
- end))
- o59.Parent = o56
- o59.Texture = "http://www.roblox.com/asset/?id=67952052"
- o59.Face = Enum.NormalId.Back
- o60.Name = "Close1"
- o60.Parent = o54
- o60.BrickColor = BrickColor.new("Crimson")
- o60.Position = Vector3.new(5.09890938, 5.53103638, 36.4298248)
- o60.Anchored = true
- o60.Size = Vector3.new(1.5, 1.5, 0.25)
- o60.CFrame = CFrame.new(5.09890938, 5.53103638, 36.4298248, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o60.BottomSurface = Enum.SurfaceType.Smooth
- o60.TopSurface = Enum.SurfaceType.Smooth
- o60.Color = Color3.new(0.666667, 0, 0)
- o60.Position = Vector3.new(5.09890938, 5.53103638, 36.4298248)
- o61.Parent = o60
- o61.MaxActivationDistance = 15
- o62.Parent = o60
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- Door = script.Parent.Parent.Door
- local clickdetector = script.Parent:WaitForChild("ClickDetector")
- clickdetector.MouseClick:Connect(function()
- Door.CanCollide = true
- Door.Transparency = 0
- end)
- end,o62)
- end))
- o63.Parent = o60
- o63.Texture = "http://www.roblox.com/asset/?id=67952435"
- o63.Face = Enum.NormalId.Back
- o64.Name = "Open2"
- o64.Parent = o54
- o64.BrickColor = BrickColor.new("Lime green")
- o64.Position = Vector3.new(-11.777422, 4.91896534, 35.6235504)
- o64.Rotation = Vector3.new(-180, 0, -180)
- o64.Anchored = true
- o64.Size = Vector3.new(1.5, 1.5, 0.25)
- o64.CFrame = CFrame.new(-11.777422, 4.91896534, 35.6235504, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- o64.BottomSurface = Enum.SurfaceType.Smooth
- o64.TopSurface = Enum.SurfaceType.Smooth
- o64.Color = Color3.new(0, 0.666667, 0)
- o64.Position = Vector3.new(-11.777422, 4.91896534, 35.6235504)
- o65.Parent = o64
- o65.MaxActivationDistance = 15
- o66.Parent = o64
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- Door = script.Parent.Parent.Door
- local clickdetector = script.Parent:WaitForChild("ClickDetector")
- clickdetector.MouseClick:Connect(function()
- Door.CanCollide = false
- Door.Transparency = 0.4
- end)
- end,o66)
- end))
- o67.Parent = o64
- o67.Texture = "http://www.roblox.com/asset/?id=67952052"
- o67.Face = Enum.NormalId.Back
- o68.Name = "Close2"
- o68.Parent = o54
- o68.BrickColor = BrickColor.new("Crimson")
- o68.Position = Vector3.new(-11.8190327, 2.78521252, 35.5709686)
- o68.Rotation = Vector3.new(-180, 0, -180)
- o68.Anchored = true
- o68.Size = Vector3.new(1.5, 1.5, 0.25)
- o68.CFrame = CFrame.new(-11.8190327, 2.78521252, 35.5709686, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- o68.BottomSurface = Enum.SurfaceType.Smooth
- o68.TopSurface = Enum.SurfaceType.Smooth
- o68.Color = Color3.new(0.666667, 0, 0)
- o68.Position = Vector3.new(-11.8190327, 2.78521252, 35.5709686)
- o69.Parent = o68
- o69.MaxActivationDistance = 15
- o70.Parent = o68
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --Made by TheCannibalFromMars!
- Door = script.Parent.Parent.Door
- local clickdetector = script.Parent:WaitForChild("ClickDetector")
- clickdetector.MouseClick:Connect(function()
- Door.CanCollide = true
- Door.Transparency = 0
- end)
- end,o70)
- end))
- o71.Parent = o68
- o71.Texture = "http://www.roblox.com/asset/?id=67952435"
- o71.Face = Enum.NormalId.Back
- o72.Parent = mas
- o72.BrickColor = BrickColor.new("Institutional white")
- o72.Position = Vector3.new(-3.11000562, 28.1867142, 46.0611343)
- o72.Anchored = true
- o72.Size = Vector3.new(19.8000011, 0.330000013, 20.6400051)
- o72.CFrame = CFrame.new(-3.11000562, 28.1867142, 46.0611343, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o72.BottomSurface = Enum.SurfaceType.Smooth
- o72.TopSurface = Enum.SurfaceType.Smooth
- o72.Color = Color3.new(0.972549, 0.972549, 0.972549)
- o72.Position = Vector3.new(-3.11000562, 28.1867142, 46.0611343)
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
- game:GetService("Lighting").Brightness = 2
- game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
- game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
- game:GetService("Lighting").GlobalShadows = true
- game:GetService("Lighting").OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
- game:GetService("Lighting").Outlines = false
- game:GetService("Lighting").GeographicLatitude = 41.733299255371
- game:GetService("Lighting").TimeOfDay = "14:00:00"
- game:GetService("Lighting").FogColor = Color3.new(0.752941, 0.752941, 0.752941)
- game:GetService("Lighting").FogEnd = 100000
- game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement