|
| 1 | +--!strict |
| 2 | +--[=[ |
| 3 | + @class RenderCrateUtils |
| 4 | +]=] |
| 5 | + |
| 6 | +local require = require(script.Parent.loader).load(script) |
| 7 | + |
| 8 | +local Blend = require("Blend") |
| 9 | + |
| 10 | +local RenderCrateUtils = {} |
| 11 | + |
| 12 | +function RenderCrateUtils.crate() |
| 13 | + local center = Blend.State(nil) |
| 14 | + |
| 15 | + return Blend.New "Model" { |
| 16 | + Name = "Wood Crate", |
| 17 | + PrimaryPart = center, |
| 18 | + Blend.New "Part" { |
| 19 | + Size = Vector3.new(3.4, 0.6, 0.6), |
| 20 | + BrickColor = BrickColor.new("Reddish brown"), |
| 21 | + CFrame = CFrame.new(1.7, -0.300135, -1.699984, 0, -1, 0, -1, 0, 0, 0, 0, -1), |
| 22 | + Color = Color3.fromRGB(105, 64, 40), |
| 23 | + Material = Enum.Material.WoodPlanks, |
| 24 | + Rotation = Vector3.new(180, 0, 90), |
| 25 | + }, |
| 26 | + Blend.New "Part" { |
| 27 | + Size = Vector3.new(2.8, 0.6, 0.6), |
| 28 | + BrickColor = BrickColor.new("Reddish brown"), |
| 29 | + CFrame = CFrame.new(0, 1.7, -1.7, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
| 30 | + Color = Color3.fromRGB(105, 64, 40), |
| 31 | + Material = Enum.Material.WoodPlanks, |
| 32 | + }, |
| 33 | + Blend.New "Part" { |
| 34 | + Size = Vector3.new(4, 0.6, 0.6), |
| 35 | + BrickColor = BrickColor.new("Reddish brown"), |
| 36 | + CFrame = CFrame.new(0, 0.028748, 1.641696, -0.707111, -0.707102, 0, 0.707102, -0.707112, 0, 0, 0, 1), |
| 37 | + Color = Color3.fromRGB(105, 64, 40), |
| 38 | + Material = Enum.Material.WoodPlanks, |
| 39 | + Rotation = Vector3.new(0, 0, 135), |
| 40 | + }, |
| 41 | + Blend.New "Part" { |
| 42 | + Size = Vector3.new(0.6, 0.6, 4), |
| 43 | + BrickColor = BrickColor.new("Reddish brown"), |
| 44 | + CFrame = CFrame.new(0, 0.028749, -1.658263, 0, -0.707102, -0.707111, 0, -0.707111, 0.707102, -1, -0, 0), |
| 45 | + Color = Color3.fromRGB(105, 64, 40), |
| 46 | + Material = Enum.Material.WoodPlanks, |
| 47 | + Rotation = Vector3.new(-90, -45, 90), |
| 48 | + }, |
| 49 | + Blend.New "Part" { |
| 50 | + Size = Vector3.new(4, 0.6, 0.6), |
| 51 | + BrickColor = BrickColor.new("Reddish brown"), |
| 52 | + CFrame = CFrame.new( |
| 53 | + -1.649982, |
| 54 | + 0.02874, |
| 55 | + -0.008285, |
| 56 | + 0, |
| 57 | + 0, |
| 58 | + -1, |
| 59 | + 0.707106, |
| 60 | + -0.707108, |
| 61 | + 0, |
| 62 | + -0.707108, |
| 63 | + -0.707106, |
| 64 | + -0 |
| 65 | + ), |
| 66 | + Color = Color3.fromRGB(105, 64, 40), |
| 67 | + Material = Enum.Material.WoodPlanks, |
| 68 | + Rotation = Vector3.new(-135, -90, 0), |
| 69 | + }, |
| 70 | + Blend.New "Part" { |
| 71 | + Size = Vector3.new(3.4, 0.6, 0.6), |
| 72 | + BrickColor = BrickColor.new("Reddish brown"), |
| 73 | + CFrame = CFrame.new(0.3, -1.7, 1.7, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
| 74 | + Color = Color3.fromRGB(105, 64, 40), |
| 75 | + Material = Enum.Material.WoodPlanks, |
| 76 | + }, |
| 77 | + Blend.New "Part" { |
| 78 | + Size = Vector3.new(3.4, 0.6, 0.6), |
| 79 | + BrickColor = BrickColor.new("Reddish brown"), |
| 80 | + CFrame = CFrame.new(-1.7, 1.7, -0.3) * CFrame.Angles(0, math.pi / 2, 0), |
| 81 | + Color = Color3.fromRGB(105, 64, 40), |
| 82 | + Material = Enum.Material.WoodPlanks, |
| 83 | + Rotation = Vector3.new(0, 90, 0), |
| 84 | + }, |
| 85 | + Blend.New "Part" { |
| 86 | + Size = Vector3.new(3.4, 0.6, 0.6), |
| 87 | + BrickColor = BrickColor.new("Reddish brown"), |
| 88 | + CFrame = CFrame.new(-1.7, -0.3, -1.7) * CFrame.Angles(-math.pi / 2, math.pi / 2, 0), |
| 89 | + Color = Color3.fromRGB(105, 64, 40), |
| 90 | + Material = Enum.Material.WoodPlanks, |
| 91 | + Rotation = Vector3.new(-90, 90, 0), |
| 92 | + }, |
| 93 | + Blend.New "Part" { |
| 94 | + Size = Vector3.new(2.8, 0.6, 0.6), |
| 95 | + BrickColor = BrickColor.new("Reddish brown"), |
| 96 | + CFrame = CFrame.new(0.000019, -1.70013, -1.7, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
| 97 | + Color = Color3.fromRGB(105, 64, 40), |
| 98 | + Material = Enum.Material.WoodPlanks, |
| 99 | + }, |
| 100 | + Blend.New "Part" { |
| 101 | + Size = Vector3.new(3.4, 0.6, 0.6), |
| 102 | + BrickColor = BrickColor.new("Reddish brown"), |
| 103 | + CFrame = CFrame.new(1.7, 0.3, 1.7, 0, -1, 0, 1, 0, 0, 0, 0, 1), |
| 104 | + Color = Color3.fromRGB(105, 64, 40), |
| 105 | + Material = Enum.Material.WoodPlanks, |
| 106 | + Rotation = Vector3.new(0, 0, 90), |
| 107 | + }, |
| 108 | + Blend.New "Part" { |
| 109 | + Size = Vector3.new(3.4, 0.6, 0.6), |
| 110 | + BrickColor = BrickColor.new("Reddish brown"), |
| 111 | + CFrame = CFrame.new(-0.3, 1.7, 1.7, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
| 112 | + Color = Color3.fromRGB(105, 64, 40), |
| 113 | + Material = Enum.Material.WoodPlanks, |
| 114 | + }, |
| 115 | + Blend.New "Part" { |
| 116 | + Size = Vector3.new(4, 0.6, 0.6), |
| 117 | + BrickColor = BrickColor.new("Reddish brown"), |
| 118 | + CFrame = CFrame.new(1.649986, 0.028765, 0, 0, 0, 1, 0.707111, 0.707102, 0, -0.707102, 0.707111, 0), |
| 119 | + Color = Color3.fromRGB(105, 64, 40), |
| 120 | + Material = Enum.Material.WoodPlanks, |
| 121 | + Rotation = Vector3.new(45, 90, 0), |
| 122 | + }, |
| 123 | + Blend.New "Part" { |
| 124 | + Size = Vector3.new(4, 0.6, 0.6), |
| 125 | + BrickColor = BrickColor.new("Reddish brown"), |
| 126 | + CFrame = CFrame.new(-0.007957, 1.649938, 0.054213, 0.707106, 0, 0.707108, 0, 1, 0, -0.707108, 0, 0.707106), |
| 127 | + Color = Color3.fromRGB(105, 64, 40), |
| 128 | + Material = Enum.Material.WoodPlanks, |
| 129 | + Rotation = Vector3.new(0, 45, 0.001), |
| 130 | + }, |
| 131 | + Blend.New "Part" { |
| 132 | + Size = Vector3.new(3.4, 0.6, 0.6), |
| 133 | + BrickColor = BrickColor.new("Reddish brown"), |
| 134 | + CFrame = CFrame.new(-1.699978, -1.700141, 0.299995) * CFrame.Angles(0, math.pi / 2, 0), |
| 135 | + Color = Color3.fromRGB(105, 64, 40), |
| 136 | + Material = Enum.Material.WoodPlanks, |
| 137 | + Rotation = Vector3.new(0, 90, 0), |
| 138 | + }, |
| 139 | + Blend.New "Part" { |
| 140 | + Size = Vector3.new(2.8, 0.6, 0.6), |
| 141 | + BrickColor = BrickColor.new("Reddish brown"), |
| 142 | + CFrame = CFrame.new(-1.7, 0, 1.7, 0, 1, 0, -1, 0, 0, 0, 0, 1), |
| 143 | + Color = Color3.fromRGB(105, 64, 40), |
| 144 | + Material = Enum.Material.WoodPlanks, |
| 145 | + Rotation = Vector3.new(0, 0, -90), |
| 146 | + }, |
| 147 | + Blend.New "Part" { |
| 148 | + Size = Vector3.new(4, 0.6, 0.6), |
| 149 | + BrickColor = BrickColor.new("Reddish brown"), |
| 150 | + CFrame = CFrame.new(0, -1.671373, -0.008285, 0.707105, 0.707108, -0, 0, 0, 1, 0.707108, -0.707105, -0), |
| 151 | + Color = Color3.fromRGB(105, 64, 40), |
| 152 | + Material = Enum.Material.WoodPlanks, |
| 153 | + Rotation = Vector3.new(-90, -0.001, -45), |
| 154 | + }, |
| 155 | + Blend.New "Part" { |
| 156 | + Size = Vector3.new(2.8, 0.6, 0.6), |
| 157 | + BrickColor = BrickColor.new("Reddish brown"), |
| 158 | + CFrame = CFrame.new(1.7, -1.7, 0) * CFrame.Angles(math.pi, math.pi / 2, 0), |
| 159 | + Color = Color3.fromRGB(105, 64, 40), |
| 160 | + Material = Enum.Material.WoodPlanks, |
| 161 | + Rotation = Vector3.new(180, 90, 0), |
| 162 | + }, |
| 163 | + Blend.New "Part" { |
| 164 | + Name = "Center", |
| 165 | + Size = Vector3.new(3.6, 3.6, 3.6), |
| 166 | + BrickColor = BrickColor.new("Brown"), |
| 167 | + CFrame = CFrame.Angles(0, 0, 0), |
| 168 | + Color = Color3.fromRGB(124, 92, 70), |
| 169 | + Material = Enum.Material.WoodPlanks, |
| 170 | + [Blend.Instance] = center, |
| 171 | + }, |
| 172 | + Blend.New "Part" { |
| 173 | + Size = Vector3.new(3.4, 0.6, 0.6), |
| 174 | + BrickColor = BrickColor.new("Reddish brown"), |
| 175 | + CFrame = CFrame.new(1.7, 1.7, -0.3) * CFrame.Angles(0, -math.pi / 2, 0), |
| 176 | + Color = Color3.fromRGB(105, 64, 40), |
| 177 | + Material = Enum.Material.WoodPlanks, |
| 178 | + Rotation = Vector3.new(0, -90, 0), |
| 179 | + }, |
| 180 | + } |
| 181 | +end |
| 182 | + |
| 183 | +return RenderCrateUtils |
0 commit comments