player = game.Players.LocalPlayer
script.Parent.MouseButton1Down:connect(function()
game.Lighting.maps:Clone().Parent = player.PlayerGui
wait(5)
player.PlayerGui.maps:Remove()
end)
Everytime I try to game.Players.LocalPlayer.PlayerGui.map.Frame.TextLabel2 = "script.parent" the script breaks and nothing happens. Can anyone help with this?

1 comment
You need to set the text game.Players.LocalPlayer.PlayerGui.map.Frame.TextLabel2.Text = script.Parent.Name