-
What I want to achieve? I want to make a function that returns true if the ScrollingFrame is scrolled to the bottom.
-
What is the issue? I cannot make it and I am not experienced in UDim2
-
What solutions have I tried so far? I have tried this but it doesn’t work:
function isbottom(f)
if f.CanvasPosition.Y == f.CanvasSize.Y.Offset - f.AbsoluteSize.Y then
return true
end
end
I have also tried to make it so its like the above script but instead of ==(equals) I made it so if the value is near to f.CanvasPosition.Y , it worked but it stops working after I put more items on to the ScrollingFrame with UIGridLayout
5 Likes
if script.Parent.CanvasPosition.Y == script.Parent.CanvasSize.Y.Offset - script.Parent.AbsoluteSize.Y then
return true
end
Would allow you to see
I tried that already and gave that script in my post… It doesn’t work.
That’s weird. Let me test it myself.
Hello, it’s been 1 days. Have you checked i?
This video explains everything FYI.
Already watched it, the video doesn’t explain how to do that.
UPDATE: this script:
function isbottom(f)
if f.CanvasPosition.Y == f.CanvasSize.Y.Offset - f.AbsoluteSize.Y then
return true
end
end
Started to work but it only returns true if its really really at very bottom like you have to use scroll bar’s bar and make it to the very bottom using your mouse or you have to use your mouse’s scroll wheel but it only works rarely, is there any way to make this near the bottom, not at the very bottom?
Edit: I changed
f.CanvasPosition.Y == f.CanvasSize.Y.Offset - f.AbsoluteSize.Y
to
f.CanvasPosition.Y >= f.CanvasSize.Y.Offset - f.AbsoluteSize.Y
and it worked.
8 Likes