#Mesh changing to specific colors smoothly

1 messages · Page 1 of 1 (latest)

quick forge
#

i need someone to teach me or help me with a script that basically makes a mesh switch from one color to another and make it looped, smoothly too. i have a video to demonstrate it too

#

so basically

#

let me show my models

#

i made sure everything can switch colors

#

can anyone help

#

maybe

quick forge
quick forge
#

yes smoothly

#

i want it to go from white, to red, to blue and back to white

round jolt
#

alr

#

its one mesh?

quick forge
#

nope

round jolt
#

but the whole thing should be one color?

quick forge
#

i want the whole thing to have red for example, but some parts are lighter or darker than the others

quick forge
round jolt
#

alr one sec

round jolt
quick forge
#

yes and another with a darker

round jolt
#

minute, second

quick forge
#

its at

#

6:40

#

showcase of the pet

round jolt
#

ohhh

#

thats what you mean

quick forge
#

ye see how some are darker than the others

round jolt
#

yh

quick forge
#

is it hard to make

round jolt
#

the thing is, my games dont have to do anything with colors

#

they will use a function and a while loop

quick forge
#

ohh

round jolt
#

in the function, eventually they change the color everytime a bit, the transparency and the Material (Neon)

quick forge
#

idk i didnt see any transparency changes inside the video

round jolt
quick forge
#

ohh

round jolt
#

that it's more / less

quick forge
#

btw 1 sec

round jolt
#

but i dont know if they did it

quick forge
#

let me show you the models insides

round jolt
quick forge
#

thats the 2 armed one

#

4 armed*

#

this is the 2 armed

#

btw the Handle is just the shutter shades on the face

round jolt
#

well you would need a table for all the Part or "FindFirstChild"

quick forge
#

huh?

round jolt
#

to get the Childs of your Part

#

i would use a Table, since you dont want to make every Part another Color

quick forge
#

how do i do that

#

you there

#

how do i make a table?

robust umbra
#

@quick forge

local TweenService = game:GetService("TweenService")

local part = script.Parent -- The part you want to change color to red


local function tweenToRed()
    local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear)
    local goal = {Color = Color3.new(1,0,0)}
    local tween = TweenService:Create(part, tweenInfo, goal)
    tween:Play()
end


tweenToRed(part)
round jolt
round jolt
#

local Part = script.Parent

local changeColorParts = {
  Part.ChangePart1
  Part.ChangePart2
  }

#

thats for example a table @quick forge

quick forge
#

no worries guys

#

i made it