Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local P = "Position"
- local S = "Size"
- local O = "Orientation"
- local M = "Material"
- local C = "Color"
- local V3 = Vector3
- local C3 = Color3
- local T = "Transparency"
- local R = "Reflectance"
- local CN = "ClassName"
- local SH = "Shape"
- local Ins = Instance
- local w = owner.Character.Humanoid
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(74.9750061, 0.5, -89.8549728)
- Pt[S] = V3.new(31.5899982, 1, 34.3700027)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 0, 0)
- Pt[M] = Enum.Material.Fabric
- Pt.BrickColor = BrickColor.new("Plum")
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Block
- end
- return Pt
- end
- fab = Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(59.1550064, 12.8699999, -89.7649765)
- Pt[S] = V3.new(12.3300018, 4.17999983, 0.0500000007)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 90, 0)
- Pt[M] = Enum.Material.Plastic
- Pt[C] = C3.new(0.584314, 0.47451, 0.466667)
- Pt[T] = 1
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Block
- end
- end
- Build()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(74.9750061, 12.079999, -89.8549728)
- Pt[S] = V3.new(31.5899982, 24.1599979, 34.3700027)
- Pt.Anchored = true
- Pt.CanCollide = false
- Pt.CastShadow = false
- Pt[O] = V3.new(0, 0, 0)
- Pt[M] = Enum.Material.ForceField
- Pt.BrickColor = BrickColor.new("Plum")
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Block
- end
- return Pt
- end
- force = Build()
- game:GetService'RunService'.Heartbeat:Wait()
- game:GetService'RunService'.Heartbeat:Wait()
- local allowed = {owner.Name}
- function checkOkToLetIn(name)
- for i = 1,#allowed do
- if (string.upper(name) == string.upper(allowed[i])) then return true end
- end
- return false
- end
- local Door = force
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(84.756546, 4.80032635, -83.2524796)
- Pt[S] = V3.new(5.30000019, 1, 1)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 90, -90)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Cylinder
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(79.8405151, 1.64332771, -96.2553406)
- Pt[S] = V3.new(1, 1, 3)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 90, 90)
- Pt[M] = Enum.Material.Wood
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Cylinder
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(81.955513, 4.32329941, -83.3453445)
- Pt[S] = V3.new(5.45000029, 6.80000019, 1.05999994)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 0, 0)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Cylinder
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(84.6405182, 1.64332581, -83.4553375)
- Pt[S] = V3.new(1, 1, 2)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 90, 90)
- Pt[M] = Enum.Material.Wood
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Cylinder
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(79.8405151, 1.64332771, -83.4553375)
- Pt[S] = V3.new(1, 1, 2)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 90, 90)
- Pt[M] = Enum.Material.Wood
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Cylinder
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(81.740509, 3.64331055, -83.3553391)
- Pt[S] = V3.new(5, 1, 1)
- Pt.Anchored = true
- Pt[O] = V3.new(-90, 0, 0)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Block
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Seat",w)
- Pt[P] = V3.new(81.9054108, 2.94326806, -93.8553391)
- Pt[S] = V3.new(4.31000042, 0.400000006, 4)
- Pt.Anchored = true
- Pt[O] = V3.new(0.0299999993, 87.5, 0)
- Pt[M] = Enum.Material.Plastic
- Pt[C] = C3.new(0.0666667, 0.0666667, 0.0666667)
- Pt[T] = 9
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Block
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(84.8055115, 4.85331917, -89.8103256)
- Pt[S] = V3.new(5.40000057, 0.870000005, 13.1300106)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 0, -90)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Block
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(84.6405182, 1.74332619, -96.2553329)
- Pt[S] = V3.new(1.20000005, 1, 2)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 90, 90)
- Pt[M] = Enum.Material.Wood
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Cylinder
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Seat",w)
- Pt[P] = V3.new(81.855423, 2.94438004, -89.8553391)
- Pt[S] = V3.new(4.34999943, 0.400000006, 4)
- Pt.Anchored = true
- Pt[O] = V3.new(0.0299999993, 88.1600037, 0)
- Pt[M] = Enum.Material.Plastic
- Pt[C] = C3.new(0.0666667, 0.0666667, 0.0666667)
- Pt[T] = 9
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Block
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Seat",w)
- Pt[P] = V3.new(81.8654175, 2.94442701, -85.8553391)
- Pt[S] = V3.new(4.36999846, 0.400000006, 4)
- Pt.Anchored = true
- Pt[O] = V3.new(0.0299999993, 85.5999985, 0)
- Pt[M] = Enum.Material.Plastic
- Pt[C] = C3.new(0.0666667, 0.0666667, 0.0666667)
- Pt[T] = 9
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Block
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(81.8155136, 2.64331245, -89.8553391)
- Pt[S] = V3.new(14, 1, 5.15000105)
- Pt.Anchored = true
- Pt[O] = V3.new(0, -90, 0)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Block
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(84.7565536, 4.82055378, -96.4025192)
- Pt[S] = V3.new(5.37000084, 1, 1)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 90, -90)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Cylinder
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(84.7465591, 7.54331589, -89.8125)
- Pt[S] = V3.new(13.1800051, 1, 1)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 90, 0)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Cylinder
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(81.9656067, 4.32321358, -96.3553619)
- Pt[S] = V3.new(5.45000029, 6.80000019, 1.05999994)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 0, 0)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Cylinder
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(81.740593, 3.64321327, -96.3553543)
- Pt[S] = V3.new(5, 1, 1)
- Pt.Anchored = true
- Pt[O] = V3.new(-90, 0, 0)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Block
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(84.7515793, 7.52729988, -96.3875885)
- Pt[S] = V3.new(1.03999972, 1.03999972, 1.03999972)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 0, 0)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Ball
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function Build()
- local Pt = Ins.new("Part",w)
- Pt[P] = V3.new(84.7515793, 7.52728271, -83.2575836)
- Pt[S] = V3.new(1.03999972, 1.03999972, 1.03999972)
- Pt.Anchored = true
- Pt[O] = V3.new(0, 0, 0)
- Pt[M] = Enum.Material.Fabric
- Pt[C] = C3.new(0.337255, 0.258824, 0.211765)
- Pt[T] = 0
- Pt[R] = 0
- if Pt[CN] == "Part" then
- Pt[SH] = Enum.PartType.Ball
- end
- end
- Build()
- game:GetService'RunService'.Heartbeat:Wait()
- function onTouched(hit)
- local human = hit.Parent:findFirstChildOfClass("Humanoid")
- if (human ~= nil ) then
- if (checkOkToLetIn(human.Parent.Name)) then
- else human.Parent = nil
- end
- end
- end
- force.Touched:connect(onTouched)
- owner.Chatted:connect(function(msg)
- if msg:sub(1,4) == "~add" then
- if owner.Parent[msg:sub(6)] ~= nil then
- table.insert(allowed, 2, msg:sub(6))
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement