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

Is this the right way to use Instance.new for a screen gui?

Asked by 4 years ago

This isn't working

local alert = Instance.new("ScreenGui")(Alert)
local Alert = Instance.new("Frame")(AAlert)
local AAlert = Instance.new("TextLabel")
AAlert.Text = "Generator is being damaged"

or am I meant to do it like this

local text = game.StarterGui.Alert.TextLabel.BackgroundTransparency == 1

Answer this question