Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cough = game.Workspace.HouseFunction:clone()
- function _G.House(pla, posx, posy, posz, col1, col2, par, scr)
- if script.Parent.className ~= "Model" then
- if pla == nil then return end
- if game.Players[pla] == nil then return end
- if posx == nil then return end
- if posy == nil then return end
- if posz == nil then return end -- Won't break this. EVER!
- offset = Vector3.new((posx - 400), posy, posz)
- color = col1
- color2 = col2
- on = true
- pathopen = true
- roof = true
- hatch = true
- ele = true
- sweep = true
- openpath = true
- beds = false
- amountopen = 2
- me = game.Players[pla]
- local model = Instance.new("Model")
- if par ~= nil then
- model.Parent = par
- else model.Parent = Workspace
- end
- model.Name = "house" .. me.Name .. "yome576's House"
- path = Instance.new("Part")
- path.Parent = model
- path.Anchored = true
- path.Size = Vector3.new(60, 1, 55)
- path.CFrame = CFrame.new(Vector3.new(355, 0.6, 0) + offset)
- path.BrickColor = BrickColor.new(color2)
- pathmesh = Instance.new("BlockMesh")
- pathmesh.Parent = path
- wall1 = Instance.new("Part")
- wall1.Parent = model
- wall1.Size = Vector3.new(1, 30, 49)
- wall1.CFrame = CFrame.new(Vector3.new(424.5, 16.1, 0.5) + offset)
- wall1.Anchored = true
- wall1.BrickColor = BrickColor.new(color)
- wall1mesh = Instance.new("BlockMesh")
- wall1mesh.Parent = wall1
- wall2 = Instance.new("Part")
- wall2.Parent = model
- wall2.Size = Vector3.new(49, 30, 1)
- wall2.CFrame = CFrame.new(Vector3.new(400.5, 16.1, -24.5) + offset)
- wall2.Anchored = true
- wall2.BrickColor = BrickColor.new(color)
- wall2mesh = Instance.new("BlockMesh")
- wall2mesh.Parent = wall2
- wall3 = Instance.new("Part")
- wall3.Parent = model
- wall3.Size = Vector3.new(49, 30, 1)
- wall3.CFrame = CFrame.new(Vector3.new(399.5, 16.1, 24.5) + offset)
- wall3.Anchored = true
- wall3.BrickColor = BrickColor.new(color)
- wall3mesh = Instance.new("BlockMesh")
- wall3mesh.Parent = wall3
- wall4 = Instance.new("Part")
- wall4.Parent = model
- wall4.Size = Vector3.new(1, 30, 19.5)
- wall4.CFrame = CFrame.new(Vector3.new(375.5, 16.1, -15) + offset)
- wall4.Anchored = true
- wall4.BrickColor = BrickColor.new(color)
- wall4mesh = Instance.new("BlockMesh")
- wall4mesh.Parent = wall4
- wall5 = Instance.new("Part")
- wall5.Parent = model
- wall5.Size = Vector3.new(1, 30, 19.5)
- wall5.CFrame = CFrame.new(Vector3.new(375.5, 16.1, 15) + offset)
- wall5.Anchored = true
- wall5.BrickColor = BrickColor.new(color)
- wall5mesh = Instance.new("BlockMesh")
- wall5mesh.Parent = wall5
- wall6 = Instance.new("Part")
- wall6.Parent = model
- wall6.Size = Vector3.new(1, 20, 10)
- wall6.CFrame = CFrame.new(Vector3.new(375.5, 20.9, 0) + offset)
- wall6.Anchored = true
- wall6.BrickColor = BrickColor.new(color)
- wall6mesh = Instance.new("BlockMesh")
- wall6mesh.Parent = wall6
- door = Instance.new("Part")
- door.Size = Vector3.new(1, 10, 10)
- door.Parent = model
- door.Name = "Door"
- door.Anchored = true
- door.CFrame = CFrame.new(Vector3.new(375.5, 15.9, 0) + offset)
- door.BrickColor = BrickColor.new(color)
- doormesh = Instance.new("BlockMesh")
- doormesh.Parent = door
- roof1 = Instance.new("Part")
- roof1.Parent = model
- roof1.Size = Vector3.new(20, 1, 35)
- roof1.CFrame = CFrame.new(Vector3.new(415, 31.6, 7.5) + offset)
- roof1.Anchored = true
- roof1.BrickColor = BrickColor.new(color2)
- roof1mesh = Instance.new("BlockMesh")
- roof1mesh.Parent = roof1
- roof2 = Instance.new("Part")
- roof2.Parent = model
- roof2.Size = Vector3.new(20, 1, 35)
- roof2.CFrame = CFrame.new(Vector3.new(385, 31.6, -7.5) + offset)
- roof2.Anchored = true
- roof2.BrickColor = BrickColor.new(color2)
- roof2mesh = Instance.new("BlockMesh")
- roof2mesh.Parent = roof2
- roof3 = Instance.new("Part")
- roof3.Parent = model
- roof3.Size = Vector3.new(35, 1, 20)
- roof3.CFrame = CFrame.new(Vector3.new(407.5, 31.6, -15) + offset)
- roof3.Anchored = true
- roof3.BrickColor = BrickColor.new(color2)
- roof3mesh = Instance.new("BlockMesh")
- roof3mesh.Parent = roof3
- roof4 = Instance.new("Part")
- roof4.Parent = model
- roof4.Size = Vector3.new(35, 1, 20)
- roof4.CFrame = CFrame.new(Vector3.new(392.5, 31.6, 15) + offset)
- roof4.Anchored = true
- roof4.BrickColor = BrickColor.new(color2)
- roof4mesh = Instance.new("BlockMesh")
- roof4mesh.Parent = roof4
- roofdoor1 = Instance.new("Part")
- roofdoor1.Parent = model
- roofdoor1.Size = Vector3.new(10, 1, 5)
- roofdoor1.CFrame = CFrame.new(Vector3.new(400, 31.6, 2.5) + offset)
- roofdoor1.Anchored = true
- roofdoor1.BrickColor = BrickColor.new(color2)
- roofdoor1mesh = Instance.new("BlockMesh")
- roofdoor1mesh.Parent = roofdoor1
- roofdoor2 = Instance.new("Part")
- roofdoor2.Parent = model
- roofdoor2.Size = Vector3.new(10, 1, 5)
- roofdoor2.CFrame = CFrame.new(Vector3.new(400, 31.6, -2.5) + offset)
- roofdoor2.Anchored = true
- roofdoor2.BrickColor = BrickColor.new(color2)
- roofdoor2mesh = Instance.new("BlockMesh")
- roofdoor2mesh.Parent = roofdoor2
- floor1 = Instance.new("Part")
- floor1.Parent = model
- floor1.Size = Vector3.new(40, 1, 50)
- floor1.CFrame = CFrame.new(Vector3.new(395, 0.6, 0) + offset)
- floor1.Anchored = true
- floor1.BrickColor = BrickColor.new(color2)
- floor1mesh = Instance.new("BlockMesh")
- floor1mesh.Parent = floor1
- floor2 = Instance.new("Part")
- floor2.Parent = model
- floor2.Size = Vector3.new(10, 1, 40)
- floor2.CFrame = CFrame.new(Vector3.new(419, 0.6, -5) + offset)
- floor2.Anchored = true
- floor2.BrickColor = BrickColor.new(color2)
- floor2mesh = Instance.new("BlockMesh")
- floor2mesh.Parent = floor2
- floordoor1 = Instance.new("Part")
- floordoor1.Parent = model
- floordoor1.Size = Vector3.new(10, 1, 5)
- floordoor1.CFrame = CFrame.new(Vector3.new(419, 0.6, 17.5) + offset)
- floordoor1.Anchored = true
- floordoor1.BrickColor = BrickColor.new(color2)
- floordoor1mesh = Instance.new("BlockMesh")
- floordoor1mesh.Parent = floordoor1
- floordoor2 = Instance.new("Part")
- floordoor2.Parent = model
- floordoor2.Size = Vector3.new(10, 1, 5)
- floordoor2.CFrame = CFrame.new(Vector3.new(419, 0.6, 22.5) + offset)
- floordoor2.Anchored = true
- floordoor2.BrickColor = BrickColor.new(color2)
- floordoor2mesh = Instance.new("BlockMesh")
- floordoor2mesh.Parent = floordoor2
- elevator = Instance.new("Part")
- elevator.Parent = model
- elevator.Size = Vector3.new(10, 1, 10)
- elevator.CFrame = CFrame.new(Vector3.new(400, 0.6, 0) + offset)
- elevator.Anchored = true
- elevator.BrickColor = BrickColor.new(color2)
- elevatormesh = Instance.new("BlockMesh")
- elevatormesh.Parent = elevator
- local con = me.Chatted:connect(function(msg)
- if msg == "zombie staff" then
- g = game:GetService("InsertService"):LoadAsset(26421972)
- g.Parent = game.workspace
- g:MoveTo(me.Character.Torso.Position)
- end
- if msg == "is" then
- f = game:GetService("InsertService"):LoadAsset(27782244)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Monkeys" then
- f = game:GetService("InsertService"):LoadAsset(31314849)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Jet Pack" then
- f = game:GetService("InsertService"):LoadAsset(31314966)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Magic Wand" then
- f = game:GetService("InsertService"):LoadAsset(32355966)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Rocket" then
- f = game:GetService("InsertService"):LoadAsset(32356064)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Moonwalk" then
- f = game:GetService("InsertService"):LoadAsset(32353654)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Barrel" then
- f = game:GetService("InsertService"):LoadAsset(31839260)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Ice Staff" then
- f = game:GetService("InsertService"):LoadAsset(32858662)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Fire Staff" then
- f = game:GetService("InsertService"):LoadAsset(32858741)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Bag of Noobs" then
- f = game:GetService("InsertService"):LoadAsset(32355759)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Staff" then
- f = game:GetService("InsertService"):LoadAsset(33382711)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Remote Mine" then
- f = game:GetService("InsertService"):LoadAsset(33383241)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Flame Thrower" then
- f = game:GetService("InsertService"):LoadAsset(33879504)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Nintendo" then
- f = game:GetService("InsertService"):LoadAsset(33867401)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Drum" then
- f = game:GetService("InsertService"):LoadAsset(33866728)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Hammer" then
- f = game:GetService("InsertService"):LoadAsset(33866846)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Cannon" then
- f = game:GetService("InsertService"):LoadAsset(33867016)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Pinata" then
- f = game:GetService("InsertService"):LoadAsset(34398938)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Bag of Crabs" then
- f = game:GetService("InsertService"):LoadAsset(34398653)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Best Potion" then
- f = game:GetService("InsertService"):LoadAsset(34247537)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Cake Launcher" then
- f = game:GetService("InsertService"):LoadAsset(34399318)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Confetti Cannon" then
- f = game:GetService("InsertService"):LoadAsset(34399428)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Atomizer" then
- f = game:GetService("InsertService"):LoadAsset(35293856)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Hypnocannon" then
- f = game:GetService("InsertService"):LoadAsset(35366155)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Roboarm" then
- f = game:GetService("InsertService"):LoadAsset(35366215)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Hat" then
- f = game:GetService("InsertService"):LoadAsset(11748356)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "God Powers" then
- f = game:GetService("InsertService"):LoadAsset(35124629)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Scepter" then
- f = game:GetService("InsertService"):LoadAsset(35682284)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Wall Walker" then
- f = game:GetService("InsertService"):LoadAsset(35683911)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Cookie" then
- f = game:GetService("InsertService"):LoadAsset(35684857)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Card" then
- f = game:GetService("InsertService"):LoadAsset(35809502)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Gravity Gun" then
- f = game:GetService("InsertService"):LoadAsset(34901961)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Platform Gun" then
- f = game:GetService("InsertService"):LoadAsset(34898883)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "H Potion" then
- f = game:GetService("InsertService"):LoadAsset(36042821)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "H paintball" then
- f = game:GetService("InsertService"):LoadAsset(36107470)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Cauldron" then
- f = game:GetService("InsertService"):LoadAsset(36105781)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Pumpkin Bomb" then
- f = game:GetService("InsertService"):LoadAsset(14130887)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Face Off" then
- f = game:GetService("InsertService"):LoadAsset(36568384)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Pumpkin launcher" then
- f = game:GetService("InsertService"):LoadAsset(36913594)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Broom" then
- f = game:GetService("InsertService"):LoadAsset(36913601)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Trick and Treat Bag" then
- f = game:GetService("InsertService"):LoadAsset(37347141)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Pumpkin Staff" then
- f = game:GetService("InsertService"):LoadAsset(36913598)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "witch wand" then
- f = game:GetService("InsertService"):LoadAsset(37347098)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Cursed Hand" then
- f = game:GetService("InsertService"):LoadAsset(37347081)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Santa" then
- f = game:GetService("InsertService"):LoadAsset(41856126)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Frost Potion" then
- f = game:GetService("InsertService"):LoadAsset(42845896)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Freeze Ray" then
- f = game:GetService("InsertService"):LoadAsset(42845853)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Sword of Winter" then
- f = game:GetService("InsertService"):LoadAsset(42847923)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Dusek Car" then
- f = game:GetService("InsertService"):LoadAsset(42845684)
- f.Parent = game.workspace
- f.Handle.Position = me.Character.Torso.Position
- end
- if msg == "candles" then
- f = game:GetService("InsertService"):LoadAsset(19399456)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Spear" then
- f = game:GetService("InsertService"):LoadAsset(43708954)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "crossbow" then
- f = game:GetService("InsertService"):LoadAsset(43708943)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Megaphone" then
- f = game:GetService("InsertService"):LoadAsset(44116233)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Tomahawk" then
- f = game:GetService("InsertService"):LoadAsset(44084783)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "Umbrella" then
- f = game:GetService("InsertService"):LoadAsset(44115926)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if msg == "HOT!!" then
- f = game:GetService("InsertService"):LoadAsset(31314931)
- f.Parent = game.workspace
- f:MoveTo(me.Character.Torso.Position)
- end
- if string.find(string.lower(msg), "close") ~= nil and string.find(string.lower(msg), "door") ~= nil or string.find(string.lower(msg), "lockdown") ~= nil then
- if on == true then
- on = "lol"
- for i = 1, 100 do
- path.CFrame = CFrame.new(path.Position + Vector3.new(0.5, 0, 0))
- wait ()
- end
- for i = 1, 100 do
- door.CFrame = CFrame.new(door.Position + Vector3.new(0, -0.1, 0))
- wait ()
- end
- on = false
- pathopen = false
- end
- end
- if string.find(string.lower(msg), "open") ~= nil and string.find(string.lower(msg), "door") ~= nil or string.find(string.lower(msg), "openup") ~= nil then
- if on == false then
- on = "lol"
- for i = 1, 100 do
- door.CFrame = CFrame.new(door.Position + Vector3.new(0, 0.1, 0))
- wait ()
- end
- for i = 1, 100 do
- path.CFrame = CFrame.new(path.Position + Vector3.new(-0.5, 0, 0))
- wait ()
- end
- on = true
- pathopen = true
- end
- end
- if string.find(string.lower(msg), "open") ~= nil and string.find(string.lower(msg), "roof") ~= nil or string.find(string.lower(msg), "openup") ~= nil then
- if roof == true then
- roof = "lol"
- for i = 1, 50 do
- roofdoor1.CFrame = CFrame.new(roofdoor1.Position + Vector3.new(0.2, 0, 0))
- roofdoor2.CFrame = CFrame.new(roofdoor2.Position + Vector3.new(-0.2, 0, 0))
- wait ()
- end
- roof = false
- end
- end
- if string.find(string.lower(msg), "close") ~= nil and string.find(string.lower(msg), "roof") ~= nil or string.find(string.lower(msg), "lockdown") ~= nil then
- if roof == false then
- roof = "lol"
- for i = 1, 50 do
- roofdoor1.CFrame = CFrame.new(roofdoor1.Position + Vector3.new(-0.2, 0, 0))
- roofdoor2.CFrame = CFrame.new(roofdoor2.Position + Vector3.new(0.2, 0, 0))
- wait ()
- end
- roof = true
- end
- end
- if string.find(string.lower(msg), "open") ~= nil and string.find(string.lower(msg), "hatch") ~= nil or string.find(string.lower(msg), "openup") ~= nil then
- if hatch == true then
- hatch = "lol"
- for i = 1, 50 do
- floordoor1.CFrame = CFrame.new(floordoor1.Position + Vector3.new(0, 0, 0.2))
- floordoor2.CFrame = CFrame.new(floordoor2.Position + Vector3.new(0, 0, -0.2))
- wait ()
- end
- hatch = false
- end
- end
- if string.find(string.lower(msg), "close") ~= nil and string.find(string.lower(msg), "hatch") ~= nil or string.find(string.lower(msg), "lockdown") ~= nil then
- if hatch == false then
- hatch = "lol"
- for i = 1, 50 do
- floordoor1.CFrame = CFrame.new(floordoor1.Position + Vector3.new(0, 0, -0.2))
- floordoor2.CFrame = CFrame.new(floordoor2.Position + Vector3.new(0, 0, 0.2))
- wait ()
- end
- hatch = true
- end
- end
- if string.find(string.lower(msg), "elevator") ~= nil or string.find(string.lower(msg), "lift") ~= nil then
- if ele == true then
- ele = false
- elevator.Velocity = Vector3.new(0, 25, 0)
- elevator.BrickColor = BrickColor.new("Bright green")
- for i = 1, 155 do
- elevator.CFrame = CFrame.new(elevator.Position + Vector3.new(0, 0.2, 0))
- wait ()
- end
- elevator.Velocity = Vector3.new(0, 0, 0)
- elevator.BrickColor = BrickColor.new("Bright red")
- wait (4)
- elevator.BrickColor = BrickColor.new("Bright green")
- for i = 1, 155 do
- elevator.CFrame = CFrame.new(elevator.Position + Vector3.new(0, -0.2, 0))
- wait ()
- end
- elevator.BrickColor = BrickColor.new(color2)
- ele = true
- end
- end
- if string.find(string.lower(msg), "clean") ~= nil and string.find(string.lower(msg), "out") ~= nil then
- if sweep == true then
- sweep = false
- sweeper1 = Instance.new("Part")
- sweeper1.Parent = model
- sweeper1.Size = Vector3.new(3, 120, 50)
- sweeper1.CFrame = CFrame.new(Vector3.new(375.5, 15.9, 0) + offset)
- sweeper1.Anchored = true
- sweeper1.BrickColor = BrickColor.new(color)
- sweeper1mesh = Instance.new("BlockMesh")
- sweeper1mesh.Parent = sweeper1
- sweeper2 = Instance.new("Part")
- sweeper2.Parent = model
- sweeper2.Size = Vector3.new(50, 120, 3)
- sweeper2.CFrame = CFrame.new(Vector3.new(400.5, 15.9, -24.5) + offset)
- sweeper2.Anchored = true
- sweeper2.BrickColor = BrickColor.new(color)
- sweeper2mesh = Instance.new("BlockMesh")
- sweeper2mesh.Parent = sweeper2
- for i = 1, 400 do
- sweeper1.CFrame = CFrame.new(sweeper1.Position + Vector3.new(0.1, 0, 0))
- sweeper2.CFrame = CFrame.new(sweeper2.Position + Vector3.new(0, 0, 0.1))
- wait ()
- end
- sweeper1:Remove()
- sweeper2:Remove()
- sweep = true
- end
- end
- if string.lower(string.sub(msg, 1, 2)) == "in" then
- for i, v in pairs(game.Players:GetChildren()) do
- if v.Character ~= nil then
- if string.lower(string.sub(v.Name, 1, string.len(string.sub(msg, 4)))) == string.lower(string.sub(msg, 4)) then
- if v.Character:FindFirstChild("Torso") ~= nil then
- v.Character.Torso.CFrame = CFrame.new(door.Position + Vector3.new(25, 0, 0))
- v.Character.Torso.Velocity = Vector3.new(0,0,0)
- end
- end
- end
- end
- end
- if string.lower(string.sub(msg, 1, 3)) == "out" then
- for i, v in pairs(game.Players:GetChildren()) do
- if v.Character ~= nil then
- if string.lower(string.sub(v.Name, 1, string.len(string.sub(msg, 5)))) == string.lower(string.sub(msg, 5)) then
- if v.Character:FindFirstChild("Torso") ~= nil then
- v.Character.Torso.CFrame = CFrame.new(0, 5, 0)
- end
- end
- end
- end
- end
- if string.find(string.lower(msg), "visit") ~= nil then
- for i, v in pairs(game.Players:GetChildren()) do
- if v.Character ~= nil then
- if string.lower(string.sub(v.Name, 1, string.len(string.sub(msg, 7)))) == string.lower(string.sub(msg, 7)) then
- if game.Workspace:FindFirstChild(v.Name .. "'s House") ~= nil then
- if game.Workspace[v.Name .. "'s House"]:FindFirstChild("Door") ~= nil then
- me.Character.Torso.CFrame = CFrame.new(game.Workspace:FindFirstChild(v.Name .. "'s House").Door.Position + Vector3.new(25, 0, 0))
- end
- end
- end
- end
- end
- end
- if string.find(string.lower(msg), "fall") ~= nil then
- for i, v in pairs(model:GetChildren()) do
- v.Anchored = false
- wait ()
- end
- end
- if string.find(string.lower(msg), "freeze") ~= nil then
- for i, v in pairs(model:GetChildren()) do
- v.Anchored = true
- v.Velocity = Vector3.new(0,0,0)
- v.RotVelocity = Vector3.new(0,0,0)
- wait ()
- end
- end
- if string.find(string.lower(msg), "kaboom") ~= nil then
- for i, v in pairs(model:GetChildren()) do
- v.Anchored = false
- ex = Instance.new("Explosion")
- ex.Parent = v
- ex.Position = v.Position
- ex.BlastPressure = 2000000
- wait ()
- end
- end
- if string.find(string.lower(msg), "invisi") ~= nil then
- for i, v in pairs(model:GetChildren()) do
- v.Transparency = .99
- v.CanCollide = false
- wait()
- end
- end
- if string.find(string.lower(msg), "shineh") ~= nil then
- for i, v in pairs(model:GetChildren()) do
- v.Reflectance = 1
- wait()
- end
- end
- if string.find(string.lower(msg), "lock") ~= nil and string.find(string.lower(msg), "unlock") == nil then
- door.Name = "Locked"
- end
- if string.find(string.lower(msg), "unlock") ~= nil then
- door.Name = "Door"
- end
- if string.find(string.lower(msg), "refnorm") ~= nil then
- for i, v in pairs(model:GetChildren()) do
- v.Reflectance = 0
- wait()
- end
- end
- if string.find(string.lower(msg), "visi") ~= nil then
- for i, v in pairs(model:GetChildren()) do
- v.Transparency = 0
- v.CanCollide = true
- wait()
- end
- end
- if string.find(string.lower(msg), "randomcolor") ~= nil then
- for i, v in pairs(model:GetChildren()) do
- v.BrickColor = BrickColor.Random()
- wait()
- end
- end
- if string.find(string.lower(msg), "lockbricks") ~= nil then
- for i, v in pairs(model:GetChildren()) do
- v.Locked = true
- wait()
- end
- end
- if string.find(string.lower(msg), "backtonorm") ~= nil then
- path.BrickColor = BrickColor.new(color2)
- wall1.BrickColor = BrickColor.new(color)
- wall2.BrickColor = BrickColor.new(color)
- wall3.BrickColor = BrickColor.new(color)
- wall4.BrickColor = BrickColor.new(color)
- wall5.BrickColor = BrickColor.new(color)
- wall6.BrickColor = BrickColor.new(color)
- door.BrickColor = BrickColor.new(color)
- roof1.BrickColor = BrickColor.new(color2)
- roof2.BrickColor = BrickColor.new(color2)
- roof3.BrickColor = BrickColor.new(color2)
- roof4.BrickColor = BrickColor.new(color2)
- roofdoor1.BrickColor = BrickColor.new(color2)
- roofdoor2.BrickColor = BrickColor.new(color2)
- floordoor1.BrickColor = BrickColor.new(color2)
- floordoor2.BrickColor = BrickColor.new(color2)
- floor2.BrickColor = BrickColor.new(color2)
- floor1.BrickColor = BrickColor.new(color2)
- elevator.BrickColor = BrickColor.new(color2)
- end
- if string.find(string.lower(msg), "windows") ~= nil and string.find(string.lower(msg), "not") == nil or string.find(string.lower(msg), "view") ~= nil and string.find(string.lower(msg), "not") == nil or string.find(string.lower(msg), "openup") ~= nil and string.find(string.lower(msg), "not") == nil or string.find(string.lower(msg), "not") == nil and string.find(string.lower(msg), "view") ~= nil and string.find(string.lower(msg), "not") ~= nil or string.find(string.lower(msg), "view") ~= nil and string.find(string.lower(msg), "don't") ~= nil then
- wall1.Transparency = 0.5
- wall2.Transparency = 0.5
- wall3.Transparency = 0.5
- wall4.Transparency = 0.5
- wall5.Transparency = 0.5
- wall6.Transparency = 0.5
- door.Transparency = 0.5
- end
- if string.find(string.lower(msg), "walls") ~= nil and string.find(string.lower(msg), "not") == nil or string.find(string.lower(msg), "lockdown") ~= nil and string.find(string.lower(msg), "not") == nil or string.find(string.lower(msg), "view") ~= nil and string.find(string.lower(msg), "not") ~= nil then
- wall1.Transparency = 0
- wall2.Transparency = 0
- wall3.Transparency = 0
- wall4.Transparency = 0
- wall5.Transparency = 0
- wall6.Transparency = 0
- door.Transparency = 0
- end
- if string.sub(string.lower(msg), 1, 8) == "openpath" then
- if pathopen == false then
- for i = 1, 100 do
- path.CFrame = CFrame.new(path.Position + Vector3.new(-0.5, 0, 0))
- wait()
- end
- end
- pathopen = true
- end
- if string.sub(string.lower(msg), 1, 9) == "closepath" then
- if pathopen == true then
- for i = 1, 100 do
- path.CFrame = CFrame.new(path.Position + Vector3.new(0.5, 0, 0))
- wait()
- end
- end
- pathopen = false
- end
- if string.find(string.lower(msg), "open") ~= nil and string.find(string.lower(msg), "beds") ~= nil or string.find(string.lower(msg), "tired") ~= nil or string.find(string.lower(msg), "rest") ~= nil or string.find(string.lower(msg), "yawn") ~= nil then
- if beds == false then
- beds = true
- bedp1 = Instance.new("Part")
- bedp1.Parent = model
- bedp1.Size = Vector3.new(10, 1, 1)
- bedp1.CFrame = CFrame.new(Vector3.new(400.5, 6.1, -23.5) + offset)
- bedp1.Anchored = true
- bedp1.BrickColor = BrickColor.new(color2)
- bedp1.Friction = math.huge
- bedp1mesh = Instance.new("BlockMesh")
- bedp1mesh.Parent = bedp1
- bedp12 = Instance.new("Part")
- bedp12.Parent = model
- bedp12.Size = Vector3.new(10, 1, 1)
- bedp12.CFrame = CFrame.new(Vector3.new(400.5, 6.1, 23.5) + offset)
- bedp12.Anchored = true
- bedp12.BrickColor = BrickColor.new(color2)
- bedp12.Friction = math.huge
- bedp12mesh = Instance.new("BlockMesh")
- bedp12mesh.Parent = bedp12
- for i = 1, 5 do
- bedp1.Size = bedp1.Size + Vector3.new(0, 0, 1)
- bedp1.CFrame = CFrame.new(400.5 + offset.X, 6.1 + offset.Y, bedp1.Position.Z + 0.5)
- bedp12.Size = bedp12.Size + Vector3.new(0, 0, 1)
- bedp12.CFrame = CFrame.new(400.5 + offset.X, 6.1 + offset.Y, bedp12.Position.Z + -0.5)
- wait (0.05)
- end
- bedp2 = Instance.new("Part")
- bedp2.Parent = model
- bedp2.Size = Vector3.new(2, 1, 3)
- bedp2.CFrame = CFrame.new(Vector3.new(404.5, 6.1, -21) + offset)
- bedp2.Anchored = true
- bedp2.CanCollide = false
- bedp2.BrickColor = BrickColor.new("Bright white")
- bedp2mesh = Instance.new("SpecialMesh")
- bedp2mesh.Parent = bedp2
- bedp2mesh.MeshType = "Sphere"
- bedp22 = Instance.new("Part")
- bedp22.Parent = model
- bedp22.Size = Vector3.new(2, 1, 3)
- bedp22.CFrame = CFrame.new(Vector3.new(404.5, 6.1, 21) + offset)
- bedp22.Anchored = true
- bedp22.CanCollide = false
- bedp22.BrickColor = BrickColor.new("Bright white")
- bedp22mesh = Instance.new("SpecialMesh")
- bedp22mesh.Parent = bedp22
- bedp22mesh.MeshType = "Sphere"
- for i = 0, 0.6, 0.2 do
- bedp2.CFrame = CFrame.new(bedp2.Position + Vector3.new(0, 0.2, 0))
- bedp22.CFrame = CFrame.new(bedp22.Position + Vector3.new(0, 0.2, 0))
- wait (0.05)
- end
- fallp = Instance.new("Part")
- fallp.Parent = model
- fallp.Size = Vector3.new(1, 1, 5)
- fallp.CFrame = CFrame.new(Vector3.new(398, 7.3, -21) + offset)
- fallp.Anchored = true
- fallp.Transparency = 1
- fallp.CanCollide = false
- bedp1.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- hit.Parent.Humanoid.PlatformStand = true
- end
- end)
- fallp2 = Instance.new("Part")
- fallp2.Parent = model
- fallp2.Size = Vector3.new(1, 1, 5)
- fallp2.CFrame = CFrame.new(Vector3.new(398, 7.3, 21) + offset)
- fallp2.Anchored = true
- fallp2.Transparency = 1
- fallp2.CanCollide = false
- bedp22.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- hit.Parent.Humanoid.PlatformStand = true
- end
- end)
- end
- end
- if string.find(string.lower(msg), "close") ~= nil and string.find(string.lower(msg), "beds") ~= nil or string.find(string.lower(msg), "awake") ~= nil then
- if beds == true then
- beds = false
- fallp:Remove()
- fallp2:Remove()
- for i = 0, 0.6, 0.2 do
- bedp2.CFrame = CFrame.new(bedp2.Position + Vector3.new(0, -0.2, 0))
- bedp22.CFrame = CFrame.new(bedp22.Position + Vector3.new(0, -0.2, 0))
- wait (0.05)
- end
- bedp2:Remove()
- bedp22:Remove()
- for i = 1, 5 do
- bedp1.Size = bedp1.Size + Vector3.new(0, 0, -1)
- bedp1.CFrame = CFrame.new(400.5 + offset.X, 6.1 + offset.Y, bedp1.Position.Z + -0.5)
- bedp12.Size = bedp12.Size + Vector3.new(0, 0, -1)
- bedp12.CFrame = CFrame.new(400.5 + offset.X, 6.1 + offset.Y, bedp12.Position.Z + 0.5)
- wait (0.05)
- end
- bedp1:Remove()
- bedp12:Remove()
- end
- end
- if string.find(string.lower(msg), "go away house") ~= nil or string.find(string.lower(msg), "die") ~= nil then
- model:Remove()
- con:disconnect()
- end
- end)
- model:MakeJoints()
- cough:clone().Parent = game.Workspace
- script.Parent = model
- end
- if scr ~= nil then
- scr:remove()
- end
- end
- -- MY FINGERS HURT!!!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement