ok ok its still not aligned make it were the middle dot is under the loading and for the…
- User
ok ok its still not aligned make it were the middle dot is under the loading and for the other 2 dots one on the right and one on the left
- Assistant
Got it! You want the middle dot directly centered under the "Loading" text, and the other two dots spaced evenly to the left and right of it — basically a classic "dot trio" layout.
Here’s the updated snippet for the dots container and dots positioning inside your existing script, with the dots perfectly aligned horizontally centered under the "Loading" text:
Replace your dots creation part with this:
-- three dot labels (middle dot centered, others left and right) local dots = {} local dotSpacing = 30 -- pixels between dots for i = 1, 3 do local dot = Instance.new("TextLabel") dot.Size = UDim2.new(0, 20, 0, 20) -- fixed size dot.BackgroundTransparency = 1 dot.Text = "." dot.TextScaled = false dot.TextSize = 20 dot.Font = Enum.Font.SourceSansBold dot.TextColor3 = Color3.new(1, 1, 1) dot.Parent = dotsContainer -- Position dots: middle dot centered, left and right spaced by dotSpacing if i == 1 then -- left dot dot.Position = UDim2.new(0.5, -dotSpacing, 0.5, 0) elseif i == 2 then -- middle dot dot.Position = UDim2.new(0.5, 0, 0.5, 0) else -- right dot dot.Position = UDim2.new(0.5, dotSpacing, 0.5, 0) end dots[i] = dot end
And update the wave animation function to match:
local function startDotWave(dots, stopSignal) coroutine.wrap(function() local t = 0 while not stopSignal.Value do t = t + 0.1 for i, dot in ipairs(dots) do -- wave offset (sin with phase shift) local phaseShift = (i - 2) * math.pi / 3 -- middle dot phase 0, left/right shifted local offset = math.sin(t * math.pi * 2 + phaseShift) * dotsAmplitude dot.Position = UDim2.new(dot.Position.X.Scale, dot.Position.X.Offset, 0.5, offset) end task.wait(0.05) end end)() end
Explanation:
- The middle dot is positioned exactly at 0.5 scale (center horizontally).
- The left dot is offset left by
dotSpacingpixels. - The right dot is offset right by
dotSpacingpixels. - The wave animation uses a phase shift so the dots bounce in a smooth wave pattern.
Full snippet for dots part (to replace in your script):
-- dots container local dotsContainer = Instance.new("Frame") dotsContainer.Size = UDim2.new(1, 0, 0.5, 0) dotsContainer.Position = UDim2.new(0, 0, 0.5, 0) dotsContainer.BackgroundTransparency = 1 dotsContainer.Parent = container -- three dot labels (middle dot centered, others left and right) local dots = {} local dotSpacing = 30 -- pixels between dots for i = 1, 3 do local dot = Instance.new("TextLabel") dot.Size = UDim2.new(0, 20, 0, 20) -- fixed size dot.BackgroundTransparency = 1 dot.Text = "." dot.TextScaled = false dot.TextSize = 20 dot.Font = Enum.Font.SourceSansBold dot.TextColor3 = Color3.new(1, 1, 1) dot.Parent = dotsContainer if i == 1 then dot.Position = UDim2.new(0.5, -dotSpacing, 0.5, 0) elseif i == 2 then dot.Position = UDim2.new(0.5, 0, 0.5, 0) else dot.Position = UDim2.new(0.5, dotSpacing, 0.5, 0) end dots[i] = dot end
And the wave animation function:
local function startDotWave(dots, stopSignal) coroutine.wrap(function() local t = 0 while not stopSignal.Value do t = t + 0.1 for i, dot in ipairs(dots) do local phaseShift = (i - 2) * math.pi / 3 local offset = math.sin(t * math.pi * 2 + phaseShift) * dotsAmplitude dot.Position = UDim2.new(dot.Position.X.Scale, dot.Position.X.Offset, 0.5, offset) end task.wait(0.05) end end)() end
This will perfectly center the middle dot under "Loading" and place the other two dots evenly spaced left and right, all bouncing in a smooth wave.
If you want, I can provide the full updated script with these changes integrated — just ask!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.