Hello Im making an inventory GUI and I have noticed that I cannot scroll very far with a scrolling frame and I have tried using a script provided by someone else on the dev forum who had the same issue however it didn’t seem to work. I have also tried looking on Youtube and the Devhub and found nothing.
Im not sure what else to do other than make a new topic regarding this issue.
Script:
local highestPosition = 0
local MainFrame = script.Parent
local ScrollingFrame = MainFrame.InventoryStorage
ScrollingFrame.ChildAdded:Connect(function(newChild)
wait()
local lastScrollPosition = ScrollingFrame.CanvasPosition
ScrollingFrame.CanvasPosition = Vector2.new(0, 9999999999)
highestPosition = ScrollingFrame.CanvasPosition.Y
ScrollingFrame.CanvasPosition = lastScrollPosition
end)
ScrollingFrame:GetPropertyChangedSignal("CanvasPosition"):Connect(function()
print("CanvasPosition, ", ScrollingFrame.CanvasPosition.Y)
if ScrollingFrame.CanvasPosition.Y >= highestPosition then
print("bottom")
end
end)