Ad
Log in to vote
0

how to roundfiy an Instance.new('frame')?

Asked by 1 month ago
Edited 1 month ago

i was wondering if you can roundfiy an Instance.new('frame') this is what i mean:

frame = Instance.new('frame',game.StarterGui)
frame.roundfiy = true -- does not work

1 answer

Log in to vote
1
Answered by
noot20000 185
1 month ago
Edited 1 month ago
local frame = Instance.new('frame',game.StarterGui)

local UICorner = Instance.new("UICorner");UICorner.Parent = frame
UICorner.CornerRadius = UDim.new(8,0)
0
And btw, ";" is for singular line code if you didn't know. noot20000 185 — 1mo
0
@noot20000 your code returns a `invalid argument #3 (UDim expected, got Vector2)` Retallack445 67 — 1mo
0
Whoops, juust use UDim.new() instead of Vector2.new() noot20000 185 — 1mo
0
My bad noot20000 185 — 1mo
0
Thanks @noot20000 Retallack445 67 — 1mo
Ad

Answer this question