I Recommend That You Make It In A Model With A Specific Name In The Workspace
For Example "Name_Changing_Brick", You Would Then Do A Script With The Following:
game.workspace.Name_Changing_Brick:GetAllChildren()
local plr = game.players.LocalPlayer
local sg = instance.new("ScreenGui")
sg.Parent = plr.PlayerGui
local fr = instance.new("Frame")
fr.Parent = sg
fr.BackgroundTransparency = 0.4
fr.BackgroundColor3 = Color3.FromRBG (4, 33, 61)
fr.Name = "OutputBackground"
fr.size = {0, 356},{0, 161}
fr,Position = {0.661, 0},{0, 0}
local tl = Instance.new("TextLabel")
tl.Parent = fr
tl.BackgroundTransparency = 1
tl.TextColor3 = Color3.FromRBG (255, 255, 255)
tl.Position = {0, 0},{0, 0}
tl.TextSize = 26
tl.Text = "Name Changing Brick Is Now Known As:"
local tl2 = Intance.new("TextLabel")
tl2.Parent = fr
tl2.BackgroundTransparency = 1
tl2.TextColor3 = Color3.FromRBG (255, 255, 255)
tl2.Position = {0, 0},{0.509, 0}
tl2.TextSize = 26
tl2.Text = game.workspace.Name_Changing_Brick.Child.Name
end
1 comment
Declare it as a variable or store it in a table