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:
- 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("Tool")
- o2 = Instance.new("BlockMesh")
- o3 = Instance.new("Part")
- o4 = Instance.new("SpecialMesh")
- o5 = Instance.new("Part")
- o6 = Instance.new("SpecialMesh")
- o7 = Instance.new("Part")
- o8 = Instance.new("BlockMesh")
- o9 = Instance.new("Part")
- o10 = Instance.new("BlockMesh")
- o11 = Instance.new("Part")
- o12 = Instance.new("BlockMesh")
- o13 = Instance.new("Part")
- o14 = Instance.new("SpecialMesh")
- o15 = Instance.new("Part")
- o16 = Instance.new("BlockMesh")
- o17 = Instance.new("Decal")
- o18 = Instance.new("Part")
- o19 = Instance.new("Sound")
- o20 = Instance.new("Sound")
- o21 = Instance.new("Sound")
- o22 = Instance.new("Sound")
- o23 = Instance.new("Weld")
- o24 = Instance.new("Weld")
- o25 = Instance.new("Weld")
- o26 = Instance.new("Weld")
- o27 = Instance.new("Weld")
- o28 = Instance.new("Weld")
- o29 = Instance.new("Weld")
- o30 = Instance.new("Weld")
- o31 = Instance.new("Weld")
- o32 = Instance.new("Weld")
- o33 = Instance.new("Weld")
- o34 = Instance.new("Weld")
- o35 = Instance.new("Weld")
- o36 = Instance.new("Weld")
- o37 = Instance.new("Weld")
- o38 = Instance.new("Weld")
- o39 = Instance.new("Weld")
- o40 = Instance.new("Weld")
- o41 = Instance.new("Weld")
- o42 = Instance.new("Weld")
- o43 = Instance.new("Weld")
- o44 = Instance.new("Weld")
- o45 = Instance.new("Part")
- o46 = Instance.new("BlockMesh")
- o47 = Instance.new("SpotLight")
- o48 = Instance.new("Part")
- o49 = Instance.new("BlockMesh")
- o50 = Instance.new("Part")
- o51 = Instance.new("SpecialMesh")
- o52 = Instance.new("Part")
- o53 = Instance.new("BlockMesh")
- o54 = Instance.new("Part")
- o55 = Instance.new("SpecialMesh")
- o56 = Instance.new("Part")
- o57 = Instance.new("BlockMesh")
- o58 = Instance.new("Part")
- o59 = Instance.new("BlockMesh")
- o60 = Instance.new("Part")
- o61 = Instance.new("BlockMesh")
- o62 = Instance.new("BoolValue")
- o63 = Instance.new("BoolValue")
- o64 = Instance.new("Part")
- o65 = Instance.new("BlockMesh")
- o66 = Instance.new("Part")
- o67 = Instance.new("BlockMesh")
- o68 = Instance.new("IntValue")
- o69 = Instance.new("LocalScript")
- o70 = Instance.new("ScreenGui")
- o71 = Instance.new("Frame")
- o72 = Instance.new("Frame")
- o73 = Instance.new("TextLabel")
- o74 = Instance.new("TextLabel")
- o75 = Instance.new("TextLabel")
- o76 = Instance.new("TextLabel")
- o77 = Instance.new("TextLabel")
- o78 = Instance.new("Part")
- o79 = Instance.new("BlockMesh")
- o80 = Instance.new("Part")
- o81 = Instance.new("SpecialMesh")
- o82 = Instance.new("Script")
- o83 = Instance.new("Script")
- o84 = Instance.new("Script")
- o85 = Instance.new("LocalScript")
- o1.Name = "ER-31X"
- o1.Parent = game.Players.LocalPlayer.Backpack
- o2.Name = "BarbMesh"
- o2.Parent = o1
- o2.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
- o3.Parent = o1
- o3.BrickColor = BrickColor.new("Light stone grey")
- o3.Reflectance = 0.10000000149012
- o3.Transparency = 0.20000000298023
- o3.Position = Vector3.new(12.4499998, 5.89999247, -81.3000412)
- o3.FormFactor = Enum.FormFactor.Custom
- o3.Size = Vector3.new(0.300000012, 0.200000003, 0.200000003)
- o3.CFrame = CFrame.new(12.4499998, 5.89999247, -81.3000412, 1, 6.13542691e-14, 0, 6.13542691e-14, 1, 0, 0, 0, 1)
- o3.BottomSurface = Enum.SurfaceType.Smooth
- o3.TopSurface = Enum.SurfaceType.Smooth
- o3.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o3.Position = Vector3.new(12.4499998, 5.89999247, -81.3000412)
- o4.Parent = o3
- o4.Scale = Vector3.new(1, 1, 0.5)
- o4.MeshType = Enum.MeshType.Wedge
- o5.Parent = o1
- o5.BrickColor = BrickColor.new("Light stone grey")
- o5.Reflectance = 0.10000000149012
- o5.Transparency = 0.20000000298023
- o5.Position = Vector3.new(12.4500055, 6.15000343, -81.275032)
- o5.Rotation = Vector3.new(0, 0, 180)
- o5.FormFactor = Enum.FormFactor.Custom
- o5.Size = Vector3.new(0.300000012, 0.200000003, 0.200000003)
- o5.CFrame = CFrame.new(12.4500055, 6.15000343, -81.275032, -1, -5.21518331e-08, 2.23519692e-08, 5.21517194e-08, -1, 3.72528461e-08, 2.23519692e-08, 3.72528604e-08, 1)
- o5.BottomSurface = Enum.SurfaceType.Smooth
- o5.TopSurface = Enum.SurfaceType.Smooth
- o5.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o5.Position = Vector3.new(12.4500055, 6.15000343, -81.275032)
- o6.Parent = o5
- o6.Scale = Vector3.new(1, 0.5, 0.25)
- o6.MeshType = Enum.MeshType.Wedge
- o7.Parent = o1
- o7.BrickColor = BrickColor.new("Light stone grey")
- o7.Reflectance = 0.10000000149012
- o7.Transparency = 0.20000000298023
- o7.Position = Vector3.new(12.4499989, 6.29999781, -80.4499588)
- o7.Rotation = Vector3.new(180, 0, 180)
- o7.FormFactor = Enum.FormFactor.Custom
- o7.Size = Vector3.new(0.300000012, 0.200000003, 1)
- o7.CFrame = CFrame.new(12.4499989, 6.29999781, -80.4499588, -1, -4.26233726e-07, 4.11052497e-07, -4.26233896e-07, 1, -1.19209744e-07, -4.11052383e-07, -1.19209915e-07, -1)
- o7.BottomSurface = Enum.SurfaceType.Smooth
- o7.TopSurface = Enum.SurfaceType.Smooth
- o7.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o7.Position = Vector3.new(12.4499989, 6.29999781, -80.4499588)
- o8.Parent = o7
- o8.Offset = Vector3.new(0, -0.0610000007, 0)
- o8.Scale = Vector3.new(1, 0.400000006, 1)
- o9.Name = "Probe"
- o9.Parent = o1
- o9.Reflectance = 0.20000000298023
- o9.Position = Vector3.new(12.4500055, 6.09999275, -79.8498993)
- o9.Rotation = Vector3.new(180, 0, 180)
- o9.FormFactor = Enum.FormFactor.Custom
- o9.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o9.CFrame = CFrame.new(12.4500055, 6.09999275, -79.8498993, -1, -1.03038246e-05, 5.44461091e-06, -1.03038365e-05, 1, -2.21278106e-06, -5.44458817e-06, -2.21283722e-06, -1)
- o9.BottomSurface = Enum.SurfaceType.Smooth
- o9.TopSurface = Enum.SurfaceType.Smooth
- o9.Position = Vector3.new(12.4500055, 6.09999275, -79.8498993)
- o10.Parent = o9
- o10.Offset = Vector3.new(0, 0.140000001, 0.100000001)
- o10.Scale = Vector3.new(0.400000006, 0.300000012, 0.200000003)
- o11.Parent = o1
- o11.BrickColor = BrickColor.new("Light stone grey")
- o11.Reflectance = 0.10000000149012
- o11.Transparency = 0.20000000298023
- o11.Position = Vector3.new(12.4499998, 5.9000001, -80.4500046)
- o11.Rotation = Vector3.new(-180, 0, 180)
- o11.FormFactor = Enum.FormFactor.Custom
- o11.Size = Vector3.new(0.300000012, 0.200000003, 1)
- o11.CFrame = CFrame.new(12.4499998, 5.9000001, -80.4500046, -1, -6.22973971e-07, -6.68012603e-07, -6.22974028e-07, 1, 2.98028766e-08, 6.68012603e-07, 2.98032923e-08, -1)
- o11.BottomSurface = Enum.SurfaceType.Smooth
- o11.TopSurface = Enum.SurfaceType.Smooth
- o11.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o11.Position = Vector3.new(12.4499998, 5.9000001, -80.4500046)
- o12.Parent = o11
- o12.Offset = Vector3.new(0, 0.075000003, 0)
- o12.Scale = Vector3.new(1, 0.25, 1)
- o13.Name = "CartPart2"
- o13.Parent = o1
- o13.BrickColor = BrickColor.new("Black")
- o13.Position = Vector3.new(12.4500036, 5.97498035, -79.8499451)
- o13.Rotation = Vector3.new(-90, 0, -180)
- o13.FormFactor = Enum.FormFactor.Custom
- o13.Size = Vector3.new(0.300000012, 0.200000003, 0.200000003)
- o13.CFrame = CFrame.new(12.4500036, 5.97498035, -79.8499451, -1, 6.21577419e-06, -1.4625467e-05, -1.46253042e-05, 2.6247546e-05, 1, 6.21615845e-06, 1, -2.6247455e-05)
- o13.BottomSurface = Enum.SurfaceType.Smooth
- o13.TopSurface = Enum.SurfaceType.Smooth
- o13.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o13.Position = Vector3.new(12.4500036, 5.97498035, -79.8499451)
- o14.Parent = o13
- o14.Scale = Vector3.new(1, 1, 0.25)
- o14.MeshType = Enum.MeshType.Wedge
- o15.Name = "Electric"
- o15.Parent = o1
- o15.Transparency = 1
- o15.Position = Vector3.new(12.4499979, 6.09997463, -79.8498993)
- o15.Rotation = Vector3.new(180, 0, 90)
- o15.FormFactor = Enum.FormFactor.Custom
- o15.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o15.CFrame = CFrame.new(12.4499979, 6.09997463, -79.8498993, 1.37414181e-05, -1, 2.41971316e-06, -1, -1.37414181e-05, -3.5016339e-07, 3.50196643e-07, -2.41970838e-06, -1)
- o15.BottomSurface = Enum.SurfaceType.Smooth
- o15.TopSurface = Enum.SurfaceType.Smooth
- o15.Position = Vector3.new(12.4499979, 6.09997463, -79.8498993)
- o16.Parent = o15
- o16.Offset = Vector3.new(-0.00999999978, 0, 0.0900000036)
- o16.Scale = Vector3.new(1, 1, 0)
- o17.Parent = o15
- o18.Name = "Handle"
- o18.Parent = o1
- o18.BrickColor = BrickColor.new("Light stone grey")
- o18.Reflectance = 0.10000000149012
- o18.Transparency = 0.20000000298023
- o18.Position = Vector3.new(12.4499998, 5.49999475, -81.2500381)
- o18.Rotation = Vector3.new(180, 0, -180)
- o18.FormFactor = Enum.FormFactor.Custom
- o18.Size = Vector3.new(0.300000012, 0.600000024, 0.200000003)
- o18.CFrame = CFrame.new(12.4499998, 5.49999475, -81.2500381, -1, 2.66120907e-07, 1.40528471e-06, 2.66120537e-07, 1, -1.78813963e-07, -1.40528471e-06, -1.78813593e-07, -1)
- o18.BottomSurface = Enum.SurfaceType.Smooth
- o18.TopSurface = Enum.SurfaceType.Smooth
- o18.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o18.Position = Vector3.new(12.4499998, 5.49999475, -81.2500381)
- o19.Name = "Shot"
- o19.Parent = o18
- o19.Pitch = 3
- o19.SoundId = "http://roblox.com/asset/?id=10209859"
- o19.Volume = 1
- o20.Name = "sound2"
- o20.Parent = o18
- o20.Pitch = 4
- o20.SoundId = "rbxasset://sounds/clickfast.wav"
- o20.Volume = 1
- o21.Name = "sound3"
- o21.Parent = o18
- o21.Pitch = 6
- o21.SoundId = "rbxasset://sounds/clickfast.wav"
- o21.Volume = 1
- o22.Name = "sound"
- o22.Parent = o18
- o22.Pitch = 5
- o22.SoundId = "rbxasset://sounds/clickfast.wav"
- o22.Volume = 1
- o23.Parent = o18
- o23.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o23.C1 = CFrame.new(0.599979401, 9.53674316e-06, 1.40009689, 1.40070906e-05, -0.999999762, -0.000796118227, -1, -1.40062793e-05, -1.02556487e-06, 1.01441378e-06, 0.000796118227, -0.999999762)
- o23.Part0 = o18
- o23.Part1 = o15
- o24.Parent = o18
- o24.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o24.C1 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o24.Part0 = o18
- o24.Part1 = o18
- o25.Parent = o18
- o25.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o25.C1 = CFrame.new(0, -0.400001526, 1.00007629, -1, -8.9074075e-07, 2.07258881e-06, -8.8908962e-07, 0.999999762, 0.000796498323, -2.07329731e-06, 0.000796498323, -0.999999762)
- o25.Part0 = o18
- o25.Part1 = o45
- o26.Parent = o18
- o26.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o26.C1 = CFrame.new(0, -0.600006104, 0.900062561, -1, -8.9074075e-07, 2.07258881e-06, -8.8908962e-07, 0.999999762, 0.000796498323, -2.07329731e-06, 0.000796498323, -0.999999762)
- o26.Part0 = o18
- o26.Part1 = o48
- o27.Parent = o18
- o27.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o27.C1 = CFrame.new(0, -3.81469727e-06, 0.180015564, 1, 2.67245099e-07, -1.40507154e-06, -2.6612588e-07, 0.999999762, 0.000796468405, 1.4052838e-06, -0.000796468405, 0.999999762)
- o27.Part0 = o18
- o27.Part1 = o50
- o28.Parent = o18
- o28.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o28.C1 = CFrame.new(0, -0.800003052, 0.200008392, -1, -8.9074075e-07, 2.07258881e-06, -8.8908962e-07, 0.999999762, 0.000796498323, -2.07329731e-06, 0.000796498323, -0.999999762)
- o28.Part0 = o18
- o28.Part1 = o52
- o29.Parent = o18
- o29.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o29.C1 = CFrame.new(1.90734863e-06, 3.81469727e-06, 0.180019379, 1, 2.67290972e-07, -1.46281366e-06, 2.66125852e-07, -0.999999762, -0.000796416251, -1.46302591e-06, 0.000796416251, -0.999999762)
- o29.Part0 = o18
- o29.Part1 = o54
- o30.Parent = o18
- o30.C0 = CFrame.new(0, 0, 0, -1.00000548, 9.05259183e-17, -2.27373675e-13, -9.05259183e-17, 0.999999702, 0.000796276494, 2.27373675e-13, 0.000796276494, -1.00000525)
- o30.C1 = CFrame.new(0, 0, 0, -1.00000548, 9.05259183e-17, -2.27373675e-13, -9.05259183e-17, 0.999999702, 0.000796276494, 2.27373675e-13, 0.000796276494, -1.00000525)
- o30.Part0 = o18
- o30.Part1 = o18
- o31.Parent = o18
- o31.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o31.C1 = CFrame.new(1.90734863e-06, -1.40006256, -0.474948883, -1, -1.48979634e-05, 7.6095771e-06, 7.62104901e-06, -0.000770220067, 0.999999762, -1.48920972e-05, 0.999999762, 0.000770220184)
- o31.Part0 = o18
- o31.Part1 = o13
- o32.Parent = o18
- o32.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o32.C1 = CFrame.new(0, -0.400005341, 0.800033569, -1.00000656, -8.90747685e-07, 2.072602e-06, -8.89101443e-07, 0.999999642, 0.000796482898, -2.0733105e-06, 0.000796488312, -1.00000644)
- o32.Part0 = o18
- o32.Part1 = o11
- o33.Parent = o18
- o33.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o33.C1 = CFrame.new(1.90734863e-05, -0.599995136, 1.40009689, -1, -1.05670733e-05, -4.04771799e-06, -1.05702838e-05, 0.999999762, 0.00079424819, 4.03932336e-06, 0.000794248248, -0.999999762)
- o33.Part0 = o18
- o33.Part1 = o9
- o34.Parent = o18
- o34.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o34.C1 = CFrame.new(0, -0.800003052, 0.800056458, -1, -6.93165077e-07, 9.93679919e-07, -6.92373476e-07, 0.999999762, 0.000796349312, -9.94231527e-07, 0.000796349312, -0.999999762)
- o34.Part0 = o18
- o34.Part1 = o7
- o35.Parent = o18
- o35.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o35.C1 = CFrame.new(5.7220459e-06, 0.650008678, 0.0249938965, -1, -2.15109438e-07, 1.42746501e-06, 2.13972484e-07, -0.999999762, -0.000796431035, 1.42763577e-06, -0.000796431035, 0.999999762)
- o35.Part0 = o18
- o35.Part1 = o5
- o36.Parent = o18
- o36.C0 = CFrame.new(0, 0, 0, -1, -5.25194763e-22, 3.85268963e-22, 4.33056011e-22, -0.0942550078, 0.995548069, -4.86543103e-22, 0.995548069, 0.0942550078)
- o36.C1 = CFrame.new(-7.62939453e-06, -0.400009155, 0.600020409, -1.00000548, -1.98027692e-06, -1.08055269e-06, -8.89095588e-07, -0.0942552164, 0.995548069, -2.07330868e-06, 0.995553672, 0.0942557454)
- o36.Part0 = o18
- o36.Part1 = o56
- o37.Parent = o18
- o37.C0 = CFrame.new(0, 0, 0, -1, -5.25194763e-22, 3.85268963e-22, 4.33056011e-22, -0.0942550078, 0.995548069, -4.86543103e-22, 0.995548069, 0.0942550078)
- o37.C1 = CFrame.new(1.90734863e-05, -0.59998703, 1.40004396, -1.00000548, 5.01764407e-06, -1.01425103e-05, -1.05703448e-05, -0.0942529812, 0.995548248, 4.03934519e-06, 0.995553851, 0.0942535028)
- o37.Part0 = o18
- o37.Part1 = o58
- o38.Parent = o18
- o38.C0 = CFrame.new(0, 0, 0, -1, -5.25194763e-22, 3.85268963e-22, 4.33056011e-22, -0.0942550078, 0.995548069, -4.86543103e-22, 0.995548069, 0.0942550078)
- o38.C1 = CFrame.new(0, -0.500007629, 0.200006723, -1.00000548, -1.98027692e-06, -1.08055269e-06, -8.89095588e-07, -0.0942552164, 0.995548069, -2.07330868e-06, 0.995553672, 0.0942557454)
- o38.Part0 = o18
- o38.Part1 = o60
- o39.Parent = o18
- o39.C0 = CFrame.new(0, 0, 0, -1, -5.25194763e-22, 3.85268963e-22, 4.33056011e-22, -0.0942550078, 0.995548069, -4.86543103e-22, 0.995548069, 0.0942550078)
- o39.C1 = CFrame.new(-7.62939453e-06, -0.599994659, 1.60005093, -1.00000548, -4.94962251e-06, -1.25819952e-06, -7.86074793e-07, -0.0942551717, 0.995548069, -5.04617901e-06, 0.995553672, 0.0942557007)
- o39.Part0 = o18
- o39.Part1 = o78
- o40.Parent = o18
- o40.C0 = CFrame.new(0, 0, 0, -1, -5.25194763e-22, 3.85268963e-22, 4.33056011e-22, -0.0942550078, 0.995548069, -4.86543103e-22, 0.995548069, 0.0942550078)
- o40.C1 = CFrame.new(-1.90734863e-05, -1.40005493, 0.754981995, 1.00000548, -4.83451413e-06, 2.2322838e-06, -4.60262709e-06, -0.995554924, -0.0942409635, 2.677971e-06, 0.0942404494, -0.995549381)
- o40.Part0 = o18
- o40.Part1 = o80
- o41.Parent = o18
- o41.C0 = CFrame.new(0, 0, 0, -1, -5.25194763e-22, 3.85268963e-22, 4.33056011e-22, -0.0942550078, 0.995548069, -4.86543103e-22, 0.995548069, 0.0942550078)
- o41.C1 = CFrame.new(-7.62939453e-06, -0.599994659, 1.60005093, -1.00000548, -4.94962251e-06, -1.25819952e-06, -7.86074793e-07, -0.0942551717, 0.995548069, -5.04617901e-06, 0.995553672, 0.0942557007)
- o41.Part0 = o18
- o41.Part1 = o64
- o42.Parent = o18
- o42.C0 = CFrame.new(0, 0, 0, -1, -5.25194763e-22, 3.85268963e-22, 4.33056011e-22, -0.0942550078, 0.995548069, -4.86543103e-22, 0.995548069, 0.0942550078)
- o42.C1 = CFrame.new(-1.14440918e-05, -0.599994659, 1.40004826, -1.00000548, -4.94962251e-06, -1.25819952e-06, -7.86074793e-07, -0.0942551717, 0.995548069, -5.04617901e-06, 0.995553672, 0.0942557007)
- o42.Part0 = o18
- o42.Part1 = o66
- o43.Parent = o18
- o43.C0 = CFrame.new(0, 0, 0, -1, -5.25194763e-22, 3.85268963e-22, 4.33056011e-22, -0.0942550078, 0.995548069, -4.86543103e-22, 0.995548069, 0.0942550078)
- o43.C1 = CFrame.new(0, 0, 0, -1, -5.25194763e-22, 3.85268963e-22, 4.33056011e-22, -0.0942550078, 0.995548069, -4.86543103e-22, 0.995548069, 0.0942550078)
- o43.Part0 = o18
- o43.Part1 = o18
- o44.Parent = o18
- o44.C0 = CFrame.new(0, 0, 0, -1, 1.08001032e-12, 8.60004675e-16, 1.08001065e-12, 0.999999762, 0.000796285225, 0, 0.000796285225, -0.999999762)
- o44.C1 = CFrame.new(0, -0.399997711, 0.0500030518, 1, 2.67245099e-07, -1.40507177e-06, -2.6612588e-07, 0.999999762, 0.000796468405, 1.40528402e-06, -0.000796468405, 0.999999762)
- o44.Part0 = o18
- o44.Part1 = o3
- o45.Name = "Lamp"
- o45.Parent = o1
- o45.Material = Enum.Material.SmoothPlastic
- o45.BrickColor = BrickColor.new("White")
- o45.Reflectance = 0.10000000149012
- o45.Position = Vector3.new(12.4499998, 5.89999628, -80.2499313)
- o45.Rotation = Vector3.new(-180, 0, 180)
- o45.FormFactor = Enum.FormFactor.Custom
- o45.Size = Vector3.new(0.300000012, 0.200000003, 0.200000003)
- o45.CFrame = CFrame.new(12.4499998, 5.89999628, -80.2499313, -1, -6.22943674e-07, -6.6801374e-07, -6.22943787e-07, 1, 2.98010292e-08, 6.68013627e-07, 2.98014413e-08, -1)
- o45.BottomSurface = Enum.SurfaceType.Smooth
- o45.TopSurface = Enum.SurfaceType.Smooth
- o45.Color = Color3.new(0.94902, 0.952941, 0.952941)
- o45.Position = Vector3.new(12.4499998, 5.89999628, -80.2499313)
- o46.Parent = o45
- o46.Offset = Vector3.new(0, -0.0250000004, 0.104999997)
- o46.Scale = Vector3.new(0.899999976, 0.649999976, 0.100000001)
- o47.Name = "Light"
- o47.Parent = o45
- o47.Enabled = false
- o47.Brightness = 2
- o47.Range = 30
- o47.Shadows = true
- o48.Parent = o1
- o48.BrickColor = BrickColor.new("Light stone grey")
- o48.Reflectance = 0.10000000149012
- o48.Transparency = 0.20000000298023
- o48.Position = Vector3.new(12.4499998, 6.10000086, -80.3499451)
- o48.Rotation = Vector3.new(-180, 0, 180)
- o48.FormFactor = Enum.FormFactor.Custom
- o48.Size = Vector3.new(0.300000012, 0.200000003, 0.800000012)
- o48.CFrame = CFrame.new(12.4499998, 6.10000086, -80.3499451, -1, -6.22943674e-07, -6.6801374e-07, -6.22943787e-07, 1, 2.98010292e-08, 6.68013627e-07, 2.98014413e-08, -1)
- o48.BottomSurface = Enum.SurfaceType.Smooth
- o48.TopSurface = Enum.SurfaceType.Smooth
- o48.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o48.Position = Vector3.new(12.4499998, 6.10000086, -80.3499451)
- o49.Parent = o48
- o50.Parent = o1
- o50.BrickColor = BrickColor.new("Light stone grey")
- o50.Reflectance = 0.10000000149012
- o50.Transparency = 0.20000000298023
- o50.Position = Vector3.new(12.4499998, 5.49999857, -81.4300613)
- o50.FormFactor = Enum.FormFactor.Custom
- o50.Size = Vector3.new(0.300000012, 0.600000024, 0.200000003)
- o50.CFrame = CFrame.new(12.4499998, 5.49999857, -81.4300613, 1, 6.13542691e-14, -2.27373675e-13, 6.13543233e-14, 1, 0, 2.27373675e-13, 0, 1)
- o50.BottomSurface = Enum.SurfaceType.Smooth
- o50.TopSurface = Enum.SurfaceType.Smooth
- o50.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o50.Position = Vector3.new(12.4499998, 5.49999857, -81.4300613)
- o51.Parent = o50
- o51.Scale = Vector3.new(1, 1, 0.800000012)
- o51.MeshType = Enum.MeshType.Wedge
- o52.Parent = o1
- o52.BrickColor = BrickColor.new("Light stone grey")
- o52.Reflectance = 0.10000000149012
- o52.Transparency = 0.20000000298023
- o52.Position = Vector3.new(12.4499998, 6.29999781, -81.0500259)
- o52.Rotation = Vector3.new(-180, 0, 180)
- o52.FormFactor = Enum.FormFactor.Custom
- o52.Size = Vector3.new(0.300000012, 0.200000003, 0.200000033)
- o52.CFrame = CFrame.new(12.4499998, 6.29999781, -81.0500259, -1, -6.22943674e-07, -6.6801374e-07, -6.22943787e-07, 1, 2.98010292e-08, 6.68013627e-07, 2.98014413e-08, -1)
- o52.BottomSurface = Enum.SurfaceType.Smooth
- o52.TopSurface = Enum.SurfaceType.Smooth
- o52.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o52.Position = Vector3.new(12.4499998, 6.29999781, -81.0500259)
- o53.Parent = o52
- o53.Offset = Vector3.new(0, -0.0500000007, 0.075000003)
- o53.Scale = Vector3.new(1, 0.5, 1.75)
- o54.Parent = o1
- o54.BrickColor = BrickColor.new("Light stone grey")
- o54.Reflectance = 0.10000000149012
- o54.Transparency = 0.20000000298023
- o54.Position = Vector3.new(12.4499979, 5.49999857, -81.070015)
- o54.Rotation = Vector3.new(180, 0, 0)
- o54.FormFactor = Enum.FormFactor.Custom
- o54.Size = Vector3.new(0.300000012, 0.600010157, 0.200000033)
- o54.CFrame = CFrame.new(12.4499979, 5.49999857, -81.070015, 1, -1.34645631e-13, -5.77417723e-08, -5.81416968e-15, -1, -5.21540926e-08, -5.77417723e-08, 5.21540926e-08, -1)
- o54.BottomSurface = Enum.SurfaceType.Smooth
- o54.TopSurface = Enum.SurfaceType.Smooth
- o54.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o54.Position = Vector3.new(12.4499979, 5.49999857, -81.070015)
- o55.Parent = o54
- o55.Scale = Vector3.new(1, 1, 0.800000012)
- o55.MeshType = Enum.MeshType.Wedge
- o56.Parent = o1
- o56.BrickColor = BrickColor.new("Light stone grey")
- o56.Reflectance = 0.10000000149012
- o56.Transparency = 0.20000000298023
- o56.Position = Vector3.new(12.4499922, 5.90000391, -80.6500168)
- o56.Rotation = Vector3.new(-180, 0, 180)
- o56.FormFactor = Enum.FormFactor.Custom
- o56.Size = Vector3.new(0.300000012, 0.200000003, 0.600000024)
- o56.CFrame = CFrame.new(12.4499922, 5.90000391, -80.6500168, -1.00000548, -6.22974937e-07, -6.68016128e-07, -6.22968685e-07, 1, 2.98018392e-08, 6.68016128e-07, 2.98014129e-08, -1.0000056)
- o56.BottomSurface = Enum.SurfaceType.Smooth
- o56.TopSurface = Enum.SurfaceType.Smooth
- o56.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o56.Position = Vector3.new(12.4499922, 5.90000391, -80.6500168)
- o57.Parent = o56
- o57.Offset = Vector3.new(0, -0.0250000004, 0)
- o57.Scale = Vector3.new(1, 0.75, 1)
- o58.Parent = o1
- o58.Reflectance = 0.20000000298023
- o58.Position = Vector3.new(12.4500055, 6.09998512, -79.8499908)
- o58.Rotation = Vector3.new(180, 0, 180)
- o58.CanCollide = false
- o58.FormFactor = Enum.FormFactor.Custom
- o58.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o58.CFrame = CFrame.new(12.4500055, 6.09998512, -79.8499908, -1.00000548, -1.03042212e-05, 5.44463728e-06, -1.03041739e-05, 1, -2.22027529e-06, -5.44461363e-06, -2.21283699e-06, -1.0000056)
- o58.BottomSurface = Enum.SurfaceType.Smooth
- o58.TopSurface = Enum.SurfaceType.Smooth
- o58.Position = Vector3.new(12.4500055, 6.09998512, -79.8499908)
- o59.Parent = o58
- o59.Offset = Vector3.new(0, -0.109999999, 0.100000001)
- o59.Scale = Vector3.new(0.400000006, 0.300000012, 0.200000003)
- o60.Parent = o1
- o60.BrickColor = BrickColor.new("Light stone grey")
- o60.Reflectance = 0.10000000149012
- o60.Transparency = 0.20000000298023
- o60.Position = Vector3.new(12.4499998, 6.00000238, -81.0500336)
- o60.Rotation = Vector3.new(-180, 0, 180)
- o60.FormFactor = Enum.FormFactor.Custom
- o60.Size = Vector3.new(0.300000012, 0.400000036, 0.200000003)
- o60.CFrame = CFrame.new(12.4499998, 6.00000238, -81.0500336, -1.00000548, -6.22974937e-07, -6.68016128e-07, -6.22968685e-07, 1, 2.98018392e-08, 6.68016128e-07, 2.98014129e-08, -1.0000056)
- o60.BottomSurface = Enum.SurfaceType.Smooth
- o60.TopSurface = Enum.SurfaceType.Smooth
- o60.Color = Color3.new(0.898039, 0.894118, 0.87451)
- o60.Position = Vector3.new(12.4499998, 6.00000238, -81.0500336)
- o61.Parent = o60
- o61.Offset = Vector3.new(0, 0, 0.0500000007)
- o61.Scale = Vector3.new(1, 1, 1.5)
- o62.Name = "Cartr"
- o62.Parent = o1
- o62.Value = true
- o63.Name = "Deployed"
- o63.Parent = o1
- o64.Name = "BlastDoor1"
- o64.Parent = o1
- o64.BrickColor = BrickColor.new("Lime green")
- o64.Position = Vector3.new(12.4499979, 6.09998941, -79.6499786)
- o64.Rotation = Vector3.new(180, 0, 180)
- o64.FormFactor = Enum.FormFactor.Custom
- o64.Size = Vector3.new(0.200000003, 0.200000003, 0.200000033)
- o64.CFrame = CFrame.new(12.4499979, 6.09998941, -79.6499786, -1.00000548, -5.19954142e-07, -3.64088646e-06, -5.19948458e-07, 1, -1.49008628e-08, 3.64088669e-06, -1.49019286e-08, -1.0000056)
- o64.BottomSurface = Enum.SurfaceType.Smooth
- o64.TopSurface = Enum.SurfaceType.Smooth
- o64.Color = Color3.new(0, 1, 0)
- o64.Position = Vector3.new(12.4499979, 6.09998941, -79.6499786)
- o65.Parent = o64
- o65.Offset = Vector3.new(0.0719999969, 0.0149999997, 0.100000001)
- o65.Scale = Vector3.new(0.699999988, 1.10000002, 0.100000001)
- o66.Name = "Cart"
- o66.Parent = o1
- o66.BrickColor = BrickColor.new("Black")
- o66.Position = Vector3.new(12.4499931, 6.09998941, -79.8499832)
- o66.Rotation = Vector3.new(180, 0, 180)
- o66.FormFactor = Enum.FormFactor.Custom
- o66.Size = Vector3.new(0.300000012, 0.200000003, 0.200000033)
- o66.CFrame = CFrame.new(12.4499931, 6.09998941, -79.8499832, -1.00000548, -5.19954142e-07, -3.64088646e-06, -5.19948458e-07, 1, -1.49008628e-08, 3.64088669e-06, -1.49019286e-08, -1.0000056)
- o66.BottomSurface = Enum.SurfaceType.Smooth
- o66.TopSurface = Enum.SurfaceType.Smooth
- o66.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o66.Position = Vector3.new(12.4499931, 6.09998941, -79.8499832)
- o67.Parent = o66
- o67.Offset = Vector3.new(0, 0.0149999997, 0)
- o67.Scale = Vector3.new(1, 1.14999998, 1)
- o68.Name = "TimerVal"
- o68.Parent = o1
- o69.Name = "BackupWeld"
- o69.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = x
- end
- function Get(A)
- if A.className == "Part" then
- Weld(script.Parent.Handle, A)
- A.Anchored = false
- else
- local C = A:GetChildren()
- for i=1, #C do
- Get(C[i])
- end
- end
- end
- function Finale()
- Get(script.Parent)
- end
- script.Parent.Equipped:connect(Finale)
- script.Parent.Unequipped:connect(Finale)
- Finale()
- end,o69)
- end))
- o70.Name = "Gui"
- o70.Parent = o1
- o71.Name = "Main"
- o71.Parent = o70
- o71.Position = UDim2.new(0,0,0.5,-62)
- o71.Size = UDim2.new(0,100,0,125)
- o71.Position = UDim2.new(0,0,0.5,-62)
- o71.BackgroundColor3 = Color3.new(0.945098, 0.945098, 0.945098)
- o71.BorderColor3 = Color3.new(0.811765, 0.811765, 0.811765)
- o72.Name = "Background"
- o72.Parent = o71
- o72.Position = UDim2.new(0,5,0,25)
- o72.Size = UDim2.new(0,90,0,50)
- o72.Position = UDim2.new(0,5,0,25)
- o72.BackgroundColor3 = Color3.new(0, 0, 0)
- o72.BorderColor3 = Color3.new(0.811765, 0.811765, 0.811765)
- o72.BorderSizePixel = 0
- o73.Name = "Logo"
- o73.Parent = o71
- o73.Position = UDim2.new(0,0,0,5)
- o73.Size = UDim2.new(0,100,0,15)
- o73.Text = "IER ER-31X"
- o73.Position = UDim2.new(0,0,0,5)
- o73.BackgroundColor3 = Color3.new(0.85098, 0.85098, 0.85098)
- o73.BorderSizePixel = 0
- o73.Font = Enum.Font.Arial
- o73.FontSize = Enum.FontSize.Size14
- o73.TextColor3 = Color3.new(0, 0, 0)
- o74.Name = "Countdown"
- o74.Parent = o71
- o74.Position = UDim2.new(0,15,0,35)
- o74.Size = UDim2.new(0,30,0,30)
- o74.Text = ""
- o74.Position = UDim2.new(0,15,0,35)
- o74.BackgroundColor3 = Color3.new(1, 1, 0.498039)
- o74.BackgroundTransparency = 1
- o74.BorderSizePixel = 0
- o74.Font = Enum.Font.Arial
- o74.FontSize = Enum.FontSize.Size36
- o74.TextColor3 = Color3.new(1, 0, 0)
- o75.Name = "CartStatus"
- o75.Parent = o71
- o75.Position = UDim2.new(0,60,0,30)
- o75.Size = UDim2.new(0,30,0,40)
- o75.Text = "1"
- o75.Position = UDim2.new(0,60,0,30)
- o75.BackgroundColor3 = Color3.new(1, 1, 0.498039)
- o75.BorderColor3 = Color3.new(1, 1, 1)
- o75.Font = Enum.Font.ArialBold
- o75.FontSize = Enum.FontSize.Size24
- o75.TextColor3 = Color3.new(0, 0, 0)
- o76.Name = "Controls"
- o76.Parent = o71
- o76.Position = UDim2.new(0,0,0,77)
- o76.Size = UDim2.new(0,100,0,13)
- o76.Text = "Press Y for Light"
- o76.Position = UDim2.new(0,0,0,77)
- o76.BackgroundColor3 = Color3.new(1, 1, 1)
- o76.BackgroundTransparency = 1
- o76.BorderColor3 = Color3.new(1, 1, 1)
- o76.BorderSizePixel = 0
- o76.Font = Enum.Font.Arial
- o76.FontSize = Enum.FontSize.Size11
- o76.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- o77.Name = "Controls2"
- o77.Parent = o71
- o77.Position = UDim2.new(0,0,0,87)
- o77.Size = UDim2.new(0,100,0,35)
- o77.Text = "Press R to remove cartridge, then to reload"
- o77.Position = UDim2.new(0,0,0,87)
- o77.BackgroundColor3 = Color3.new(1, 1, 1)
- o77.BackgroundTransparency = 1
- o77.BorderColor3 = Color3.new(1, 1, 1)
- o77.BorderSizePixel = 0
- o77.Font = Enum.Font.Arial
- o77.FontSize = Enum.FontSize.Size11
- o77.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- o77.TextWrapped = true
- o78.Name = "BlastDoor2"
- o78.Parent = o1
- o78.BrickColor = BrickColor.new("Lime green")
- o78.Position = Vector3.new(12.4499979, 6.09998941, -79.6499786)
- o78.Rotation = Vector3.new(180, 0, 180)
- o78.FormFactor = Enum.FormFactor.Custom
- o78.Size = Vector3.new(0.200000003, 0.200000003, 0.200000033)
- o78.CFrame = CFrame.new(12.4499979, 6.09998941, -79.6499786, -1.00000548, -5.19954142e-07, -3.64088646e-06, -5.19948458e-07, 1, -1.49008628e-08, 3.64088669e-06, -1.49019286e-08, -1.0000056)
- o78.BottomSurface = Enum.SurfaceType.Smooth
- o78.TopSurface = Enum.SurfaceType.Smooth
- o78.Color = Color3.new(0, 1, 0)
- o78.Position = Vector3.new(12.4499979, 6.09998941, -79.6499786)
- o79.Parent = o78
- o79.Offset = Vector3.new(-0.0719999969, 0.0149999997, 0.100000001)
- o79.Scale = Vector3.new(0.699999988, 1.10000002, 0.100000001)
- o80.Name = "CartPart1"
- o80.Parent = o1
- o80.BrickColor = BrickColor.new("Black")
- o80.Position = Vector3.new(12.4500084, 6.25499725, -79.8499832)
- o80.Rotation = Vector3.new(90, 0, 0)
- o80.FormFactor = Enum.FormFactor.Custom
- o80.Size = Vector3.new(0.300000012, 0.200000003, 0.200000003)
- o80.CFrame = CFrame.new(12.4500084, 6.25499725, -79.8499832, 1.00000548, -6.00791554e-06, 2.41182966e-06, 2.41190173e-06, 1.4811756e-05, -0.999999881, 6.00787962e-06, 1.00000548, 1.47968567e-05)
- o80.BottomSurface = Enum.SurfaceType.Smooth
- o80.TopSurface = Enum.SurfaceType.Smooth
- o80.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o80.Position = Vector3.new(12.4500084, 6.25499725, -79.8499832)
- o81.Parent = o80
- o81.Scale = Vector3.new(1, 1, 0.25)
- o81.MeshType = Enum.MeshType.Wedge
- o82.Name = "BarbScript"
- o82.Parent = o1
- o82.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- wait(5)
- script.Parent:Remove()
- end,o82)
- end))
- o83.Name = "OverrideScript"
- o83.Parent = o1
- o83.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local t = script.Parent.Torso
- local w = script.Parent:GetChildren()
- local h = nil
- for i = 1, #w do
- if w[i].ClassName == "Humanoid" then h = w[i] end
- end
- t.CFrame = CFrame.new(t.Position.x,t.Position.y,t.Position.z,0,-1,0,0,0,-1,1,0,0)
- h:UnequipTools()
- function OnAttempt()
- t.CFrame = CFrame.new(t.Position.x,t.Position.y,t.Position.z,0,-1,0,0,0,-1,1,0,0)
- end
- local c = h.Jumping:connect(OnAttempt)
- local c2 = h.GettingUp:connect(OnAttempt)
- local c3 = h.Running:connect(OnAttempt)
- h.Jump = true
- while true do
- h:UnequipTools()
- wait()
- end
- end,o83)
- end))
- o84.Name = "DriveStunScript"
- o84.Parent = o1
- o84.Disabled = true
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local t = script.Parent.Torso
- local w = script.Parent:GetChildren()
- local h = nil
- for i = 1, #w do
- if w[i].ClassName == "Humanoid" then h = w[i] end
- end
- h.Jump = true
- t.CFrame = CFrame.new(t.Position.x,t.Position.y,t.Position.z,0,-1,0,0,0,-1,1,0,0)
- h:UnequipTools()
- wait(1)
- script:Remove()
- end,o84)
- end))
- o85.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local Tool = script.Parent;
- autolength = 5
- enabled = true
- enabled2 = true
- benabled = true
- pgui = nil
- mtarg = nil
- mousedown = false
- target = nil
- cart = true
- electrictextures = {"http://www.roblox.com/asset/?id=109201383", "http://www.roblox.com/asset/?id=109201366", "http://www.roblox.com/asset/?id=109201474", "http://www.roblox.com/asset/?id=109201980", "http://www.roblox.com/asset/?id=109202011"}
- function BarbTouched(hit, barb)
- if hit == nil then return end
- if hit.Parent == nil then return end
- if hit.Parent:findFirstChild("Humanoid") or hit.Parent:findFirstChild("Zombie") ~= nil then
- if hit.Parent.Name == game.Players.LocalPlayer.Name then return end
- if target ~= nil then return end
- if hit.Parent:findFirstChild("OverrideScript") == nil then
- local s = script.Parent.OverrideScript:clone()
- s.Parent = hit.Parent
- target = hit.Parent
- s.Disabled = false
- end
- barb:Remove()
- elseif hit.CanCollide == true then
- barb:Remove()
- end
- end
- function DriveStun(hit)
- if hit.Parent:findFirstChild("Humanoid") or hit.Parent:findFirstChild("Zombie") ~= nil then
- local s = script.Parent.DriveStunScript:clone()
- s.Parent = hit.Parent
- s.Disabled = false
- end
- end
- function GetElectricTexture()
- local r = math.random(1,#electrictextures)
- return electrictextures[r]
- end
- function onButton1Down(mouse)
- mousedown = true
- if not enabled then
- return
- end
- if not enabled2 then return end
- enabled = false
- enabled2 = false
- if mouse.Hit ~= nil then
- mtarg = mouse.Hit.p
- end
- if cart and benabled then
- benabled = false
- Tool.Deployed.Value = true
- local v = (mtarg - Tool.Cart.Position).unit
- local v2 = ((mtarg + Vector3.new(0,-1.5,0)) - Tool.Cart.Position).unit
- local spawnPos = script.Parent.Cart.Position
- spawnPos = spawnPos + (v * 2)
- Tool.BlastDoor1.Transparency = 1
- Tool.BlastDoor2.Transparency = 1
- local barb_1 = Instance.new("Part")
- barb_1.Position = spawnPos
- barb_1.FormFactor = 3
- barb_1.Size = Vector3.new(1,1,1)
- barb_1.Velocity = v * 500--1000
- barb_1.BrickColor = BrickColor.new(194)
- barb_1.BottomSurface = 0
- barb_1.TopSurface = 0
- barb_1.Name = "TaserBarb"
- barb_1.Elasticity = 0
- barb_1.Reflectance = 0.1
- barb_1.Friction = 1
- Tool.BarbMesh:clone().Parent = barb_1
- local sc = Tool.BarbScript:clone()
- sc.Parent = barb_1
- sc.Disabled = false
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,150,0)
- force.Parent = barb_1
- barb_1.Parent = game.Workspace
- local barb_2 = barb_1:clone()
- barb_2.Position = spawnPos + (v2 * 2) + Vector3.new(0,-0.5,0)
- barb_2.Velocity = v2 * 500
- barb_2.BodyForce.force = Vector3.new(0,150,0)
- barb_2.Parent = game.Workspace
- barb_1.Touched:connect(function(hit) BarbTouched(hit, barb_1) end)
- barb_2.Touched:connect(function(hit) BarbTouched(hit, barb_2) end)
- Tool.Handle.Shot:Play()
- local al = 70 * (autolength / 5) + 2
- local t = 0
- local timerval = 0
- coroutine.resume(coroutine.create(function()
- while not enabled do
- t = t + 0.1
- if t < autolength then
- Tool.TimerVal.Value = math.ceil(autolength - t)
- else
- Tool.TimerVal.Value = math.ceil(t)
- end
- wait(0.1)
- end
- Tool.TimerVal.Value = 0
- end))
- while (mousedown or t < autolength - 0.2) and not safety and t < 90 do
- script.Parent.Handle.sound:Play()
- script.Parent.Handle.sound2:Play()
- script.Parent.Handle.sound3:Play()
- wait(0.06)
- end
- if target ~= nil then
- if target:findFirstChild("OverrideScript") ~= nil then target.OverrideScript:Remove() end
- end
- Tool.TimerVal.Value = 0
- safety = false
- enabled = true
- wait(0.2)
- enabled2 = true
- elseif cart and target ~= nil then
- enabled = false
- local st = script.Parent.OverrideScript:clone()
- st.Disabled = false
- st.Parent = target
- local al = 70 * (autolength / 5) + 2
- local t = 0
- local timerval = 0
- coroutine.resume(coroutine.create(function()
- while not enabled do
- t = t + 0.1
- if t < autolength then
- Tool.TimerVal.Value = math.ceil(autolength - t)
- else
- Tool.TimerVal.Value = math.ceil(t)
- end
- wait(0.1)
- end
- Tool.TimerVal.Value = 0
- end))
- while (mousedown or t < autolength - 0.2) and not safety and t < 90 do
- script.Parent.Handle.sound:Play()
- script.Parent.Handle.sound2:Play()
- script.Parent.Handle.sound3:Play()
- wait(0.06)
- end
- if target ~= nil then
- if target:findFirstChild("OverrideScript") ~= nil then target.OverrideScript:Remove() end
- end
- Tool.TimerVal.Value = 0
- safety = false
- enabled = true
- wait(0.2)
- enabled2 = true
- elseif not cart then
- enabled = false
- local con2 = script.Parent.Cart.Touched:connect(DriveStun)
- local al = 70 * (autolength / 5) + 2
- local t = 0
- coroutine.resume(coroutine.create(function()
- while not enabled do
- t = t + 0.1
- if t < autolength then
- Tool.TimerVal.Value = math.ceil(autolength - t)
- else
- Tool.TimerVal.Value = math.ceil(t)
- end
- wait(0.1)
- end
- Tool.TimerVal.Value = 0
- end))
- while (mousedown or t < autolength - 0.2) and not safety and t < 90 do
- Tool.Electric.Decal.Texture = GetElectricTexture()
- script.Parent.Handle.sound:Play()
- script.Parent.Handle.sound2:Play()
- script.Parent.Handle.sound3:Play()
- wait(0.06)
- end
- Tool.Electric.Decal.Texture = ""
- con2:disconnect()
- Tool.TimerVal.Value = 0
- safety = false
- enabled = true
- wait(0.2)
- enabled2 = true
- else
- enabled = true
- enabled2 = true
- end
- end
- function onButton1Up(mouse)
- mousedown = false
- end
- function UpdateDisplay()
- if pgui == nil then return end
- if Tool.TimerVal.Value == 0 then
- pgui.Main.Countdown.Text = ""
- else
- pgui.Main.Countdown.Text = Tool.TimerVal.Value
- end
- if Tool.Cartr.Value == false then
- pgui.Main.CartStatus.BackgroundColor3 = Color3.new(1,1,1)
- pgui.Main.CartStatus.BorderColor3 = Color3.new(195/255,195/255,195/255)
- pgui.Main.CartStatus.Text = "-"
- elseif Tool.Deployed.Value == true then
- pgui.Main.CartStatus.BackgroundColor3 = Color3.new(1,79/255,79/255)
- pgui.Main.CartStatus.BorderColor3 = Color3.new(1,0,0)
- pgui.Main.CartStatus.Text = "X"
- else
- pgui.Main.CartStatus.BackgroundColor3 = Color3.new(1,1,127/255)
- pgui.Main.CartStatus.BorderColor3 = Color3.new(1,1,1)
- pgui.Main.CartStatus.Text = "1"
- end
- end
- function onKeyDown(key)
- if key == "y" and Tool.Lamp.Light.Enabled == true then
- Tool.Lamp.Light.Enabled = false
- elseif key == "y" then
- Tool.Lamp.Light.Enabled = true
- end
- if key == "r" and not enabled then
- safety = true
- elseif key == "r" and cart then
- cart = false
- Tool.Cartr.Value = false
- Tool.Cart.Transparency = 1
- Tool.Cart.CanCollide = false
- Tool.CartPart1.Transparency = 1
- Tool.CartPart1.CanCollide = false
- Tool.CartPart2.Transparency = 1
- Tool.CartPart2.CanCollide = false
- Tool.BlastDoor1.Transparency = 1
- Tool.BlastDoor1.CanCollide = false
- Tool.BlastDoor2.Transparency = 1
- Tool.BlastDoor2.CanCollide = false
- elseif key == "r" then
- Tool.Cartr.Value = true
- Tool.Deployed.Value = false
- cart = true
- benabled = true
- target = nil
- Tool.Cart.Transparency = 0
- Tool.Cart.CanCollide = true
- Tool.CartPart1.Transparency = 0
- Tool.CartPart1.CanCollide = true
- Tool.CartPart2.Transparency = 0
- Tool.CartPart2.CanCollide = true
- Tool.BlastDoor1.Transparency = 0
- Tool.BlastDoor1.CanCollide = true
- Tool.BlastDoor2.Transparency = 0
- Tool.BlastDoor2.CanCollide = true
- end
- end
- function onEquippedLocal(mouse)
- if mouse == nil then
- print("Mouse not found")
- return
- end
- local h = Tool.Parent:findFirstChild("Humanoid")
- if h~=nil and game.Players:findFirstChild(h.Parent.Name)~=nil then
- local gui = Tool.Gui:clone()
- gui.Parent = game.Players:findFirstChild(h.Parent.Name).PlayerGui
- pgui = gui
- UpdateDisplay()
- Tool.TimerVal.Changed:connect(UpdateDisplay)
- Tool.Cartr.Changed:connect(UpdateDisplay)
- Tool.Deployed.Changed:connect(UpdateDisplay)
- end
- mouse.Icon = "http://www.roblox.com/asset/?id=2966012"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- mouse.Button1Up:connect(function() onButton1Up(mouse)end)
- mouse.KeyDown:connect(onKeyDown)
- end
- Tool.Equipped:connect(onEquippedLocal)
- function onUnequippedLocal()
- if pgui ~= nil then
- pgui:Remove()
- pgui = nil
- end
- if target ~= nil then
- if target:findFirstChild("OverrideScript") ~= nil then target.OverrideScript:Remove() end
- end
- end
- Tool.Unequipped:connect(onUnequippedLocal)
- end,o85)
- end))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = script
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement