RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a chair"
-- server script for creating a chair local chair = Instance.new("Part") chair.Parent = game.Workspace chair.Name = "Chair" chair.Shape = Enum.PartType.Ball chair.Size = Vector3.new(4, 2, 4) chair.Position = Vector3.new(0, 5, 0) chair.BrickColor = BrickColor.new("Bright blue") local seat = Instance.new("Seat") seat.Parent = chair seat.Size = Vector3.new(3, 0.5, 3) seat.Position = Vector3.new(0, 1.5, 0) seat.Anchored = true local leg1 = Instance.new("Part") leg1.Parent = chair leg1.Name = "Leg1" leg1.Shape = Enum.PartType.Cylinder leg1.Size = Vector3.new(0.5, 2, 0.5) leg1.Position = Vector3.new(-1.5, -1, -1.5) leg1.BrickColor = BrickColor.new("Bright blue") local leg2 = Instance.new("Part") leg2.Parent = chair leg2.Name = "Leg2" leg2.Shape = Enum.PartType.Cylinder leg2.Size = Vector3.new(0.5, 2, 0.5) leg2.Position = Vector3.new(1.5, -1, -1.5) leg2.BrickColor = BrickColor.new("Bright blue") local leg3 = Instance.new("Part") leg3.Parent = chair leg3.Name = "Leg3" leg3.Shape = Enum.PartType.Cylinder leg3.Size = Vector3.new(0.5, 2, 0.5) leg3.Position = Vector3.new(-1.5, -1, 1.5) leg3.BrickColor = BrickColor.new("Bright blue") local leg4 = Instance.new("Part") leg4.Parent = chair leg4.Name = "Leg4" leg4.Shape = Enum.PartType.Cylinder leg4.Size = Vector3.new(0.5, 2, 0.5) leg4.Position = Vector3.new(1.5, -1, 1.5) leg4.BrickColor = BrickColor.new("Bright blue") local weld1 = Instance.new("Weld") weld1.Parent = leg1 weld1.Part0 = leg1 weld1.Part1 = chair weld1.C0 = CFrame.new(0, 1, 0) local weld2 = Instance.new("Weld") weld2.Parent = leg2 weld2.Part0 = leg2 weld2.Part1 = chair weld2.C0 = CFrame.new(0, 1, 0) local weld3 = Instance.new("Weld") weld3.Parent = leg3 weld3.Part0 = leg3 weld3.Part1 = chair weld3.C0 = CFrame.new(0, 1, 0) local weld4 = Instance.new("Weld") weld4.Parent = leg4 weld4.Part0 = leg4 weld4.Part1 = chair weld4.C0 = CFrame.new(0, 1, 0)