I'm trying to make a ui scale with the screengui's absolute size, but when I attempt to set the frame's size, regardless of input, will always underline the line in red and display this when hovered over;
W000:Type mismatch number and nil
local main = script.Parent
local frame = main:WaitForChild("Frame")
frame.Size = UDim2.new(0, 50, 0, 50)
I've worked with UI's before and never had this problem.

1 comment
what\