Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Portal Model
- local Portal = Instance.new("Model", script)
- Portal.Name = "Portal"
- -- Portal Main
- local PortalMain = Instance.new("Part", Portal)
- PortalMain.Name = "PortalMain"
- PortalMain.Rotation = Vector3.new(0,90,0)
- PortalMain.Position = Vector3.new(0,5.5,10)
- PortalMain.BrickColor = BrickColor.new("Bright blue")
- PortalMain.Size = Vector3.new(1,10,10)
- PortalMain.Anchored = true
- PortalMain.CanCollide = false
- PortalMain.Shape = Enum.PartType.Cylinder
- PortalMain.Material = "ForceField"
- PortalMain.Touched:Connect(function(TPart)
- TPart.CFrame = CFrame.new(700* 3,1.2 + 5,700 * 3)
- end)
- -- Portal Frame
- local PortalFrame = Instance.new("Part", Portal)
- PortalFrame.Name = "PortalFrame"
- PortalFrame.CFrame = PortalMain.CFrame
- PortalFrame.BrickColor = BrickColor.new("Bright blue")
- PortalFrame.Size = PortalMain.Size + Vector3.new(0,2.5,02.5)
- PortalFrame.Anchored = true
- PortalFrame.CanCollide = false
- PortalFrame.Shape = Enum.PartType.Cylinder
- PortalFrame.Material = "ForceField"
- -- Base
- local NewBase = Instance.new("Part", Portal)
- NewBase.Name = "Base"
- NewBase.Locked = true
- NewBase.Position = Vector3.new(700 * 3,1.2,700 * 3)
- NewBase.Size = Vector3.new(700,1.2,700)
- NewBase.Anchored = true
- NewBase.Material = Enum.Material.Grass
- NewBase.TopSurface = Enum.SurfaceType.Smooth
- NewBase.BottomSurface = Enum.SurfaceType.Smooth
- NewBase.BrickColor = BrickColor.new("Bright green")
- -- Portal Model
- local Portal2 = Instance.new("Model", script)
- Portal2.Name = "Portal2"
- -- Portal Main
- local Portal2Main = Instance.new("Part", Portal)
- Portal2Main.Name = "Portal2Main"
- Portal2Main.Rotation = Vector3.new(0,90,0)
- Portal2Main.Position = Vector3.new(700* 3,1.2 + 5,700 * 3) + Vector3.new(0,0,-5)
- Portal2Main.BrickColor = BrickColor.new("Bright red")
- Portal2Main.Size = Vector3.new(1,10,10)
- Portal2Main.Anchored = true
- Portal2Main.CanCollide = false
- Portal2Main.Shape = Enum.PartType.Cylinder
- Portal2Main.Material = "ForceField"
- Portal2Main.Touched:Connect(function(TPart)
- TPart.CFrame = CFrame.new(0,5.5,5)
- end)
- -- Portal Frame
- local Portal2Frame = Instance.new("Part", Portal)
- Portal2Frame.Name = "Portal2Frame"
- Portal2Frame.CFrame = Portal2Main.CFrame
- Portal2Frame.BrickColor = BrickColor.new("Bright red")
- Portal2Frame.Size = Portal2Main.Size + Vector3.new(0,2.5,02.5)
- Portal2Frame.Anchored = true
- Portal2Frame.CanCollide = false
- Portal2Frame.Shape = Enum.PartType.Cylinder
- Portal2Frame.Material = "ForceField"
Add Comment
Please, Sign In to add comment