n_cy
(n_cy)
#1
Haven’t coded on roblox in like 2 years
Trying to create a frame via a localscript in StarterGui
local StarterGui = game:GetService('StarterGui')
local ScreenGui = StarterGui:WaitForChild('ScreenGui')
local Graph = Instance.new('Frame')
ScreenGui.Parent = StarterGui
Graph.Name = 'Graph'
Graph.Position = UDim2.new(0.5, 0, 0.5, 0)
Graph.Size = UDim2.new(0, 300, 0, 300)
Graph.AnchorPoint = Vector2.new(0.5, 0.5)
Graph.BackgroundColor3 = Color3.new(255, 255, 255)
Graph.Parent = ScreenGui
print(Graph)
Any help would be appreciated
you have to append the ui to graph and you can’t print it because it has properties
1 Like
Doomcolp
(dxxmed)
#3
By the way, you have to set the Grid’s parent in the PlayerGui
if you want to actually see the grid while playing and testing.
So this:
Would turn into this:
local ScreenGui = Player.PlayerGui:WaitForChild(“ScreenGui”)
Also you weren’t very descriptive with what you wanted to accomplish; so sorry if this isn’t what you’re looking for.
1 Like
system
(system)
Closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.