Okay, so the title is self explanatory and there’s 2 branches upon this problem. The first one is, this error:
Here’s the script:
This script is not the full script
local frame = Instance.new("Frame")
frame.Size = Vector2.new(gui.Size.X, gui.Size.Y - Vector2.new(0,36))
frame.Position = Vector2.new(gui.Position.X, gui.Position.Y - Vector2.new(0,36))
frame.Parent = screengui
It’s happening in the second line of this snippet.
Yes, I’ve tried following the error but it done this:
Edited code:
local frame = Instance.new("Frame")
frame.Size = Vector2.new(gui.Size.X, gui.Size.Y - UDim.new(0,36))
frame.Position = Vector2.new(gui.Position.X, gui.Position.Y - UDim.new(0,36))
frame.Parent = screengui
Error:
local frame = Instance.new("Frame")
frame.Size = Vector2.new(gui.Size.X, gui.Size.Y - UDim2.new(0,36))
frame.Position = Vector2.new(gui.Position.X, gui.Position.Y - UDim2.new(0,36))
frame.Parent = screengui
Error:
Now, here comes the second problem, when I tried setting the frames position overall, it didn’t work at all. Not even if I set it up in a totally fresh script. I need an explanation on why I’m unable to edit the position(even with no errors).