[This is in a localscript inside a textlabel] I have a round system for a minigames and later on, the minigames main script adds a copy of a map in workspace and the maps name is 'Map' (That's where I get line 2 from). And in the map there is a value called 'ShowName' which just shows the name of the map in the main script. But when a player dies, the text goes away of showing the map name so that's why I made this script. I am not sure the proper way of scripting this.
while wait() do
if game.Workspace:FindFirstChild('Map') then
game.Workspace.Map.ShowName.Changed:connect(function()
script.Parent.Text = 'Selected Map: ' ..game.Workspace.Map.ShowName.Value
end)
end
end
