Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make a brick material change during day and change again during the night loop?

How do i make a brick material change during day and change again during the night loop

1 comment

0

maybe make a server script that has soemthing like this: if game.Lighting.TimeOfDay == 12:00 then part.Material = "Neon"

1 answer

Connect to the Changed() event and adjust the material of your part accordingly, like so:

game:GetService("Lighting").Changed:Connect(function()
	-- if statements here and change part material as follows:
	part.Material = "Neon";
end

This discussion is preserved as it was. New answers, comments, and votes are closed.