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

[ANSWERED] How can I change a color and material of a part at the same time?

I need help with my script so far. I made the part green and the material grass. I want to 'fade' into a golden yellow and plastic (the golden yellow RGB is 203,167,68). First, I put this script in a part: https://pastebin.com/kT1rF5GR When I tested it, every time it lags and I only see the part at a point I didn't want it to be to- a golden yellow grass fading into a green grass. I wanted it to wait for about 2 seconds as well, but it looks like it didn't wait to transition. I'm not a very experienced scripter, so I need some help. I just threw the tutorials I found on the web together, oof.

Here's the script if you couldn't find the one I made in the text: https://pastebin.com/kT1rF5GR

Insert the script into a part and please tell me how to change it to work.

2 comments

0

I'm not a very experienced scripter, but you can make a yellow plastic part overlapping the grass part. Then you can fade each one simultaneously.

0

Thanks, I'll try it out.

1 answer

✓ Accepted answer

4 comments

0

Is there a way to loop it as well?

0

By the way, this works!

0

I've created a script similar to yours that allows me to loop it. Thank you TTChaos for the help!

0

Sorry, I was offline. You did say you created a script to loop it. Note that the script is one-way, meaning that I made it so that the grass can change into gold, but gold can't change into grass.

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