I am trying to make a module that makes an instant New Frame but this is the error i get every single time i run my code: Workspace.ROS_API:55: attempt to call a table value
my code:
function module.create_app(parent)
local main_frame = Instance.new('Frame')
local top_frame = Instance.new('Frame')
main_frame.Parent = parent
main_frame.Size = UDim2(0, 1084,0, 673)--I get my error on this.
main_frame.Position = UDim2(0.5, -50,0.5, -50)
top_frame.Parent = main_frame
top_frame.Size = UDim2(0, 1009,0, 28)
top_frame.Position = UDim2(0.5, -50,0, 0)
return(main_frame)
end

1 comment
Thx @cherrythetree