#how to make it starts from bottom parts
1 messages · Page 1 of 1 (latest)
mine looks like this, i want it to be black at first
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
`
Well if you change it to white then it will of course not be black…
Also, what do you mean with “start from the bottom”, as it does already appear to be doing so?
it starts with cyan color
i mean UGHH how to explain
like
part is Cyan not black but its black
it's probably highlights
SORRY 😭
you're referring to the edges being a different color right?
Cyan is the trailing color??? Do you mean the purple one?
...just color the blocks black
did it-
before running game
its black
i changed things but it still sucks-
but i mean neon makes it more sd
sd?
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
highlights are not explicitly edges
look like it's glowing smoothly and like 5 parts are same color and 5 others etc
as you can see, there's a fill with no outline
so i should insert highlight?
do whatever you think makes it look good