Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago
Edited 3 years 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
Nootian 184
3 years ago
Edited 3 years 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. Nootian 184 — 3y
0
@noot20000 your code returns a `invalid argument #3 (UDim expected, got Vector2)` Retallack445 75 — 3y
0
Whoops, juust use UDim.new() instead of Vector2.new() Nootian 184 — 3y
0
My bad Nootian 184 — 3y
0
Thanks @noot20000 Retallack445 75 — 3y
Ad

Answer this question