Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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!

0
well, yeah it'll be great. But it'll be better if you'd provide some effort first. 0msh 333 — 4y

Closed as Not Constructive by Leamir, firestarroblox123, and hiimgoodpack

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 4 years ago
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

Ad
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
-->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    
0
This is all you need for your Script. The Enum is necessary if you want to change it. Foxy_Developer 111 — 4y