Advertisement
InTesting

House Thing. (broken)

Apr 2nd, 2019
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.62 KB | None | 0 0
  1. if game.PlaceId == 843468296 or game.PlaceId == 843495510 or game.PlaceId == 897312463 then
  2.     if workspace:FindFirstChild'House Version 1' then
  3.         workspace:FindFirstChild'House Version 1':Destroy()
  4.     end
  5.     function DE_FlyMeToHeaven(player)
  6.     wait(1/math.huge)
  7.    
  8.     local pc = player.Character
  9.     if pc~=nil then
  10.         local hum = pc:FindFirstChild'Humanoid'
  11.         local LArm = pc:FindFirstChild'Left Arm'
  12.         local RArm = pc:FindFirstChild'Right Arm'
  13.         local LLeg = pc:FindFirstChild'Left Leg'
  14.         local RLeg = pc:FindFirstChild'Right Leg'
  15.         local torso = pc:FindFirstChild'Torso'
  16.         local head = pc:FindFirstChild'Head'
  17.        
  18.        
  19.         local LUA = pc:FindFirstChild'LeftUpperArm'
  20.         local LLA = pc:FindFirstChild'LeftLowerArm'
  21.         local LH = pc:FindFirstChild'LeftHand'
  22.        
  23.         local RUA = pc:FindFirstChild'RightUpperArm'
  24.         local RLA = pc:FindFirstChild'RightLowerArm'
  25.         local RH = pc:FindFirstChild'RightHand'
  26.        
  27.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  28.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  29.         local LF = pc:FindFirstChild'LeftFoot'
  30.        
  31.         local RUL = pc:FindFirstChild'RightUpperLeg'
  32.         local RLL = pc:FindFirstChild'RightLowerLeg'
  33.         local RF = pc:FindFirstChild'RightFoot'
  34.        
  35.         local UT = pc:FindFirstChild'UpperTorso'
  36.         local LT = pc:FindFirstChild'LowerTorso'
  37.        
  38.         if hum and LArm and RArm and LLeg and RLeg and head then
  39.             hum.BreakJointsOnDeath = false
  40.             hum.Died:Connect(function()
  41.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  42.                     for _,v in pairs(torso:GetChildren())do
  43.                         if v:IsA'Motor6D'then
  44.                             v:Destroy()
  45.                         elseif v:IsA'Part' then
  46.                             v.Anchored = false
  47.                         end
  48.                     end
  49.                     local vis = false
  50.                     local vis2 = false
  51.                                
  52.                     local at1 = Instance.new("Attachment",torso)
  53.                     at1.Visible = vis
  54.                     at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  55.                     at1.Position = Vector3.new(-1,1,0)
  56.                                
  57.                     local at1p2 = Instance.new("Attachment",LArm)
  58.                     at1p2.Visible = vis
  59.                     at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  60.                     at1p2.Position = Vector3.new(.5,1,0)
  61.                    
  62.                     local bis = Instance.new("BallSocketConstraint",torso)
  63.                     bis.Attachment0 = at1
  64.                     bis.Attachment1 = at1p2
  65.                     bis.LimitsEnabled = true
  66.                     bis.UpperAngle = 15
  67.                     bis.Visible = vis2
  68.                     bis.TwistLimitsEnabled = true
  69.                     bis.UpperAngle = -45
  70.                     bis.TwistLowerAngle = -45
  71.                    
  72.                     local at2 = Instance.new("Attachment",torso)
  73.                     at2.Visible = vis
  74.                     at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  75.                     at2.Position = Vector3.new(1,1,0)
  76.                            
  77.                     local at2p2 = Instance.new("Attachment",RArm)
  78.                     at2p2.Visible = vis
  79.                     at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  80.                     at2p2.Position = Vector3.new(-.5,1,0)
  81.                    
  82.                     local bis2 = Instance.new("BallSocketConstraint",torso)
  83.                     bis2.Attachment0 = at2
  84.                     bis2.Attachment1 = at2p2
  85.                     bis2.LimitsEnabled = true
  86.                     bis2.UpperAngle = 15
  87.                     bis2.Visible = vis2
  88.                     bis2.TwistLimitsEnabled = true
  89.                     bis2.UpperAngle = -45
  90.                     bis2.TwistLowerAngle = -45
  91.                    
  92.                     local at3 = Instance.new("Attachment",torso)
  93.                     at3.Visible = vis
  94.                     at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  95.                     at3.Position = Vector3.new(.5,-1,0)
  96.                            
  97.                     local at3p2 = Instance.new("Attachment",RLeg)
  98.                     at3p2.Visible = vis
  99.                     at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  100.                     at3p2.Position = Vector3.new(0,1,0)
  101.                    
  102.                     local bis3 = Instance.new("BallSocketConstraint",torso)
  103.                     bis3.Attachment0 = at3
  104.                     bis3.Attachment1 = at3p2
  105.                     bis3.LimitsEnabled = true
  106.                     bis3.UpperAngle = 180-15
  107.                     bis3.Visible = vis2
  108.                        
  109.                     local at4 = Instance.new("Attachment",torso)
  110.                     at4.Visible = vis
  111.                     at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  112.                     at4.Position = Vector3.new(-.5,-1,0)
  113.                            
  114.                     local at4p2 = Instance.new("Attachment",LLeg)
  115.                     at4p2.Visible = vis
  116.                     at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  117.                     at4p2.Position = Vector3.new(0,1,0)
  118.                
  119.                     local bis4 = Instance.new("BallSocketConstraint",torso)
  120.                     bis4.Attachment0 = at4
  121.                     bis4.Attachment1 = at4p2
  122.                     bis4.LimitsEnabled = true
  123.                     bis4.UpperAngle = 180-15
  124.                     bis4.Visible = vis2
  125.                
  126.                
  127.                     local at5 = Instance.new("Attachment",torso)
  128.                     at5.Visible = vis
  129.                     at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  130.                     at5.Position = Vector3.new(0,1,0)
  131.                        
  132.                     local at5p2 = Instance.new("Attachment",head)
  133.                     at5p2.Visible = vis
  134.                     at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  135.                     at5p2.Position = Vector3.new(0,-.5,0)
  136.                
  137.                     local bis5 = Instance.new("BallSocketConstraint",torso)
  138.                     bis5.Attachment0 = at5p2
  139.                     bis5.Attachment1 = at5
  140.                     bis5.LimitsEnabled = true
  141.                     bis5.UpperAngle = 75
  142.                     bis5.Visible = vis2
  143.                     bis5.TwistLimitsEnabled = true
  144.                     bis5.UpperAngle = -45
  145.                     bis5.TwistLowerAngle = -45
  146.                 end
  147.             end)
  148.         elseif head and hum then
  149.             hum.BreakJointsOnDeath = false
  150.             hum.Died:Connect(function()
  151.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  152.                     for _,v in pairs(pc:GetDescendants())do
  153.                         if v:IsA'Motor6D'then
  154.                             v:Destroy()
  155.                         end
  156.                     end
  157.                     local vis = false
  158.                     local vis2 = false
  159.                    
  160.                     local bsc1 = Instance.new("BallSocketConstraint",UT)
  161.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  162.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  163.                    
  164.                     local bsc2 = Instance.new("BallSocketConstraint",UT)
  165.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  166.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  167.                    
  168.                     local bsc3 = Instance.new("BallSocketConstraint",UT)
  169.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  170.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  171.                    
  172.                     local bsc4 = Instance.new("BallSocketConstraint",UT)
  173.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  174.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  175.                    
  176.                     local bsc5 = Instance.new("BallSocketConstraint",UT)
  177.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  178.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  179.                    
  180.                     local bsc6 = Instance.new("BallSocketConstraint",UT)
  181.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  182.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  183.                    
  184.                    
  185.                     local bsc7 = Instance.new("BallSocketConstraint",UT)
  186.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  187.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  188.                    
  189.                     local bsc8 = Instance.new("BallSocketConstraint",UT)
  190.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  191.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  192.                    
  193.                     local bsc9 = Instance.new("BallSocketConstraint",UT)
  194.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  195.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  196.                    
  197.                     local bsc10 = Instance.new("BallSocketConstraint",UT)
  198.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  199.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  200.                    
  201.                     local bsc11 = Instance.new("BallSocketConstraint",UT)
  202.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  203.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  204.                    
  205.                     local bsc12 = Instance.new("BallSocketConstraint",UT)
  206.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  207.                     bsc12.Attachment1 = UT.RightCollarAttachment
  208.                    
  209.                     local bsc13 = Instance.new("BallSocketConstraint",UT)
  210.                     bsc13.Attachment0 = LT.WaistRigAttachment
  211.                     bsc13.Attachment1 = UT.WaistRigAttachment
  212.                    
  213.                     local bsc14 = Instance.new("BallSocketConstraint",UT)
  214.                     bsc14.Attachment0 = UT.NeckRigAttachment
  215.                     bsc14.Attachment1 = head.NeckRigAttachment
  216.                     bsc14.LimitsEnabled = true
  217.                     bsc14.UpperAngle = 75
  218.                     bsc14.TwistLimitsEnabled = true
  219.                     bsc14.UpperAngle = -45
  220.                     bsc14.TwistLowerAngle = -45
  221.                    
  222.                 end
  223.             end)
  224.         end
  225.         if hum and head then
  226.             hum.Died:Connect(function()
  227.                 local sound = Instance.new("Sound",head)
  228.                 sound.SoundId = "rbxassetid://1588892236"
  229.                 sound.Volume = 4
  230.                 sound.PlaybackSpeed = 1
  231.                 sound.TimePosition = 1.2
  232.                 sound:Play()
  233.                 local velo = Instance.new("BodyVelocity",head)
  234.                 velo.MaxForce= Vector3.new(0, 4000, 0)
  235.                 velo.Velocity = Vector3.new(0, 3, 0)
  236.                 local velo1 = Instance.new("BodyAngularVelocity",head)
  237.                 local num = 30
  238.                 velo1.MaxTorque= Vector3.new(num ,num ,num )
  239.                 velo1.AngularVelocity = Vector3.new(num , num , num )
  240.             end)
  241.         end
  242.     end
  243. end
  244. for _,v in pairs(workspace:GetChildren())do
  245.     if game:GetService'Players':FindFirstChild(v.Name) then
  246.         DE_FlyMeToHeaven(game:GetService'Players':FindFirstChild(v.Name))
  247.     end
  248. end
  249. workspace.ChildAdded:Connect(function(ch)
  250.     if game:GetService'Players':FindFirstChild(ch.Name) then
  251.         DE_FlyMeToHeaven(game:GetService'Players':FindFirstChild(ch.Name))
  252.     end
  253. end)
  254. function MPAR(parent,pos,size,orien,CanCol,shape,transpar,name)
  255.     local part1 = Instance.new("Part",parent)
  256.     part1.Anchored = true
  257.     part1.Position = pos
  258.     part1.Size = size
  259.     part1.Orientation = orien
  260.     part1.CanCollide = CanCol
  261.     part1.Shape = shape
  262.     part1.Name = name
  263.     part1.Transparency = transpar
  264. end
  265. function MWEG(parent,pos,size,orien,name)
  266.     local part1 = Instance.new("WedgePart",parent)
  267.     part1.Anchored = true
  268.     part1.Position = pos
  269.     part1.Size = size
  270.     part1.Orientation = orien
  271.     part1.Name = name
  272. end
  273. function Houseify()
  274. local house = Instance.new("Model",workspace)
  275. house.Name = "House Version 1"
  276.  
  277. if true then --couch
  278. local couch = Instance.new("Model",house)
  279. couch.Name = "Couch"
  280.  
  281. MPAR(couch,Vector3.new(-6.5, 2.25, -2.5),Vector3.new(2.5, 1, 1),Vector3.new(0, 0, 90),true,"Cylinder",0,"CPart")
  282. MPAR(couch,Vector3.new(-6.5, 3.5, -9.5),Vector3.new(1, 1, 1),Vector3.new(-90, 90, 0),true,"Ball",0,"CPart")
  283. MPAR(couch,Vector3.new(-6.5, 2.25, -9.5),Vector3.new(2.5, 1, 1),Vector3.new(0, 0, 90),true,"Cylinder",0,"CPart")
  284. MPAR(couch,Vector3.new(-8.5, 2.5, -2.5),Vector3.new(1, 1, 1),Vector3.new(0, 0, 90),true,"Ball",0,"CPart")
  285. MPAR(couch,Vector3.new(-7.5, 2.25, -2.5),Vector3.new(2, 0.5, 1),Vector3.new(0, 0, 0),true,"Block",0,"CPart")
  286. MPAR(couch,Vector3.new(-7.5, 2.5, -2.5),Vector3.new(2, 1, 1),Vector3.new(0, 0, 0),true,"Cylinder",0,"CPart")
  287. MPAR(couch,Vector3.new(-8.5, 2.5, -9.5),Vector3.new(1, 1, 1),Vector3.new(0, 0, 90),true,"Ball",0,"CPart")
  288. MPAR(couch,Vector3.new(-6.5, 2.25, -6),Vector3.new(1, 2.5, 7),Vector3.new(0, 0, 0),true,"Block",0,"CPart")
  289. MPAR(couch,Vector3.new(-6.5, 3.5, -2.5),Vector3.new(1, 1, 1),Vector3.new(-90, 90, 0),true,"Ball",0,"CPart")
  290. MPAR(couch,Vector3.new(-7.5, 1.5, -6),Vector3.new(2, 1, 8),Vector3.new(0, 0, 0),true,"Block",0,"CPart")
  291. MPAR(couch,Vector3.new(-8.5, 1.5, -6),Vector3.new(7, 1, 1),Vector3.new(90, -90, 0),true,"Cylinder",0,"CPart")
  292. MPAR(couch,Vector3.new(-7.5, 2.5, -9.5),Vector3.new(2, 1, 1),Vector3.new(0, 0, 0),true,"Cylinder",0,"CPart")
  293. MPAR(couch,Vector3.new(-7.5, 2.25, -9.5),Vector3.new(2, 0.5, 1),Vector3.new(0, 0, 0),true,"Block",0,"CPart")
  294. MPAR(couch,Vector3.new(-8.5, 1.75, -2.5),Vector3.new(1.5, 1, 1),Vector3.new(0, 0, 90),true,"Cylinder",0,"CPart")
  295. MPAR(couch,Vector3.new(-6.5, 3.5, -6),Vector3.new(7, 1, 1),Vector3.new(-90, 90, 0),true,"Cylinder",0,"CPart")
  296. MPAR(couch,Vector3.new(-8.5, 1.75, -9.5),Vector3.new(1.5, 1, 1),Vector3.new(0, 0, 90),true,"Cylinder",0,"CPart")
  297.     local seat1 = Instance.new("Seat",couch)
  298.     seat1.Anchored = true
  299.     seat1.Position = Vector3.new(-7.625, 2.0, -8)
  300.     seat1.Size = Vector3.new(1.75, 0.25, 2)
  301.     seat1.Orientation = Vector3.new(0,90,0)
  302.  
  303.     local seat2 = Instance.new("Seat",couch)
  304.     seat2.Anchored = true
  305.     seat2.Position = Vector3.new(-7.625, 2.0, -4)
  306.     seat2.Size = Vector3.new(1.75, 0.25, 2)
  307.     seat2.Orientation = Vector3.new(0,90,0)
  308.  
  309.     for _,v in pairs(couch:GetChildren())do
  310.         v.BrickColor =BrickColor.new("Really red")
  311.         v.Material = Enum.Material.Glass
  312.         if v:IsA'Seat'then
  313.             v.Transparency=1
  314.         end
  315.     end
  316. end
  317. if true then --KillParts
  318.     local mod = Instance.new("Model",house)
  319.     mod.Name = "KillParts"
  320.    
  321. MPAR(mod,Vector3.new(-10.5, 1.5, -13),Vector3.new(7, 1, 2),Vector3.new(0,0,0),false,"Block",1,"KPS1")
  322. MPAR(mod,Vector3.new(-8, 1.5, -15.5),Vector3.new(2, 5, 7),Vector3.new(0,0,0),false,"Block",1,"KPS1")
  323. MPAR(mod,Vector3.new(-13, 1.5, -10),Vector3.new(2, 1, 14),Vector3.new(0,0,0),false,"Block",1,"KPS1")
  324. MPAR(mod,Vector3.new(-10.5, 2.5, -6),Vector3.new(7, 3, 6),Vector3.new(0,0,0),false,"Block",1,"KPS1")
  325. MPAR(mod,Vector3.new(-13, 5, -17),Vector3.new(2, 8, 4),Vector3.new(0,0,0),false,"Block",1,"KPS1")
  326.  
  327. end
  328. if true then --ladder
  329.     local ladder = Instance.new("Model",house)
  330.     ladder.Name = "Ladder"
  331.    
  332.     local t1 = Instance.new("TrussPart",ladder)
  333.     t1.Size = Vector3.new(2, 8, 2)
  334.     t1.Anchored = true
  335.     t1.Style = "NoSupports"
  336.     t1.Position = Vector3.new(-13, 4, -17)
  337.     t1.BrickColor = BrickColor.new("Br. yellowish orange")
  338.     t1.Material = Enum.Material.Brick
  339. end
  340. if true then --Door
  341.     local Door = Instance.new("Model",house)
  342.     Door.Name = "Door"
  343.    
  344.     MPAR(Door,Vector3.new(-5.5, 4, -18),Vector3.new(1, 6, 4),Vector3.new(0,0,0),false,"Block",0,"Doorl")
  345.    
  346.     Door:FindFirstChild("Doorl").Material = Enum.Material.WoodPlanks
  347.     Door:FindFirstChild("Doorl").BrickColor = BrickColor.new("Bright orange")
  348. end
  349. if true then --Sign
  350.     local SMod = Instance.new("Model",house)
  351.     SMod.Name = "Sign"
  352.    
  353.     MPAR(SMod,Vector3.new(-4.875, 5.025, -13),Vector3.new(0.25, 5.25, 5.5),Vector3.new(0,0,0),false,"Block",0,"SignBase")
  354.     local SBASE = SMod:FindFirstChild("SignBase")
  355.     SBASE.BrickColor = BrickColor.new("Really black")
  356.     SBASE.Material = Enum.Material.Metal
  357.    
  358.     local SGui = Instance.new("SurfaceGui",SBASE)
  359.     SGui.CanvasSize = Vector2.new(800,600)
  360.     SGui.Face = "Right"
  361.    
  362.     local TL = Instance.new("TextLabel",SGui)
  363.     TL.BackgroundTransparency = 1
  364.     TL.Size = UDim2.new(1,0,1,0)
  365.     wait()
  366.     TL.Text = "R15 Avatars Only."
  367.     TL.TextScaled = true
  368.     TL.TextColor3 = Color3.new(255, 255, 255)
  369. end
  370. if true then --Roof
  371.     local rooff = Instance.new("Model",house)
  372.     rooff.Name = "Roof"
  373.  
  374. MPAR(rooff,Vector3.new(-15.5, 11, -16),Vector3.new(1, 6, 10),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  375. MPAR(rooff,Vector3.new(-10.5, 11, -6),Vector3.new(11, 6, 10),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  376. MPAR(rooff,Vector3.new(-5.5, 9.5, -13.5),Vector3.new(1, 3, 5),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  377. MPAR(rooff,Vector3.new(-10.5, 11, -16),Vector3.new(1, 6, 10),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  378.  
  379. MWEG(rooff,Vector3.new(-8, 8.3, -20.5),Vector3.new(4, 0.6, 1),Vector3.new(0,0,0),"RoofWedgeThing")
  380. MWEG(rooff,Vector3.new(-5.5, 12.5, -13.5),Vector3.new(1, 3, 5),Vector3.new(0,0,0),"RoofWedgeThing")
  381. MWEG(rooff,Vector3.new(-5.5, 9.5, -18.5),Vector3.new(1, 3, 5),Vector3.new(0,0,0),"RoofWedgeThing")
  382. MWEG(rooff,Vector3.new(-13, 17.042, -6.083),Vector3.new(6, 6, 10),Vector3.new(0, 180, 0),"RoofWedgeThing")
  383. MWEG(rooff,Vector3.new(-13, 17.042, -16.083),Vector3.new(6, 6, 10),Vector3.new(0, 0, 0),"RoofWedgeThing")
  384.  
  385.     for _,v in pairs(rooff:GetChildren())do
  386.         v.Material = Enum.Material.Brick
  387.         v.BrickColor = BrickColor.new("Really red")
  388.     end
  389. end
  390. if true then --Wood (Jesus Pplease save me)
  391.     local wood = Instance.new("Model",house)
  392.     wood.Name = "WoodStuff"
  393.    
  394. MPAR(wood,Vector3.new(-10.5, 7.5, -16),Vector3.new(1, 1, 10),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  395. MPAR(wood,Vector3.new(-10.5, 0.5, -11),Vector3.new(11, 1, 20),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  396. MPAR(wood,Vector3.new(-15.5, 4.5, -11),Vector3.new(1, 7, 20),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  397. MPAR(wood,Vector3.new(-13, 4.535, -19),Vector3.new(4, 7.07, 4),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  398. MPAR(wood,Vector3.new(-8, 7.5, -10.5),Vector3.new(4, 1, 1),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  399. MPAR(wood,Vector3.new(-5.5, 4, -13),Vector3.new(1, 6, 6),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  400. MPAR(wood,Vector3.new(-5.5, 2.5, -6),Vector3.new(1, 3, 8),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  401. MPAR(wood,Vector3.new(-10, 4, -20.5),Vector3.new(10, 6, 1),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  402. MPAR(wood,Vector3.new(-10, 4.5, -1.5),Vector3.new(10, 7, 1),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  403. MPAR(wood,Vector3.new(-8.5, 4.5, -10.5),Vector3.new(5, 7, 1),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  404. MPAR(wood,Vector3.new(-7.5, 7.5, -20.5),Vector3.new(5, 1, 1),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  405. MPAR(wood,Vector3.new(-10.5, 4, -17.5),Vector3.new(1, 6, 5),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  406. MPAR(wood,Vector3.new(-5.5, 6.5, -6),Vector3.new(1, 1, 8),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  407. MPAR(wood,Vector3.new(-13, 9.04, -20.5),Vector3.new(4, 2, 1),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  408. MPAR(wood,Vector3.new(-5.5, 7.5, -11),Vector3.new(1, 1, 18),Vector3.new(0, 0, 0),true,"Block",0,"RoofThing")
  409. MWEG(wood,Vector3.new(-4, 0.5, -18),Vector3.new(4, 1, 2),Vector3.new(0, -90, 0),"Thing")
  410.    
  411.     for _,v in pairs(wood:GetChildren())do
  412.         v.Material = Enum.Material.WoodPlanks
  413.         v.BrickColor = BrickColor.new("Br. yellowish orange")
  414.     end
  415. end
  416. if true then --window
  417.     local window = Instance.new("Model",house)
  418.     window.Name = "Window"
  419.    
  420.     MPAR(window,Vector3.new(-5.5, 5, -6),Vector3.new(1, 2, 8),Vector3.new(0, 0, 0),true,"Block",0.7,"RoofThing")
  421.     MPAR(window,Vector3.new(-13, 12.04, -20.5),Vector3.new(4, 4, 1),Vector3.new(0, 0, 0),true,"Block",0.7,"RoofThing")
  422.  
  423.     for _,v in pairs(window:GetChildren())do
  424.         v.Material = Enum.Material.WoodPlanks
  425.         v.BrickColor = BrickColor.new("Pastel Blue")
  426.     end
  427. end
  428. if true then --TV and light
  429.     local TVAL = Instance.new("Model",house)
  430.     TVAL.Name = "TV and Light"
  431.    
  432.     MPAR(TVAL,Vector3.new(-14.75, 1.25, -6.5),Vector3.new(0.5, 0.5, 7),Vector3.new(0, 0, 0),true,"Block",0,"TVPart")
  433.     MPAR(TVAL,Vector3.new(-14.75, 4.75, -6.5),Vector3.new(0.5, 5.5, 8),Vector3.new(0, 0, 0),true,"Block",0,"TVPart")
  434.     MPAR(TVAL,Vector3.new(-14.75, 1.75, -6.5),Vector3.new(0.5, 0.5, 0.5),Vector3.new(0, 0, 0),true,"Block",0,"TVPart")
  435.    
  436.     for _,v in pairs(TVAL:GetChildren())do
  437.         v.BrickColor = BrickColor.new("Institutional white")
  438.     end
  439.    
  440.     MPAR(TVAL,Vector3.new(-14.45, 4.75, -6.5),Vector3.new(0.1, 5.3, 7.8),Vector3.new(0, 0, 0),true,"Block",0,"TVPartScreen")
  441.    
  442.     TVAL:FindFirstChild("TVPartScreen").BrickColor = BrickColor.new("Really black")
  443.    
  444.     for _,v in pairs(TVAL:GetChildren())do
  445.         v.Material = Enum.Material.SmoothPlastic
  446.     end
  447.    
  448.     MPAR(TVAL,Vector3.new(-10, 8.125, -6),Vector3.new(0.75, 1.5, 1.5),Vector3.new(0, -90, 90),true,"Cylinder",0,"Light")
  449.    
  450.     local light = TVAL:FindFirstChild("Light")
  451.     light.BrickColor = BrickColor.new("Lily white")
  452.     light.Material = Enum.Material.Metal
  453.    
  454.     local SL = Instance.new("SurfaceLight",light)
  455.     SL.Range = 16
  456.     SL.Face = "Left"
  457.     SL.Shadows = true
  458.     SL.Brightness = 6.72
  459.  
  460.  
  461. end
  462. Houseify()
  463. local house = workspace:FindFirstChild"House Version 1"
  464. if house then
  465.     for _,v in pairs(house:FindFirstChild'KillParts':GetChildren())do
  466.     v.Touched:Connect(function(hit)
  467.         local deb = true
  468.         local hum = hit.Parent:FindFirstChildWhichIsA'Humanoid'
  469.         if deb and hum then
  470.             if hum.RigType==Enum.HumanoidRigType.R6 and hum.Parent.Name~="SoftlockedUnderZero"then
  471.                 hum.Health = 0
  472.             end
  473.         end
  474.     end)
  475.     end
  476. end
  477.    
  478.     workspace.ChildRemoved:Connect(function(ch)
  479.         if ch.Name=="House Version 1" then
  480.             wait(1/math.huge)
  481.             Houseify()
  482.         elseif ch.Parent~=nil then
  483.             if ch.Parent.Parent~=nil then
  484.                 if ch.Parent.Parent.Name=="House Version 1" then
  485.                     wait(1/math.huge)
  486.                     Houseify()
  487. local house = workspace:FindFirstChild"House Version 1"
  488. if house then
  489.     for _,v in pairs(house:FindFirstChild'KillParts':GetChildren())do
  490.     v.Touched:Connect(function(hit)
  491.         local deb = true
  492.         local hum = hit.Parent:FindFirstChildWhichIsA'Humanoid'
  493.         if deb and hum then
  494.             if hum.RigType==Enum.HumanoidRigType.R6 and hum.Parent.Name~="SoftlockedUnderZero"then
  495.                 hum.Health = 0
  496.             end
  497.         end
  498.     end)
  499.     end
  500. end
  501.                 end
  502.             end
  503.         end
  504.     end)
  505.  
  506. end
  507. end
  508. -- (c) CHL/SoftlockedUnderZero
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement