#how to make it starts from bottom parts

1 messages · Page 1 of 1 (latest)

strong kraken
#

how to make it starts from bottom parts like on first vid

#

and then start it

#

`-- Color wave definition
local Sequence = ColorSequence.new({
ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), -- white
ColorSequenceKeypoint.new(0.5, Color3.fromRGB(255, 0, 255)), -- pink
ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 255, 255)) -- cyan
})

-- Setup references
local Model = script.Parent
local LeftParts = Model:WaitForChild("Left"):GetChildren()
local RightParts = Model:WaitForChild("Right"):GetChildren()

-- Sort parts numerically
table.sort(LeftParts, function(a, b) return tonumber(a.Name) < tonumber(b.Name) end)
table.sort(RightParts, function(a, b) return tonumber(a.Name) < tonumber(b.Name) end)

-- Get color from sequence
local Keypoints = Sequence.Keypoints
local function GetColor(delta: number): Color3
for i = 1, #Keypoints - 1 do
local a = Keypoints[i]
local b = Keypoints[i + 1]
if delta >= a.Time and delta <= b.Time then
local alpha = (delta - a.Time) / (b.Time - a.Time)
return a.Value:Lerp(b.Value, alpha)
end
end
return Keypoints[#Keypoints].Value
end

-- Combine left and right into a parallel wave
local total = math.min(#LeftParts, #RightParts)
local waveSize = 7 -- how many parts are affected at once

while true do
for head = 1, total + waveSize do
for i = 1, total do
local offset = (head - i) / waveSize
local delta = math.clamp(offset, 0, 1)
local color = GetColor(delta)

        local left = LeftParts[i]
        local right = RightParts[i]

        if left then
            left.Color = color
            left.Material = Enum.Material.SmoothPlastic
        end
        if right then
            right.Color = color
            right.Material = Enum.Material.SmoothPlastic
        end
    end

    task.wait(0.03) -- smooth speed
end

end
`

shy flax
#

Also, what do you mean with “start from the bottom”, as it does already appear to be doing so?

strong kraken
#

i mean UGHH how to explain

#

like

#

part is Cyan not black but its black

proper rover
#

it's probably highlights

strong kraken
#

SORRY 😭

strong kraken
#

highlites?

#

hm

proper rover
#

you're referring to the edges being a different color right?

strong kraken
#

oh no not edges, i'm talking about parts

shy flax
proper rover
#

...just color the blocks black

strong kraken
#

before running game

#

its black

proper rover
#

well yeah

#

you're not using neon material

#

you're also not using highlights

strong kraken
proper rover
strong kraken
#

low quality

#

or something

#

ugh it's literally only thing left in my game

proper rover
#

what're you talking about

#

the reference video is either using neon + highlights or just highlights

#

it being pitch black is only magnifying the effect as well

strong kraken
#

but im not talking about edges

#

im talking about whole part

proper rover
#

highlights are not explicitly edges

strong kraken
#

look like it's glowing smoothly and like 5 parts are same color and 5 others etc

proper rover
#

as you can see, there's a fill with no outline

strong kraken
#

so i should insert highlight?

proper rover
#

do whatever you think makes it look good