Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --erp...
- --. . .
- function bx()
- local tt = true
- local open = false
- mod = Instance.new("Model", owner.Character)
- mod.Name = owner.Name.. "'s protection box! v" ..math.random().. "." ..math.random().. "." ..math.random()-- the math.random is for the banisher guns, when they ban the model.
- o1 = Instance.new("Part", mod)
- o2 = Instance.new("Part", mod)
- o3 = Instance.new("Part", mod)
- o4 = Instance.new("Part", mod)
- o5 = Instance.new("Part", mod)
- o6 = Instance.new("Part", mod)
- o7 = Instance.new("Part", mod)
- o1.Size = Vector3.new(30, 1, 30)
- o2.Size = Vector3.new(1, 30, 30)
- o3.Size = Vector3.new(1, 30, 30)
- o4.Size = Vector3.new(30, 1, 30)
- o5.Size = Vector3.new(30, 30, 1)
- o6.Size = Vector3.new(30, 30, 1)
- o7.Size = Vector3.new(1, 1, 1)
- local function setAllSurfaces(part, surfaceType)
- part.TopSurface = surfaceType
- part.BottomSurface = surfaceType
- part.LeftSurface = surfaceType
- part.RightSurface = surfaceType
- part.FrontSurface = surfaceType
- part.BackSurface = surfaceType
- end
- for i, v in pairs(mod:GetChildren()) do
- if v:IsA("BasePart") then
- v.Transparency = 0.5
- setAllSurfaces(v, "Smooth")
- end
- end
- o7.Transparency = 1
- o7.CanCollide = false
- mod.PrimaryPart = o7
- o1.Anchored = true
- o2.Anchored = true
- o3.Anchored = true
- o4.Anchored = true
- o5.Anchored = true
- o6.Anchored = true
- o7.Anchored = true
- o1.Position = Vector3.new(0, 30, 0)
- o2.Position = Vector3.new(14.5, 15, 0)
- o3.Position = Vector3.new(-14.5, 15, 0)
- o5.Position = Vector3.new(0, 15, -14.5)
- o6.Position = Vector3.new(0, 15, 14.5)
- o7.Position = Vector3.new(0, 15, 0)
- while wait() do
- if tt == true then
- mod:SetPrimaryPartCFrame(owner.Character.Torso.CFrame)
- end
- end
- function open(v)
- v.Transparency = 0.75
- v.CanCollide = false
- wait(3)
- v.Transparency = 0.5
- v.CanCollide = true
- end
- function touch(p)
- if tt == true then
- p:ClearAllChildren()
- elseif open == true then
- open(o1)
- open(o2)
- open(o3)
- open(o4)
- open(o5)
- open(o6)
- end
- owner.Chatted:connect(function(mess)
- if mess:sub(1,8) == "unfollow" then
- tt = false
- elseif mess:sub(1,6) == "follow" then
- tt = true
- end
- end)
- o1.Touched:Connect(touch)
- o2.Touched:Connect(touch)
- o3.Touched:Connect(touch)
- o4.Touched:Connect(touch)
- o5.Touched:Connect(touch)
- o6.Touched:Connect(touch)
- end
- end
- while wait() do
- if mod == nil then
- bx()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement