help making a random vgui panel.


int1 = math.random(6)
 
 if int1 = 1 then local DermaWindow = vgui.Create("DFrame")
 DermaWindow:SetSize(745.5,489.5)
 DermaWindow:Center()
 DermaWindow:SetTitle("DermaWindow")
 DermaWindow:MakePopup()

Doesn’t work, any ideas?

[lua]
local int = math.random( 6 )

if int == 1 then
local DermaWindow = vgui.Create( “DFrame” )
DermaWindow:SetSize( 745, 489 )
DermaWindow:Center()
DermaWindow:SetTitle( “DermaWindow” )
DermaWindow:MakePopup()
end
[/lua]

Thank you. :slight_smile: