季節が変わると自動的に変化するモデルを作ろう!

https://youtu.be/ceiG2KwZ1Lk

task.wait()
local month = os.date("%m")
local model = script.Parent

print(month)

if month == "12" or month == "01" or month =="02" then
	print("今冬!")
	model.shiba.Color = Color3.new(0.87451, 0.87451, 0.870588)
	for _, object in ipairs(model.happa:GetDescendants()) do
		
		if object:IsA("BasePart") then
			object.Transparency = 1
		end
	end
	
elseif month == "03" or month =="04" then
	print("今春!")
	model.shiba.Color = Color3.new(1, 0.596078, 0.862745)
	for _, object in ipairs(model.happa:GetDescendants()) do

		if object:IsA("BasePart") then
			object.Color =Color3.new(1, 0.596078, 0.862745)
		end
	end
	
elseif month == "05" or month =="06" or month =="07" or month =="08" or month =="09" then
	print("今夏!")
	model.shiba.Color = Color3.new(0.207843, 0.556863, 0.254902)
	for _, object in ipairs(model.happa:GetDescendants()) do

		if object:IsA("BasePart") then
			object.Color =Color3.new(0.207843, 0.556863, 0.254902)
		end
	end
else
	print("今秋!")
	model.shiba.Color = Color3.new(0.639216, 0.294118, 0.294118)
	for _, object in ipairs(model.happa:GetDescendants()) do

		if object:IsA("BasePart") then
			object.Color =Color3.new(0.639216, 0.294118, 0.294118)
		end
	end
end