Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to auto scroll a ScrollingFrame?

Asked by 7 years ago

I am trying to make a ScrollingFrame in which as more frames appear it scrolls down so you can see the latest one, however I am unable to find a way of doing this.

1 answer

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
7 years ago
Edited 7 years ago

Scrolling frames have the property "CanvasPosition", set this value to make the scrolling frame scroll (No smooth animation automaticly).

An auto-scroller could look like this:

--Localscript inside ScrollingFrame
for i=1,300 do
    script.Parent.CanvasPosition = Vector2.new(0,i)
    wait()
end

For some reason they use Vector2.new() instead of Udim.new(). I don't know why Roblox chose for this.

Ad

Answer this question