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

How can I make a part change materials after a certain amount of seconds?

I need a script to help me do this! I'm trying to make a pathway of footsteps light up one step at a time. A script that could be used for each part would be great!

1 comment

0

well, yeah it'll be great. But it'll be better if you'd provide some effort first.

2 answers

while true do
wait(0.1) --- your time here 
workspace.YourPartsName.Material = ---Whatever material you wanna put here
wait(0.5) --- again, your time here
workspace.YourPartsName.Material = 
end

or something along those lines

-->Put this into the Part to work

local part = script.Parent

while true do
	wait(1) --> You decide your time of waiting
	part.Material = Enum.Material.Plastic -->Change this to your own Material
	wait(1) --> Change this
	part.Material = Enum.Material.Nenon -->Change this to your own Material
end

--> This is all you need	

1 comment

0

This is all you need for your Script. The Enum is necessary if you want to change it.

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