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

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

Asked by 5 years ago
Edited 5 years ago

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.

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. User#30567 0 — 5y
0
Thanks, I'll try it out. BabyBearPowStuff 11 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Script and example below

https://www.roblox.com/games/4174915356/Fade-material

0
Is there a way to loop it as well? BabyBearPowStuff 11 — 5y
0
By the way, this works! BabyBearPowStuff 11 — 5y
0
I've created a script similar to yours that allows me to loop it. Thank you TTChaos for the help! BabyBearPowStuff 11 — 5y
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. User#30567 0 — 5y
Ad

Answer this question