Does anybody know the function that detects when a player resizes their screen?

3 comments

0

Where is your script?

0

my script changes the UIGridLayout sizes based on the players window size. But I use an infinite loop to detect the players window size, but I realized it would be way more efficient if there was a way to detect when a player changes their size so I am wondering if anybody knows

0

Nevermind, found it myself workspace.CurrentCamera:GetPropertyChangedSignal("ViewportSize"):Connect(function()