Any Ideas on how I can make scroll frames go down automatically?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?
    I want my custom chat’s scrolling frame to go down whenever a new message pops up

  2. What is the issue? Im too stupid to figure it out on my own

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? Yes, none of them seemed to work.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

This is what I tried: (HOLDER IS THE SCROLLING FRAME)

holder.CanvasPosition = Vector2.new(0, holder.AbsoluteCanvasSize.Y)
-- timeNumber.Value = #holder:GetChildren() Ignore
tempClone.Parent = holder
1 Like

Are you setting the tempClone’s parent to the holder after you update its position? Shouldn’t you update the position after since that’s when the AbsoluteCanvasSize updates.

1 Like

You can calculate where to set the CanvasPosition of the ScrollingFrame is by the following:

local PositionY = holder.AbsoluteCanvasSize.Y-holder.AbsoluteSize.Y
holder.CanvasPosition = Vector2.new(0,PositionY)

This should do what you’re looking for – whenever you capture a new chat added, just set the CanvasPosition accordingly. :slight_smile:

A really big number, even if it surpasses the CanvasSize, should do the job.
holder.CanvasPosition = Vector2.new(0, 2^53)

Same goes if you want to scroll all the way to the top. Any negative number works.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.