ScrollFrame.CanvasPosition Bug (RESOLVED)

So, I have a completely working menu system that uses BillboardGui’s and programmed with FE in mind to replicate what players are doing in their menu so other players can see. Inside the Equipment tab the items the player owns are all displayed in a list form and scroll when the player moves to an item out of frame. The code worked 100% fine a couple months ago when i did the same type of menu system, but now both of them don’t work.

(FOR THE SAKE OF THE GAMES PRIVACY AS I DON’T WANT TO LEAK ANY INFO ABOUT IT I WILL NOT PROVIDE SCREENSHOTS HOWEVER I WILL EXPLAIN WHAT HAPPENS)

The code is as simple as the server running this: ScrollFrame.CanvasPosition = Vector2.new(0,number) but when i go in game and play and double check to see if it moved it, it still says (0,0), I’ve even tried to see if my math was wrong (which it really shouldn’t) and test it by making it manually move to a specific position, still (0,0). I’ve gone in studio and manually set it without any code, works perfectly fine, even tried setting it to something like (0,5) in studio then testing, for some reason it resets to (0,0)

I’ve tried asking around and even looking at the DevForums if anyone knows a solution but I haven’t found anything that helps. If I’m just dumb and the solution is easy or if this is a genuine issue please help. I can provide further details if needed but for the most part i’d really not like to leak any info especially since I already have a lot of dev-friends trying to snoop into what i’m doing.

3 Likes

Could you make a repro file that doesn’t contain such sensitive information but reproduces the issue, then? Working without a visual is pretty difficult to do for things like this and even moreso if code is involved but not shared.

Even sharing just the menu is enough to leak what the project itself is, mind if i DM the visuals?

Please review my post again. A repro file means to, from scratch, create a barebones asset that replicates the issue you’re having on the main place file.

For example, in your case:

Problem: A ScrollingFrame is not scrolling properly in your game.
Repro file: Empty baseplate with a blank ScrollingFrame and the code you’re using (e.g. setting the ScrollingFrame’s CanvasPosition) that shows the same issue occurring in your main game.

1 Like

While making examples of whats happening in the repro i accidentally discovered what was causing the bug, i saw how it worked in the repro place and not in the actual game, apparently i was resetting the position in the code and didn’t see the code that was resetting it.

3 Likes