Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Thanks for using Mod2S by NopeUsername
- local functions = {}
- function sandbox(script, func)
- local oldEnv = getfenv(func)
- local newEnv = setmetatable({}, {
- __index = function(self,k)
- if k == "script" then
- return script
- else
- return oldEnv[k]
- end
- end,
- })
- return setfenv(func, newEnv)
- end
- local mas = Instance.new("Model", game:GetService("Lighting"))
- -- DECLARING VARIABLES
- local Model = Instance.new("Model")
- local Model_1 = Instance.new("Model")
- local Part = Instance.new("Part")
- local Weld = Instance.new("Weld")
- local Model_2 = Instance.new("Model")
- local Part_1 = Instance.new("Part")
- local Weld_1 = Instance.new("Weld")
- local Script = Instance.new("Script")
- local Part_2 = Instance.new("Part")
- local Weld_2 = Instance.new("Weld")
- local Script_1 = Instance.new("Script")
- local Part_3 = Instance.new("Part")
- local Part_4 = Instance.new("Part")
- local Script_2 = Instance.new("Script")
- local Weld_3 = Instance.new("Weld")
- local Part_5 = Instance.new("Part")
- local Weld_4 = Instance.new("Weld")
- local Script_3 = Instance.new("Script")
- local Part_6 = Instance.new("Part")
- local Weld_5 = Instance.new("Weld")
- local Part_7 = Instance.new("Part")
- local Weld_6 = Instance.new("Weld")
- local Weld_7 = Instance.new("Weld")
- local Weld_8 = Instance.new("Weld")
- local Part_8 = Instance.new("Part")
- local Weld_9 = Instance.new("Weld")
- local Part_9 = Instance.new("Part")
- local Script_4 = Instance.new("Script")
- local Weld_10 = Instance.new("Weld")
- local SpawnLocation = Instance.new("SpawnLocation")
- local Decal = Instance.new("Decal")
- local SpawnLocation_1 = Instance.new("SpawnLocation")
- local Decal_1 = Instance.new("Decal")
- -- SETTING PROPERTIES
- Model.Parent = mas
- Model_1.Parent = Model
- Part.Anchored = true
- Part.BottomSurface = Enum.SurfaceType.Smooth
- Part.CFrame = CFrame.new(-52.935,0.485,77.405,1,0,0,0,1,0,0,0,1)
- Part.Color = Color3.new(0.294,0.592,0.294)
- Part.Locked = true
- Part.Material = Enum.Material.Metal
- Part.Size = Vector3.new(38.15,0.97,23.45)
- Part.TopSurface = Enum.SurfaceType.Smooth
- Part.Parent = Model_1
- Weld.C0 = CFrame.new(-256,10,256,-1,0,0,0,0,1,0,1,0)
- Weld.C1 = CFrame.new(-203.065,-0.485,178.595,-1,0,0,0,0,1,0,1,0)
- Weld.Part1 = Part
- Weld.Parent = Part
- Model_2.Parent = Model_1
- Part_1.Anchored = true
- Part_1.BottomSurface = Enum.SurfaceType.Smooth
- Part_1.CFrame = CFrame.new(-66.516,1.47,77.56,0,0,1,0,1,0,-1,0,0)
- Part_1.Color = Color3.new(1,0,0)
- Part_1.Locked = true
- Part_1.Size = Vector3.new(20.84,1,2)
- Part_1.TopSurface = Enum.SurfaceType.Smooth
- Part_1.Parent = Model_2
- Weld_1.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
- Weld_1.C1 = CFrame.new(-11.57,-0.5,-5.494,0,-1,0,0,0,1,-1,0,0)
- Weld_1.Part0 = Part
- Weld_1.Part1 = Part_1
- Weld_1.Parent = Part_1
- table.insert(functions,sandbox(Script,function()
- local trapPart = script.Parent
- local function onPartTouch(otherPart)
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if ( humanoid ) then
- -- Set player's health to 0
- humanoid.Health = 0
- end
- end
- trapPart.Touched:Connect(onPartTouch)
- end))
- Script.Parent = Part_1
- Part_2.Anchored = true
- Part_2.BottomSurface = Enum.SurfaceType.Smooth
- Part_2.CFrame = CFrame.new(-52.703,1.47,77.56,0,0,1,0,1,0,-1,0,0)
- Part_2.Color = Color3.new(1,0,0)
- Part_2.Locked = true
- Part_2.Size = Vector3.new(20.84,1,2)
- Part_2.TopSurface = Enum.SurfaceType.Smooth
- Part_2.Parent = Model_2
- Weld_2.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
- Weld_2.C1 = CFrame.new(-11.57,-0.5,-19.307,0,-1,0,0,0,1,-1,0,0)
- Weld_2.Part0 = Part
- Weld_2.Part1 = Part_2
- Weld_2.Parent = Part_2
- table.insert(functions,sandbox(Script_1,function()
- local trapPart = script.Parent
- local function onPartTouch(otherPart)
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if ( humanoid ) then
- -- Set player's health to 0
- humanoid.Health = 0
- end
- end
- trapPart.Touched:Connect(onPartTouch)
- end))
- Script_1.Parent = Part_2
- Part_3.Anchored = true
- Part_3.BottomSurface = Enum.SurfaceType.Smooth
- Part_3.CFrame = CFrame.new(-50.565,29.235,77.595,1,0,0,0,1,0,0,0,1)
- Part_3.CanCollide = false
- Part_3.Locked = true
- Part_3.Material = Enum.Material.ForceField
- Part_3.Size = Vector3.new(34.59,1.23,25.31)
- Part_3.TopSurface = Enum.SurfaceType.Smooth
- Part_3.Parent = Model_2
- Part_4.Anchored = true
- Part_4.BottomSurface = Enum.SurfaceType.Smooth
- Part_4.CFrame = CFrame.new(-57.631,1.47,77.56,0,0,1,0,1,0,-1,0,0)
- Part_4.Color = Color3.new(1,0,0)
- Part_4.Locked = true
- Part_4.Size = Vector3.new(20.84,1,2)
- Part_4.TopSurface = Enum.SurfaceType.Smooth
- Part_4.Parent = Model_2
- table.insert(functions,sandbox(Script_2,function()
- local trapPart = script.Parent
- local function onPartTouch(otherPart)
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if ( humanoid ) then
- -- Set player's health to 0
- humanoid.Health = 0
- end
- end
- trapPart.Touched:Connect(onPartTouch)
- end))
- Script_2.Parent = Part_4
- Weld_3.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
- Weld_3.C1 = CFrame.new(-11.57,-0.5,-14.379,0,-1,0,0,0,1,-1,0,0)
- Weld_3.Part0 = Part
- Weld_3.Part1 = Part_4
- Weld_3.Parent = Part_4
- Part_5.Anchored = true
- Part_5.BottomSurface = Enum.SurfaceType.Smooth
- Part_5.CFrame = CFrame.new(-48.31,1.47,77.56,0,0,1,0,1,0,-1,0,0)
- Part_5.Color = Color3.new(1,0,0)
- Part_5.Locked = true
- Part_5.Size = Vector3.new(20.84,1,2)
- Part_5.TopSurface = Enum.SurfaceType.Smooth
- Part_5.Parent = Model_2
- Weld_4.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
- Weld_4.C1 = CFrame.new(-11.57,-0.5,-23.7,0,-1,0,0,0,1,-1,0,0)
- Weld_4.Part0 = Part
- Weld_4.Part1 = Part_5
- Weld_4.Parent = Part_5
- table.insert(functions,sandbox(Script_3,function()
- local trapPart = script.Parent
- local function onPartTouch(otherPart)
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if ( humanoid ) then
- -- Set player's health to 0
- humanoid.Health = 0
- end
- end
- trapPart.Touched:Connect(onPartTouch)
- end))
- Script_3.Parent = Part_5
- Part_6.Anchored = true
- Part_6.BottomSurface = Enum.SurfaceType.Smooth
- Part_6.CFrame = CFrame.new(-51.13,15.405,89.237,1,0,0,0,1,0,0,0,1)
- Part_6.Locked = true
- Part_6.Material = Enum.Material.ForceField
- Part_6.Size = Vector3.new(33.44,28.87,2.08)
- Part_6.TopSurface = Enum.SurfaceType.Smooth
- Part_6.Parent = Model_2
- Weld_5.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
- Weld_5.C1 = CFrame.new(-20.88,-14.435,-0.107,-1,0,0,0,0,1,0,1,0)
- Weld_5.Part0 = Part
- Weld_5.Part1 = Part_6
- Weld_5.Parent = Part_6
- Part_7.Anchored = true
- Part_7.BottomSurface = Enum.SurfaceType.Smooth
- Part_7.CFrame = CFrame.new(-33.84,15.415,77.595,1,0,0,0,1,0,0,0,1)
- Part_7.Locked = true
- Part_7.Material = Enum.Material.ForceField
- Part_7.Size = Vector3.new(1.14,28.87,25.31)
- Part_7.TopSurface = Enum.SurfaceType.Smooth
- Part_7.Parent = Model_2
- Weld_6.C0 = CFrame.new(16.72,-14.435,1.04,0,0,1,0,1,0,-1,0,0)
- Weld_6.C1 = CFrame.new(-0.57,-14.445,12.682,0,0,1,0,1,0,-1,0,0)
- Weld_6.Part0 = Part_6
- Weld_6.Part1 = Part_7
- Weld_6.Parent = Part_7
- Weld_7.C0 = CFrame.new(16.78,-14.435,1.04,0,0,1,0,1,0,-1,0,0)
- Weld_7.C1 = CFrame.new(-0.57,-14.445,-10.73,0,0,1,0,1,0,-1,0,0)
- Weld_7.Part0 = Part_8
- Weld_7.Part1 = Part_7
- Weld_7.Parent = Part_7
- Weld_8.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
- Weld_8.C1 = CFrame.new(-38.17,-14.445,11.535,-1,0,0,0,0,1,0,1,0)
- Weld_8.Part0 = Part
- Weld_8.Part1 = Part_7
- Weld_8.Parent = Part_7
- Part_8.Anchored = true
- Part_8.BottomSurface = Enum.SurfaceType.Smooth
- Part_8.CFrame = CFrame.new(-51.19,15.405,65.825,1,0,0,0,1,0,0,0,1)
- Part_8.Locked = true
- Part_8.Material = Enum.Material.ForceField
- Part_8.Size = Vector3.new(33.56,28.87,2.08)
- Part_8.TopSurface = Enum.SurfaceType.Smooth
- Part_8.Parent = Model_2
- Weld_9.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
- Weld_9.C1 = CFrame.new(-20.82,-14.435,23.305,-1,0,0,0,0,1,0,1,0)
- Weld_9.Part0 = Part
- Weld_9.Part1 = Part_8
- Weld_9.Parent = Part_8
- Part_9.Anchored = true
- Part_9.BottomSurface = Enum.SurfaceType.Smooth
- Part_9.CFrame = CFrame.new(-62.395,1.47,77.56,0,0,1,0,1,0,-1,0,0)
- Part_9.Color = Color3.new(1,0,0)
- Part_9.Locked = true
- Part_9.Size = Vector3.new(20.84,1,2)
- Part_9.TopSurface = Enum.SurfaceType.Smooth
- Part_9.Parent = Model_2
- table.insert(functions,sandbox(Script_4,function()
- local trapPart = script.Parent
- local function onPartTouch(otherPart)
- local partParent = otherPart.Parent
- local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
- if ( humanoid ) then
- -- Set player's health to 0
- humanoid.Health = 0
- end
- end
- trapPart.Touched:Connect(onPartTouch)
- end))
- Script_4.Parent = Part_9
- Weld_10.C0 = CFrame.new(-19.075,0.485,11.725,-1,0,0,0,0,1,0,1,0)
- Weld_10.C1 = CFrame.new(-11.57,-0.5,-9.615,0,-1,0,0,0,1,-1,0,0)
- Weld_10.Part0 = Part
- Weld_10.Part1 = Part_9
- Weld_10.Parent = Part_9
- SpawnLocation.Anchored = true
- SpawnLocation.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation.CFrame = CFrame.new(-40.595,0.399,72.43,1,0,0,0,1,0,0,0,1)
- SpawnLocation.Color = Color3.new(0.294,0.592,0.294)
- SpawnLocation.Locked = true
- SpawnLocation.Material = Enum.Material.Metal
- SpawnLocation.Size = Vector3.new(8.25,1,7.57)
- SpawnLocation.TopSurface = Enum.SurfaceType.Smooth
- SpawnLocation.Parent = Model_1
- Decal.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal.Face = Enum.NormalId.Top
- Decal.Parent = SpawnLocation
- SpawnLocation_1.Anchored = true
- SpawnLocation_1.BottomSurface = Enum.SurfaceType.Smooth
- SpawnLocation_1.CFrame = CFrame.new(-40.595,0.399,85.053,1,0,0,0,1,0,0,0,1)
- SpawnLocation_1.Color = Color3.new(0.294,0.592,0.294)
- SpawnLocation_1.Locked = true
- SpawnLocation_1.Material = Enum.Material.Metal
- SpawnLocation_1.Size = Vector3.new(8.25,1,7.57)
- SpawnLocation_1.TopSurface = Enum.SurfaceType.Smooth
- SpawnLocation_1.Parent = Model_1
- Decal_1.Texture = "rbxasset://textures/SpawnLocation.png"
- Decal_1.Face = Enum.NormalId.Top
- Decal_1.Parent = SpawnLocation_1
- for i,v in ipairs(functions) do
- spawn(function()
- pcall(v)
- end)
- end
- for i,v in ipairs(mas:GetChildren()) do
- v.Parent = workspace
- end
- mas:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement