Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.ReplicatedStorage.Events.DrawSecretWall.OnServerEvent:Connect(function(Player, Plot)
- local Wall1 = Instance.new("Part", Plot)
- Wall1.Size = Vector3.new(Plot.Ground.Size.X, 50, 1)
- Wall1.Anchored = true
- Wall1.Transparency = .5
- Wall1.Position = Plot.Ground.Position + Vector3.new(0, 25, Plot.Ground.Size.X / 2)
- local Wall2 = Instance.new("Part", Plot)
- Wall2.Size = Vector3.new(Plot.Ground.Size.X, 50, 1)
- Wall2.Anchored = true
- Wall2.Transparency = .5
- Wall2.Position = Plot.Ground.Position + Vector3.new(0, 25, -Plot.Ground.Size.X / 2)
- local Wall3 = Instance.new("Part", Plot)
- Wall3.Size = Vector3.new(1, 50, Plot.Ground.Size.Z)
- Wall3.Anchored = true
- Wall3.Transparency = .5
- Wall3.Position = Plot.Ground.Position + Vector3.new(Plot.Ground.Size.Z / 2, 25, 0)
- local Wall4 = Instance.new("Part", Plot)
- Wall4.Size = Vector3.new(1, 50, Plot.Ground.Size.Z)
- Wall4.Anchored = true
- Wall4.Transparency = .5
- Wall4.Position = Plot.Ground.Position + Vector3.new(-Plot.Ground.Size.Z / 2, 25, 0)
- Wall1.Name = "Wall"
- Wall2.Name = "Wall"
- Wall3.Name = "Wall"
- Wall4.Name = "Wall"
- Wall1.BrickColor = BrickColor.Black()
- Wall2.BrickColor = BrickColor.Black()
- Wall3.BrickColor = BrickColor.Black()
- Wall4.BrickColor = BrickColor.Black()
- Wall1.CastShadow = false
- Wall2.CastShadow = false
- Wall3.CastShadow = false
- Wall4.CastShadow = false
- end)
- game.ReplicatedStorage.Events.RemoveSecretWall.OnServerEvent:Connect(function(Plr, Plot)
- for _, O in pairs(Plot:GetChildren()) do
- if O.Name == "Wall" then
- O:Destroy()
- end
- end
- end)
Add Comment
Please, Sign In to add comment