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

Answer this question